From b3da18b4c22ea17e109c858b54c7e05f9e37cdfe Mon Sep 17 00:00:00 2001 From: zhongjin Date: Thu, 25 Apr 2024 21:56:28 +0800 Subject: [PATCH] new --- docker-compose.yaml | 2 ++ src/client/yarn.lock | 15 ++++----------- .../Controller/LoginController.php | 2 +- web/dist/build | 2 +- web/dist/css/app.css | 2 +- web/dist/js/app.js | 2 +- web/dist/js/app.js.map | 2 +- web/images/ohrm_branding.png | Bin 25658 -> 0 bytes 8 files changed, 11 insertions(+), 16 deletions(-) delete mode 100644 web/images/ohrm_branding.png diff --git a/docker-compose.yaml b/docker-compose.yaml index a6227fa..15d2ae6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -32,6 +32,8 @@ services: - MYSQL_ROOT_PASSWORD=orangehrm - MYSQL_ROOT_USER=root - MYSQL_DATABASE=orangehrm + ports: + - "3306:3306" phpmyadmin: image: phpmyadmin diff --git a/src/client/yarn.lock b/src/client/yarn.lock index 7f2fe37..940a2cf 100644 --- a/src/client/yarn.lock +++ b/src/client/yarn.lock @@ -4285,17 +4285,10 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001400": - version: 1.0.30001436 - resolution: "caniuse-lite@npm:1.0.30001436" - checksum: 7928ac7d93741a81b3005ca4623b133e7d790828be70b26ee55e4860facc59bc344f4092e20034981070a4714f70814c8be4929be4b22728031784f267f69099 - languageName: node - linkType: hard - -"caniuse-lite@npm:^1.0.30001426": - version: 1.0.30001441 - resolution: "caniuse-lite@npm:1.0.30001441" - checksum: 0f5aa8f7ea4d165e88e0d1eaa44564c5bfee66641f265a1fd959e74f0a7e6bc0207db6c28e2fb63dc8b2cd23e0e3cee06c4f372de11c93c57ff5ff4207962c3f +"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001400, caniuse-lite@npm:^1.0.30001426": + version: 1.0.30001514 + resolution: "caniuse-lite@npm:1.0.30001514" + checksum: ee2e90fe63cb59fb4a1515eb6b157f1c26d3ccba496b994b0f03088c39c282ee2fb8c160ad7b677ee196b5bb078b23f2f9474c32e4e47724f4d782de92bb8bbe languageName: node linkType: hard diff --git a/src/plugins/orangehrmAuthenticationPlugin/Controller/LoginController.php b/src/plugins/orangehrmAuthenticationPlugin/Controller/LoginController.php index 45f058a..f5add27 100644 --- a/src/plugins/orangehrmAuthenticationPlugin/Controller/LoginController.php +++ b/src/plugins/orangehrmAuthenticationPlugin/Controller/LoginController.php @@ -80,7 +80,7 @@ class LoginController extends AbstractVueController implements PublicControllerI ) ); $component->addProp( - new Prop('login-logo-src', Prop::TYPE_STRING, $request->getBasePath() . '/images/air.png') + new Prop('login-logo-src', Prop::TYPE_STRING, $request->getBasePath() . '/images/ohrm_logo.png') ); $component->addProp( new Prop('login-banner-src', Prop::TYPE_STRING, $this->getThemeService()->getLoginBannerURL($request)) diff --git a/web/dist/build b/web/dist/build index deaf0c7..db96210 100644 --- a/web/dist/build +++ b/web/dist/build @@ -1 +1 @@ -1683530097127 \ No newline at end of file +1688997451355 \ No newline at end of file diff --git a/web/dist/css/app.css b/web/dist/css/app.css index 9b03f0d..e39acba 100644 --- a/web/dist/css/app.css +++ b/web/dist/css/app.css @@ -1,4 +1,4 @@ -.oxd-divider[data-v-0dea79bd]{margin-top:0;margin-bottom:0}.orangehrm-form-hint[data-v-319fc346]{width:100%;font-weight:600;font-size:.75rem;margin-right:auto}@media screen and (min-width:400px){.orangehrm-form-hint[data-v-319fc346]{width:unset}}.orangehrm-loader[data-v-df10eb5c]{display:flex;justify-content:center;align-items:center;min-height:80px}.orangehrm-about[data-v-df10eb5c]{grid-template-columns:150px 1fr}.orangehrm-about-text[data-v-df10eb5c],.orangehrm-about-title[data-v-df10eb5c]{word-break:break-word;font-size:14px}.orangehrm-about-title[data-v-df10eb5c]{font-weight:700}.orangehrm-module-under-development[data-v-c0c6b572]{text-align:center}.orangehrm-module-under-development-img[data-v-c0c6b572]{max-width:100%;height:100%;max-height:350px;display:block;margin:0 auto;-o-object-fit:fill;object-fit:fill}.orangehrm-module-under-development-heading[data-v-c0c6b572]{color:var(--oxd-primary-one-color);font-weight:700}.orangehrm-module-under-development-text[data-v-c0c6b572]{font-size:14px;max-width:800px;margin:0 auto;margin-bottom:2rem}.orangehrm-module-under-development-link[data-v-c0c6b572]{text-decoration:none;color:var(--oxd-primary-one-color)}.orangehrm-module-disabled[data-v-3d2f2dd1]{text-align:center;margin-bottom:1.2rem}.orangehrm-module-disabled-heading[data-v-3d2f2dd1]{line-height:normal;color:var(--oxd-primary-one-color);font-weight:800}.orangehrm-module-disabled-sub-heading[data-v-3d2f2dd1]{margin-top:-1.5rem;padding-bottom:1rem;color:var(--oxd-primary-one-color);font-weight:600}.orangehrm-modal-header[data-v-64d94959]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-64d94959]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-64d94959]{margin:.25rem}.orangehrm-text-center-align[data-v-64d94959]{text-align:center}.orangehrm-file-current[data-v-0511e208]{display:flex;margin-bottom:1rem}.orangehrm-file-icon[data-v-0511e208]{display:block;font-size:3rem;margin-bottom:.5rem}.orangehrm-file-download[data-v-0511e208]{font-size:12px;margin-left:10px;vertical-align:middle}.orangehrm-file-name[data-v-0511e208]{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.orangehrm-file-options[data-v-0511e208],.orangehrm-file-preview[data-v-0511e208]{display:flex;align-items:center;flex-direction:column;justify-content:center}.orangehrm-file-preview[data-v-0511e208]{padding:.5rem;cursor:pointer;min-height:90px;min-width:150px;text-align:center;border-radius:.5rem;margin-right:1rem;border:1px solid #cfd3de;background-color:#f6f5fb}[data-v-0511e208] .--label-right{flex-shrink:0;align-self:center}.past-employee-tag[data-v-1ccb3a64]{margin-left:auto}.orangehrm-password-chip[data-v-2eef2625]{top:0;right:0;font-weight:600;position:absolute;color:#fff;font-family:Nunito Sans,sans-serif}.orangehrm-password-chip.--strength-better[data-v-2eef2625]{color:#979900;background-color:#fcff00}.orangehrm-password-chip.--strength-strong[data-v-2eef2625]{background-color:#bde813}.orangehrm-password-chip.--strength-strongest[data-v-2eef2625]{background-color:#93b40f}.user-password-row[data-v-9345d4ba]{padding:10px;background-color:#fafafc;border-radius:.75rem}.user-password-row[data-v-9345d4ba] .orangehrm-password-chip{top:-5px;right:8px}.user-password-hint[data-v-9345d4ba]{font-size:.75rem}.user-password-cell[data-v-9345d4ba]{position:relative}.level-label[data-v-391369a4]{font-size:.75rem}.org-root-container[data-v-a525b582]{padding:.5em 1.35rem;display:flex;align-items:center;justify-content:space-between;height:30px}.org-root-container .oxd-text[data-v-a525b582]{position:relative;display:flex;align-items:center}.org-root-container .oxd-text.--parent[data-v-a525b582]:after{content:"";border-left:.15rem solid var(--oxd-primary-one-color);height:2rem;position:absolute;top:50%;left:0}.org-root-container .oxd-text.--parent[data-v-a525b582]:before{content:"";border-top:.15rem solid var(--oxd-primary-one-color);width:1rem;margin-right:.5rem}.org-container[data-v-a525b582]{background-color:#e8eaef;padding:.5rem 1rem}.org-container .loader[data-v-a525b582]{display:flex;justify-content:center;align-items:center;padding:10rem 0}.org-container .loader .oxd-loading-spinner-container[data-v-a525b582]{background-color:#fff}.org-structure-card[data-v-a525b582]{display:flex;min-height:35px;padding:.35rem;border-radius:.75rem;align-items:center;justify-content:space-between;background-color:#fff}@media(min-width:800px){.org-structure-card[data-v-a525b582]{padding:.5rem 1rem}}.org-name[data-v-a525b582]{position:relative;overflow:hidden;max-height:4.5;line-height:1.5;justify-content:space-between;word-break:break-all}.org-name[data-v-a525b582]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:1.5;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:3){.org-name[data-v-a525b582]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.org-name[data-v-a525b582]:after{display:none}}.org-structure-add[data-v-a525b582]{min-width:unset;padding:.5rem 1rem}.org-action[data-v-a525b582]{display:flex;list-style:none;position:relative}.org-action-icon[data-v-a525b582]{margin-right:.5rem}.org-action-icon[data-v-a525b582]:last-child{margin-right:unset}.org-action-description[data-v-a525b582]{display:flex;cursor:pointer;font-size:12px;padding:.2rem 1rem}.org-action-description[data-v-a525b582]:hover{background-color:#f6f7f9}.org-action[data-v-a525b582] .oxd-dropdown-menu{right:0;top:40px;left:unset}.oxd-tree-node-content{width:100%}.oxd-tree-node-toggle .oxd-icon-button{background-color:#fff!important}.organization-name-container[data-v-440f5057]{grid-column:span 2}.no-of-employees-value[data-v-440f5057]{font-size:12px;padding:.675rem .5rem}.orangehrm-header-container[data-v-440f5057]{padding:0}[data-v-5b5ad744] .--status-grouped-field{display:flex;max-width:13rem}.send-method-div[data-v-5b5ad744]{display:flex;flex-direction:row}@media(max-width:800px){.send-method-div[data-v-5b5ad744]{flex-direction:column}}.sendmail-path-value[data-v-5b5ad744]{font-size:12px;padding:.675rem .5rem}.orangehrm-optional-field-row[data-v-5b5ad744]{grid-column-start:1;display:flex;justify-content:space-between;padding:.5rem 0}.orangehrm-optional-field-label[data-v-5b5ad744]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:50%}.tls-hint[data-v-5b5ad744]{font-size:.75rem;margin-top:-.8rem}.orangehrm-action-header[data-v-6526a07f]{display:flex;overflow-wrap:break-word;align-items:center}.orangehrm-action-header button[data-v-6526a07f]{margin-left:1rem;white-space:nowrap}.orangehrm-module-field-row[data-v-4e1bed3c]{grid-column-start:1;display:flex;justify-content:space-between;padding:.5rem .75rem}.orangehrm-module-field-label[data-v-4e1bed3c]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}.orangehrm-workshift-duration[data-v-003161fa],.orangehrm-workshift-duration[data-v-4e80e7d6]{font-size:14px;padding:.675rem 0}.level-label[data-v-36993096],.level-label[data-v-cc6ef064]{font-size:.75rem}[data-v-9d33cb16] .oxd-input-group__label-wrapper{display:none}[data-v-9d33cb16] .orangehrm-color-input-wrapper{display:flex;align-items:center;justify-content:space-between}[data-v-9d33cb16] .oxd-color-input{padding:2px;flex-shrink:0}.oxd-input-field-bottom-space[data-v-9d33cb16]{margin-bottom:1rem}.orangehrm-actions-group[data-v-f2980770]{gap:.4rem;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-actions-group[data-v-f2980770] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-actions-group[data-v-f2980770]{margin-left:unset;max-width:unset}.orangehrm-actions-group[data-v-f2980770] .oxd-button--medium{width:unset}}.orangehrm-sm-field[data-v-f2980770]{display:flex;align-items:center;justify-content:space-between;padding:.675rem 0}.orangehrm-sm-field-label[data-v-f2980770]{font-weight:700;font-size:14px}.addlanguage-note[data-v-08ca613a]{background-color:#e8eaef;border-radius:10px;width:100%;margin-top:20px;margin-bottom:20px}.addlanguage-note-text[data-v-08ca613a]{padding:1.2rem}.orangehrm-information-card-text[data-v-08ca613a]{font-size:14px;color:#64728c;font-weight:400}[data-v-08ca613a] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}.addlanguage-note[data-v-745f4367]{background-color:#e8eaef;border-radius:10px;width:100%;margin-top:20px;margin-bottom:20px}.addlanguage-note-text[data-v-745f4367]{padding:1.2rem}.orangehrm-information-card-text[data-v-745f4367]{font-size:14px;color:#64728c;font-weight:400}[data-v-745f4367] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}.orangehrm-translation-container[data-v-5f0f9ef8]{padding-left:25px;padding-right:25px}.orangehrm-translation-grid[data-v-5f0f9ef8]{padding-top:.5rem}@media(min-width:600px){.orangehrm-translation-grid[data-v-5f0f9ef8]{grid-template-columns:1fr}}@media(min-width:1000px){.orangehrm-translation-grid[data-v-5f0f9ef8]{grid-template-columns:repeat(3,1fr)}}.orangehrm-translation-grid-header[data-v-5f0f9ef8]{display:none;margin-bottom:1rem}@media(min-width:1000px){.orangehrm-translation-grid-header[data-v-5f0f9ef8]{display:block}.orangehrm-translation-grid-langstring-header[data-v-5f0f9ef8]{display:none}}.orangehrm-translation-grid-langstring-header-note[data-v-5f0f9ef8]{display:none}.orangehrm-translation-grid-text[data-v-5f0f9ef8]{font-size:.75rem}.oxd-text--card-title[data-v-5f0f9ef8]{padding-top:.5rem;padding-bottom:.5rem}@media(min-width:1000px){.oxd-text--card-title[data-v-5f0f9ef8]{padding-bottom:1rem}.note[data-v-5f0f9ef8]{display:none}}.orangehrm-header-container[data-v-1ad53bff]{justify-content:end}.orangehrm-ldap-sync[data-v-0aa30e8a]{display:flex;flex-direction:column}@media(min-width:800px){.orangehrm-ldap-sync[data-v-0aa30e8a]{flex-direction:row;align-items:center}.orangehrm-ldap-sync-time[data-v-0aa30e8a]{margin-left:1rem}}.orangehrm-ldap-sync-button[data-v-0aa30e8a]{white-space:normal!important}.orangehrm-ldap-sync-loader[data-v-0aa30e8a]{margin:0 2rem}.orangehrm-ldap-test[data-v-7b76f5a0]{margin-bottom:.75rem}.orangehrm-ldap-test-title[data-v-7b76f5a0]{font-size:14px;font-weight:700;margin-bottom:.2rem}.orangehrm-ldap-test-value.--success[data-v-7b76f5a0]{color:#34bc40}.orangehrm-ldap-test-value.--error[data-v-7b76f5a0]{color:#eb0910}.orangehrm-ldap-test-row[data-v-7b76f5a0]{width:100%;display:flex;font-size:14px;margin-bottom:.2rem}.orangehrm-ldap-test-content[data-v-7b76f5a0]{flex:1}.orangehrm-header-container[data-v-89df999a]{padding:0}.orangehrm-column-half[data-v-89df999a]{width:50%}.orangehrm-form-divider[data-v-89df999a]{margin:1rem 0}.orangehrm-subtitle[data-v-89df999a]{font-size:14px;font-weight:700;margin-bottom:1rem}.orangehrm-ldap-switch[data-v-89df999a]{display:flex;align-items:center;white-space:nowrap;justify-content:space-between;margin-bottom:1rem}.orangehrm-ldap-switch-text[data-v-89df999a]{font-size:14px}.orangehrm-ldap-grid[data-v-89df999a]{grid-template-columns:repeat(3,1fr)}.orangehrm-ldap-grid-header[data-v-89df999a]{font-size:12px;font-weight:700;align-self:start;margin-bottom:1rem}.orangehrm-ldap-grid-content[data-v-89df999a]{font-size:12px;position:relative}.orangehrm-ldap-grid-icon[data-v-89df999a]{right:0;font-size:18px;position:absolute}.orangehrm-ldap-grid[data-v-89df999a] .oxd-input-group__label-wrapper{display:none}.orangehrm-ldap-grid[data-v-89df999a] .oxd-switch-wrapper{margin-top:.75rem}.employee-image[data-v-b553055e]{height:8rem}.orangehrm-input-hint[data-v-b553055e]{margin:0 auto;text-align:center}[data-v-b553055e] .oxd-file-div{margin:0 auto;display:flex;position:relative;align-items:center;justify-content:center;width:8rem!important;height:8rem!important;border-radius:100%!important;border:1px solid #e8eaef}.employee-image-wrapper[data-v-b553055e]{height:90%;width:90%;display:flex;overflow:hidden;border-radius:100%;justify-content:center;align-items:flex-start;border:1px solid #e8eaef}.employee-image-action[data-v-b553055e]{right:0;bottom:0;position:absolute}@media(min-width:800px){[data-v-16292a35] .--name-grouped-field{display:flex}[data-v-16292a35] .orangehrm-firstname{border-bottom-right-radius:unset;border-top-right-radius:unset;text-overflow:ellipsis}[data-v-16292a35] .orangehrm-lastname{border-bottom-left-radius:unset;border-top-left-radius:unset;text-overflow:ellipsis}[data-v-16292a35] .orangehrm-middlename{border-radius:unset;text-overflow:ellipsis}}.orangehrm-employee-container[data-v-e2b6125c]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-e2b6125c]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-e2b6125c]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-e2b6125c]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-e2b6125c]{flex:1 1 75%}.user-form-header[data-v-e2b6125c]{display:flex;padding:1rem 0}.user-form-header-text[data-v-e2b6125c]{font-size:.8rem;margin-right:1rem}[data-v-e2b6125c] .--gender-grouped-field,[data-v-e2b6125c] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-e2b6125c] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-e2b6125c] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-e2b6125c] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-e2b6125c] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-e2b6125c] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-e2b6125c]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-e2b6125c] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-e2b6125c] .employee-image{height:12rem}[data-v-e2b6125c] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-e2b6125c]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-employee-container[data-v-0065ac32]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-0065ac32]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-0065ac32]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-0065ac32]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-0065ac32]{flex:1 1 75%}.user-form-header[data-v-0065ac32]{display:flex;padding:1rem 0}.user-form-header-text[data-v-0065ac32]{font-size:.8rem;margin-right:1rem}[data-v-0065ac32] .--gender-grouped-field,[data-v-0065ac32] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-0065ac32] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-0065ac32] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-0065ac32] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-0065ac32] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-0065ac32] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-0065ac32]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-0065ac32] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-0065ac32] .employee-image{height:12rem}[data-v-0065ac32] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-0065ac32]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-tabs[data-v-8cad1ea8]{display:flex;flex-wrap:nowrap;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-tabs-wrapper[data-v-8cad1ea8]{display:flex}.orangehrm-tabs-item[data-v-8cad1ea8]{height:35px;line-height:35px;padding:0 1rem;border-radius:.85rem;flex:100%;color:#64728c;text-decoration:none;font-size:14px;font-family:Nunito Sans,sans-serif;font-weight:700}@media(min-width:0px){.orangehrm-tabs-item[data-v-8cad1ea8]{margin-right:.25rem;background-color:#f6f5fb;white-space:nowrap}.orangehrm-tabs-item.--active[data-v-8cad1ea8],.orangehrm-tabs-item[data-v-8cad1ea8]:hover{background-color:var(--oxd-primary-one-color);color:#fff}}@media(min-width:800px){.orangehrm-tabs-item[data-v-8cad1ea8]{margin-right:unset;margin-bottom:.25rem;background-color:unset;white-space:wrap}.orangehrm-tabs-item.--active[data-v-8cad1ea8],.orangehrm-tabs-item[data-v-8cad1ea8]:hover{background-color:#f6f5fb;color:#64728c}}@media(min-width:0px){.orangehrm-tabs[data-v-8cad1ea8]{flex-direction:row;overflow:scroll hidden;padding-bottom:5px}}@media(min-width:800px){.orangehrm-tabs[data-v-8cad1ea8]{flex-direction:column;overflow:visible;padding-bottom:unset}}.orangehrm-tabs[data-v-8cad1ea8]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-tabs[data-v-8cad1ea8]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-tabs[data-v-8cad1ea8]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-tabs[data-v-8cad1ea8]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-action-header[data-v-3dab643a]{display:flex;overflow-wrap:break-word;align-items:center}.orangehrm-action-header button[data-v-3dab643a]{margin-left:1rem;white-space:nowrap}.oxd-divider[data-v-50e42520]{margin-top:0;margin-bottom:0}.orangehrm-attachment[data-v-50e42520]{border-bottom-right-radius:1.2rem;overflow:hidden}.orangehrm-card-container[data-v-0349f171]{padding:unset}.orangehrm-edit-employee[data-v-0349f171]{display:flex}@media(min-width:0px){.orangehrm-edit-employee[data-v-0349f171]{flex-direction:column}}@media(min-width:800px){.orangehrm-edit-employee[data-v-0349f171]{flex-direction:row}}.orangehrm-edit-employee-navigation[data-v-0349f171]{width:100%;padding:1rem;box-sizing:border-box}@media(min-width:800px){.orangehrm-edit-employee-navigation[data-v-0349f171]{width:220px}}.orangehrm-edit-employee-content[data-v-0349f171]{flex:1}@media(min-width:800px){.orangehrm-edit-employee-content[data-v-0349f171]{border-left:1px solid #e8eaef}}.orangehrm-edit-employee-name[data-v-0349f171]{text-align:center;padding-left:1rem;padding-right:1rem;word-break:break-word}.orangehrm-edit-employee-name .--strong[data-v-0349f171]{font-weight:700;font-size:1.2rem}.orangehrm-edit-employee-image-wrapper[data-v-0349f171]{padding-bottom:1.2rem}@media(min-width:800px){.orangehrm-edit-employee-image-wrapper[data-v-0349f171]{padding-top:1.2rem}}.orangehrm-edit-employee-image[data-v-0349f171]{width:120px;height:120px;border-radius:100%;display:flex;cursor:pointer;overflow:hidden;justify-content:center;box-sizing:border-box;border:.5rem solid #f6f5fb;box-shadow:1px 1px 18px 11px rgba(186,186,202,.24)}.orangehrm-edit-employee-imagesection[data-v-0349f171]{display:flex;align-items:center}@media(min-width:0px){.orangehrm-edit-employee-imagesection[data-v-0349f171]{flex-direction:row-reverse;justify-content:flex-end}}@media(min-width:800px){.orangehrm-edit-employee-imagesection[data-v-0349f171]{flex-direction:column;justify-content:center}}.orangehrm-employee-container[data-v-13b4404f]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-13b4404f]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-13b4404f]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-13b4404f]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-13b4404f]{flex:1 1 75%}.user-form-header[data-v-13b4404f]{display:flex;padding:1rem 0}.user-form-header-text[data-v-13b4404f]{font-size:.8rem;margin-right:1rem}[data-v-13b4404f] .--gender-grouped-field,[data-v-13b4404f] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-13b4404f] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-13b4404f] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-13b4404f] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-13b4404f] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-13b4404f] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-13b4404f]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-13b4404f] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-13b4404f] .employee-image{height:12rem}[data-v-13b4404f] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-13b4404f]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-employee-container[data-v-f2414b96]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-f2414b96]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-f2414b96]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-f2414b96]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-f2414b96]{flex:1 1 75%}.user-form-header[data-v-f2414b96]{display:flex;padding:1rem 0}.user-form-header-text[data-v-f2414b96]{font-size:.8rem;margin-right:1rem}[data-v-f2414b96] .--gender-grouped-field,[data-v-f2414b96] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-f2414b96] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-f2414b96] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-f2414b96] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-f2414b96] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-f2414b96] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-f2414b96]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-f2414b96] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-f2414b96] .employee-image{height:12rem}[data-v-f2414b96] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-f2414b96]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-employee-container[data-v-c6fb612a]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-c6fb612a]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-c6fb612a]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-c6fb612a]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-c6fb612a]{flex:1 1 75%}.user-form-header[data-v-c6fb612a]{display:flex;padding:1rem 0}.user-form-header-text[data-v-c6fb612a]{font-size:.8rem;margin-right:1rem}[data-v-c6fb612a] .--gender-grouped-field,[data-v-c6fb612a] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-c6fb612a] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-c6fb612a] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-c6fb612a] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-c6fb612a] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-c6fb612a] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-c6fb612a]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-c6fb612a] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-c6fb612a] .employee-image{height:12rem}[data-v-c6fb612a] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-c6fb612a]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.directdeposit-form-header[data-v-6c600350]{display:flex;padding:1rem}.directdeposit-form-header-text[data-v-6c600350]{font-size:.8rem;margin-right:1rem}.directdeposit-form-header[data-v-e3ac8428]{display:flex;padding:1rem}.directdeposit-form-header-text[data-v-e3ac8428]{font-size:.8rem;margin-right:1rem}.input-container[data-v-6dc7b054]{position:relative;display:flex;align-items:center;box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;width:100%;border:1px solid #e8eaef;min-height:45px;cursor:pointer;text-decoration:underline}.input-container-filename[data-v-6dc7b054]{text-overflow:ellipsis;overflow:hidden;width:75%;white-space:nowrap}.input-container-loader[data-v-6dc7b054]{position:absolute;right:10px}.input-container-icon[data-v-6dc7b054]{font-size:inherit!important;min-width:unset;min-height:unset;border-radius:.65rem;padding:.3rem;margin-left:auto}.input-container.--disabled[data-v-6dc7b054]{cursor:not-allowed;text-decoration:none}.input-container[data-v-6dc7b054] .oxd-loading-spinner{width:1rem;height:1rem}.orangehrm-employee-container[data-v-1dfb2fdc]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-1dfb2fdc]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-1dfb2fdc]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-1dfb2fdc]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-1dfb2fdc]{flex:1 1 75%}.user-form-header[data-v-1dfb2fdc]{display:flex;padding:1rem 0}.user-form-header-text[data-v-1dfb2fdc]{font-size:.8rem;margin-right:1rem}[data-v-1dfb2fdc] .--gender-grouped-field,[data-v-1dfb2fdc] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-1dfb2fdc] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-1dfb2fdc] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-1dfb2fdc] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-1dfb2fdc] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-1dfb2fdc] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-1dfb2fdc]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-1dfb2fdc] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-1dfb2fdc] .employee-image{height:12rem}[data-v-1dfb2fdc] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-1dfb2fdc]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-employee-container[data-v-1f0dcd51]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-1f0dcd51]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-1f0dcd51]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-1f0dcd51]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-1f0dcd51]{flex:1 1 75%}.user-form-header[data-v-1f0dcd51]{display:flex;padding:1rem 0}.user-form-header-text[data-v-1f0dcd51]{font-size:.8rem;margin-right:1rem}[data-v-1f0dcd51] .--gender-grouped-field,[data-v-1f0dcd51] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-1f0dcd51] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-1f0dcd51] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-1f0dcd51] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-1f0dcd51] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-1f0dcd51] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-1f0dcd51]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-1f0dcd51] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-1f0dcd51] .employee-image{height:12rem}[data-v-1f0dcd51] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-1f0dcd51]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-employee-container[data-v-3b144a72]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-3b144a72]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-3b144a72]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-3b144a72]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-3b144a72]{flex:1 1 75%}.user-form-header[data-v-3b144a72]{display:flex;padding:1rem 0}.user-form-header-text[data-v-3b144a72]{font-size:.8rem;margin-right:1rem}[data-v-3b144a72] .--gender-grouped-field,[data-v-3b144a72] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-3b144a72] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-3b144a72] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-3b144a72] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-3b144a72] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-3b144a72] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-3b144a72]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-3b144a72] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-3b144a72] .employee-image{height:12rem}[data-v-3b144a72] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-3b144a72]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-custom-field-title[data-v-5c47f79e]{display:block}@media(min-width:800px){.orangehrm-custom-field-title[data-v-5c47f79e]{display:flex;justify-content:space-between;width:100%}.orangehrm-custom-field-title .--infotext[data-v-5c47f79e]{margin-right:1rem}}.select-options-hint[data-v-5c47f79e]{font-size:.75rem;margin-top:-.625rem}.--infotext[data-v-5c47f79e]{font-size:.875rem}.orangehrm-custom-field-title[data-v-9f2c1100]{display:block}@media(min-width:800px){.orangehrm-custom-field-title[data-v-9f2c1100]{display:flex;justify-content:space-between;width:100%}.orangehrm-custom-field-title .--infotext[data-v-9f2c1100]{margin-right:1rem}}.select-options-hint[data-v-9f2c1100]{font-size:.75rem;margin-top:-.625rem}.--infotext[data-v-9f2c1100]{font-size:.875rem}.orangehrm-custom-field-title[data-v-2b25acf8]{display:block}@media(min-width:800px){.orangehrm-custom-field-title[data-v-2b25acf8]{display:flex;justify-content:space-between;width:100%}.orangehrm-custom-field-title .--infotext[data-v-2b25acf8]{margin-right:1rem}}.select-options-hint[data-v-2b25acf8]{font-size:.75rem;margin-top:-.625rem}.--infotext[data-v-2b25acf8]{font-size:.875rem}.orangehrm-optional-field-row[data-v-6f084a70]{grid-column-start:1;display:flex;justify-content:space-between;padding:.5rem .75rem}.orangehrm-optional-field-label[data-v-6f084a70]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}.orangehrm-modal-header[data-v-b8d15eb4]{display:flex;margin-bottom:1.2rem;justify-content:center}.orangehrm-modal-footer[data-v-b8d15eb4]{display:flex;margin-top:1.2rem;justify-content:center}.orangehrm-text-center-align[data-v-b8d15eb4]{text-align:center;overflow-wrap:break-word}[data-v-b8d15eb4] .orangehrm-dialog-popup{width:450px}.orangehrm-success-message[data-v-b8d15eb4]{color:#34bc40}.orangehrm-error-message[data-v-b8d15eb4]{color:#eb0910}.orangehrm-information-card-container[data-v-ad061e70]{background-color:#e8eaef;border-radius:1.2rem;padding:1.2rem}.orangehrm-information-card-text[data-v-ad061e70]{font-size:14px;color:#64728c;font-weight:400}.orangehrm-information-card-text .download-link[data-v-ad061e70]{color:var(--oxd-primary-one-color)}[data-v-20f3e4a9] .oxd-input-group__label-wrapper,[data-v-36b7c266] .oxd-input-group__label-wrapper{display:none}.orangehrm-report-range[data-v-d3b88ca8]{display:flex;justify-content:center;align-items:baseline}.orangehrm-report-range-text[data-v-d3b88ca8]{margin:0 1rem;font-size:14px}[data-v-d3b88ca8] .oxd-input-group__label-wrapper{display:none}.orangehrm-report-daterange[data-v-2ea02c55]{display:flex;justify-content:center;align-items:baseline}.orangehrm-report-range-text[data-v-2ea02c55]{margin:0 1rem;font-size:14px}[data-v-2ea02c55] .oxd-input-group__label-wrapper{display:none}.orangehrm-report-criteria[data-v-b010db64]{display:flex;align-items:baseline}.orangehrm-report-criteria-name[data-v-b010db64]{margin-left:1rem;font-weight:700;font-size:14px;padding:.675rem 0}.orangehrm-report-field[data-v-3c97086a]{display:flex;align-items:center}.orangehrm-report-field-name[data-v-3c97086a]{margin-left:1rem;font-weight:700;font-size:14px;padding:.675rem 0}.orangehrm-report-field-header[data-v-3c97086a]{font-size:14px;margin-right:1rem}.orangehrm-report-criteria[data-v-f66184da]{display:flex;align-items:center}.orangehrm-report-icon[data-v-f66184da]{margin-left:1rem}[data-v-f66184da] .oxd-chip .oxd-icon{align-self:center}[data-v-32e798aa] .oxd-report-table-header{height:80px;position:relative;align-items:flex-start}@media(min-width:600px){[data-v-32e798aa] .oxd-report-table-header{height:unset;align-items:unset}}[data-v-32e798aa] .oxd-report-table-header .oxd-report-table-header--toggable{height:45px}[data-v-32e798aa] revogr-data .rgCell:empty:before{content:"--"}.oxd-text--count[data-v-32e798aa]{position:absolute;left:1.2rem;top:50px}@media(min-width:600px){.oxd-text--count[data-v-32e798aa]{position:unset}}.oxd-text--footer[data-v-32e798aa]{margin-left:auto;margin-right:1.2rem}.orangehrm-report-criteria[data-v-0b4140eb]{display:flex;align-items:center}.orangehrm-report-icon[data-v-0b4140eb]{margin-left:1rem}[data-v-0b4140eb] .oxd-chip .oxd-icon{align-self:center}.orangehrm-user-name[data-v-1cb899de]{font-size:14px;padding:.675rem 0}.orangehrm-support-text[data-v-510cfbbc]{font-size:12px}.orangehrm-support[data-v-510cfbbc]{padding:1rem 0}.orangehrm-support-channel[data-v-510cfbbc]{grid-template-columns:50px 1fr;align-items:center}.orangehrm-support-channel img[data-v-510cfbbc]{width:40px;height:40px}.orangehrm-support-link[data-v-510cfbbc]{text-decoration:none;color:var(--oxd-primary-one-color)}[data-v-35991936] .oxd-autocomplete-wrapper,[data-v-51ddd696] .oxd-select-wrapper{min-width:150px}.orangehrm-timesheet-grid[data-v-4867abf0]{width:100%;padding:0 .625rem;grid-template-columns:100px 1fr;margin-bottom:1rem}.orangehrm-timesheet-text[data-v-4867abf0],.orangehrm-timesheet-title[data-v-4867abf0]{word-break:break-word;font-size:14px}.orangehrm-timesheet-title[data-v-4867abf0]{font-weight:700}.orangehrm-timesheet-footer[data-v-425cbc6c],.orangehrm-timesheet-header[data-v-425cbc6c]{display:flex;align-items:center;justify-content:space-between}.orangehrm-timesheet-header[data-v-425cbc6c]{gap:.4rem;flex-direction:column;border-bottom:1px solid #e8eaef}.orangehrm-timesheet-header--title[data-v-425cbc6c]{width:100%;box-sizing:border-box;padding:.6rem 1.2rem;border-bottom:1px solid #e8eaef}@media(min-width:800px){.orangehrm-timesheet-header[data-v-425cbc6c]{flex-direction:row}.orangehrm-timesheet-header--title[data-v-425cbc6c]{width:unset;border-bottom:unset}}.orangehrm-timesheet-header--options[data-v-425cbc6c]{width:100%;display:flex;flex-direction:column;padding:.6rem 1.2rem;box-sizing:border-box}@media(min-width:800px){.orangehrm-timesheet-header--options[data-v-425cbc6c]{width:unset;justify-content:center;align-items:center;flex-direction:row}}.orangehrm-timesheet-footer[data-v-425cbc6c]{padding:.6rem 1.2rem;border-top:1px solid #e8eaef}.orangehrm-timesheet-footer--options[data-v-425cbc6c]{gap:.4rem;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-timesheet-footer--options[data-v-425cbc6c] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-timesheet-footer--options[data-v-425cbc6c]{margin-left:unset;max-width:unset}.orangehrm-timesheet-footer--options[data-v-425cbc6c] .oxd-button--medium{width:unset}}.orangehrm-timesheet-body[data-v-425cbc6c]{overflow-x:auto}.orangehrm-timesheet-body-message[data-v-425cbc6c]{padding:.6rem 1.2rem}.orangehrm-timesheet-table[data-v-425cbc6c]{width:100%;text-align:left;border-collapse:collapse;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400}@media screen and (max-width:600px){.orangehrm-timesheet-table .--freeze-left[data-v-425cbc6c],.orangehrm-timesheet-table .--freeze-right[data-v-425cbc6c]{position:sticky;background-color:#fff;z-index:209}.orangehrm-timesheet-table .--freeze-left[data-v-425cbc6c]:after,.orangehrm-timesheet-table .--freeze-right[data-v-425cbc6c]:after{content:"";position:absolute;top:0;height:100%}.orangehrm-timesheet-table .--freeze-left[data-v-425cbc6c]{left:0}.orangehrm-timesheet-table .--freeze-left[data-v-425cbc6c]:after{right:0;border-right:1px solid #e8eaef}.orangehrm-timesheet-table .--freeze-right[data-v-425cbc6c]{right:0}.orangehrm-timesheet-table .--freeze-right[data-v-425cbc6c]:after{left:0;border-left:1px solid #e8eaef}}.orangehrm-timesheet-table-header-cell[data-v-425cbc6c]{padding:1rem 1.2rem;font-weight:700}.orangehrm-timesheet-table-header-cell.--center[data-v-425cbc6c]{text-align:center}.orangehrm-timesheet-table-header-row[data-v-425cbc6c]{border-bottom:1px solid #e8eaef}.orangehrm-timesheet-table-header .--day[data-v-425cbc6c]{display:block;font-size:16px}.orangehrm-timesheet-table-body-cell[data-v-425cbc6c]{position:relative;max-width:150px;padding:1rem 1.2rem}.orangehrm-timesheet-table-body-cell.--highlight[data-v-425cbc6c]{font-weight:700;background-color:#cfd3de}.orangehrm-timesheet-table-body-cell.--highlight-2[data-v-425cbc6c]{font-weight:700;color:#fff;background-color:#929baa}.orangehrm-timesheet-table-body-cell.--highlight-3[data-v-425cbc6c]{background-color:#f6f5fb}.orangehrm-timesheet-table-body-cell.--flex[data-v-425cbc6c]{display:flex;align-items:center;gap:.5rem}.orangehrm-timesheet-table-body-cell.--center[data-v-425cbc6c]{text-align:center}.orangehrm-timesheet-table-body-row[data-v-425cbc6c]{vertical-align:baseline;border-bottom:1px solid #e8eaef}.orangehrm-timesheet-table-body-row.--total[data-v-425cbc6c]{background-color:#cfd3de}.orangehrm-timesheet-table.--editable tr[data-v-425cbc6c]{border:unset}.orangehrm-timesheet-table.--editable td[data-v-425cbc6c],.orangehrm-timesheet-table.--editable th[data-v-425cbc6c]{padding:.5rem 1rem}.orangehrm-timesheet-table.--editable td.--duration-input[data-v-425cbc6c],.orangehrm-timesheet-table.--editable th.--duration-input[data-v-425cbc6c]{padding:.5rem .25rem}.orangehrm-timesheet-icon-comment[data-v-425cbc6c]{top:-5px;right:-5px;z-index:2;position:absolute}.orangehrm-timesheet-loader[data-v-425cbc6c]{width:100%;min-height:300px;display:flex;justify-content:center;align-items:center;background-color:#fff;z-index:200}.oxd-input-group[data-v-425cbc6c]{margin-bottom:0}[data-v-425cbc6c] .oxd-input-group__label-wrapper{display:none}[data-v-425cbc6c] .oxd-input{min-width:50px}.orangehrm-timeperiod-picker[data-v-e0a5176c]{gap:.5rem;display:grid;align-items:center;grid-template:"prev title next" "picker picker picker"/36px auto 36px}@media(min-width:800px){.orangehrm-timeperiod-picker[data-v-e0a5176c]{grid-template:"title prev picker next"/auto auto minmax(240px,max-content) auto}}.orangehrm-timeperiod-title[data-v-e0a5176c]{text-align:center;font-size:12px;grid-area:title}.orangehrm-timeperiod-icon.--prev[data-v-e0a5176c]{grid-area:prev}.orangehrm-timeperiod-icon.--next[data-v-e0a5176c]{grid-area:next}.oxd-input-group[data-v-e0a5176c]{margin-bottom:0;grid-area:picker}[data-v-e0a5176c] .oxd-input-group__label-wrapper{display:none}.orangehrm-timeperiod-title[data-v-54f42850]{font-size:12px;margin-right:10px}.orangehrm-form-hint[data-v-54f42850]{margin-right:auto;font-weight:600;font-size:.75rem;text-overflow:ellipsis;overflow:hidden}.orangehrm-project-admin-input[data-v-78aa890e]{display:flex;align-items:flex-start}.orangehrm-project-admin-input[data-v-78aa890e] .oxd-input-group__label-wrapper:empty{display:none}.orangehrm-project-delete-icon[data-v-78aa890e]{margin-left:1rem;margin-top:1rem}.orangehrm-activites-container[data-v-789130a9]{max-height:180px;overflow-y:auto;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-activites-container[data-v-789130a9]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-activites-container[data-v-789130a9]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-activites-container[data-v-789130a9]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-activites-container[data-v-789130a9]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}[data-v-789130a9] .oxd-checkbox-wrapper{word-break:break-word}[data-v-789130a9] .oxd-checkbox-wrapper .oxd-checkbox-input{flex-shrink:0}.orangehrm-main-actions[data-v-78f3e421]{gap:.4rem;display:flex;flex-direction:column}.orangehrm-main-actions[data-v-78f3e421] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-main-actions[data-v-78f3e421]{flex-direction:row}.orangehrm-main-actions[data-v-78f3e421] .oxd-button--medium{width:unset}}[data-v-1a8cbf98] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}[data-v-1a8cbf98] .card-footer-slot .oxd-table-cell-actions>*{margin:0!important}.orangehrm-switch-filter[data-v-17d6a43f]{display:flex;align-items:center;white-space:nowrap}.orangehrm-switch-filter-text[data-v-17d6a43f]{font-size:14px;margin-right:1rem}.orangehrm-switch-filter[data-v-e0465754]{display:flex;align-items:center;white-space:nowrap}.orangehrm-switch-filter-text[data-v-e0465754]{font-size:14px;margin-right:1rem}.orangehrm-switch-filter[data-v-b9b0d77c]{display:flex;align-items:center;white-space:nowrap}.orangehrm-switch-filter-text[data-v-b9b0d77c]{font-size:14px;margin-right:1rem}.orangehrm-leave-duration[data-v-36501732],.orangehrm-leave-duration[data-v-75ca43d6]{padding:.675rem 0}.orangehrm-leave-balance-text[data-v-a21fbcb8]{font-size:14px;margin-bottom:.25rem}.orangehrm-container[data-v-a21fbcb8]{padding:.5rem 0;max-height:165px;overflow-y:auto;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-container[data-v-a21fbcb8]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-a21fbcb8]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-a21fbcb8]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-a21fbcb8]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-leave-balance-text[data-v-94b8006c]{font-size:14px;margin-bottom:.25rem}.orangehrm-container[data-v-94b8006c]{padding:.5rem 0;max-height:165px;overflow-y:auto;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-container[data-v-94b8006c]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-94b8006c]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-94b8006c]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-94b8006c]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-leave-balance[data-v-56c2fc4a]{display:flex;align-items:center}.orangehrm-leave-balance .--help[data-v-56c2fc4a]{margin-left:5px}.orangehrm-leave-balance-text[data-v-56c2fc4a]{padding:.675rem 0}.orangehrm-leave-balance-text.--error[data-v-56c2fc4a]{color:#eb0910}.deleted-tag[data-v-dcd26948]{margin-left:auto}.orangehrm-modal-header[data-v-19c585fa]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-19c585fa]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-19c585fa]{margin:.25rem}.orangehrm-text-center-align[data-v-19c585fa]{text-align:center}.orangehrm-modal-header[data-v-68838f5c]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-68838f5c]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-text-center-align[data-v-68838f5c]{text-align:center}[data-v-a7f7cce0] .--status-grouped-field{display:flex;max-width:15rem}.label-is-entitlement-situational[data-v-a7f7cce0]{display:flex;align-items:center}.label-is-entitlement-situational .--help[data-v-a7f7cce0]{margin-left:5px}.modal-container[data-v-a7f7cce0]{width:90%;max-width:500px}[data-v-3acf3120] .--status-grouped-field{display:flex;max-width:15rem}.label-is-entitlement-situational[data-v-3acf3120]{display:flex;align-items:center}.label-is-entitlement-situational .--help[data-v-3acf3120]{margin-left:5px}.modal-container[data-v-3acf3120]{width:90%;max-width:500px}.orangehrm-modal-header[data-v-e36392b4]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-e36392b4]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-e36392b4]{margin:.25rem}.orangehrm-text-center-align[data-v-e36392b4]{text-align:center}.orangehrm-container[data-v-6f8e0531]{max-height:165px;overflow-y:auto;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-container[data-v-6f8e0531]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-6f8e0531]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-6f8e0531]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-6f8e0531]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-modal-header[data-v-0233dcca]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-0233dcca]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-0233dcca]{margin:.25rem}.orangehrm-text-center-align[data-v-0233dcca]{text-align:center}[data-v-7e1993c4] .--grouped-field{display:flex;flex-wrap:wrap}@media(min-width:800px){[data-v-7e1993c4] .--grouped-field{flex-wrap:nowrap}[data-v-7e1993c4] .--grouped-field .oxd-input-group{flex-shrink:0}}.orangehrm-leave-entitled[data-v-7e1993c4]{display:flex;align-items:center}@media(min-width:0px){.orangehrm-leave-entitled-text[data-v-7e1993c4]{margin-bottom:1.5rem}}@media(min-width:1000px){.orangehrm-leave-entitled-text[data-v-7e1993c4]{margin-bottom:unset}}[data-v-48d79cd0] .--status-grouped-field,[data-v-6485b72f] .--status-grouped-field{display:flex;max-width:13rem}.orangehrm-comment[data-v-222b3933]{box-sizing:border-box;padding:.5rem .5rem 0 0;display:flex}.orangehrm-comment-profile-image-wrapper[data-v-222b3933]{margin-right:.5rem}.orangehrm-comment-profile-image[data-v-222b3933]{width:70px;height:70px;display:flex;overflow:hidden;justify-content:center;box-sizing:border-box;border-radius:100%;border:.5rem solid #f6f5fb}.orangehrm-comment-profile-name p[data-v-222b3933]{font-weight:700;margin-bottom:.25rem}.orangehrm-comment-message[data-v-222b3933]{padding:.5rem 1rem;background-color:#f6f5fb;border-radius:.5rem;margin-bottom:.25rem;width:-moz-fit-content;width:fit-content}.orangehrm-comment-timestamp[data-v-222b3933]{text-align:right}.orangehrm-modal-content[data-v-cbb6349a]{max-height:200px;overflow:hidden auto;margin:.5rem 0;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-modal-content[data-v-cbb6349a]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-modal-content[data-v-cbb6349a]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-modal-content[data-v-cbb6349a]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-modal-content[data-v-cbb6349a]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-modal-header[data-v-7823af8c]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-7823af8c]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-7823af8c]{margin:.25rem}.orangehrm-text-center-align[data-v-7823af8c]{text-align:center}.orangehrm-header-container .actions[data-v-78ad5c40]{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.orangehrm-header-container span[data-v-78ad5c40]{margin-right:20px}[data-v-2e68cbb4] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}[data-v-2e68cbb4] .card-footer-slot .oxd-table-cell-actions>*{margin:0!important}.orangehrm-leave-filter[data-v-7abe0f65]{display:flex;align-items:center;white-space:nowrap}.orangehrm-leave-filter-text[data-v-7abe0f65]{font-size:14px;margin-right:1rem}.orangehrm-bottom-container[data-v-5cf2c6b8]{align-items:center;justify-content:space-between}.orangehrm-request-details-text[data-v-5cf2c6b8]{font-size:14px}[data-v-5cf2c6b8] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}[data-v-5cf2c6b8] .card-footer-slot .oxd-table-cell-actions>*{margin:0!important}[data-v-6ef58e5d] .--grouped-field{display:flex;flex-wrap:wrap}@media(min-width:800px){[data-v-6ef58e5d] .--grouped-field{flex-wrap:nowrap}}.orangehrm-leave-filter[data-v-6ef58e5d]{display:flex;align-items:center;white-space:nowrap}.orangehrm-leave-filter-text[data-v-6ef58e5d]{font-size:14px;margin-right:1rem}.orangehrm-field-row[data-v-6ea3f680]{grid-column-start:1;display:flex;justify-content:space-between;padding:.5rem .75rem}.orangehrm-field-label[data-v-6ea3f680]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}.orangehrm-login-layout[data-v-3dda64e6]{display:table;width:100%;height:100%}@media(min-width:0px){.orangehrm-login-layout[data-v-3dda64e6]{background-color:#f1f2f5}}@media(min-width:800px){.orangehrm-login-layout[data-v-3dda64e6]{background-color:var(--oxd-primary-one-color)}}.orangehrm-login-layout-blob[data-v-3dda64e6]{height:inherit;width:inherit;display:flex;position:relative;align-items:center;min-height:100vh}@media screen and (max-width:799px){.orangehrm-login-layout-blob[data-v-3dda64e6]:before{content:"";top:0;left:0;right:0;bottom:0;position:absolute;-webkit-mask:url(../img/blob-m.svg);mask:url(../img/blob-m.svg);-webkit-mask-position:bottom left;mask-position:bottom left;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;background-color:var(--oxd-primary-one-color)}}@media(min-width:800px){.orangehrm-login-layout-blob[data-v-3dda64e6]{background-image:url(../img/blob.svg);background-repeat:no-repeat;background-size:80% 100%}}.orangehrm-login-container[data-v-3dda64e6]{z-index:1;width:100%;display:flex;justify-content:center}@media(min-width:800px){.orangehrm-login-container[data-v-3dda64e6]{width:80%}}.orangehrm-login-logo[data-v-3dda64e6]{position:absolute;right:15%;padding:1rem;background-color:#f6f5fb;border-radius:100%;display:none}.orangehrm-login-logo img[data-v-3dda64e6]{width:10rem}@media(min-width:800px){.orangehrm-login-logo[data-v-3dda64e6]{display:block}}.orangehrm-login-slot-wrapper[data-v-3dda64e6]{padding:1rem 2rem;width:inherit}@media(min-width:800px){.orangehrm-login-slot-wrapper[data-v-3dda64e6]{padding:1rem 10rem}}.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile[data-v-3dda64e6]{padding:1rem;background-color:#f6f5fb;border-radius:100%;width:-moz-fit-content;width:fit-content;margin:0 auto;margin-bottom:1rem;display:block}.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile img[data-v-3dda64e6]{width:5rem}@media(min-width:800px){.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile[data-v-3dda64e6]{display:none}}.orangehrm-login-slot-wrapper .orangehrm-login-slot[data-v-3dda64e6]{background-color:#fff;padding:2rem 0;border-radius:1rem;margin:0 auto}@media(min-width:800px){.orangehrm-login-slot-wrapper .orangehrm-login-slot[data-v-3dda64e6]{background-color:transparent;padding:unset}}.orangehrm-login-branding[data-v-3dda64e6]{padding:1.5rem 1rem;background-color:#fff;border-radius:1rem;text-align:center;box-shadow:0 16px 35px 0 rgba(0,0,0,.08);margin:0 auto;margin-bottom:2rem}.orangehrm-login-branding img[data-v-3dda64e6]{width:100%;max-width:275px;height:auto;max-height:65px}@media(min-width:800px){.orangehrm-login-branding[data-v-3dda64e6]{width:80%;max-width:520px}}.orangehrm-login-social[data-v-3dda64e6]{padding:1rem 0}.orangehrm-login-social-text[data-v-3dda64e6]{text-align:center;margin-bottom:1rem}.orangehrm-login-social-icons[data-v-3dda64e6]{display:flex;justify-content:center}.orangehrm-login-social-icons .--loginwith[data-v-3dda64e6]{margin:0 .25rem}.orangehrm-card-container[data-v-3810ee3c]{box-shadow:3px 3px 10px #929baa}@media(min-width:800px){.orangehrm-card-container[data-v-3810ee3c]{width:100%}}.orangehrm-oauth-container[data-v-3810ee3c]{display:flex;width:inherit;height:inherit;padding:1rem 2rem;align-items:center;flex-direction:column;justify-content:center}@media(min-width:800px){.orangehrm-oauth-container[data-v-3810ee3c]{margin:0 auto;max-width:450px}}.orangehrm-oauth-branding[data-v-3810ee3c]{box-shadow:none}.orangehrm-oauth-list[data-v-3810ee3c]{padding-left:1rem}.orangehrm-oauth-list li[data-v-3810ee3c]{padding-bottom:10px}.orangehrm-oauth-button[data-v-3810ee3c]{flex:1}.orangehrm-oauth-button[data-v-3810ee3c]:nth-child(2){margin-top:.5rem}@media(min-width:800px){.orangehrm-oauth-button[data-v-3810ee3c]:nth-child(2){margin:0;margin-left:.5rem}}.orangehrm-oauth-button-container[data-v-3810ee3c]{display:flex;flex-direction:column;justify-content:center}@media(min-width:800px){.orangehrm-oauth-button-container[data-v-3810ee3c]{flex-direction:row}}.orangehrm-oauth-error[data-v-3810ee3c]{padding-left:1rem}.orangehrm-attendance-punchedIn-timezone[data-v-3d5e6918]{color:#929baa}.oxd-text--subtitle-2[data-v-40838874]{font-weight:600}.no-gap[data-v-40838874]{grid-gap:unset}.orangehrm-header[data-v-40838874]{display:flex}.orangehrm-header-total[data-v-40838874]{margin-left:auto}.orangehrm-punch-out-record[data-v-40838874]{padding-top:.5rem;box-sizing:border-box;border-top:1px solid #e8eaef}@media(min-width:800px){.orangehrm-punch-out-record[data-v-40838874]{border:unset;padding-top:unset;border-left:1px solid #e8eaef}}.oxd-table-card-cell[data-v-8f3074ce]{display:block}.oxd-table-card-cell .header[data-v-8f3074ce]{font-weight:700}.oxd-table-card-cell .timezone[data-v-8f3074ce]{color:#929baa;white-space:nowrap}.orangehrm-header-total[data-v-50a2ff8a]{margin-left:auto}.orangehrm-attendance-field-row[data-v-026fb4c8]{grid-column-start:1;display:flex;justify-content:space-between;padding:.5rem .75rem}.orangehrm-attendance-field-label[data-v-026fb4c8]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}[data-v-22f945c4] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}[data-v-22f945c4] .card-footer-slot .oxd-table-cell-actions>*{margin:0!important}.orangehrm-selected-employee[data-v-6ea34be5]{display:flex}@media(min-width:0px){.orangehrm-selected-employee[data-v-6ea34be5]{flex-direction:column}}@media(min-width:800px){.orangehrm-selected-employee[data-v-6ea34be5]{flex-direction:row}}.orangehrm-selected-employee-content[data-v-6ea34be5]{flex:1}.orangehrm-selected-employee-image-wrapper[data-v-6ea34be5]{padding-bottom:1.2rem}@media(min-width:800px){.orangehrm-selected-employee-image-wrapper[data-v-6ea34be5]{padding-top:1.2rem;padding-left:2rem;padding-right:2rem}}@media(min-width:1000px){.orangehrm-selected-employee-image-wrapper[data-v-6ea34be5]{padding-left:5rem;padding-right:5rem}}@media(min-width:1200px){.orangehrm-selected-employee-image-wrapper[data-v-6ea34be5]{padding-left:7rem;padding-right:7rem}}.orangehrm-selected-employee-image[data-v-6ea34be5]{width:120px;height:120px;border-radius:100%;display:flex;cursor:pointer;overflow:hidden;justify-content:center;box-sizing:border-box;border:.5rem solid #f6f5fb;box-shadow:1px 1px 18px 11px rgba(186,186,202,.24)}.orangehrm-selected-employee-imagesection[data-v-6ea34be5]{display:flex;align-items:center}@media(min-width:0px){.orangehrm-selected-employee-imagesection[data-v-6ea34be5]{flex-direction:row-reverse;justify-content:center}}@media(min-width:800px){.orangehrm-selected-employee-imagesection[data-v-6ea34be5]{flex-direction:column;justify-content:center}}.orangehrm-modal-header[data-v-2766d99a]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-2766d99a]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-2766d99a]{margin:.25rem}.orangehrm-text-center-align[data-v-2766d99a]{text-align:center}.orangehrm-maintenance-note[data-v-23b16e4f]{display:flex;flex-direction:column;overflow-wrap:break-word;padding:1.2rem;border-radius:1.2rem;color:#64728c;background-color:#e8eaef;font-size:14px}.orangehrm-maintenance-note-header[data-v-23b16e4f]{font-weight:700;margin-bottom:.4rem}.orangehrm-paper-container[data-v-3c1da283]{margin-top:1rem}.user-form-header[data-v-65c21a19]{display:flex;padding:1rem}.user-form-header-text[data-v-65c21a19]{font-size:.8rem;margin-right:1rem}.orangehrm-vacancy-list[data-v-65c21a19] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-vacancy-list[data-v-65c21a19] .card-header-slot .oxd-table-card-cell{display:flex;flex-direction:column;justify-content:center}.orangehrm-vacancy-list[data-v-65c21a19] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-vacancy-list[data-v-65c21a19] .card-header-slot-content.--left{display:flex;align-items:center;flex:2}.orangehrm-vacancy-list[data-v-65c21a19] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangerhrm-switch-wrapper[data-v-65c21a19]{display:flex;flex-direction:row;justify-content:space-between}@media(min-width:600px){.orangerhrm-switch-wrapper[data-v-65c21a19]{max-width:50%}}@media(min-width:800px){.orangerhrm-switch-wrapper[data-v-65c21a19]{max-width:100%}}.orangehrm-grid-item-span-2[data-v-65c21a19]{grid-column:span 2}.orangehrm-text[data-v-65c21a19]{font-size:12px;font-weight:600;color:#64728c}.orangehrm-text-label[data-v-65c21a19]{flex:1;padding-right:.2rem}.orangehrm-attachment-header[data-v-65c21a19]{justify-content:flex-start}.orangehrm-attachment-header__title[data-v-65c21a19]{margin-right:1rem}.orangehrm-vacancy-links[data-v-65c21a19]{padding:.5rem;border-radius:.5rem;background-color:#e8eaef}.orangehrm-label-link-wrapper[data-v-7a7e694e]{display:flex;flex-wrap:wrap}.orangehrm-label-link-wrapper[data-v-7a7e694e]:first-of-type{margin-bottom:.25rem}.orangehrm-text-label[data-v-7a7e694e]{font-size:12px;font-weight:600;padding-right:.2rem;color:#64728c}.orangehrm-vacancy-link[data-v-7a7e694e]{font-size:12px;font-weight:600;margin-left:1rem;text-decoration:none;word-break:break-all;font-family:Nunito Sans,sans-serif;color:var(--oxd-primary-one-color)}.user-form-header[data-v-00048e4c]{display:flex;padding:1rem}.user-form-header-text[data-v-00048e4c]{font-size:.8rem;margin-right:1rem}.orangehrm-vacancy-list[data-v-00048e4c] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-vacancy-list[data-v-00048e4c] .card-header-slot .oxd-table-card-cell{display:flex;flex-direction:column;justify-content:center}.orangehrm-vacancy-list[data-v-00048e4c] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-vacancy-list[data-v-00048e4c] .card-header-slot-content.--left{display:flex;align-items:center;flex:2}.orangehrm-vacancy-list[data-v-00048e4c] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangerhrm-switch-wrapper[data-v-00048e4c]{display:flex;flex-direction:row;justify-content:space-between}@media(min-width:600px){.orangerhrm-switch-wrapper[data-v-00048e4c]{max-width:50%}}@media(min-width:800px){.orangerhrm-switch-wrapper[data-v-00048e4c]{max-width:100%}}.orangehrm-grid-item-span-2[data-v-00048e4c]{grid-column:span 2}.orangehrm-text[data-v-00048e4c]{font-size:12px;font-weight:600;color:#64728c}.orangehrm-text-label[data-v-00048e4c]{flex:1;padding-right:.2rem}.orangehrm-attachment-header[data-v-00048e4c]{justify-content:flex-start}.orangehrm-attachment-header__title[data-v-00048e4c]{margin-right:1rem}.orangehrm-vacancy-links[data-v-00048e4c]{padding:.5rem;border-radius:.5rem;background-color:#e8eaef}.user-form-header[data-v-d4ce637a]{display:flex;padding:1rem}.user-form-header-text[data-v-d4ce637a]{font-size:.8rem;margin-right:1rem}.orangehrm-vacancy-list[data-v-d4ce637a] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-vacancy-list[data-v-d4ce637a] .card-header-slot .oxd-table-card-cell{display:flex;flex-direction:column;justify-content:center}.orangehrm-vacancy-list[data-v-d4ce637a] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-vacancy-list[data-v-d4ce637a] .card-header-slot-content.--left{display:flex;align-items:center;flex:2}.orangehrm-vacancy-list[data-v-d4ce637a] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangerhrm-switch-wrapper[data-v-d4ce637a]{display:flex;flex-direction:row;justify-content:space-between}@media(min-width:600px){.orangerhrm-switch-wrapper[data-v-d4ce637a]{max-width:50%}}@media(min-width:800px){.orangerhrm-switch-wrapper[data-v-d4ce637a]{max-width:100%}}.orangehrm-grid-item-span-2[data-v-d4ce637a]{grid-column:span 2}.orangehrm-text[data-v-d4ce637a]{font-size:12px;font-weight:600;color:#64728c}.orangehrm-text-label[data-v-d4ce637a]{flex:1;padding-right:.2rem}.orangehrm-attachment-header[data-v-d4ce637a]{justify-content:flex-start}.orangehrm-attachment-header__title[data-v-d4ce637a]{margin-right:1rem}.orangehrm-vacancy-links[data-v-d4ce637a]{padding:.5rem;border-radius:.5rem;background-color:#e8eaef}.orangehrm-recruitment-interviewer-input[data-v-73842d23]{display:flex;align-items:flex-start}.orangehrm-recruitment-interviewer-input[data-v-73842d23] .oxd-input-group__label-wrapper:empty{display:none}.orangehrm-recruitment-delete-icon[data-v-73842d23]{margin-left:1rem;margin-top:1rem}.orangehrm-save-candidate-page-full-width[data-v-e75f8a7a]{grid-column:1/span 2}.orangehrm-save-candidate-page-grid-checkbox .oxd-input-group[data-v-e75f8a7a]{flex-direction:row-reverse;justify-content:flex-end}.past-employee-tag[data-v-5c755293]{margin-left:auto}.orangehrm-recruitment[data-v-2d6dc297]{display:flex;justify-content:space-between}.orangehrm-recruitment-actions[data-v-2d6dc297]{gap:.4rem;display:flex;flex-wrap:wrap;max-width:120px;margin-left:60px;justify-content:flex-end}.orangehrm-recruitment-actions[data-v-2d6dc297] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-recruitment-actions[data-v-2d6dc297]{margin-left:unset;max-width:unset}.orangehrm-recruitment-actions[data-v-2d6dc297] .oxd-button--medium{width:unset}}[data-v-2d6dc297] .oxd-input-group{margin-bottom:1rem}@media(min-width:800px){[data-v-2d6dc297] .oxd-input-group{margin-bottom:0}}.orangehrm-header-container[data-v-fa8534b2]{padding:0}.orangehrm-candidate-grid-checkbox .oxd-input-group[data-v-fa8534b2]{flex-direction:row-reverse;justify-content:flex-end}.orangehrm-card-container[data-v-5829e84c]{padding:1.2rem 0}.orangehrm-background-container[data-v-251847f9]{height:80%}.orangehrm-vacancy-description[data-v-251847f9]{font-size:14px;font-weight:700}.orangehrm-applicant-card-pre-tag[data-v-251847f9]{margin-top:0;margin-bottom:0;font-weight:400;white-space:pre-wrap;word-wrap:break-word;font-family:Nunito Sans,sans-serif}.orangehrm-applicant-card-footer[data-v-251847f9]{display:flex;justify-content:left}.orangehrm-applicant-card-anchor-tag[data-v-251847f9]{cursor:pointer;padding-top:.5rem;color:var(--oxd-primary-one-color)}.orangehrm-applicant-container[data-v-251847f9]{width:100%;display:block}.orangehrm-applicant-container-row[data-v-251847f9]{width:inherit}.orangehrm-applicant-container-colspan-2[data-v-251847f9]{grid-column:1/span 2}.orangehrm-applicant-container-grid-checkbox .oxd-input-group[data-v-251847f9]{flex-direction:row-reverse;justify-content:flex-end}.orangehrm-container[data-v-251847f9]{height:100%;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin;overflow:auto;position:relative;margin:0}.orangehrm-container[data-v-251847f9]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-251847f9]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-251847f9]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-251847f9]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-container-loader[data-v-251847f9]{margin:0 auto;background-color:#fff;position:absolute;top:50%;left:0;right:0;bottom:0}.orangehrm-container-img[data-v-251847f9]{height:40px}.orangehrm-card-container[data-v-251847f9]{width:80%;margin:1rem auto;padding:.75rem 1.5rem}.orangehrm-card-container-header[data-v-251847f9]{display:flex;justify-content:space-between;flex-direction:column-reverse}@media(min-width:800px){.orangehrm-card-container-header[data-v-251847f9]{flex-direction:row}}.orangehrm-card-container-header .orangehrm-main-title[data-v-251847f9]{word-break:break-word}@media(min-width:800px){.orangehrm-card-container-header .orangehrm-main-title[data-v-251847f9]{align-self:center}}.orangehrm-paper-container[data-v-251847f9]{width:80%;background:unset;margin:0 auto;padding:.75rem 1.5rem}.orangehrm-vacancy-card[data-v-251847f9]{display:block}.orangehrm-vacancy-card-header[data-v-251847f9]{display:flex;align-items:center;word-break:break-word;justify-content:space-between}.orangehrm-vacancy-card-header button[data-v-251847f9]{flex-shrink:0}.orangehrm-vacancy-card-anchor-tag[data-v-251847f9]{cursor:pointer;font-weight:600;padding-top:.5rem;color:var(--oxd-primary-one-color);font-size:14px}.orangehrm-vacancy-card-body[data-v-251847f9]{position:relative;overflow:hidden;max-height:60px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-251847f9]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:4){.orangehrm-vacancy-card-body[data-v-251847f9]{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-251847f9]:after{display:none}}@media(min-width:800px){.orangehrm-vacancy-card-body[data-v-251847f9]{position:relative;overflow:hidden;max-height:30px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-251847f9]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:2){.orangehrm-vacancy-card-body[data-v-251847f9]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-251847f9]:after{display:none}}}.orangehrm-vacancy-card-pre-tag[data-v-251847f9]{margin-top:0;font-family:Nunito Sans,sans-serif;white-space:pre-wrap;word-wrap:break-word}.orangehrm-vacancy-card-footer[data-v-251847f9]{display:flex;justify-content:left}.orangehrm-vacancy-list-poweredby[data-v-251847f9]{font-size:12px;margin-bottom:.5rem}.oxd-brand-banner[data-v-251847f9]{flex:1;height:32px;margin-bottom:8px}@media(min-width:800px){.oxd-brand-banner[data-v-251847f9]{flex:0;margin-bottom:0}}.orangehrm-container[data-v-251847f9]{padding:0;height:72vh}@media(min-width:800px){.orangehrm-container[data-v-251847f9]{height:75vh}}@media screen and (min-width:1536px){.orangehrm-container[data-v-251847f9]{height:85vh}}@media screen and (min-width:2560px){.orangehrm-container[data-v-251847f9]{height:90vh}}.orangehrm-background-container[data-v-68e0eff5]{height:80%}.orangehrm-vacancy-description[data-v-68e0eff5]{font-size:14px;font-weight:700}.orangehrm-applicant-card-pre-tag[data-v-68e0eff5]{margin-top:0;margin-bottom:0;font-weight:400;white-space:pre-wrap;word-wrap:break-word;font-family:Nunito Sans,sans-serif}.orangehrm-applicant-card-footer[data-v-68e0eff5]{display:flex;justify-content:left}.orangehrm-applicant-card-anchor-tag[data-v-68e0eff5]{cursor:pointer;padding-top:.5rem;color:var(--oxd-primary-one-color)}.orangehrm-applicant-container[data-v-68e0eff5]{width:100%;display:block}.orangehrm-applicant-container-row[data-v-68e0eff5]{width:inherit}.orangehrm-applicant-container-colspan-2[data-v-68e0eff5]{grid-column:1/span 2}.orangehrm-applicant-container-grid-checkbox .oxd-input-group[data-v-68e0eff5]{flex-direction:row-reverse;justify-content:flex-end}.orangehrm-container[data-v-68e0eff5]{height:100%;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin;overflow:auto;position:relative;margin:0}.orangehrm-container[data-v-68e0eff5]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-68e0eff5]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-68e0eff5]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-68e0eff5]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-container-loader[data-v-68e0eff5]{margin:0 auto;background-color:#fff;position:absolute;top:50%;left:0;right:0;bottom:0}.orangehrm-container-img[data-v-68e0eff5]{height:40px}.orangehrm-card-container[data-v-68e0eff5]{width:80%;margin:1rem auto;padding:.75rem 1.5rem}.orangehrm-card-container-header[data-v-68e0eff5]{display:flex;justify-content:space-between;flex-direction:column-reverse}@media(min-width:800px){.orangehrm-card-container-header[data-v-68e0eff5]{flex-direction:row}}.orangehrm-card-container-header .orangehrm-main-title[data-v-68e0eff5]{word-break:break-word}@media(min-width:800px){.orangehrm-card-container-header .orangehrm-main-title[data-v-68e0eff5]{align-self:center}}.orangehrm-paper-container[data-v-68e0eff5]{width:80%;background:unset;margin:0 auto;padding:.75rem 1.5rem}.orangehrm-vacancy-card[data-v-68e0eff5]{display:block}.orangehrm-vacancy-card-header[data-v-68e0eff5]{display:flex;align-items:center;word-break:break-word;justify-content:space-between}.orangehrm-vacancy-card-header button[data-v-68e0eff5]{flex-shrink:0}.orangehrm-vacancy-card-anchor-tag[data-v-68e0eff5]{cursor:pointer;font-weight:600;padding-top:.5rem;color:var(--oxd-primary-one-color);font-size:14px}.orangehrm-vacancy-card-body[data-v-68e0eff5]{position:relative;overflow:hidden;max-height:60px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-68e0eff5]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:4){.orangehrm-vacancy-card-body[data-v-68e0eff5]{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-68e0eff5]:after{display:none}}@media(min-width:800px){.orangehrm-vacancy-card-body[data-v-68e0eff5]{position:relative;overflow:hidden;max-height:30px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-68e0eff5]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:2){.orangehrm-vacancy-card-body[data-v-68e0eff5]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-68e0eff5]:after{display:none}}}.orangehrm-vacancy-card-pre-tag[data-v-68e0eff5]{margin-top:0;font-family:Nunito Sans,sans-serif;white-space:pre-wrap;word-wrap:break-word}.orangehrm-vacancy-card-footer[data-v-68e0eff5]{display:flex;justify-content:left}.orangehrm-vacancy-list-poweredby[data-v-68e0eff5]{font-size:12px;margin-bottom:.5rem}.oxd-brand-banner[data-v-68e0eff5]{flex:1;height:32px;margin-bottom:8px}@media(min-width:800px){.oxd-brand-banner[data-v-68e0eff5]{flex:0;margin-bottom:0}}.orangehrm-container[data-v-68e0eff5]{padding:0;height:72vh}@media(min-width:800px){.orangehrm-container[data-v-68e0eff5]{height:75vh}}@media screen and (min-width:1536px){.orangehrm-container[data-v-68e0eff5]{height:85vh}}@media screen and (min-width:2560px){.orangehrm-container[data-v-68e0eff5]{height:90vh}}.orangehrm-modal-header[data-v-76269556]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-76269556]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-76269556]{margin:.25rem}.orangehrm-text-center-align[data-v-76269556]{text-align:center}.orangehrm-background-container[data-v-316ef8c9]{height:80%}.orangehrm-vacancy-description[data-v-316ef8c9]{font-size:14px;font-weight:700}.orangehrm-applicant-card-pre-tag[data-v-316ef8c9]{margin-top:0;margin-bottom:0;font-weight:400;white-space:pre-wrap;word-wrap:break-word;font-family:Nunito Sans,sans-serif}.orangehrm-applicant-card-footer[data-v-316ef8c9]{display:flex;justify-content:left}.orangehrm-applicant-card-anchor-tag[data-v-316ef8c9]{cursor:pointer;padding-top:.5rem;color:var(--oxd-primary-one-color)}.orangehrm-applicant-container[data-v-316ef8c9]{width:100%;display:block}.orangehrm-applicant-container-row[data-v-316ef8c9]{width:inherit}.orangehrm-applicant-container-colspan-2[data-v-316ef8c9]{grid-column:1/span 2}.orangehrm-applicant-container-grid-checkbox .oxd-input-group[data-v-316ef8c9]{flex-direction:row-reverse;justify-content:flex-end}.orangehrm-container[data-v-316ef8c9]{height:100%;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin;overflow:auto;position:relative;margin:0}.orangehrm-container[data-v-316ef8c9]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-316ef8c9]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-316ef8c9]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-316ef8c9]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-container-loader[data-v-316ef8c9]{margin:0 auto;background-color:#fff;position:absolute;top:50%;left:0;right:0;bottom:0}.orangehrm-container-img[data-v-316ef8c9]{height:40px}.orangehrm-card-container[data-v-316ef8c9]{width:80%;margin:1rem auto;padding:.75rem 1.5rem}.orangehrm-card-container-header[data-v-316ef8c9]{display:flex;justify-content:space-between;flex-direction:column-reverse}@media(min-width:800px){.orangehrm-card-container-header[data-v-316ef8c9]{flex-direction:row}}.orangehrm-card-container-header .orangehrm-main-title[data-v-316ef8c9]{word-break:break-word}@media(min-width:800px){.orangehrm-card-container-header .orangehrm-main-title[data-v-316ef8c9]{align-self:center}}.orangehrm-paper-container[data-v-316ef8c9]{width:80%;background:unset;margin:0 auto;padding:.75rem 1.5rem}.orangehrm-vacancy-card[data-v-316ef8c9]{display:block}.orangehrm-vacancy-card-header[data-v-316ef8c9]{display:flex;align-items:center;word-break:break-word;justify-content:space-between}.orangehrm-vacancy-card-header button[data-v-316ef8c9]{flex-shrink:0}.orangehrm-vacancy-card-anchor-tag[data-v-316ef8c9]{cursor:pointer;font-weight:600;padding-top:.5rem;color:var(--oxd-primary-one-color);font-size:14px}.orangehrm-vacancy-card-body[data-v-316ef8c9]{position:relative;overflow:hidden;max-height:60px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-316ef8c9]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:4){.orangehrm-vacancy-card-body[data-v-316ef8c9]{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-316ef8c9]:after{display:none}}@media(min-width:800px){.orangehrm-vacancy-card-body[data-v-316ef8c9]{position:relative;overflow:hidden;max-height:30px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-316ef8c9]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:2){.orangehrm-vacancy-card-body[data-v-316ef8c9]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-316ef8c9]:after{display:none}}}.orangehrm-vacancy-card-pre-tag[data-v-316ef8c9]{margin-top:0;font-family:Nunito Sans,sans-serif;white-space:pre-wrap;word-wrap:break-word}.orangehrm-vacancy-card-footer[data-v-316ef8c9]{display:flex;justify-content:left}.orangehrm-vacancy-list-poweredby[data-v-316ef8c9]{font-size:12px;margin-bottom:.5rem}.oxd-brand-banner[data-v-316ef8c9]{flex:1;height:32px;margin-bottom:8px}@media(min-width:800px){.oxd-brand-banner[data-v-316ef8c9]{flex:0;margin-bottom:0}}.orangehrm-container[data-v-316ef8c9]{padding:0;height:72vh}@media(min-width:800px){.orangehrm-container[data-v-316ef8c9]{height:75vh}}@media screen and (min-width:1536px){.orangehrm-container[data-v-316ef8c9]{height:85vh}}@media screen and (min-width:2560px){.orangehrm-container[data-v-316ef8c9]{height:90vh}}.orangehrm-attachment[data-v-451febef]{border-radius:1.2rem;background-color:#fff}.orangehrm-attachment-header[data-v-451febef]{display:flex;overflow-wrap:break-word;align-items:center;padding:25px}.orangehrm-attachment-header button[data-v-451febef]{margin-left:1rem;white-space:nowrap}.orangehrm-module-field-row[data-v-7cf38636]{grid-column-start:1;display:flex;justify-content:space-between;padding:2rem 0}.orangehrm-module-field-label[data-v-7cf38636]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}.orangehrm-module-field-row[data-v-f93b79d6]{grid-column-start:1;display:flex;justify-content:space-between;padding:2rem 0}.orangehrm-module-field-label[data-v-f93b79d6]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}.orangehrm-button-row[data-v-07c0323b]{gap:.4rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-button-row[data-v-07c0323b] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-button-row[data-v-07c0323b]{margin-left:unset;max-width:unset}.orangehrm-button-row[data-v-07c0323b] .oxd-button--medium{width:unset}}.orangehrm-button-row[data-v-d6976f66]{gap:.4rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-button-row[data-v-d6976f66] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-button-row[data-v-d6976f66]{margin-left:unset;max-width:unset}.orangehrm-button-row[data-v-d6976f66] .oxd-button--medium{width:unset}}.oxd-table-card-cell[data-v-ab384128]{display:block}.oxd-table-card-cell .header[data-v-ab384128]{font-weight:700}.oxd-table-card-cell .time[data-v-ab384128]{white-space:nowrap}[data-v-0a23ca8f] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}[data-v-0a23ca8f] .card-footer-slot .oxd-table-cell-actions>*{margin:0!important}[data-v-2415900c] .card-footer-slot .oxd-table-cell-actions,[data-v-f1a9132e] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}.orangehrm-tracker-rating-button[data-v-21511c97]{margin-right:.6rem;padding-right:.6rem;padding-left:.6rem}.orangehrm-tracker-rating-icon[data-v-21511c97]{vertical-align:bottom}.--positive[data-v-21511c97]{color:#34bc40}.--negative[data-v-21511c97]{color:#eb0910}.--deselected[data-v-21511c97]{background-color:#fff}.orangehrm-add-tracker-log-ratings-container[data-v-38b5fab4],.orangehrm-add-tracker-log-ratings-container[data-v-5f6526aa]{padding-bottom:.6rem}.orangehrm-employee-tracker-log[data-v-6a9799ac]{display:flex;flex-direction:row}.orangehrm-employee-tracker-log img[data-v-6a9799ac]{width:60px;height:60px;border-radius:100%;display:flex;overflow:hidden;box-sizing:border-box;border:.1rem solid #f6f5fb}.orangehrm-employee-tracker-log-image-section[data-v-6a9799ac]{display:flex}.orangehrm-employee-tracker-log-content-section[data-v-6a9799ac]{display:flex;flex-direction:column;width:100%;margin-left:1.2rem;margin-right:1.2rem}.orangehrm-employee-tracker-log-content-container[data-v-6a9799ac]{background-color:#fff;border-radius:1.2rem;padding:1.2rem;margin-top:.3rem;margin-bottom:.3rem}.orangehrm-employee-tracker-log-header[data-v-6a9799ac]{display:flex;justify-content:space-between;padding-bottom:.6rem;align-items:flex-start}.orangehrm-employee-tracker-log-title[data-v-6a9799ac]{display:flex}@media(min-width:0px){.orangehrm-employee-tracker-log-title[data-v-6a9799ac]{flex-direction:column}}@media(min-width:600px){.orangehrm-employee-tracker-log-title[data-v-6a9799ac]{flex-direction:row;padding-right:2.4rem}}.orangehrm-employee-tracker-log-title-text[data-v-6a9799ac]{font-weight:700;font-size:21px;padding-right:.6rem}.orangehrm-employee-tracker-log-title-icon[data-v-6a9799ac]{min-width:21px;min-height:21px}.orangehrm-employee-tracker-log-title-icon.--positive[data-v-6a9799ac]{color:#34bc40}.orangehrm-employee-tracker-log-title-icon.--negative[data-v-6a9799ac]{color:#eb0910}.orangehrm-employee-tracker-log-body-text[data-v-6a9799ac]{font-size:12px}.orangehrm-employee-tracker-log-reviewer[data-v-6a9799ac]{display:flex}.orangehrm-employee-tracker-log-reviewer-name[data-v-6a9799ac]{font-weight:700;margin-left:1.2rem;font-size:14px}.orangehrm-employee-tracker-log-reviewer-date[data-v-6a9799ac]{display:flex;flex-direction:column;margin-top:.3rem;margin-left:1.2rem;font-size:12px}.orangehrm-employee-tracker-log-reviewer-date-container[data-v-6a9799ac]{display:flex;flex-direction:row;align-items:center}.orangehrm-employee-tracker-log-reviewer-date-icon[data-v-6a9799ac]{margin-right:.3rem}.orangehrm-container[data-v-f225ba5e]{overflow:auto;max-height:400px;min-height:400px;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-container[data-v-f225ba5e]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-f225ba5e]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-f225ba5e]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-f225ba5e]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-container-loader[data-v-f225ba5e]{margin:0 auto;background-color:#fff}.orangehrm-scroll-card[data-v-f225ba5e]{padding:.5rem 1rem;margin-bottom:.5rem}.orangehrm-scroll-card-header[data-v-f225ba5e]{display:flex;justify-content:space-between}.orangehrm-employee-tracker[data-v-f225ba5e]{display:flex;overflow:hidden}@media(min-width:0px){.orangehrm-employee-tracker[data-v-f225ba5e]{flex-direction:column}}@media(min-width:600px){.orangehrm-employee-tracker[data-v-f225ba5e]{flex-direction:row}}.orangehrm-employee-tracker-image-wrapper[data-v-f225ba5e]{padding:.6rem 1.2rem}.orangehrm-employee-tracker img[data-v-f225ba5e]{width:90px;height:90px;border-radius:100%;display:flex;overflow:hidden;justify-content:center;box-sizing:border-box;border:.5rem solid #f6f5fb}.orangehrm-employee-tracker-image-section[data-v-f225ba5e]{display:flex;align-items:center}@media(min-width:0px){.orangehrm-employee-tracker-image-section[data-v-f225ba5e]{flex-direction:row-reverse;justify-content:center}}@media(min-width:800px){.orangehrm-employee-tracker-image-section[data-v-f225ba5e]{flex-direction:column;justify-content:center}}.orangehrm-employee-tracker-header-section[data-v-f225ba5e]{display:flex}@media(min-width:0px){.orangehrm-employee-tracker-header-section[data-v-f225ba5e]{flex-direction:column;align-items:center;text-align:center}}@media(min-width:600px){.orangehrm-employee-tracker-header-section[data-v-f225ba5e]{flex-direction:row;align-items:flex-start;text-align:start}}.orangehrm-employee-tracker-header[data-v-f225ba5e]{display:flex;flex-direction:column;padding-left:1.2rem;padding-right:.6rem;padding-top:1.2rem}.orangehrm-employee-tracker-header-title[data-v-f225ba5e]{font-weight:700;font-size:21px}.orangehrm-employee-tracker-header-subtitle[data-v-f225ba5e]{font-weight:700;color:#929baa}.orangehrm-employee-tracker-ratings[data-v-f225ba5e]{display:flex;padding-top:1.2rem}.orangehrm-employee-tracker-ratings-info[data-v-f225ba5e]{display:flex;flex-direction:row;padding-left:.6rem;padding-right:.6rem;text-align:center}.orangehrm-employee-tracker-ratings-icon[data-v-f225ba5e]{padding-right:.6rem;min-width:21px;min-height:21px}.orangehrm-employee-tracker-ratings-text[data-v-f225ba5e]{font-size:21px}.orangehrm-employee-tracker-list-header[data-v-f225ba5e]{font-size:16px;font-weight:800}.orangehrm-employee-tracker-no-records[data-v-f225ba5e]{display:flex;min-height:inherit;justify-content:center;align-items:center}.--positive[data-v-f225ba5e]{color:#34bc40}.--negative[data-v-f225ba5e]{color:#eb0910}.orangehrm-paper-container[data-v-f225ba5e]{padding-bottom:2.4rem}.orangehrm-performance-review-title[data-v-21b21277]{font-size:14px;font-weight:800}.orangehrm-performance-review-bold[data-v-21b21277]{font-weight:700}.orangehrm-performance-review-rating[data-v-21b21277]{display:flex;flex-direction:column}.orangehrm-performance-review-rating-number[data-v-21b21277]{font-weight:700;color:var(--oxd-primary-one-color)}.orangehrm-performance-review-owner[data-v-21b21277]{display:flex;flex-direction:row;align-items:center;margin-top:1.2rem;margin-bottom:1.2rem}.orangehrm-performance-review-owner img[data-v-21b21277]{width:75px;height:75px;border-radius:100%;display:flex;flex-shrink:0;overflow:hidden;justify-content:center;box-sizing:border-box}.orangehrm-performance-review-owner-employee-section[data-v-21b21277]{display:flex}.orangehrm-performance-review-owner-employee[data-v-21b21277]{display:flex;flex-direction:column;padding-left:1.2rem}.orangehrm-performance-review-owner-employee-job[data-v-21b21277],.orangehrm-performance-review-owner-employee-name[data-v-21b21277]{font-weight:700;font-size:18px;word-break:break-word}.orangehrm-performance-review-owner-employee-job[data-v-21b21277]{color:#929baa}.orangehrm-performance-review-final-rating[data-v-21b21277]{align-self:center}.orangehrm-performance-review-column[data-v-21b21277]{margin-bottom:.5rem}.orangehrm-performance-review-details[data-v-21b21277]{display:flex}.orangehrm-performance-review-details-grid[data-v-21b21277]{width:100%;align-items:center}@media(min-width:800px){.orangehrm-performance-review-grid[data-v-2711f6e6]{grid-template-columns:33.3333333333% 110px 1fr .5fr}}.orangehrm-performance-review-grid[data-v-2711f6e6] .oxd-textarea{min-height:unset}.orangehrm-performance-review-title[data-v-2711f6e6]{font-size:14px;font-weight:800}.orangehrm-performance-review-bold[data-v-2711f6e6]{font-weight:700}.orangehrm-performance-review-read[data-v-2711f6e6]{margin-top:.3rem;margin-bottom:1.2rem}@media(min-width:800px){.orangehrm-performance-review-read[data-v-2711f6e6]{margin-top:1.2rem;margin-bottom:0}}.orangehrm-evaluation-header[data-v-d193810c]{display:flex;align-items:center;justify-content:space-between}.orangehrm-evaluation-header-grid[data-v-d193810c]{width:100%}.orangehrm-evaluation-title[data-v-d193810c]{display:flex;align-items:center;margin-bottom:1rem}.orangehrm-evaluation-title-profile-image[data-v-d193810c]{width:40px;height:40px;border-radius:100%;display:flex;flex-shrink:0;justify-content:center;box-sizing:border-box}.orangehrm-evaluation-title-name[data-v-d193810c]{margin-left:1rem;word-break:break-word}.orangehrm-evaluation-grid[data-v-d193810c]{padding-top:.5rem}@media(min-width:800px){.orangehrm-evaluation-grid[data-v-d193810c]{grid-template-columns:33.3333333333% 110px 1fr .5fr}}.orangehrm-evaluation-grid-header[data-v-d193810c]{display:none;margin-bottom:1rem}@media(min-width:800px){.orangehrm-evaluation-grid-header[data-v-d193810c]{display:block}}.orangehrm-evaluation-grid-kpi[data-v-d193810c]{margin-bottom:1rem}@media(min-width:800px){.orangehrm-evaluation-grid-kpi-header[data-v-d193810c]{display:none}}.orangehrm-evaluation-grid-kpi-label[data-v-d193810c]{font-weight:700}@media(min-width:800px){.orangehrm-evaluation-grid-kpi-label[data-v-d193810c]{text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}.orangehrm-evaluation-grid-kpi-minmax[data-v-d193810c]{font-size:.75rem}@media(min-width:800px){.orangehrm-evaluation-grid-general[data-v-d193810c]{display:flex;align-items:center}}.orangehrm-evaluation-grid-general-label[data-v-d193810c]{font-weight:700}.orangehrm-evaluation-grid-spacer[data-v-d193810c]{padding:.5rem 0}@media(min-width:800px){.orangehrm-evaluation-grid-spacer[data-v-d193810c]{display:none}}.orangehrm-evaluation-grid-spacer-md[data-v-d193810c]{display:none}@media(min-width:800px){.orangehrm-evaluation-grid-spacer-md[data-v-d193810c]{display:block}}.orangehrm-evaluation-grid[data-v-d193810c] .oxd-textarea{min-height:unset;height:58px}.orangehrm-evaluation-grid[data-v-d193810c] .oxd-input{text-align:center;font-size:1.2rem;height:58px}.orangehrm-evaluation .orangehrm-main-title[data-v-d193810c]{margin-bottom:.75rem}.orangehrm-modal-header[data-v-76b5ab1c]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-76b5ab1c]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-76b5ab1c]{margin:.25rem}.orangehrm-text-center-align[data-v-76b5ab1c]{text-align:center}.orangehrm-performance-review-title[data-v-ecbdbb4c]{font-size:14px;font-weight:800}.orangehrm-performance-review-actions[data-v-ecbdbb4c]{gap:.4rem;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-performance-review-actions[data-v-ecbdbb4c] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-performance-review-actions[data-v-ecbdbb4c]{margin-left:unset;max-width:unset}.orangehrm-performance-review-actions[data-v-ecbdbb4c] .oxd-button--medium{width:unset}}.orangehrm-performance-review-title[data-v-574fdbb6]{font-size:14px;font-weight:800}.orangehrm-performance-review-actions[data-v-574fdbb6]{gap:.4rem;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-performance-review-actions[data-v-574fdbb6] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-performance-review-actions[data-v-574fdbb6]{margin-left:unset;max-width:unset}.orangehrm-performance-review-actions[data-v-574fdbb6] .oxd-button--medium{width:unset}}.orangehrm-profile-picture[data-v-49d66b74]{display:block;height:90px;width:90px;margin:0 auto;overflow:hidden;border-radius:50%}.orangehrm-profile-picture img[data-v-49d66b74]{height:90px;width:90px}.orangehrm-directory-card[data-v-0415b0f1]{height:auto;cursor:pointer;overflow:hidden;padding:.5rem 1rem}.orangehrm-directory-card-header[data-v-0415b0f1]{font-size:14px;min-height:28px;font-weight:700;text-align:center;margin-top:1rem;margin-bottom:.75rem;word-break:break-word}.orangehrm-directory-card-header.--break-words[data-v-0415b0f1]{position:relative;overflow:hidden;max-height:2;line-height:1;justify-content:space-between;word-break:break-all}.orangehrm-directory-card-header.--break-words[data-v-0415b0f1]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:1;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:2){.orangehrm-directory-card-header.--break-words[data-v-0415b0f1]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-directory-card-header.--break-words[data-v-0415b0f1]:after{display:none}}.orangehrm-directory-card-subtitle[data-v-0415b0f1]{font-size:12px;font-weight:700;text-align:center;margin-top:1rem;margin-bottom:.75rem;word-break:break-word}.orangehrm-directory-card-subtitle.--break-words[data-v-0415b0f1]{position:relative;overflow:hidden;max-height:1;line-height:1;justify-content:space-between;word-break:break-all}.orangehrm-directory-card-subtitle.--break-words[data-v-0415b0f1]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:1;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:1){.orangehrm-directory-card-subtitle.--break-words[data-v-0415b0f1]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-directory-card-subtitle.--break-words[data-v-0415b0f1]:after{display:none}}.orangehrm-directory-card-description[data-v-0415b0f1]{font-size:12px;text-align:left;word-break:break-word}.orangehrm-directory-card-description.--break-words[data-v-0415b0f1]{position:relative;overflow:hidden;max-height:1;line-height:1;justify-content:space-between;word-break:break-all}.orangehrm-directory-card-description.--break-words[data-v-0415b0f1]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:1;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:1){.orangehrm-directory-card-description.--break-words[data-v-0415b0f1]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-directory-card-description.--break-words[data-v-0415b0f1]:after{display:none}}.orangehrm-directory-card-description[data-v-0415b0f1]:first-of-type{margin-bottom:.25rem}.orangehrm-directory-card-body[data-v-0415b0f1]{display:flex;align-items:center;justify-content:center;padding:.5rem;border-radius:.5rem;background-color:#fafafc}.orangehrm-directory-card-icon[data-v-0415b0f1]{font-size:24px;margin-right:.5rem;color:#64728c}@media(min-width:800px){.orangehrm-directory-card[data-v-0415b0f1]{min-height:260px}}.orangehrm-qr-code[data-v-74e533de]{margin:auto;width:140px;display:block}.orangehrm-directory-card[data-v-d01dcc04]{height:auto;overflow:hidden;padding:.5rem 1rem}@media(min-width:800px){.orangehrm-directory-card[data-v-d01dcc04]{min-height:280px}}.orangehrm-directory-card-rounded-body[data-v-d01dcc04]{display:flex;justify-content:center;align-items:center;padding:0 1rem;margin:1rem 8px 1rem 0;border-radius:1.2rem;width:auto;height:64px;box-shadow:5px 5px 5px 5px #fafafc}.orangehrm-directory-card-hover[data-v-d01dcc04]{display:flex;justify-content:space-between;padding:.25rem .75rem;border-radius:.5rem;margin:auto}@media(min-width:800px){.orangehrm-directory-card-hover[data-v-d01dcc04]{width:auto}}.orangehrm-directory-card-hover-body[data-v-d01dcc04]{display:block;align-items:center;justify-content:center;overflow:hidden;word-wrap:break-word}.orangehrm-directory-card-hover-icon[data-v-d01dcc04]{color:#64728c;font-size:14px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.orangehrm-directory-card-hover[data-v-d01dcc04]:hover{background-color:#fafafc}.orangehrm-directory-card-icon[data-v-d01dcc04]{margin:0 .5rem 0 0;color:#64728c;font-size:24px;display:flex;justify-content:center}.orangehrm-corporate-directory[data-v-0d01fa51]{display:block}@media(min-width:800px){.orangehrm-corporate-directory[data-v-0d01fa51]{display:flex;justify-content:space-between}}.orangehrm-corporate-directory-sidebar[data-v-0d01fa51]{min-width:250px;max-width:250px;margin-left:1rem;border-radius:1.2rem;background-color:#fff}.orangehrm-container[data-v-0d01fa51]{height:512px;overflow:auto;overflow-x:hidden;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-container[data-v-0d01fa51]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-0d01fa51]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-0d01fa51]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-0d01fa51]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-container-loader[data-v-0d01fa51]{margin:0 auto;background-color:#fff}.oxd-grid-item[data-v-0d01fa51]{padding:.5rem .75rem}.orangehrm-paper-container[data-v-0d01fa51]{width:100%}.orangehrm-login-layout[data-v-50815349]{display:table;width:100%;height:100%}@media(min-width:0px){.orangehrm-login-layout[data-v-50815349]{background-color:#f1f2f5}}@media(min-width:800px){.orangehrm-login-layout[data-v-50815349]{background-color:var(--oxd-primary-one-color)}}.orangehrm-login-layout-blob[data-v-50815349]{height:inherit;width:inherit;display:flex;position:relative;align-items:center;min-height:100vh}@media screen and (max-width:799px){.orangehrm-login-layout-blob[data-v-50815349]:before{content:"";top:0;left:0;right:0;bottom:0;position:absolute;-webkit-mask:url(../img/blob-m.svg);mask:url(../img/blob-m.svg);-webkit-mask-position:bottom left;mask-position:bottom left;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;background-color:var(--oxd-primary-one-color)}}@media(min-width:800px){.orangehrm-login-layout-blob[data-v-50815349]{background-image:url(../img/blob.svg);background-repeat:no-repeat;background-size:80% 100%}}.orangehrm-login-container[data-v-50815349]{z-index:1;width:100%;display:flex;justify-content:center}@media(min-width:800px){.orangehrm-login-container[data-v-50815349]{width:80%}}.orangehrm-login-logo[data-v-50815349]{position:absolute;right:15%;padding:1rem;background-color:#f6f5fb;border-radius:100%;display:none}.orangehrm-login-logo img[data-v-50815349]{width:10rem}@media(min-width:800px){.orangehrm-login-logo[data-v-50815349]{display:block}}.orangehrm-login-slot-wrapper[data-v-50815349]{padding:1rem 2rem;width:inherit}@media(min-width:800px){.orangehrm-login-slot-wrapper[data-v-50815349]{padding:1rem 10rem}}.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile[data-v-50815349]{padding:1rem;background-color:#f6f5fb;border-radius:100%;width:-moz-fit-content;width:fit-content;margin:0 auto;margin-bottom:1rem;display:block}.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile img[data-v-50815349]{width:5rem}@media(min-width:800px){.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile[data-v-50815349]{display:none}}.orangehrm-login-slot-wrapper .orangehrm-login-slot[data-v-50815349]{background-color:#fff;padding:2rem 0;border-radius:1rem;margin:0 auto}@media(min-width:800px){.orangehrm-login-slot-wrapper .orangehrm-login-slot[data-v-50815349]{background-color:transparent;padding:unset}}.orangehrm-login-branding[data-v-50815349]{padding:1.5rem 1rem;background-color:#fff;border-radius:1rem;text-align:center;box-shadow:0 16px 35px 0 rgba(0,0,0,.08);margin:0 auto;margin-bottom:2rem}.orangehrm-login-branding img[data-v-50815349]{width:100%;max-width:275px;height:auto;max-height:65px}@media(min-width:800px){.orangehrm-login-branding[data-v-50815349]{width:80%;max-width:520px}}.orangehrm-login-social[data-v-50815349]{padding:1rem 0}.orangehrm-login-social-text[data-v-50815349]{text-align:center;margin-bottom:1rem}.orangehrm-login-social-icons[data-v-50815349]{display:flex;justify-content:center}.orangehrm-login-social-icons .--loginwith[data-v-50815349]{margin:0 .25rem}.orangehrm-login-form[data-v-358db50f]{margin:0 auto}@media(min-width:0px){.orangehrm-login-form[data-v-358db50f]{width:80%}}@media(min-width:800px){.orangehrm-login-form[data-v-358db50f]{width:60%;max-width:485px}}.orangehrm-login-action[data-v-358db50f]{margin-top:2rem;justify-content:center}.orangehrm-login-button[data-v-358db50f]{flex:1;padding:1rem 0}.orangehrm-login-title[data-v-358db50f]{text-align:center;font-weight:800;margin-bottom:1rem}.orangehrm-login-pwreset[data-v-358db50f]{margin:1rem 0;text-align:center;font-weight:600}.orangehrm-login-pwreset a[data-v-358db50f]{color:var(--oxd-primary-one-color);text-decoration:none}.orangehrm-login-forgot[data-v-358db50f]{display:flex;justify-content:center;margin-top:1rem;font-size:14px}.orangehrm-login-forgot-header[data-v-358db50f]{cursor:pointer;color:var(--oxd-primary-one-color)}.orangehrm-demo-credentials[data-v-358db50f]{margin:1rem 0}.orangehrm-login-footer-sm[data-v-358db50f]{display:flex;justify-content:center;align-items:center}.orangehrm-login-footer-sm a[data-v-358db50f]{width:22px;height:22px;margin:0 .25rem}.orangehrm-login-footer-sm .orangehrm-sm-icon[data-v-358db50f]{width:inherit;height:inherit;color:rgba(146,155,170,.8)}@media(min-width:800px){.orangehrm-login-footer-sm[data-v-358db50f]{position:absolute;left:1rem;bottom:1rem}}.orangehrm-card-icon[data-v-58e596ce]{font-size:1.5rem;color:#eb0910;padding:1rem}.orangehrm-card-note[data-v-58e596ce]{font-size:14px}.orangehrm-card-note-text[data-v-58e596ce]{color:#eb0910}.orangehrm-card-note-icon[data-v-58e596ce]{flex-shrink:0}.orangehrm-card-note--background[data-v-58e596ce]{background-color:#e8eaef;border-radius:1.2rem;padding:1.2rem}.orangehrm-card-note--icon[data-v-58e596ce]{display:flex;align-items:center;background-color:rgba(235,9,16,.06);border-radius:1.2rem;padding:1rem} +.oxd-divider[data-v-0dea79bd]{margin-top:0;margin-bottom:0}.orangehrm-form-hint[data-v-319fc346]{width:100%;font-weight:600;font-size:.75rem;margin-right:auto}@media screen and (min-width:400px){.orangehrm-form-hint[data-v-319fc346]{width:unset}}.orangehrm-loader[data-v-df10eb5c]{display:flex;justify-content:center;align-items:center;min-height:80px}.orangehrm-about[data-v-df10eb5c]{grid-template-columns:150px 1fr}.orangehrm-about-text[data-v-df10eb5c],.orangehrm-about-title[data-v-df10eb5c]{word-break:break-word;font-size:14px}.orangehrm-about-title[data-v-df10eb5c]{font-weight:700}.orangehrm-module-under-development[data-v-c0c6b572]{text-align:center}.orangehrm-module-under-development-img[data-v-c0c6b572]{max-width:100%;height:100%;max-height:350px;display:block;margin:0 auto;-o-object-fit:fill;object-fit:fill}.orangehrm-module-under-development-heading[data-v-c0c6b572]{color:var(--oxd-primary-one-color);font-weight:700}.orangehrm-module-under-development-text[data-v-c0c6b572]{font-size:14px;max-width:800px;margin:0 auto;margin-bottom:2rem}.orangehrm-module-under-development-link[data-v-c0c6b572]{text-decoration:none;color:var(--oxd-primary-one-color)}.orangehrm-module-disabled[data-v-3d2f2dd1]{text-align:center;margin-bottom:1.2rem}.orangehrm-module-disabled-heading[data-v-3d2f2dd1]{line-height:normal;color:var(--oxd-primary-one-color);font-weight:800}.orangehrm-module-disabled-sub-heading[data-v-3d2f2dd1]{margin-top:-1.5rem;padding-bottom:1rem;color:var(--oxd-primary-one-color);font-weight:600}.orangehrm-modal-header[data-v-64d94959]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-64d94959]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-64d94959]{margin:.25rem}.orangehrm-text-center-align[data-v-64d94959]{text-align:center}.orangehrm-file-current[data-v-0511e208]{display:flex;margin-bottom:1rem}.orangehrm-file-icon[data-v-0511e208]{display:block;font-size:3rem;margin-bottom:.5rem}.orangehrm-file-download[data-v-0511e208]{font-size:12px;margin-left:10px;vertical-align:middle}.orangehrm-file-name[data-v-0511e208]{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.orangehrm-file-options[data-v-0511e208],.orangehrm-file-preview[data-v-0511e208]{display:flex;align-items:center;flex-direction:column;justify-content:center}.orangehrm-file-preview[data-v-0511e208]{padding:.5rem;cursor:pointer;min-height:90px;min-width:150px;text-align:center;border-radius:.5rem;margin-right:1rem;border:1px solid #cfd3de;background-color:#f6f5fb}[data-v-0511e208] .--label-right{flex-shrink:0;align-self:center}.past-employee-tag[data-v-1ccb3a64]{margin-left:auto}.orangehrm-password-chip[data-v-2eef2625]{top:0;right:0;font-weight:600;position:absolute;color:#fff;font-family:Nunito Sans,sans-serif}.orangehrm-password-chip.--strength-better[data-v-2eef2625]{color:#979900;background-color:#fcff00}.orangehrm-password-chip.--strength-strong[data-v-2eef2625]{background-color:#bde813}.orangehrm-password-chip.--strength-strongest[data-v-2eef2625]{background-color:#93b40f}.user-password-row[data-v-9345d4ba]{padding:10px;background-color:#fafafc;border-radius:.75rem}.user-password-row[data-v-9345d4ba] .orangehrm-password-chip{top:-5px;right:8px}.user-password-hint[data-v-9345d4ba]{font-size:.75rem}.user-password-cell[data-v-9345d4ba]{position:relative}.level-label[data-v-391369a4]{font-size:.75rem}.org-root-container[data-v-a525b582]{padding:.5em 1.35rem;display:flex;align-items:center;justify-content:space-between;height:30px}.org-root-container .oxd-text[data-v-a525b582]{position:relative;display:flex;align-items:center}.org-root-container .oxd-text.--parent[data-v-a525b582]:after{content:"";border-left:.15rem solid var(--oxd-primary-one-color);height:2rem;position:absolute;top:50%;left:0}.org-root-container .oxd-text.--parent[data-v-a525b582]:before{content:"";border-top:.15rem solid var(--oxd-primary-one-color);width:1rem;margin-right:.5rem}.org-container[data-v-a525b582]{background-color:#e8eaef;padding:.5rem 1rem}.org-container .loader[data-v-a525b582]{display:flex;justify-content:center;align-items:center;padding:10rem 0}.org-container .loader .oxd-loading-spinner-container[data-v-a525b582]{background-color:#fff}.org-structure-card[data-v-a525b582]{display:flex;min-height:35px;padding:.35rem;border-radius:.75rem;align-items:center;justify-content:space-between;background-color:#fff}@media(min-width:800px){.org-structure-card[data-v-a525b582]{padding:.5rem 1rem}}.org-name[data-v-a525b582]{position:relative;overflow:hidden;max-height:4.5;line-height:1.5;justify-content:space-between;word-break:break-all}.org-name[data-v-a525b582]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:1.5;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:3){.org-name[data-v-a525b582]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.org-name[data-v-a525b582]:after{display:none}}.org-structure-add[data-v-a525b582]{min-width:unset;padding:.5rem 1rem}.org-action[data-v-a525b582]{display:flex;list-style:none;position:relative}.org-action-icon[data-v-a525b582]{margin-right:.5rem}.org-action-icon[data-v-a525b582]:last-child{margin-right:unset}.org-action-description[data-v-a525b582]{display:flex;cursor:pointer;font-size:12px;padding:.2rem 1rem}.org-action-description[data-v-a525b582]:hover{background-color:#f6f7f9}.org-action[data-v-a525b582] .oxd-dropdown-menu{right:0;top:40px;left:unset}.oxd-tree-node-content{width:100%}.oxd-tree-node-toggle .oxd-icon-button{background-color:#fff!important}.organization-name-container[data-v-440f5057]{grid-column:span 2}.no-of-employees-value[data-v-440f5057]{font-size:12px;padding:.675rem .5rem}.orangehrm-header-container[data-v-440f5057]{padding:0}[data-v-5b5ad744] .--status-grouped-field{display:flex;max-width:13rem}.send-method-div[data-v-5b5ad744]{display:flex;flex-direction:row}@media(max-width:800px){.send-method-div[data-v-5b5ad744]{flex-direction:column}}.sendmail-path-value[data-v-5b5ad744]{font-size:12px;padding:.675rem .5rem}.orangehrm-optional-field-row[data-v-5b5ad744]{grid-column-start:1;display:flex;justify-content:space-between;padding:.5rem 0}.orangehrm-optional-field-label[data-v-5b5ad744]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:50%}.tls-hint[data-v-5b5ad744]{font-size:.75rem;margin-top:-.8rem}.orangehrm-action-header[data-v-6526a07f]{display:flex;overflow-wrap:break-word;align-items:center}.orangehrm-action-header button[data-v-6526a07f]{margin-left:1rem;white-space:nowrap}.orangehrm-module-field-row[data-v-4e1bed3c]{grid-column-start:1;display:flex;justify-content:space-between;padding:.5rem .75rem}.orangehrm-module-field-label[data-v-4e1bed3c]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}.orangehrm-workshift-duration[data-v-003161fa],.orangehrm-workshift-duration[data-v-4e80e7d6]{font-size:14px;padding:.675rem 0}.level-label[data-v-36993096],.level-label[data-v-cc6ef064]{font-size:.75rem}[data-v-9d33cb16] .oxd-input-group__label-wrapper{display:none}[data-v-9d33cb16] .orangehrm-color-input-wrapper{display:flex;align-items:center;justify-content:space-between}[data-v-9d33cb16] .oxd-color-input{padding:2px;flex-shrink:0}.oxd-input-field-bottom-space[data-v-9d33cb16]{margin-bottom:1rem}.orangehrm-actions-group[data-v-f2980770]{gap:.4rem;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-actions-group[data-v-f2980770] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-actions-group[data-v-f2980770]{margin-left:unset;max-width:unset}.orangehrm-actions-group[data-v-f2980770] .oxd-button--medium{width:unset}}.orangehrm-sm-field[data-v-f2980770]{display:flex;align-items:center;justify-content:space-between;padding:.675rem 0}.orangehrm-sm-field-label[data-v-f2980770]{font-weight:700;font-size:14px}.addlanguage-note[data-v-08ca613a]{background-color:#e8eaef;border-radius:10px;width:100%;margin-top:20px;margin-bottom:20px}.addlanguage-note-text[data-v-08ca613a]{padding:1.2rem}.orangehrm-information-card-text[data-v-08ca613a]{font-size:14px;color:#64728c;font-weight:400}[data-v-08ca613a] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}.addlanguage-note[data-v-745f4367]{background-color:#e8eaef;border-radius:10px;width:100%;margin-top:20px;margin-bottom:20px}.addlanguage-note-text[data-v-745f4367]{padding:1.2rem}.orangehrm-information-card-text[data-v-745f4367]{font-size:14px;color:#64728c;font-weight:400}[data-v-745f4367] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}.orangehrm-translation-container[data-v-5f0f9ef8]{padding-left:25px;padding-right:25px}.orangehrm-translation-grid[data-v-5f0f9ef8]{padding-top:.5rem}@media(min-width:600px){.orangehrm-translation-grid[data-v-5f0f9ef8]{grid-template-columns:1fr}}@media(min-width:1000px){.orangehrm-translation-grid[data-v-5f0f9ef8]{grid-template-columns:repeat(3,1fr)}}.orangehrm-translation-grid-header[data-v-5f0f9ef8]{display:none;margin-bottom:1rem}@media(min-width:1000px){.orangehrm-translation-grid-header[data-v-5f0f9ef8]{display:block}.orangehrm-translation-grid-langstring-header[data-v-5f0f9ef8]{display:none}}.orangehrm-translation-grid-langstring-header-note[data-v-5f0f9ef8]{display:none}.orangehrm-translation-grid-text[data-v-5f0f9ef8]{font-size:.75rem}.oxd-text--card-title[data-v-5f0f9ef8]{padding-top:.5rem;padding-bottom:.5rem}@media(min-width:1000px){.oxd-text--card-title[data-v-5f0f9ef8]{padding-bottom:1rem}.note[data-v-5f0f9ef8]{display:none}}.orangehrm-header-container[data-v-1ad53bff]{justify-content:end}.orangehrm-ldap-sync[data-v-0aa30e8a]{display:flex;flex-direction:column}@media(min-width:800px){.orangehrm-ldap-sync[data-v-0aa30e8a]{flex-direction:row;align-items:center}.orangehrm-ldap-sync-time[data-v-0aa30e8a]{margin-left:1rem}}.orangehrm-ldap-sync-button[data-v-0aa30e8a]{white-space:normal!important}.orangehrm-ldap-sync-loader[data-v-0aa30e8a]{margin:0 2rem}.orangehrm-ldap-test[data-v-7b76f5a0]{margin-bottom:.75rem}.orangehrm-ldap-test-title[data-v-7b76f5a0]{font-size:14px;font-weight:700;margin-bottom:.2rem}.orangehrm-ldap-test-value.--success[data-v-7b76f5a0]{color:#34bc40}.orangehrm-ldap-test-value.--error[data-v-7b76f5a0]{color:#eb0910}.orangehrm-ldap-test-row[data-v-7b76f5a0]{width:100%;display:flex;font-size:14px;margin-bottom:.2rem}.orangehrm-ldap-test-content[data-v-7b76f5a0]{flex:1}.orangehrm-header-container[data-v-89df999a]{padding:0}.orangehrm-column-half[data-v-89df999a]{width:50%}.orangehrm-form-divider[data-v-89df999a]{margin:1rem 0}.orangehrm-subtitle[data-v-89df999a]{font-size:14px;font-weight:700;margin-bottom:1rem}.orangehrm-ldap-switch[data-v-89df999a]{display:flex;align-items:center;white-space:nowrap;justify-content:space-between;margin-bottom:1rem}.orangehrm-ldap-switch-text[data-v-89df999a]{font-size:14px}.orangehrm-ldap-grid[data-v-89df999a]{grid-template-columns:repeat(3,1fr)}.orangehrm-ldap-grid-header[data-v-89df999a]{font-size:12px;font-weight:700;align-self:start;margin-bottom:1rem}.orangehrm-ldap-grid-content[data-v-89df999a]{font-size:12px;position:relative}.orangehrm-ldap-grid-icon[data-v-89df999a]{right:0;font-size:18px;position:absolute}.orangehrm-ldap-grid[data-v-89df999a] .oxd-input-group__label-wrapper{display:none}.orangehrm-ldap-grid[data-v-89df999a] .oxd-switch-wrapper{margin-top:.75rem}.employee-image[data-v-b553055e]{height:8rem}.orangehrm-input-hint[data-v-b553055e]{margin:0 auto;text-align:center}[data-v-b553055e] .oxd-file-div{margin:0 auto;display:flex;position:relative;align-items:center;justify-content:center;width:8rem!important;height:8rem!important;border-radius:100%!important;border:1px solid #e8eaef}.employee-image-wrapper[data-v-b553055e]{height:90%;width:90%;display:flex;overflow:hidden;border-radius:100%;justify-content:center;align-items:flex-start;border:1px solid #e8eaef}.employee-image-action[data-v-b553055e]{right:0;bottom:0;position:absolute}@media(min-width:800px){[data-v-16292a35] .--name-grouped-field{display:flex}[data-v-16292a35] .orangehrm-firstname{border-bottom-right-radius:unset;border-top-right-radius:unset;text-overflow:ellipsis}[data-v-16292a35] .orangehrm-lastname{border-bottom-left-radius:unset;border-top-left-radius:unset;text-overflow:ellipsis}[data-v-16292a35] .orangehrm-middlename{border-radius:unset;text-overflow:ellipsis}}.orangehrm-employee-container[data-v-e2b6125c]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-e2b6125c]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-e2b6125c]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-e2b6125c]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-e2b6125c]{flex:1 1 75%}.user-form-header[data-v-e2b6125c]{display:flex;padding:1rem 0}.user-form-header-text[data-v-e2b6125c]{font-size:.8rem;margin-right:1rem}[data-v-e2b6125c] .--gender-grouped-field,[data-v-e2b6125c] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-e2b6125c] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-e2b6125c] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-e2b6125c] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-e2b6125c] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-e2b6125c] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-e2b6125c]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-e2b6125c] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-e2b6125c] .employee-image{height:12rem}[data-v-e2b6125c] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-e2b6125c]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-employee-container[data-v-0065ac32]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-0065ac32]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-0065ac32]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-0065ac32]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-0065ac32]{flex:1 1 75%}.user-form-header[data-v-0065ac32]{display:flex;padding:1rem 0}.user-form-header-text[data-v-0065ac32]{font-size:.8rem;margin-right:1rem}[data-v-0065ac32] .--gender-grouped-field,[data-v-0065ac32] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-0065ac32] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-0065ac32] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-0065ac32] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-0065ac32] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-0065ac32] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-0065ac32]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-0065ac32] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-0065ac32] .employee-image{height:12rem}[data-v-0065ac32] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-0065ac32]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-tabs[data-v-8cad1ea8]{display:flex;flex-wrap:nowrap;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-tabs-wrapper[data-v-8cad1ea8]{display:flex}.orangehrm-tabs-item[data-v-8cad1ea8]{height:35px;line-height:35px;padding:0 1rem;border-radius:.85rem;flex:100%;color:#64728c;text-decoration:none;font-size:14px;font-family:Nunito Sans,sans-serif;font-weight:700}@media(min-width:0px){.orangehrm-tabs-item[data-v-8cad1ea8]{margin-right:.25rem;background-color:#f6f5fb;white-space:nowrap}.orangehrm-tabs-item.--active[data-v-8cad1ea8],.orangehrm-tabs-item[data-v-8cad1ea8]:hover{background-color:var(--oxd-primary-one-color);color:#fff}}@media(min-width:800px){.orangehrm-tabs-item[data-v-8cad1ea8]{margin-right:unset;margin-bottom:.25rem;background-color:unset;white-space:wrap}.orangehrm-tabs-item.--active[data-v-8cad1ea8],.orangehrm-tabs-item[data-v-8cad1ea8]:hover{background-color:#f6f5fb;color:#64728c}}@media(min-width:0px){.orangehrm-tabs[data-v-8cad1ea8]{flex-direction:row;overflow:scroll hidden;padding-bottom:5px}}@media(min-width:800px){.orangehrm-tabs[data-v-8cad1ea8]{flex-direction:column;overflow:visible;padding-bottom:unset}}.orangehrm-tabs[data-v-8cad1ea8]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-tabs[data-v-8cad1ea8]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-tabs[data-v-8cad1ea8]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-tabs[data-v-8cad1ea8]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-action-header[data-v-3dab643a]{display:flex;overflow-wrap:break-word;align-items:center}.orangehrm-action-header button[data-v-3dab643a]{margin-left:1rem;white-space:nowrap}.oxd-divider[data-v-50e42520]{margin-top:0;margin-bottom:0}.orangehrm-attachment[data-v-50e42520]{border-bottom-right-radius:1.2rem;overflow:hidden}.orangehrm-card-container[data-v-0349f171]{padding:unset}.orangehrm-edit-employee[data-v-0349f171]{display:flex}@media(min-width:0px){.orangehrm-edit-employee[data-v-0349f171]{flex-direction:column}}@media(min-width:800px){.orangehrm-edit-employee[data-v-0349f171]{flex-direction:row}}.orangehrm-edit-employee-navigation[data-v-0349f171]{width:100%;padding:1rem;box-sizing:border-box}@media(min-width:800px){.orangehrm-edit-employee-navigation[data-v-0349f171]{width:220px}}.orangehrm-edit-employee-content[data-v-0349f171]{flex:1}@media(min-width:800px){.orangehrm-edit-employee-content[data-v-0349f171]{border-left:1px solid #e8eaef}}.orangehrm-edit-employee-name[data-v-0349f171]{text-align:center;padding-left:1rem;padding-right:1rem;word-break:break-word}.orangehrm-edit-employee-name .--strong[data-v-0349f171]{font-weight:700;font-size:1.2rem}.orangehrm-edit-employee-image-wrapper[data-v-0349f171]{padding-bottom:1.2rem}@media(min-width:800px){.orangehrm-edit-employee-image-wrapper[data-v-0349f171]{padding-top:1.2rem}}.orangehrm-edit-employee-image[data-v-0349f171]{width:120px;height:120px;border-radius:100%;display:flex;cursor:pointer;overflow:hidden;justify-content:center;box-sizing:border-box;border:.5rem solid #f6f5fb;box-shadow:1px 1px 18px 11px rgba(186,186,202,.24)}.orangehrm-edit-employee-imagesection[data-v-0349f171]{display:flex;align-items:center}@media(min-width:0px){.orangehrm-edit-employee-imagesection[data-v-0349f171]{flex-direction:row-reverse;justify-content:flex-end}}@media(min-width:800px){.orangehrm-edit-employee-imagesection[data-v-0349f171]{flex-direction:column;justify-content:center}}.orangehrm-employee-container[data-v-305f88aa]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-305f88aa]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-305f88aa]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-305f88aa]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-305f88aa]{flex:1 1 75%}.user-form-header[data-v-305f88aa]{display:flex;padding:1rem 0}.user-form-header-text[data-v-305f88aa]{font-size:.8rem;margin-right:1rem}[data-v-305f88aa] .--gender-grouped-field,[data-v-305f88aa] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-305f88aa] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-305f88aa] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-305f88aa] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-305f88aa] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-305f88aa] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-305f88aa]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-305f88aa] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-305f88aa] .employee-image{height:12rem}[data-v-305f88aa] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-305f88aa]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-employee-container[data-v-f2414b96]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-f2414b96]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-f2414b96]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-f2414b96]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-f2414b96]{flex:1 1 75%}.user-form-header[data-v-f2414b96]{display:flex;padding:1rem 0}.user-form-header-text[data-v-f2414b96]{font-size:.8rem;margin-right:1rem}[data-v-f2414b96] .--gender-grouped-field,[data-v-f2414b96] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-f2414b96] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-f2414b96] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-f2414b96] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-f2414b96] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-f2414b96] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-f2414b96]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-f2414b96] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-f2414b96] .employee-image{height:12rem}[data-v-f2414b96] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-f2414b96]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-employee-container[data-v-c6fb612a]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-c6fb612a]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-c6fb612a]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-c6fb612a]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-c6fb612a]{flex:1 1 75%}.user-form-header[data-v-c6fb612a]{display:flex;padding:1rem 0}.user-form-header-text[data-v-c6fb612a]{font-size:.8rem;margin-right:1rem}[data-v-c6fb612a] .--gender-grouped-field,[data-v-c6fb612a] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-c6fb612a] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-c6fb612a] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-c6fb612a] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-c6fb612a] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-c6fb612a] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-c6fb612a]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-c6fb612a] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-c6fb612a] .employee-image{height:12rem}[data-v-c6fb612a] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-c6fb612a]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.directdeposit-form-header[data-v-6c600350]{display:flex;padding:1rem}.directdeposit-form-header-text[data-v-6c600350]{font-size:.8rem;margin-right:1rem}.directdeposit-form-header[data-v-e3ac8428]{display:flex;padding:1rem}.directdeposit-form-header-text[data-v-e3ac8428]{font-size:.8rem;margin-right:1rem}.input-container[data-v-6dc7b054]{position:relative;display:flex;align-items:center;box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;width:100%;border:1px solid #e8eaef;min-height:45px;cursor:pointer;text-decoration:underline}.input-container-filename[data-v-6dc7b054]{text-overflow:ellipsis;overflow:hidden;width:75%;white-space:nowrap}.input-container-loader[data-v-6dc7b054]{position:absolute;right:10px}.input-container-icon[data-v-6dc7b054]{font-size:inherit!important;min-width:unset;min-height:unset;border-radius:.65rem;padding:.3rem;margin-left:auto}.input-container.--disabled[data-v-6dc7b054]{cursor:not-allowed;text-decoration:none}.input-container[data-v-6dc7b054] .oxd-loading-spinner{width:1rem;height:1rem}.orangehrm-employee-container[data-v-1dfb2fdc]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-1dfb2fdc]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-1dfb2fdc]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-1dfb2fdc]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-1dfb2fdc]{flex:1 1 75%}.user-form-header[data-v-1dfb2fdc]{display:flex;padding:1rem 0}.user-form-header-text[data-v-1dfb2fdc]{font-size:.8rem;margin-right:1rem}[data-v-1dfb2fdc] .--gender-grouped-field,[data-v-1dfb2fdc] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-1dfb2fdc] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-1dfb2fdc] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-1dfb2fdc] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-1dfb2fdc] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-1dfb2fdc] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-1dfb2fdc]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-1dfb2fdc] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-1dfb2fdc] .employee-image{height:12rem}[data-v-1dfb2fdc] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-1dfb2fdc]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-employee-container[data-v-1f0dcd51]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-1f0dcd51]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-1f0dcd51]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-1f0dcd51]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-1f0dcd51]{flex:1 1 75%}.user-form-header[data-v-1f0dcd51]{display:flex;padding:1rem 0}.user-form-header-text[data-v-1f0dcd51]{font-size:.8rem;margin-right:1rem}[data-v-1f0dcd51] .--gender-grouped-field,[data-v-1f0dcd51] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-1f0dcd51] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-1f0dcd51] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-1f0dcd51] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-1f0dcd51] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-1f0dcd51] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-1f0dcd51]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-1f0dcd51] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-1f0dcd51] .employee-image{height:12rem}[data-v-1f0dcd51] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-1f0dcd51]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-employee-container[data-v-3b144a72]{display:flex}@media(min-width:0px){.orangehrm-employee-container[data-v-3b144a72]{flex-direction:column}}@media(min-width:800px){.orangehrm-employee-container[data-v-3b144a72]{flex-direction:row}}.orangehrm-employee-container .orangehrm-employee-image[data-v-3b144a72]{flex:1 1 25%;padding:1rem;text-align:center}.orangehrm-employee-container .orangehrm-employee-form[data-v-3b144a72]{flex:1 1 75%}.user-form-header[data-v-3b144a72]{display:flex;padding:1rem 0}.user-form-header-text[data-v-3b144a72]{font-size:.8rem;margin-right:1rem}[data-v-3b144a72] .--gender-grouped-field,[data-v-3b144a72] .--status-grouped-field{display:flex}.orangehrm-employee-list[data-v-3b144a72] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-employee-list[data-v-3b144a72] .card-header-slot .oxd-table-card-cell{display:flex}.orangehrm-employee-list[data-v-3b144a72] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-employee-list[data-v-3b144a72] .card-header-slot-content.--left{display:flex;align-items:center}.orangehrm-employee-list[data-v-3b144a72] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangehrm-employee-picture[data-v-3b144a72]{text-align:center;margin:0 auto;margin-bottom:8rem}.orangehrm-employee-picture[data-v-3b144a72] .oxd-file-div{width:12rem!important;height:12rem!important}.orangehrm-employee-picture[data-v-3b144a72] .employee-image{height:12rem}[data-v-3b144a72] .--termination-button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.orangehrm-terminate-date[data-v-3b144a72]{cursor:pointer;color:var(--oxd-primary-one-color);text-decoration:underline;font-size:.75rem;font-weight:800}.orangehrm-custom-field-title[data-v-5c47f79e]{display:block}@media(min-width:800px){.orangehrm-custom-field-title[data-v-5c47f79e]{display:flex;justify-content:space-between;width:100%}.orangehrm-custom-field-title .--infotext[data-v-5c47f79e]{margin-right:1rem}}.select-options-hint[data-v-5c47f79e]{font-size:.75rem;margin-top:-.625rem}.--infotext[data-v-5c47f79e]{font-size:.875rem}.orangehrm-custom-field-title[data-v-9f2c1100]{display:block}@media(min-width:800px){.orangehrm-custom-field-title[data-v-9f2c1100]{display:flex;justify-content:space-between;width:100%}.orangehrm-custom-field-title .--infotext[data-v-9f2c1100]{margin-right:1rem}}.select-options-hint[data-v-9f2c1100]{font-size:.75rem;margin-top:-.625rem}.--infotext[data-v-9f2c1100]{font-size:.875rem}.orangehrm-custom-field-title[data-v-2b25acf8]{display:block}@media(min-width:800px){.orangehrm-custom-field-title[data-v-2b25acf8]{display:flex;justify-content:space-between;width:100%}.orangehrm-custom-field-title .--infotext[data-v-2b25acf8]{margin-right:1rem}}.select-options-hint[data-v-2b25acf8]{font-size:.75rem;margin-top:-.625rem}.--infotext[data-v-2b25acf8]{font-size:.875rem}.orangehrm-optional-field-row[data-v-6f084a70]{grid-column-start:1;display:flex;justify-content:space-between;padding:.5rem .75rem}.orangehrm-optional-field-label[data-v-6f084a70]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}.orangehrm-modal-header[data-v-b8d15eb4]{display:flex;margin-bottom:1.2rem;justify-content:center}.orangehrm-modal-footer[data-v-b8d15eb4]{display:flex;margin-top:1.2rem;justify-content:center}.orangehrm-text-center-align[data-v-b8d15eb4]{text-align:center;overflow-wrap:break-word}[data-v-b8d15eb4] .orangehrm-dialog-popup{width:450px}.orangehrm-success-message[data-v-b8d15eb4]{color:#34bc40}.orangehrm-error-message[data-v-b8d15eb4]{color:#eb0910}.orangehrm-information-card-container[data-v-ad061e70]{background-color:#e8eaef;border-radius:1.2rem;padding:1.2rem}.orangehrm-information-card-text[data-v-ad061e70]{font-size:14px;color:#64728c;font-weight:400}.orangehrm-information-card-text .download-link[data-v-ad061e70]{color:var(--oxd-primary-one-color)}[data-v-20f3e4a9] .oxd-input-group__label-wrapper,[data-v-36b7c266] .oxd-input-group__label-wrapper{display:none}.orangehrm-report-range[data-v-d3b88ca8]{display:flex;justify-content:center;align-items:baseline}.orangehrm-report-range-text[data-v-d3b88ca8]{margin:0 1rem;font-size:14px}[data-v-d3b88ca8] .oxd-input-group__label-wrapper{display:none}.orangehrm-report-daterange[data-v-2ea02c55]{display:flex;justify-content:center;align-items:baseline}.orangehrm-report-range-text[data-v-2ea02c55]{margin:0 1rem;font-size:14px}[data-v-2ea02c55] .oxd-input-group__label-wrapper{display:none}.orangehrm-report-criteria[data-v-b010db64]{display:flex;align-items:baseline}.orangehrm-report-criteria-name[data-v-b010db64]{margin-left:1rem;font-weight:700;font-size:14px;padding:.675rem 0}.orangehrm-report-field[data-v-3c97086a]{display:flex;align-items:center}.orangehrm-report-field-name[data-v-3c97086a]{margin-left:1rem;font-weight:700;font-size:14px;padding:.675rem 0}.orangehrm-report-field-header[data-v-3c97086a]{font-size:14px;margin-right:1rem}.orangehrm-report-criteria[data-v-f66184da]{display:flex;align-items:center}.orangehrm-report-icon[data-v-f66184da]{margin-left:1rem}[data-v-f66184da] .oxd-chip .oxd-icon{align-self:center}[data-v-32e798aa] .oxd-report-table-header{height:80px;position:relative;align-items:flex-start}@media(min-width:600px){[data-v-32e798aa] .oxd-report-table-header{height:unset;align-items:unset}}[data-v-32e798aa] .oxd-report-table-header .oxd-report-table-header--toggable{height:45px}[data-v-32e798aa] revogr-data .rgCell:empty:before{content:"--"}.oxd-text--count[data-v-32e798aa]{position:absolute;left:1.2rem;top:50px}@media(min-width:600px){.oxd-text--count[data-v-32e798aa]{position:unset}}.oxd-text--footer[data-v-32e798aa]{margin-left:auto;margin-right:1.2rem}.orangehrm-report-criteria[data-v-0b4140eb]{display:flex;align-items:center}.orangehrm-report-icon[data-v-0b4140eb]{margin-left:1rem}[data-v-0b4140eb] .oxd-chip .oxd-icon{align-self:center}.orangehrm-user-name[data-v-1cb899de]{font-size:14px;padding:.675rem 0}.orangehrm-support-text[data-v-510cfbbc]{font-size:12px}.orangehrm-support[data-v-510cfbbc]{padding:1rem 0}.orangehrm-support-channel[data-v-510cfbbc]{grid-template-columns:50px 1fr;align-items:center}.orangehrm-support-channel img[data-v-510cfbbc]{width:40px;height:40px}.orangehrm-support-link[data-v-510cfbbc]{text-decoration:none;color:var(--oxd-primary-one-color)}[data-v-35991936] .oxd-autocomplete-wrapper,[data-v-51ddd696] .oxd-select-wrapper{min-width:150px}.orangehrm-timesheet-grid[data-v-4867abf0]{width:100%;padding:0 .625rem;grid-template-columns:100px 1fr;margin-bottom:1rem}.orangehrm-timesheet-text[data-v-4867abf0],.orangehrm-timesheet-title[data-v-4867abf0]{word-break:break-word;font-size:14px}.orangehrm-timesheet-title[data-v-4867abf0]{font-weight:700}.orangehrm-timesheet-footer[data-v-425cbc6c],.orangehrm-timesheet-header[data-v-425cbc6c]{display:flex;align-items:center;justify-content:space-between}.orangehrm-timesheet-header[data-v-425cbc6c]{gap:.4rem;flex-direction:column;border-bottom:1px solid #e8eaef}.orangehrm-timesheet-header--title[data-v-425cbc6c]{width:100%;box-sizing:border-box;padding:.6rem 1.2rem;border-bottom:1px solid #e8eaef}@media(min-width:800px){.orangehrm-timesheet-header[data-v-425cbc6c]{flex-direction:row}.orangehrm-timesheet-header--title[data-v-425cbc6c]{width:unset;border-bottom:unset}}.orangehrm-timesheet-header--options[data-v-425cbc6c]{width:100%;display:flex;flex-direction:column;padding:.6rem 1.2rem;box-sizing:border-box}@media(min-width:800px){.orangehrm-timesheet-header--options[data-v-425cbc6c]{width:unset;justify-content:center;align-items:center;flex-direction:row}}.orangehrm-timesheet-footer[data-v-425cbc6c]{padding:.6rem 1.2rem;border-top:1px solid #e8eaef}.orangehrm-timesheet-footer--options[data-v-425cbc6c]{gap:.4rem;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-timesheet-footer--options[data-v-425cbc6c] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-timesheet-footer--options[data-v-425cbc6c]{margin-left:unset;max-width:unset}.orangehrm-timesheet-footer--options[data-v-425cbc6c] .oxd-button--medium{width:unset}}.orangehrm-timesheet-body[data-v-425cbc6c]{overflow-x:auto}.orangehrm-timesheet-body-message[data-v-425cbc6c]{padding:.6rem 1.2rem}.orangehrm-timesheet-table[data-v-425cbc6c]{width:100%;text-align:left;border-collapse:collapse;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400}@media screen and (max-width:600px){.orangehrm-timesheet-table .--freeze-left[data-v-425cbc6c],.orangehrm-timesheet-table .--freeze-right[data-v-425cbc6c]{position:sticky;background-color:#fff;z-index:209}.orangehrm-timesheet-table .--freeze-left[data-v-425cbc6c]:after,.orangehrm-timesheet-table .--freeze-right[data-v-425cbc6c]:after{content:"";position:absolute;top:0;height:100%}.orangehrm-timesheet-table .--freeze-left[data-v-425cbc6c]{left:0}.orangehrm-timesheet-table .--freeze-left[data-v-425cbc6c]:after{right:0;border-right:1px solid #e8eaef}.orangehrm-timesheet-table .--freeze-right[data-v-425cbc6c]{right:0}.orangehrm-timesheet-table .--freeze-right[data-v-425cbc6c]:after{left:0;border-left:1px solid #e8eaef}}.orangehrm-timesheet-table-header-cell[data-v-425cbc6c]{padding:1rem 1.2rem;font-weight:700}.orangehrm-timesheet-table-header-cell.--center[data-v-425cbc6c]{text-align:center}.orangehrm-timesheet-table-header-row[data-v-425cbc6c]{border-bottom:1px solid #e8eaef}.orangehrm-timesheet-table-header .--day[data-v-425cbc6c]{display:block;font-size:16px}.orangehrm-timesheet-table-body-cell[data-v-425cbc6c]{position:relative;max-width:150px;padding:1rem 1.2rem}.orangehrm-timesheet-table-body-cell.--highlight[data-v-425cbc6c]{font-weight:700;background-color:#cfd3de}.orangehrm-timesheet-table-body-cell.--highlight-2[data-v-425cbc6c]{font-weight:700;color:#fff;background-color:#929baa}.orangehrm-timesheet-table-body-cell.--highlight-3[data-v-425cbc6c]{background-color:#f6f5fb}.orangehrm-timesheet-table-body-cell.--flex[data-v-425cbc6c]{display:flex;align-items:center;gap:.5rem}.orangehrm-timesheet-table-body-cell.--center[data-v-425cbc6c]{text-align:center}.orangehrm-timesheet-table-body-row[data-v-425cbc6c]{vertical-align:baseline;border-bottom:1px solid #e8eaef}.orangehrm-timesheet-table-body-row.--total[data-v-425cbc6c]{background-color:#cfd3de}.orangehrm-timesheet-table.--editable tr[data-v-425cbc6c]{border:unset}.orangehrm-timesheet-table.--editable td[data-v-425cbc6c],.orangehrm-timesheet-table.--editable th[data-v-425cbc6c]{padding:.5rem 1rem}.orangehrm-timesheet-table.--editable td.--duration-input[data-v-425cbc6c],.orangehrm-timesheet-table.--editable th.--duration-input[data-v-425cbc6c]{padding:.5rem .25rem}.orangehrm-timesheet-icon-comment[data-v-425cbc6c]{top:-5px;right:-5px;z-index:2;position:absolute}.orangehrm-timesheet-loader[data-v-425cbc6c]{width:100%;min-height:300px;display:flex;justify-content:center;align-items:center;background-color:#fff;z-index:200}.oxd-input-group[data-v-425cbc6c]{margin-bottom:0}[data-v-425cbc6c] .oxd-input-group__label-wrapper{display:none}[data-v-425cbc6c] .oxd-input{min-width:50px}.orangehrm-timeperiod-picker[data-v-e0a5176c]{gap:.5rem;display:grid;align-items:center;grid-template:"prev title next" "picker picker picker"/36px auto 36px}@media(min-width:800px){.orangehrm-timeperiod-picker[data-v-e0a5176c]{grid-template:"title prev picker next"/auto auto minmax(240px,max-content) auto}}.orangehrm-timeperiod-title[data-v-e0a5176c]{text-align:center;font-size:12px;grid-area:title}.orangehrm-timeperiod-icon.--prev[data-v-e0a5176c]{grid-area:prev}.orangehrm-timeperiod-icon.--next[data-v-e0a5176c]{grid-area:next}.oxd-input-group[data-v-e0a5176c]{margin-bottom:0;grid-area:picker}[data-v-e0a5176c] .oxd-input-group__label-wrapper{display:none}.orangehrm-timeperiod-title[data-v-54f42850]{font-size:12px;margin-right:10px}.orangehrm-form-hint[data-v-54f42850]{margin-right:auto;font-weight:600;font-size:.75rem;text-overflow:ellipsis;overflow:hidden}.orangehrm-project-admin-input[data-v-78aa890e]{display:flex;align-items:flex-start}.orangehrm-project-admin-input[data-v-78aa890e] .oxd-input-group__label-wrapper:empty{display:none}.orangehrm-project-delete-icon[data-v-78aa890e]{margin-left:1rem;margin-top:1rem}.orangehrm-activites-container[data-v-789130a9]{max-height:180px;overflow-y:auto;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-activites-container[data-v-789130a9]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-activites-container[data-v-789130a9]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-activites-container[data-v-789130a9]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-activites-container[data-v-789130a9]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}[data-v-789130a9] .oxd-checkbox-wrapper{word-break:break-word}[data-v-789130a9] .oxd-checkbox-wrapper .oxd-checkbox-input{flex-shrink:0}.orangehrm-main-actions[data-v-78f3e421]{gap:.4rem;display:flex;flex-direction:column}.orangehrm-main-actions[data-v-78f3e421] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-main-actions[data-v-78f3e421]{flex-direction:row}.orangehrm-main-actions[data-v-78f3e421] .oxd-button--medium{width:unset}}[data-v-1a8cbf98] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}[data-v-1a8cbf98] .card-footer-slot .oxd-table-cell-actions>*{margin:0!important}.orangehrm-switch-filter[data-v-17d6a43f]{display:flex;align-items:center;white-space:nowrap}.orangehrm-switch-filter-text[data-v-17d6a43f]{font-size:14px;margin-right:1rem}.orangehrm-switch-filter[data-v-e0465754]{display:flex;align-items:center;white-space:nowrap}.orangehrm-switch-filter-text[data-v-e0465754]{font-size:14px;margin-right:1rem}.orangehrm-switch-filter[data-v-b9b0d77c]{display:flex;align-items:center;white-space:nowrap}.orangehrm-switch-filter-text[data-v-b9b0d77c]{font-size:14px;margin-right:1rem}.orangehrm-leave-duration[data-v-36501732],.orangehrm-leave-duration[data-v-75ca43d6]{padding:.675rem 0}.orangehrm-leave-balance-text[data-v-a21fbcb8]{font-size:14px;margin-bottom:.25rem}.orangehrm-container[data-v-a21fbcb8]{padding:.5rem 0;max-height:165px;overflow-y:auto;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-container[data-v-a21fbcb8]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-a21fbcb8]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-a21fbcb8]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-a21fbcb8]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-leave-balance-text[data-v-94b8006c]{font-size:14px;margin-bottom:.25rem}.orangehrm-container[data-v-94b8006c]{padding:.5rem 0;max-height:165px;overflow-y:auto;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-container[data-v-94b8006c]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-94b8006c]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-94b8006c]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-94b8006c]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-leave-balance[data-v-56c2fc4a]{display:flex;align-items:center}.orangehrm-leave-balance .--help[data-v-56c2fc4a]{margin-left:5px}.orangehrm-leave-balance-text[data-v-56c2fc4a]{padding:.675rem 0}.orangehrm-leave-balance-text.--error[data-v-56c2fc4a]{color:#eb0910}.deleted-tag[data-v-dcd26948]{margin-left:auto}.orangehrm-modal-header[data-v-19c585fa]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-19c585fa]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-19c585fa]{margin:.25rem}.orangehrm-text-center-align[data-v-19c585fa]{text-align:center}.orangehrm-modal-header[data-v-68838f5c]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-68838f5c]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-text-center-align[data-v-68838f5c]{text-align:center}[data-v-a7f7cce0] .--status-grouped-field{display:flex;max-width:15rem}.label-is-entitlement-situational[data-v-a7f7cce0]{display:flex;align-items:center}.label-is-entitlement-situational .--help[data-v-a7f7cce0]{margin-left:5px}.modal-container[data-v-a7f7cce0]{width:90%;max-width:500px}[data-v-3acf3120] .--status-grouped-field{display:flex;max-width:15rem}.label-is-entitlement-situational[data-v-3acf3120]{display:flex;align-items:center}.label-is-entitlement-situational .--help[data-v-3acf3120]{margin-left:5px}.modal-container[data-v-3acf3120]{width:90%;max-width:500px}.orangehrm-modal-header[data-v-e36392b4]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-e36392b4]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-e36392b4]{margin:.25rem}.orangehrm-text-center-align[data-v-e36392b4]{text-align:center}.orangehrm-container[data-v-6f8e0531]{max-height:165px;overflow-y:auto;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-container[data-v-6f8e0531]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-6f8e0531]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-6f8e0531]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-6f8e0531]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-modal-header[data-v-0233dcca]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-0233dcca]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-0233dcca]{margin:.25rem}.orangehrm-text-center-align[data-v-0233dcca]{text-align:center}[data-v-7e1993c4] .--grouped-field{display:flex;flex-wrap:wrap}@media(min-width:800px){[data-v-7e1993c4] .--grouped-field{flex-wrap:nowrap}[data-v-7e1993c4] .--grouped-field .oxd-input-group{flex-shrink:0}}.orangehrm-leave-entitled[data-v-7e1993c4]{display:flex;align-items:center}@media(min-width:0px){.orangehrm-leave-entitled-text[data-v-7e1993c4]{margin-bottom:1.5rem}}@media(min-width:1000px){.orangehrm-leave-entitled-text[data-v-7e1993c4]{margin-bottom:unset}}[data-v-48d79cd0] .--status-grouped-field,[data-v-6485b72f] .--status-grouped-field{display:flex;max-width:13rem}.orangehrm-comment[data-v-222b3933]{box-sizing:border-box;padding:.5rem .5rem 0 0;display:flex}.orangehrm-comment-profile-image-wrapper[data-v-222b3933]{margin-right:.5rem}.orangehrm-comment-profile-image[data-v-222b3933]{width:70px;height:70px;display:flex;overflow:hidden;justify-content:center;box-sizing:border-box;border-radius:100%;border:.5rem solid #f6f5fb}.orangehrm-comment-profile-name p[data-v-222b3933]{font-weight:700;margin-bottom:.25rem}.orangehrm-comment-message[data-v-222b3933]{padding:.5rem 1rem;background-color:#f6f5fb;border-radius:.5rem;margin-bottom:.25rem;width:-moz-fit-content;width:fit-content}.orangehrm-comment-timestamp[data-v-222b3933]{text-align:right}.orangehrm-modal-content[data-v-cbb6349a]{max-height:200px;overflow:hidden auto;margin:.5rem 0;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-modal-content[data-v-cbb6349a]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-modal-content[data-v-cbb6349a]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-modal-content[data-v-cbb6349a]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-modal-content[data-v-cbb6349a]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-modal-header[data-v-7823af8c]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-7823af8c]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-7823af8c]{margin:.25rem}.orangehrm-text-center-align[data-v-7823af8c]{text-align:center}.orangehrm-header-container .actions[data-v-78ad5c40]{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.orangehrm-header-container span[data-v-78ad5c40]{margin-right:20px}[data-v-2e68cbb4] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}[data-v-2e68cbb4] .card-footer-slot .oxd-table-cell-actions>*{margin:0!important}.orangehrm-leave-filter[data-v-7abe0f65]{display:flex;align-items:center;white-space:nowrap}.orangehrm-leave-filter-text[data-v-7abe0f65]{font-size:14px;margin-right:1rem}.orangehrm-bottom-container[data-v-5cf2c6b8]{align-items:center;justify-content:space-between}.orangehrm-request-details-text[data-v-5cf2c6b8]{font-size:14px}[data-v-5cf2c6b8] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}[data-v-5cf2c6b8] .card-footer-slot .oxd-table-cell-actions>*{margin:0!important}[data-v-6ef58e5d] .--grouped-field{display:flex;flex-wrap:wrap}@media(min-width:800px){[data-v-6ef58e5d] .--grouped-field{flex-wrap:nowrap}}.orangehrm-leave-filter[data-v-6ef58e5d]{display:flex;align-items:center;white-space:nowrap}.orangehrm-leave-filter-text[data-v-6ef58e5d]{font-size:14px;margin-right:1rem}.orangehrm-field-row[data-v-6ea3f680]{grid-column-start:1;display:flex;justify-content:space-between;padding:.5rem .75rem}.orangehrm-field-label[data-v-6ea3f680]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}.orangehrm-login-layout[data-v-3dda64e6]{display:table;width:100%;height:100%}@media(min-width:0px){.orangehrm-login-layout[data-v-3dda64e6]{background-color:#f1f2f5}}@media(min-width:800px){.orangehrm-login-layout[data-v-3dda64e6]{background-color:var(--oxd-primary-one-color)}}.orangehrm-login-layout-blob[data-v-3dda64e6]{height:inherit;width:inherit;display:flex;position:relative;align-items:center;min-height:100vh}@media screen and (max-width:799px){.orangehrm-login-layout-blob[data-v-3dda64e6]:before{content:"";top:0;left:0;right:0;bottom:0;position:absolute;-webkit-mask:url(../img/blob-m.svg);mask:url(../img/blob-m.svg);-webkit-mask-position:bottom left;mask-position:bottom left;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;background-color:var(--oxd-primary-one-color)}}@media(min-width:800px){.orangehrm-login-layout-blob[data-v-3dda64e6]{background-image:url(../img/blob.svg);background-repeat:no-repeat;background-size:80% 100%}}.orangehrm-login-container[data-v-3dda64e6]{z-index:1;width:100%;display:flex;justify-content:center}@media(min-width:800px){.orangehrm-login-container[data-v-3dda64e6]{width:80%}}.orangehrm-login-logo[data-v-3dda64e6]{position:absolute;right:15%;padding:1rem;background-color:#f6f5fb;border-radius:100%;display:none}.orangehrm-login-logo img[data-v-3dda64e6]{width:10rem}@media(min-width:800px){.orangehrm-login-logo[data-v-3dda64e6]{display:block}}.orangehrm-login-slot-wrapper[data-v-3dda64e6]{padding:1rem 2rem;width:inherit}@media(min-width:800px){.orangehrm-login-slot-wrapper[data-v-3dda64e6]{padding:1rem 10rem}}.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile[data-v-3dda64e6]{padding:1rem;background-color:#f6f5fb;border-radius:100%;width:-moz-fit-content;width:fit-content;margin:0 auto;margin-bottom:1rem;display:block}.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile img[data-v-3dda64e6]{width:5rem}@media(min-width:800px){.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile[data-v-3dda64e6]{display:none}}.orangehrm-login-slot-wrapper .orangehrm-login-slot[data-v-3dda64e6]{background-color:#fff;padding:2rem 0;border-radius:1rem;margin:0 auto}@media(min-width:800px){.orangehrm-login-slot-wrapper .orangehrm-login-slot[data-v-3dda64e6]{background-color:transparent;padding:unset}}.orangehrm-login-branding[data-v-3dda64e6]{padding:1.5rem 1rem;background-color:#fff;border-radius:1rem;text-align:center;box-shadow:0 16px 35px 0 rgba(0,0,0,.08);margin:0 auto;margin-bottom:2rem}.orangehrm-login-branding img[data-v-3dda64e6]{width:100%;max-width:275px;height:auto;max-height:65px}@media(min-width:800px){.orangehrm-login-branding[data-v-3dda64e6]{width:80%;max-width:520px}}.orangehrm-login-social[data-v-3dda64e6]{padding:1rem 0}.orangehrm-login-social-text[data-v-3dda64e6]{text-align:center;margin-bottom:1rem}.orangehrm-login-social-icons[data-v-3dda64e6]{display:flex;justify-content:center}.orangehrm-login-social-icons .--loginwith[data-v-3dda64e6]{margin:0 .25rem}.orangehrm-card-container[data-v-3810ee3c]{box-shadow:3px 3px 10px #929baa}@media(min-width:800px){.orangehrm-card-container[data-v-3810ee3c]{width:100%}}.orangehrm-oauth-container[data-v-3810ee3c]{display:flex;width:inherit;height:inherit;padding:1rem 2rem;align-items:center;flex-direction:column;justify-content:center}@media(min-width:800px){.orangehrm-oauth-container[data-v-3810ee3c]{margin:0 auto;max-width:450px}}.orangehrm-oauth-branding[data-v-3810ee3c]{box-shadow:none}.orangehrm-oauth-list[data-v-3810ee3c]{padding-left:1rem}.orangehrm-oauth-list li[data-v-3810ee3c]{padding-bottom:10px}.orangehrm-oauth-button[data-v-3810ee3c]{flex:1}.orangehrm-oauth-button[data-v-3810ee3c]:nth-child(2){margin-top:.5rem}@media(min-width:800px){.orangehrm-oauth-button[data-v-3810ee3c]:nth-child(2){margin:0;margin-left:.5rem}}.orangehrm-oauth-button-container[data-v-3810ee3c]{display:flex;flex-direction:column;justify-content:center}@media(min-width:800px){.orangehrm-oauth-button-container[data-v-3810ee3c]{flex-direction:row}}.orangehrm-oauth-error[data-v-3810ee3c]{padding-left:1rem}.orangehrm-attendance-punchedIn-timezone[data-v-3d5e6918]{color:#929baa}.oxd-text--subtitle-2[data-v-40838874]{font-weight:600}.no-gap[data-v-40838874]{grid-gap:unset}.orangehrm-header[data-v-40838874]{display:flex}.orangehrm-header-total[data-v-40838874]{margin-left:auto}.orangehrm-punch-out-record[data-v-40838874]{padding-top:.5rem;box-sizing:border-box;border-top:1px solid #e8eaef}@media(min-width:800px){.orangehrm-punch-out-record[data-v-40838874]{border:unset;padding-top:unset;border-left:1px solid #e8eaef}}.oxd-table-card-cell[data-v-8f3074ce]{display:block}.oxd-table-card-cell .header[data-v-8f3074ce]{font-weight:700}.oxd-table-card-cell .timezone[data-v-8f3074ce]{color:#929baa;white-space:nowrap}.orangehrm-header-total[data-v-50a2ff8a]{margin-left:auto}.orangehrm-attendance-field-row[data-v-026fb4c8]{grid-column-start:1;display:flex;justify-content:space-between;padding:.5rem .75rem}.orangehrm-attendance-field-label[data-v-026fb4c8]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}[data-v-22f945c4] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}[data-v-22f945c4] .card-footer-slot .oxd-table-cell-actions>*{margin:0!important}.orangehrm-selected-employee[data-v-6ea34be5]{display:flex}@media(min-width:0px){.orangehrm-selected-employee[data-v-6ea34be5]{flex-direction:column}}@media(min-width:800px){.orangehrm-selected-employee[data-v-6ea34be5]{flex-direction:row}}.orangehrm-selected-employee-content[data-v-6ea34be5]{flex:1}.orangehrm-selected-employee-image-wrapper[data-v-6ea34be5]{padding-bottom:1.2rem}@media(min-width:800px){.orangehrm-selected-employee-image-wrapper[data-v-6ea34be5]{padding-top:1.2rem;padding-left:2rem;padding-right:2rem}}@media(min-width:1000px){.orangehrm-selected-employee-image-wrapper[data-v-6ea34be5]{padding-left:5rem;padding-right:5rem}}@media(min-width:1200px){.orangehrm-selected-employee-image-wrapper[data-v-6ea34be5]{padding-left:7rem;padding-right:7rem}}.orangehrm-selected-employee-image[data-v-6ea34be5]{width:120px;height:120px;border-radius:100%;display:flex;cursor:pointer;overflow:hidden;justify-content:center;box-sizing:border-box;border:.5rem solid #f6f5fb;box-shadow:1px 1px 18px 11px rgba(186,186,202,.24)}.orangehrm-selected-employee-imagesection[data-v-6ea34be5]{display:flex;align-items:center}@media(min-width:0px){.orangehrm-selected-employee-imagesection[data-v-6ea34be5]{flex-direction:row-reverse;justify-content:center}}@media(min-width:800px){.orangehrm-selected-employee-imagesection[data-v-6ea34be5]{flex-direction:column;justify-content:center}}.orangehrm-modal-header[data-v-2766d99a]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-2766d99a]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-2766d99a]{margin:.25rem}.orangehrm-text-center-align[data-v-2766d99a]{text-align:center}.orangehrm-maintenance-note[data-v-23b16e4f]{display:flex;flex-direction:column;overflow-wrap:break-word;padding:1.2rem;border-radius:1.2rem;color:#64728c;background-color:#e8eaef;font-size:14px}.orangehrm-maintenance-note-header[data-v-23b16e4f]{font-weight:700;margin-bottom:.4rem}.orangehrm-paper-container[data-v-3c1da283]{margin-top:1rem}.user-form-header[data-v-65c21a19]{display:flex;padding:1rem}.user-form-header-text[data-v-65c21a19]{font-size:.8rem;margin-right:1rem}.orangehrm-vacancy-list[data-v-65c21a19] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-vacancy-list[data-v-65c21a19] .card-header-slot .oxd-table-card-cell{display:flex;flex-direction:column;justify-content:center}.orangehrm-vacancy-list[data-v-65c21a19] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-vacancy-list[data-v-65c21a19] .card-header-slot-content.--left{display:flex;align-items:center;flex:2}.orangehrm-vacancy-list[data-v-65c21a19] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangerhrm-switch-wrapper[data-v-65c21a19]{display:flex;flex-direction:row;justify-content:space-between}@media(min-width:600px){.orangerhrm-switch-wrapper[data-v-65c21a19]{max-width:50%}}@media(min-width:800px){.orangerhrm-switch-wrapper[data-v-65c21a19]{max-width:100%}}.orangehrm-grid-item-span-2[data-v-65c21a19]{grid-column:span 2}.orangehrm-text[data-v-65c21a19]{font-size:12px;font-weight:600;color:#64728c}.orangehrm-text-label[data-v-65c21a19]{flex:1;padding-right:.2rem}.orangehrm-attachment-header[data-v-65c21a19]{justify-content:flex-start}.orangehrm-attachment-header__title[data-v-65c21a19]{margin-right:1rem}.orangehrm-vacancy-links[data-v-65c21a19]{padding:.5rem;border-radius:.5rem;background-color:#e8eaef}.orangehrm-label-link-wrapper[data-v-7a7e694e]{display:flex;flex-wrap:wrap}.orangehrm-label-link-wrapper[data-v-7a7e694e]:first-of-type{margin-bottom:.25rem}.orangehrm-text-label[data-v-7a7e694e]{font-size:12px;font-weight:600;padding-right:.2rem;color:#64728c}.orangehrm-vacancy-link[data-v-7a7e694e]{font-size:12px;font-weight:600;margin-left:1rem;text-decoration:none;word-break:break-all;font-family:Nunito Sans,sans-serif;color:var(--oxd-primary-one-color)}.user-form-header[data-v-00048e4c]{display:flex;padding:1rem}.user-form-header-text[data-v-00048e4c]{font-size:.8rem;margin-right:1rem}.orangehrm-vacancy-list[data-v-00048e4c] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-vacancy-list[data-v-00048e4c] .card-header-slot .oxd-table-card-cell{display:flex;flex-direction:column;justify-content:center}.orangehrm-vacancy-list[data-v-00048e4c] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-vacancy-list[data-v-00048e4c] .card-header-slot-content.--left{display:flex;align-items:center;flex:2}.orangehrm-vacancy-list[data-v-00048e4c] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangerhrm-switch-wrapper[data-v-00048e4c]{display:flex;flex-direction:row;justify-content:space-between}@media(min-width:600px){.orangerhrm-switch-wrapper[data-v-00048e4c]{max-width:50%}}@media(min-width:800px){.orangerhrm-switch-wrapper[data-v-00048e4c]{max-width:100%}}.orangehrm-grid-item-span-2[data-v-00048e4c]{grid-column:span 2}.orangehrm-text[data-v-00048e4c]{font-size:12px;font-weight:600;color:#64728c}.orangehrm-text-label[data-v-00048e4c]{flex:1;padding-right:.2rem}.orangehrm-attachment-header[data-v-00048e4c]{justify-content:flex-start}.orangehrm-attachment-header__title[data-v-00048e4c]{margin-right:1rem}.orangehrm-vacancy-links[data-v-00048e4c]{padding:.5rem;border-radius:.5rem;background-color:#e8eaef}.user-form-header[data-v-d4ce637a]{display:flex;padding:1rem}.user-form-header-text[data-v-d4ce637a]{font-size:.8rem;margin-right:1rem}.orangehrm-vacancy-list[data-v-d4ce637a] .card-header-slot{border-bottom:1px solid #e8eaef;margin-bottom:5px}.orangehrm-vacancy-list[data-v-d4ce637a] .card-header-slot .oxd-table-card-cell{display:flex;flex-direction:column;justify-content:center}.orangehrm-vacancy-list[data-v-d4ce637a] .card-header-slot .header{margin-right:5px;font-size:1rem}.orangehrm-vacancy-list[data-v-d4ce637a] .card-header-slot-content.--left{display:flex;align-items:center;flex:2}.orangehrm-vacancy-list[data-v-d4ce637a] .card-body-slot{display:unset;display:grid;grid-template-columns:1fr 1fr;grid-gap:.2rem}.orangerhrm-switch-wrapper[data-v-d4ce637a]{display:flex;flex-direction:row;justify-content:space-between}@media(min-width:600px){.orangerhrm-switch-wrapper[data-v-d4ce637a]{max-width:50%}}@media(min-width:800px){.orangerhrm-switch-wrapper[data-v-d4ce637a]{max-width:100%}}.orangehrm-grid-item-span-2[data-v-d4ce637a]{grid-column:span 2}.orangehrm-text[data-v-d4ce637a]{font-size:12px;font-weight:600;color:#64728c}.orangehrm-text-label[data-v-d4ce637a]{flex:1;padding-right:.2rem}.orangehrm-attachment-header[data-v-d4ce637a]{justify-content:flex-start}.orangehrm-attachment-header__title[data-v-d4ce637a]{margin-right:1rem}.orangehrm-vacancy-links[data-v-d4ce637a]{padding:.5rem;border-radius:.5rem;background-color:#e8eaef}.orangehrm-recruitment-interviewer-input[data-v-73842d23]{display:flex;align-items:flex-start}.orangehrm-recruitment-interviewer-input[data-v-73842d23] .oxd-input-group__label-wrapper:empty{display:none}.orangehrm-recruitment-delete-icon[data-v-73842d23]{margin-left:1rem;margin-top:1rem}.orangehrm-save-candidate-page-full-width[data-v-e75f8a7a]{grid-column:1/span 2}.orangehrm-save-candidate-page-grid-checkbox .oxd-input-group[data-v-e75f8a7a]{flex-direction:row-reverse;justify-content:flex-end}.past-employee-tag[data-v-5c755293]{margin-left:auto}.orangehrm-recruitment[data-v-2d6dc297]{display:flex;justify-content:space-between}.orangehrm-recruitment-actions[data-v-2d6dc297]{gap:.4rem;display:flex;flex-wrap:wrap;max-width:120px;margin-left:60px;justify-content:flex-end}.orangehrm-recruitment-actions[data-v-2d6dc297] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-recruitment-actions[data-v-2d6dc297]{margin-left:unset;max-width:unset}.orangehrm-recruitment-actions[data-v-2d6dc297] .oxd-button--medium{width:unset}}[data-v-2d6dc297] .oxd-input-group{margin-bottom:1rem}@media(min-width:800px){[data-v-2d6dc297] .oxd-input-group{margin-bottom:0}}.orangehrm-header-container[data-v-fa8534b2]{padding:0}.orangehrm-candidate-grid-checkbox .oxd-input-group[data-v-fa8534b2]{flex-direction:row-reverse;justify-content:flex-end}.orangehrm-card-container[data-v-5829e84c]{padding:1.2rem 0}.orangehrm-background-container[data-v-251847f9]{height:80%}.orangehrm-vacancy-description[data-v-251847f9]{font-size:14px;font-weight:700}.orangehrm-applicant-card-pre-tag[data-v-251847f9]{margin-top:0;margin-bottom:0;font-weight:400;white-space:pre-wrap;word-wrap:break-word;font-family:Nunito Sans,sans-serif}.orangehrm-applicant-card-footer[data-v-251847f9]{display:flex;justify-content:left}.orangehrm-applicant-card-anchor-tag[data-v-251847f9]{cursor:pointer;padding-top:.5rem;color:var(--oxd-primary-one-color)}.orangehrm-applicant-container[data-v-251847f9]{width:100%;display:block}.orangehrm-applicant-container-row[data-v-251847f9]{width:inherit}.orangehrm-applicant-container-colspan-2[data-v-251847f9]{grid-column:1/span 2}.orangehrm-applicant-container-grid-checkbox .oxd-input-group[data-v-251847f9]{flex-direction:row-reverse;justify-content:flex-end}.orangehrm-container[data-v-251847f9]{height:100%;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin;overflow:auto;position:relative;margin:0}.orangehrm-container[data-v-251847f9]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-251847f9]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-251847f9]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-251847f9]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-container-loader[data-v-251847f9]{margin:0 auto;background-color:#fff;position:absolute;top:50%;left:0;right:0;bottom:0}.orangehrm-container-img[data-v-251847f9]{height:40px}.orangehrm-card-container[data-v-251847f9]{width:80%;margin:1rem auto;padding:.75rem 1.5rem}.orangehrm-card-container-header[data-v-251847f9]{display:flex;justify-content:space-between;flex-direction:column-reverse}@media(min-width:800px){.orangehrm-card-container-header[data-v-251847f9]{flex-direction:row}}.orangehrm-card-container-header .orangehrm-main-title[data-v-251847f9]{word-break:break-word}@media(min-width:800px){.orangehrm-card-container-header .orangehrm-main-title[data-v-251847f9]{align-self:center}}.orangehrm-paper-container[data-v-251847f9]{width:80%;background:unset;margin:0 auto;padding:.75rem 1.5rem}.orangehrm-vacancy-card[data-v-251847f9]{display:block}.orangehrm-vacancy-card-header[data-v-251847f9]{display:flex;align-items:center;word-break:break-word;justify-content:space-between}.orangehrm-vacancy-card-header button[data-v-251847f9]{flex-shrink:0}.orangehrm-vacancy-card-anchor-tag[data-v-251847f9]{cursor:pointer;font-weight:600;padding-top:.5rem;color:var(--oxd-primary-one-color);font-size:14px}.orangehrm-vacancy-card-body[data-v-251847f9]{position:relative;overflow:hidden;max-height:60px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-251847f9]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:4){.orangehrm-vacancy-card-body[data-v-251847f9]{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-251847f9]:after{display:none}}@media(min-width:800px){.orangehrm-vacancy-card-body[data-v-251847f9]{position:relative;overflow:hidden;max-height:30px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-251847f9]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:2){.orangehrm-vacancy-card-body[data-v-251847f9]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-251847f9]:after{display:none}}}.orangehrm-vacancy-card-pre-tag[data-v-251847f9]{margin-top:0;font-family:Nunito Sans,sans-serif;white-space:pre-wrap;word-wrap:break-word}.orangehrm-vacancy-card-footer[data-v-251847f9]{display:flex;justify-content:left}.orangehrm-vacancy-list-poweredby[data-v-251847f9]{font-size:12px;margin-bottom:.5rem}.oxd-brand-banner[data-v-251847f9]{flex:1;height:32px;margin-bottom:8px}@media(min-width:800px){.oxd-brand-banner[data-v-251847f9]{flex:0;margin-bottom:0}}.orangehrm-container[data-v-251847f9]{padding:0;height:72vh}@media(min-width:800px){.orangehrm-container[data-v-251847f9]{height:75vh}}@media screen and (min-width:1536px){.orangehrm-container[data-v-251847f9]{height:85vh}}@media screen and (min-width:2560px){.orangehrm-container[data-v-251847f9]{height:90vh}}.orangehrm-background-container[data-v-68e0eff5]{height:80%}.orangehrm-vacancy-description[data-v-68e0eff5]{font-size:14px;font-weight:700}.orangehrm-applicant-card-pre-tag[data-v-68e0eff5]{margin-top:0;margin-bottom:0;font-weight:400;white-space:pre-wrap;word-wrap:break-word;font-family:Nunito Sans,sans-serif}.orangehrm-applicant-card-footer[data-v-68e0eff5]{display:flex;justify-content:left}.orangehrm-applicant-card-anchor-tag[data-v-68e0eff5]{cursor:pointer;padding-top:.5rem;color:var(--oxd-primary-one-color)}.orangehrm-applicant-container[data-v-68e0eff5]{width:100%;display:block}.orangehrm-applicant-container-row[data-v-68e0eff5]{width:inherit}.orangehrm-applicant-container-colspan-2[data-v-68e0eff5]{grid-column:1/span 2}.orangehrm-applicant-container-grid-checkbox .oxd-input-group[data-v-68e0eff5]{flex-direction:row-reverse;justify-content:flex-end}.orangehrm-container[data-v-68e0eff5]{height:100%;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin;overflow:auto;position:relative;margin:0}.orangehrm-container[data-v-68e0eff5]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-68e0eff5]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-68e0eff5]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-68e0eff5]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-container-loader[data-v-68e0eff5]{margin:0 auto;background-color:#fff;position:absolute;top:50%;left:0;right:0;bottom:0}.orangehrm-container-img[data-v-68e0eff5]{height:40px}.orangehrm-card-container[data-v-68e0eff5]{width:80%;margin:1rem auto;padding:.75rem 1.5rem}.orangehrm-card-container-header[data-v-68e0eff5]{display:flex;justify-content:space-between;flex-direction:column-reverse}@media(min-width:800px){.orangehrm-card-container-header[data-v-68e0eff5]{flex-direction:row}}.orangehrm-card-container-header .orangehrm-main-title[data-v-68e0eff5]{word-break:break-word}@media(min-width:800px){.orangehrm-card-container-header .orangehrm-main-title[data-v-68e0eff5]{align-self:center}}.orangehrm-paper-container[data-v-68e0eff5]{width:80%;background:unset;margin:0 auto;padding:.75rem 1.5rem}.orangehrm-vacancy-card[data-v-68e0eff5]{display:block}.orangehrm-vacancy-card-header[data-v-68e0eff5]{display:flex;align-items:center;word-break:break-word;justify-content:space-between}.orangehrm-vacancy-card-header button[data-v-68e0eff5]{flex-shrink:0}.orangehrm-vacancy-card-anchor-tag[data-v-68e0eff5]{cursor:pointer;font-weight:600;padding-top:.5rem;color:var(--oxd-primary-one-color);font-size:14px}.orangehrm-vacancy-card-body[data-v-68e0eff5]{position:relative;overflow:hidden;max-height:60px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-68e0eff5]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:4){.orangehrm-vacancy-card-body[data-v-68e0eff5]{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-68e0eff5]:after{display:none}}@media(min-width:800px){.orangehrm-vacancy-card-body[data-v-68e0eff5]{position:relative;overflow:hidden;max-height:30px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-68e0eff5]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:2){.orangehrm-vacancy-card-body[data-v-68e0eff5]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-68e0eff5]:after{display:none}}}.orangehrm-vacancy-card-pre-tag[data-v-68e0eff5]{margin-top:0;font-family:Nunito Sans,sans-serif;white-space:pre-wrap;word-wrap:break-word}.orangehrm-vacancy-card-footer[data-v-68e0eff5]{display:flex;justify-content:left}.orangehrm-vacancy-list-poweredby[data-v-68e0eff5]{font-size:12px;margin-bottom:.5rem}.oxd-brand-banner[data-v-68e0eff5]{flex:1;height:32px;margin-bottom:8px}@media(min-width:800px){.oxd-brand-banner[data-v-68e0eff5]{flex:0;margin-bottom:0}}.orangehrm-container[data-v-68e0eff5]{padding:0;height:72vh}@media(min-width:800px){.orangehrm-container[data-v-68e0eff5]{height:75vh}}@media screen and (min-width:1536px){.orangehrm-container[data-v-68e0eff5]{height:85vh}}@media screen and (min-width:2560px){.orangehrm-container[data-v-68e0eff5]{height:90vh}}.orangehrm-modal-header[data-v-76269556]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-76269556]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-76269556]{margin:.25rem}.orangehrm-text-center-align[data-v-76269556]{text-align:center}.orangehrm-background-container[data-v-316ef8c9]{height:80%}.orangehrm-vacancy-description[data-v-316ef8c9]{font-size:14px;font-weight:700}.orangehrm-applicant-card-pre-tag[data-v-316ef8c9]{margin-top:0;margin-bottom:0;font-weight:400;white-space:pre-wrap;word-wrap:break-word;font-family:Nunito Sans,sans-serif}.orangehrm-applicant-card-footer[data-v-316ef8c9]{display:flex;justify-content:left}.orangehrm-applicant-card-anchor-tag[data-v-316ef8c9]{cursor:pointer;padding-top:.5rem;color:var(--oxd-primary-one-color)}.orangehrm-applicant-container[data-v-316ef8c9]{width:100%;display:block}.orangehrm-applicant-container-row[data-v-316ef8c9]{width:inherit}.orangehrm-applicant-container-colspan-2[data-v-316ef8c9]{grid-column:1/span 2}.orangehrm-applicant-container-grid-checkbox .oxd-input-group[data-v-316ef8c9]{flex-direction:row-reverse;justify-content:flex-end}.orangehrm-container[data-v-316ef8c9]{height:100%;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin;overflow:auto;position:relative;margin:0}.orangehrm-container[data-v-316ef8c9]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-316ef8c9]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-316ef8c9]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-316ef8c9]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-container-loader[data-v-316ef8c9]{margin:0 auto;background-color:#fff;position:absolute;top:50%;left:0;right:0;bottom:0}.orangehrm-container-img[data-v-316ef8c9]{height:40px}.orangehrm-card-container[data-v-316ef8c9]{width:80%;margin:1rem auto;padding:.75rem 1.5rem}.orangehrm-card-container-header[data-v-316ef8c9]{display:flex;justify-content:space-between;flex-direction:column-reverse}@media(min-width:800px){.orangehrm-card-container-header[data-v-316ef8c9]{flex-direction:row}}.orangehrm-card-container-header .orangehrm-main-title[data-v-316ef8c9]{word-break:break-word}@media(min-width:800px){.orangehrm-card-container-header .orangehrm-main-title[data-v-316ef8c9]{align-self:center}}.orangehrm-paper-container[data-v-316ef8c9]{width:80%;background:unset;margin:0 auto;padding:.75rem 1.5rem}.orangehrm-vacancy-card[data-v-316ef8c9]{display:block}.orangehrm-vacancy-card-header[data-v-316ef8c9]{display:flex;align-items:center;word-break:break-word;justify-content:space-between}.orangehrm-vacancy-card-header button[data-v-316ef8c9]{flex-shrink:0}.orangehrm-vacancy-card-anchor-tag[data-v-316ef8c9]{cursor:pointer;font-weight:600;padding-top:.5rem;color:var(--oxd-primary-one-color);font-size:14px}.orangehrm-vacancy-card-body[data-v-316ef8c9]{position:relative;overflow:hidden;max-height:60px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-316ef8c9]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:4){.orangehrm-vacancy-card-body[data-v-316ef8c9]{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-316ef8c9]:after{display:none}}@media(min-width:800px){.orangehrm-vacancy-card-body[data-v-316ef8c9]{position:relative;overflow:hidden;max-height:30px;line-height:15px;justify-content:space-between;word-break:break-all}.orangehrm-vacancy-card-body[data-v-316ef8c9]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:15px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:2){.orangehrm-vacancy-card-body[data-v-316ef8c9]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-vacancy-card-body[data-v-316ef8c9]:after{display:none}}}.orangehrm-vacancy-card-pre-tag[data-v-316ef8c9]{margin-top:0;font-family:Nunito Sans,sans-serif;white-space:pre-wrap;word-wrap:break-word}.orangehrm-vacancy-card-footer[data-v-316ef8c9]{display:flex;justify-content:left}.orangehrm-vacancy-list-poweredby[data-v-316ef8c9]{font-size:12px;margin-bottom:.5rem}.oxd-brand-banner[data-v-316ef8c9]{flex:1;height:32px;margin-bottom:8px}@media(min-width:800px){.oxd-brand-banner[data-v-316ef8c9]{flex:0;margin-bottom:0}}.orangehrm-container[data-v-316ef8c9]{padding:0;height:72vh}@media(min-width:800px){.orangehrm-container[data-v-316ef8c9]{height:75vh}}@media screen and (min-width:1536px){.orangehrm-container[data-v-316ef8c9]{height:85vh}}@media screen and (min-width:2560px){.orangehrm-container[data-v-316ef8c9]{height:90vh}}.orangehrm-attachment[data-v-451febef]{border-radius:1.2rem;background-color:#fff}.orangehrm-attachment-header[data-v-451febef]{display:flex;overflow-wrap:break-word;align-items:center;padding:25px}.orangehrm-attachment-header button[data-v-451febef]{margin-left:1rem;white-space:nowrap}.orangehrm-module-field-row[data-v-7cf38636]{grid-column-start:1;display:flex;justify-content:space-between;padding:2rem 0}.orangehrm-module-field-label[data-v-7cf38636]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}.orangehrm-module-field-row[data-v-f93b79d6]{grid-column-start:1;display:flex;justify-content:space-between;padding:2rem 0}.orangehrm-module-field-label[data-v-f93b79d6]{box-sizing:border-box;font-family:Nunito Sans,sans-serif;color:#64728c;font-size:14px;font-weight:400;line-height:1.5;border-radius:.65rem;padding:.675rem .5rem;padding:0;flex-basis:75%}.orangehrm-button-row[data-v-07c0323b]{gap:.4rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-button-row[data-v-07c0323b] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-button-row[data-v-07c0323b]{margin-left:unset;max-width:unset}.orangehrm-button-row[data-v-07c0323b] .oxd-button--medium{width:unset}}.orangehrm-button-row[data-v-d6976f66]{gap:.4rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-button-row[data-v-d6976f66] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-button-row[data-v-d6976f66]{margin-left:unset;max-width:unset}.orangehrm-button-row[data-v-d6976f66] .oxd-button--medium{width:unset}}.oxd-table-card-cell[data-v-ab384128]{display:block}.oxd-table-card-cell .header[data-v-ab384128]{font-weight:700}.oxd-table-card-cell .time[data-v-ab384128]{white-space:nowrap}[data-v-0a23ca8f] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}[data-v-0a23ca8f] .card-footer-slot .oxd-table-cell-actions>*{margin:0!important}[data-v-2415900c] .card-footer-slot .oxd-table-cell-actions,[data-v-f1a9132e] .card-footer-slot .oxd-table-cell-actions{justify-content:flex-end}.orangehrm-tracker-rating-button[data-v-21511c97]{margin-right:.6rem;padding-right:.6rem;padding-left:.6rem}.orangehrm-tracker-rating-icon[data-v-21511c97]{vertical-align:bottom}.--positive[data-v-21511c97]{color:#34bc40}.--negative[data-v-21511c97]{color:#eb0910}.--deselected[data-v-21511c97]{background-color:#fff}.orangehrm-add-tracker-log-ratings-container[data-v-38b5fab4],.orangehrm-add-tracker-log-ratings-container[data-v-5f6526aa]{padding-bottom:.6rem}.orangehrm-employee-tracker-log[data-v-6a9799ac]{display:flex;flex-direction:row}.orangehrm-employee-tracker-log img[data-v-6a9799ac]{width:60px;height:60px;border-radius:100%;display:flex;overflow:hidden;box-sizing:border-box;border:.1rem solid #f6f5fb}.orangehrm-employee-tracker-log-image-section[data-v-6a9799ac]{display:flex}.orangehrm-employee-tracker-log-content-section[data-v-6a9799ac]{display:flex;flex-direction:column;width:100%;margin-left:1.2rem;margin-right:1.2rem}.orangehrm-employee-tracker-log-content-container[data-v-6a9799ac]{background-color:#fff;border-radius:1.2rem;padding:1.2rem;margin-top:.3rem;margin-bottom:.3rem}.orangehrm-employee-tracker-log-header[data-v-6a9799ac]{display:flex;justify-content:space-between;padding-bottom:.6rem;align-items:flex-start}.orangehrm-employee-tracker-log-title[data-v-6a9799ac]{display:flex}@media(min-width:0px){.orangehrm-employee-tracker-log-title[data-v-6a9799ac]{flex-direction:column}}@media(min-width:600px){.orangehrm-employee-tracker-log-title[data-v-6a9799ac]{flex-direction:row;padding-right:2.4rem}}.orangehrm-employee-tracker-log-title-text[data-v-6a9799ac]{font-weight:700;font-size:21px;padding-right:.6rem}.orangehrm-employee-tracker-log-title-icon[data-v-6a9799ac]{min-width:21px;min-height:21px}.orangehrm-employee-tracker-log-title-icon.--positive[data-v-6a9799ac]{color:#34bc40}.orangehrm-employee-tracker-log-title-icon.--negative[data-v-6a9799ac]{color:#eb0910}.orangehrm-employee-tracker-log-body-text[data-v-6a9799ac]{font-size:12px}.orangehrm-employee-tracker-log-reviewer[data-v-6a9799ac]{display:flex}.orangehrm-employee-tracker-log-reviewer-name[data-v-6a9799ac]{font-weight:700;margin-left:1.2rem;font-size:14px}.orangehrm-employee-tracker-log-reviewer-date[data-v-6a9799ac]{display:flex;flex-direction:column;margin-top:.3rem;margin-left:1.2rem;font-size:12px}.orangehrm-employee-tracker-log-reviewer-date-container[data-v-6a9799ac]{display:flex;flex-direction:row;align-items:center}.orangehrm-employee-tracker-log-reviewer-date-icon[data-v-6a9799ac]{margin-right:.3rem}.orangehrm-container[data-v-f225ba5e]{overflow:auto;max-height:400px;min-height:400px;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-container[data-v-f225ba5e]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-f225ba5e]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-f225ba5e]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-f225ba5e]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-container-loader[data-v-f225ba5e]{margin:0 auto;background-color:#fff}.orangehrm-scroll-card[data-v-f225ba5e]{padding:.5rem 1rem;margin-bottom:.5rem}.orangehrm-scroll-card-header[data-v-f225ba5e]{display:flex;justify-content:space-between}.orangehrm-employee-tracker[data-v-f225ba5e]{display:flex;overflow:hidden}@media(min-width:0px){.orangehrm-employee-tracker[data-v-f225ba5e]{flex-direction:column}}@media(min-width:600px){.orangehrm-employee-tracker[data-v-f225ba5e]{flex-direction:row}}.orangehrm-employee-tracker-image-wrapper[data-v-f225ba5e]{padding:.6rem 1.2rem}.orangehrm-employee-tracker img[data-v-f225ba5e]{width:90px;height:90px;border-radius:100%;display:flex;overflow:hidden;justify-content:center;box-sizing:border-box;border:.5rem solid #f6f5fb}.orangehrm-employee-tracker-image-section[data-v-f225ba5e]{display:flex;align-items:center}@media(min-width:0px){.orangehrm-employee-tracker-image-section[data-v-f225ba5e]{flex-direction:row-reverse;justify-content:center}}@media(min-width:800px){.orangehrm-employee-tracker-image-section[data-v-f225ba5e]{flex-direction:column;justify-content:center}}.orangehrm-employee-tracker-header-section[data-v-f225ba5e]{display:flex}@media(min-width:0px){.orangehrm-employee-tracker-header-section[data-v-f225ba5e]{flex-direction:column;align-items:center;text-align:center}}@media(min-width:600px){.orangehrm-employee-tracker-header-section[data-v-f225ba5e]{flex-direction:row;align-items:flex-start;text-align:start}}.orangehrm-employee-tracker-header[data-v-f225ba5e]{display:flex;flex-direction:column;padding-left:1.2rem;padding-right:.6rem;padding-top:1.2rem}.orangehrm-employee-tracker-header-title[data-v-f225ba5e]{font-weight:700;font-size:21px}.orangehrm-employee-tracker-header-subtitle[data-v-f225ba5e]{font-weight:700;color:#929baa}.orangehrm-employee-tracker-ratings[data-v-f225ba5e]{display:flex;padding-top:1.2rem}.orangehrm-employee-tracker-ratings-info[data-v-f225ba5e]{display:flex;flex-direction:row;padding-left:.6rem;padding-right:.6rem;text-align:center}.orangehrm-employee-tracker-ratings-icon[data-v-f225ba5e]{padding-right:.6rem;min-width:21px;min-height:21px}.orangehrm-employee-tracker-ratings-text[data-v-f225ba5e]{font-size:21px}.orangehrm-employee-tracker-list-header[data-v-f225ba5e]{font-size:16px;font-weight:800}.orangehrm-employee-tracker-no-records[data-v-f225ba5e]{display:flex;min-height:inherit;justify-content:center;align-items:center}.--positive[data-v-f225ba5e]{color:#34bc40}.--negative[data-v-f225ba5e]{color:#eb0910}.orangehrm-paper-container[data-v-f225ba5e]{padding-bottom:2.4rem}.orangehrm-performance-review-title[data-v-21b21277]{font-size:14px;font-weight:800}.orangehrm-performance-review-bold[data-v-21b21277]{font-weight:700}.orangehrm-performance-review-rating[data-v-21b21277]{display:flex;flex-direction:column}.orangehrm-performance-review-rating-number[data-v-21b21277]{font-weight:700;color:var(--oxd-primary-one-color)}.orangehrm-performance-review-owner[data-v-21b21277]{display:flex;flex-direction:row;align-items:center;margin-top:1.2rem;margin-bottom:1.2rem}.orangehrm-performance-review-owner img[data-v-21b21277]{width:75px;height:75px;border-radius:100%;display:flex;flex-shrink:0;overflow:hidden;justify-content:center;box-sizing:border-box}.orangehrm-performance-review-owner-employee-section[data-v-21b21277]{display:flex}.orangehrm-performance-review-owner-employee[data-v-21b21277]{display:flex;flex-direction:column;padding-left:1.2rem}.orangehrm-performance-review-owner-employee-job[data-v-21b21277],.orangehrm-performance-review-owner-employee-name[data-v-21b21277]{font-weight:700;font-size:18px;word-break:break-word}.orangehrm-performance-review-owner-employee-job[data-v-21b21277]{color:#929baa}.orangehrm-performance-review-final-rating[data-v-21b21277]{align-self:center}.orangehrm-performance-review-column[data-v-21b21277]{margin-bottom:.5rem}.orangehrm-performance-review-details[data-v-21b21277]{display:flex}.orangehrm-performance-review-details-grid[data-v-21b21277]{width:100%;align-items:center}@media(min-width:800px){.orangehrm-performance-review-grid[data-v-2711f6e6]{grid-template-columns:33.3333333333% 110px 1fr .5fr}}.orangehrm-performance-review-grid[data-v-2711f6e6] .oxd-textarea{min-height:unset}.orangehrm-performance-review-title[data-v-2711f6e6]{font-size:14px;font-weight:800}.orangehrm-performance-review-bold[data-v-2711f6e6]{font-weight:700}.orangehrm-performance-review-read[data-v-2711f6e6]{margin-top:.3rem;margin-bottom:1.2rem}@media(min-width:800px){.orangehrm-performance-review-read[data-v-2711f6e6]{margin-top:1.2rem;margin-bottom:0}}.orangehrm-evaluation-header[data-v-d193810c]{display:flex;align-items:center;justify-content:space-between}.orangehrm-evaluation-header-grid[data-v-d193810c]{width:100%}.orangehrm-evaluation-title[data-v-d193810c]{display:flex;align-items:center;margin-bottom:1rem}.orangehrm-evaluation-title-profile-image[data-v-d193810c]{width:40px;height:40px;border-radius:100%;display:flex;flex-shrink:0;justify-content:center;box-sizing:border-box}.orangehrm-evaluation-title-name[data-v-d193810c]{margin-left:1rem;word-break:break-word}.orangehrm-evaluation-grid[data-v-d193810c]{padding-top:.5rem}@media(min-width:800px){.orangehrm-evaluation-grid[data-v-d193810c]{grid-template-columns:33.3333333333% 110px 1fr .5fr}}.orangehrm-evaluation-grid-header[data-v-d193810c]{display:none;margin-bottom:1rem}@media(min-width:800px){.orangehrm-evaluation-grid-header[data-v-d193810c]{display:block}}.orangehrm-evaluation-grid-kpi[data-v-d193810c]{margin-bottom:1rem}@media(min-width:800px){.orangehrm-evaluation-grid-kpi-header[data-v-d193810c]{display:none}}.orangehrm-evaluation-grid-kpi-label[data-v-d193810c]{font-weight:700}@media(min-width:800px){.orangehrm-evaluation-grid-kpi-label[data-v-d193810c]{text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}.orangehrm-evaluation-grid-kpi-minmax[data-v-d193810c]{font-size:.75rem}@media(min-width:800px){.orangehrm-evaluation-grid-general[data-v-d193810c]{display:flex;align-items:center}}.orangehrm-evaluation-grid-general-label[data-v-d193810c]{font-weight:700}.orangehrm-evaluation-grid-spacer[data-v-d193810c]{padding:.5rem 0}@media(min-width:800px){.orangehrm-evaluation-grid-spacer[data-v-d193810c]{display:none}}.orangehrm-evaluation-grid-spacer-md[data-v-d193810c]{display:none}@media(min-width:800px){.orangehrm-evaluation-grid-spacer-md[data-v-d193810c]{display:block}}.orangehrm-evaluation-grid[data-v-d193810c] .oxd-textarea{min-height:unset;height:58px}.orangehrm-evaluation-grid[data-v-d193810c] .oxd-input{text-align:center;font-size:1.2rem;height:58px}.orangehrm-evaluation .orangehrm-main-title[data-v-d193810c]{margin-bottom:.75rem}.orangehrm-modal-header[data-v-76b5ab1c]{margin-bottom:1.2rem;display:flex;justify-content:center}.orangehrm-modal-footer[data-v-76b5ab1c]{margin-top:1.2rem;display:flex;justify-content:center}.orangehrm-button-margin[data-v-76b5ab1c]{margin:.25rem}.orangehrm-text-center-align[data-v-76b5ab1c]{text-align:center}.orangehrm-performance-review-title[data-v-ecbdbb4c]{font-size:14px;font-weight:800}.orangehrm-performance-review-actions[data-v-ecbdbb4c]{gap:.4rem;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-performance-review-actions[data-v-ecbdbb4c] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-performance-review-actions[data-v-ecbdbb4c]{margin-left:unset;max-width:unset}.orangehrm-performance-review-actions[data-v-ecbdbb4c] .oxd-button--medium{width:unset}}.orangehrm-performance-review-title[data-v-574fdbb6]{font-size:14px;font-weight:800}.orangehrm-performance-review-actions[data-v-574fdbb6]{gap:.4rem;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:120px;margin-left:60px}.orangehrm-performance-review-actions[data-v-574fdbb6] .oxd-button--medium{width:100%}@media(min-width:800px){.orangehrm-performance-review-actions[data-v-574fdbb6]{margin-left:unset;max-width:unset}.orangehrm-performance-review-actions[data-v-574fdbb6] .oxd-button--medium{width:unset}}.orangehrm-profile-picture[data-v-49d66b74]{display:block;height:90px;width:90px;margin:0 auto;overflow:hidden;border-radius:50%}.orangehrm-profile-picture img[data-v-49d66b74]{height:90px;width:90px}.orangehrm-directory-card[data-v-0415b0f1]{height:auto;cursor:pointer;overflow:hidden;padding:.5rem 1rem}.orangehrm-directory-card-header[data-v-0415b0f1]{font-size:14px;min-height:28px;font-weight:700;text-align:center;margin-top:1rem;margin-bottom:.75rem;word-break:break-word}.orangehrm-directory-card-header.--break-words[data-v-0415b0f1]{position:relative;overflow:hidden;max-height:2;line-height:1;justify-content:space-between;word-break:break-all}.orangehrm-directory-card-header.--break-words[data-v-0415b0f1]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:1;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:2){.orangehrm-directory-card-header.--break-words[data-v-0415b0f1]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-directory-card-header.--break-words[data-v-0415b0f1]:after{display:none}}.orangehrm-directory-card-subtitle[data-v-0415b0f1]{font-size:12px;font-weight:700;text-align:center;margin-top:1rem;margin-bottom:.75rem;word-break:break-word}.orangehrm-directory-card-subtitle.--break-words[data-v-0415b0f1]{position:relative;overflow:hidden;max-height:1;line-height:1;justify-content:space-between;word-break:break-all}.orangehrm-directory-card-subtitle.--break-words[data-v-0415b0f1]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:1;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:1){.orangehrm-directory-card-subtitle.--break-words[data-v-0415b0f1]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-directory-card-subtitle.--break-words[data-v-0415b0f1]:after{display:none}}.orangehrm-directory-card-description[data-v-0415b0f1]{font-size:12px;text-align:left;word-break:break-word}.orangehrm-directory-card-description.--break-words[data-v-0415b0f1]{position:relative;overflow:hidden;max-height:1;line-height:1;justify-content:space-between;word-break:break-all}.orangehrm-directory-card-description.--break-words[data-v-0415b0f1]:after{content:"";position:absolute;right:0;bottom:0;width:inherit;height:1;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff)}@supports(-webkit-line-clamp:1){.orangehrm-directory-card-description.--break-words[data-v-0415b0f1]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.orangehrm-directory-card-description.--break-words[data-v-0415b0f1]:after{display:none}}.orangehrm-directory-card-description[data-v-0415b0f1]:first-of-type{margin-bottom:.25rem}.orangehrm-directory-card-body[data-v-0415b0f1]{display:flex;align-items:center;justify-content:center;padding:.5rem;border-radius:.5rem;background-color:#fafafc}.orangehrm-directory-card-icon[data-v-0415b0f1]{font-size:24px;margin-right:.5rem;color:#64728c}@media(min-width:800px){.orangehrm-directory-card[data-v-0415b0f1]{min-height:260px}}.orangehrm-qr-code[data-v-74e533de]{margin:auto;width:140px;display:block}.orangehrm-directory-card[data-v-d01dcc04]{height:auto;overflow:hidden;padding:.5rem 1rem}@media(min-width:800px){.orangehrm-directory-card[data-v-d01dcc04]{min-height:280px}}.orangehrm-directory-card-rounded-body[data-v-d01dcc04]{display:flex;justify-content:center;align-items:center;padding:0 1rem;margin:1rem 8px 1rem 0;border-radius:1.2rem;width:auto;height:64px;box-shadow:5px 5px 5px 5px #fafafc}.orangehrm-directory-card-hover[data-v-d01dcc04]{display:flex;justify-content:space-between;padding:.25rem .75rem;border-radius:.5rem;margin:auto}@media(min-width:800px){.orangehrm-directory-card-hover[data-v-d01dcc04]{width:auto}}.orangehrm-directory-card-hover-body[data-v-d01dcc04]{display:block;align-items:center;justify-content:center;overflow:hidden;word-wrap:break-word}.orangehrm-directory-card-hover-icon[data-v-d01dcc04]{color:#64728c;font-size:14px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.orangehrm-directory-card-hover[data-v-d01dcc04]:hover{background-color:#fafafc}.orangehrm-directory-card-icon[data-v-d01dcc04]{margin:0 .5rem 0 0;color:#64728c;font-size:24px;display:flex;justify-content:center}.orangehrm-corporate-directory[data-v-0d01fa51]{display:block}@media(min-width:800px){.orangehrm-corporate-directory[data-v-0d01fa51]{display:flex;justify-content:space-between}}.orangehrm-corporate-directory-sidebar[data-v-0d01fa51]{min-width:250px;max-width:250px;margin-left:1rem;border-radius:1.2rem;background-color:#fff}.orangehrm-container[data-v-0d01fa51]{height:512px;overflow:auto;overflow-x:hidden;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-container[data-v-0d01fa51]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-container[data-v-0d01fa51]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-container[data-v-0d01fa51]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-container[data-v-0d01fa51]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-container-loader[data-v-0d01fa51]{margin:0 auto;background-color:#fff}.oxd-grid-item[data-v-0d01fa51]{padding:.5rem .75rem}.orangehrm-paper-container[data-v-0d01fa51]{width:100%}.orangehrm-login-layout[data-v-50815349]{display:table;width:100%;height:100%}@media(min-width:0px){.orangehrm-login-layout[data-v-50815349]{background-color:#f1f2f5}}@media(min-width:800px){.orangehrm-login-layout[data-v-50815349]{background-color:var(--oxd-primary-one-color)}}.orangehrm-login-layout-blob[data-v-50815349]{height:inherit;width:inherit;display:flex;position:relative;align-items:center;min-height:100vh}@media screen and (max-width:799px){.orangehrm-login-layout-blob[data-v-50815349]:before{content:"";top:0;left:0;right:0;bottom:0;position:absolute;-webkit-mask:url(../img/blob-m.svg);mask:url(../img/blob-m.svg);-webkit-mask-position:bottom left;mask-position:bottom left;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;background-color:var(--oxd-primary-one-color)}}@media(min-width:800px){.orangehrm-login-layout-blob[data-v-50815349]{background-image:url(../img/blob.svg);background-repeat:no-repeat;background-size:80% 100%}}.orangehrm-login-container[data-v-50815349]{z-index:1;width:100%;display:flex;justify-content:center}@media(min-width:800px){.orangehrm-login-container[data-v-50815349]{width:80%}}.orangehrm-login-logo[data-v-50815349]{position:absolute;right:15%;padding:1rem;background-color:#f6f5fb;border-radius:100%;display:none}.orangehrm-login-logo img[data-v-50815349]{width:10rem}@media(min-width:800px){.orangehrm-login-logo[data-v-50815349]{display:block}}.orangehrm-login-slot-wrapper[data-v-50815349]{padding:1rem 2rem;width:inherit}@media(min-width:800px){.orangehrm-login-slot-wrapper[data-v-50815349]{padding:1rem 10rem}}.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile[data-v-50815349]{padding:1rem;background-color:#f6f5fb;border-radius:100%;width:-moz-fit-content;width:fit-content;margin:0 auto;margin-bottom:1rem;display:block}.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile img[data-v-50815349]{width:5rem}@media(min-width:800px){.orangehrm-login-slot-wrapper .orangehrm-login-logo-mobile[data-v-50815349]{display:none}}.orangehrm-login-slot-wrapper .orangehrm-login-slot[data-v-50815349]{background-color:#fff;padding:2rem 0;border-radius:1rem;margin:0 auto}@media(min-width:800px){.orangehrm-login-slot-wrapper .orangehrm-login-slot[data-v-50815349]{background-color:transparent;padding:unset}}.orangehrm-login-branding[data-v-50815349]{padding:1.5rem 1rem;background-color:#fff;border-radius:1rem;text-align:center;box-shadow:0 16px 35px 0 rgba(0,0,0,.08);margin:0 auto;margin-bottom:2rem}.orangehrm-login-branding img[data-v-50815349]{width:100%;max-width:275px;height:auto;max-height:65px}@media(min-width:800px){.orangehrm-login-branding[data-v-50815349]{width:80%;max-width:520px}}.orangehrm-login-social[data-v-50815349]{padding:1rem 0}.orangehrm-login-social-text[data-v-50815349]{text-align:center;margin-bottom:1rem}.orangehrm-login-social-icons[data-v-50815349]{display:flex;justify-content:center}.orangehrm-login-social-icons .--loginwith[data-v-50815349]{margin:0 .25rem}.orangehrm-login-form[data-v-358db50f]{margin:0 auto}@media(min-width:0px){.orangehrm-login-form[data-v-358db50f]{width:80%}}@media(min-width:800px){.orangehrm-login-form[data-v-358db50f]{width:60%;max-width:485px}}.orangehrm-login-action[data-v-358db50f]{margin-top:2rem;justify-content:center}.orangehrm-login-button[data-v-358db50f]{flex:1;padding:1rem 0}.orangehrm-login-title[data-v-358db50f]{text-align:center;font-weight:800;margin-bottom:1rem}.orangehrm-login-pwreset[data-v-358db50f]{margin:1rem 0;text-align:center;font-weight:600}.orangehrm-login-pwreset a[data-v-358db50f]{color:var(--oxd-primary-one-color);text-decoration:none}.orangehrm-login-forgot[data-v-358db50f]{display:flex;justify-content:center;margin-top:1rem;font-size:14px}.orangehrm-login-forgot-header[data-v-358db50f]{cursor:pointer;color:var(--oxd-primary-one-color)}.orangehrm-demo-credentials[data-v-358db50f]{margin:1rem 0}.orangehrm-login-footer-sm[data-v-358db50f]{display:none;justify-content:center;align-items:center}.orangehrm-login-footer-sm a[data-v-358db50f]{width:22px;height:22px;margin:0 .25rem}.orangehrm-login-footer-sm .orangehrm-sm-icon[data-v-358db50f]{width:inherit;height:inherit;color:rgba(146,155,170,.8)}@media(min-width:800px){.orangehrm-login-footer-sm[data-v-358db50f]{position:absolute;left:1rem;bottom:1rem}}.orangehrm-card-icon[data-v-58e596ce]{font-size:1.5rem;color:#eb0910;padding:1rem}.orangehrm-card-note[data-v-58e596ce]{font-size:14px}.orangehrm-card-note-text[data-v-58e596ce]{color:#eb0910}.orangehrm-card-note-icon[data-v-58e596ce]{flex-shrink:0}.orangehrm-card-note--background[data-v-58e596ce]{background-color:#e8eaef;border-radius:1.2rem;padding:1.2rem}.orangehrm-card-note--icon[data-v-58e596ce]{display:flex;align-items:center;background-color:rgba(235,9,16,.06);border-radius:1.2rem;padding:1rem} /*! * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures * all the essential functionalities required for any enterprise. diff --git a/web/dist/js/app.js b/web/dist/js/app.js index 02542bb..d23ba7f 100644 --- a/web/dist/js/app.js +++ b/web/dist/js/app.js @@ -1,2 +1,2 @@ -(function(){var e={1993:function(e){function t(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=function(){return[]},t.resolve=t,t.id=1993,e.exports=t},7355:function(e,t,o){"use strict";var a=o(821);function l(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createBlock)(i,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.save"),type:"submit"},null,8,["label"])}var n={name:"SubmitButton"},r=o(3744);const i=(0,r.Z)(n,[["render",l]]);var s=i;const d={key:0},c={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},m={key:0};function u(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-divider"),s=(0,a.resolveComponent)("oxd-text"),u=(0,a.resolveComponent)("oxd-button");return o.loading?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",d,[o.showDivider?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,class:"orangehrm-horizontal-margin"})):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",c,[o.selected>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",m,[(0,a.createVNode)(s,{tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_selected",{count:o.selected})),1)])),_:1}),(0,a.createVNode)(u,{label:e.$t("general.delete_selected"),"icon-name":"trash-fill","display-type":"label-danger",class:"orangehrm-horizontal-margin",onClick:t[0]||(t[0]=t=>e.$emit("delete",t))},null,8,["label"])])):((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_found",{count:o.total})),1)])),_:1}))])]))}var p={name:"TableHeader",props:{loading:{type:Boolean,required:!0},selected:{type:Number,required:!0},total:{type:Number,required:!0},showDivider:{type:Boolean,required:!1,default:!0}},emits:["delete"]};const h=(0,r.Z)(p,[["render",u],["__scopeId","data-v-0dea79bd"]]);var g=h;function v(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createBlock)(i,{tag:"p",class:"orangehrm-form-hint"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" * "+(0,a.toDisplayString)(e.$t("general.required")),1)])),_:1})}var f={name:"RequiredText"};const y=(0,r.Z)(f,[["render",v],["__scopeId","data-v-319fc346"]]);var C=y;const b=["href"],V={key:0},x=["href"],w=["href"];function N(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-layout"),d=(0,a.resolveComponent)("about");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,(0,a.normalizeProps)((0,a.guardReactiveProps)(e.$attrs)),(0,a.createSlots)({"user-actions":(0,a.withCtx)((()=>[(0,a.createElementVNode)("li",null,[(0,a.createElementVNode)("a",{href:"#",role:"menuitem",class:"oxd-userdropdown-link",onClick:t[0]||(t[0]=(...e)=>l.openAboutModel&&l.openAboutModel(...e))},(0,a.toDisplayString)(e.$t("general.about")),1)]),(0,a.createElementVNode)("li",null,[(0,a.createElementVNode)("a",{href:o.supportUrl,role:"menuitem",class:"oxd-userdropdown-link"},(0,a.toDisplayString)(e.$t("general.support")),9,b)]),o.updatePasswordUrl?((0,a.openBlock)(),(0,a.createElementBlock)("li",V,[(0,a.createElementVNode)("a",{href:o.updatePasswordUrl,role:"menuitem",class:"oxd-userdropdown-link"},(0,a.toDisplayString)(e.$t("general.change_password")),9,x)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("li",null,[(0,a.createElementVNode)("a",{href:o.logoutUrl,role:"menuitem",class:"oxd-userdropdown-link"},(0,a.toDisplayString)(e.$t("general.logout")),9,w)])])),"nav-actions":(0,a.withCtx)((()=>[(0,a.createVNode)(i,{name:"question-lg",title:e.$t("general.help"),onClick:l.onClickSupport},null,8,["title","onClick"])])),_:2},[(0,a.renderList)(e.$slots,((t,o)=>({name:o,fn:(0,a.withCtx)((t=>[(0,a.renderSlot)(e.$slots,o,(0,a.normalizeProps)((0,a.guardReactiveProps)(t)))]))})))]),1040),l.showAboutModel?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,onClose:l.closeAboutModel},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)],64)}const _={class:"orangehrm-modal-header"},k={key:0,class:"orangehrm-loader"};function S(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-loading-spinner"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(u,{style:{width:"90%",maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",_,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.about")),1)])),_:1})]),(0,a.createVNode)(s),n.isLoading?((0,a.openBlock)(),(0,a.createElementBlock)("div",k,[(0,a.createVNode)(d)])):((0,a.openBlock)(),(0,a.createBlock)(m,{key:1,cols:2,class:"orangehrm-about"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.company_name"))+": ",1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.data.companyName),1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.version"))+": ",1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.data.productName)+" "+(0,a.toDisplayString)(n.data.version),1)])),_:1})])),_:1}),void 0!==n.data.numberOfActiveEmployee?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.active_employees"))+": ",1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.data.numberOfActiveEmployee),1)])),_:1})])),_:1})],64)):(0,a.createCommentVNode)("",!0),void 0!==n.data.numberOfPastEmployee?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.employees_terminated"))+": ",1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.data.numberOfPastEmployee),1)])),_:1})])),_:1})],64)):(0,a.createCommentVNode)("",!0)])),_:1}))])),_:1},8,["onUpdate:show"])}var D=o(7327),$=o(8945);o(2801);class E{constructor(){(0,D.Z)(this,"_tempStorage",{})}clear(){this._tempStorage={}}getItem(e){return this._tempStorage[e]||null}key(e){return Object.keys(this._tempStorage)[e]||null}removeItem(e){delete this._tempStorage[e]}setItem(e,t){this._tempStorage[e]=t}}function T(e){try{const t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&e&&0!==e.length}}class B{constructor(e){(0,D.Z)(this,"_storage",void 0),T(e)?this._storage=e:this._storage=new E}clear(){this._storage.clear()}getItem(e){return this._storage.getItem(e)}key(e){return this._storage.key(e)}removeItem(e){this._storage.removeItem(e)}setItem(e,t){this._storage.setItem(e,t)}}const I=function(e,t={},o={}){let a=e;o=JSON.parse(JSON.stringify(o)),Object.keys(t).forEach((e=>{const o=`{${e}}`;if(a.includes(o)){let l=t[e];"number"===typeof l&&(l=l.toString()),a=a.replace(o,l)}else console.error("Invalid parameter.")}));let l="?";const n=Object.keys(o);return n.forEach(((e,t)=>{0!==t&&(l+="&");const a=o[e];Array.isArray(a)?a.forEach(((t,o)=>{0!==o&&(l+="&"),l+=`${e}[]=${t}`})):l+=`${e}=${a}`})),encodeURI(a+(0===n.length?"":l))},L=function(e,t={},o={}){return window.appGlobal.baseUrl+I(e,t,o)},U=function(e,t={},o={}){window.location.href=L(e,t,o)},A=function(){window.location.reload()};class P{constructor(e,t){(0,D.Z)(this,"_http",void 0),(0,D.Z)(this,"_baseUrl",void 0),(0,D.Z)(this,"_apiSection",void 0),(0,D.Z)(this,"_cacheStorage",void 0),(0,D.Z)(this,"_ignorePathRegex",void 0),this._baseUrl=e,this._apiSection=t,this._http=$.Z.create({baseURL:this._baseUrl}),this._cacheStorage=new B(localStorage),this.setupResponseInterceptors((0,a.getCurrentInstance)())}setIgnorePath(e){this._ignorePathRegex=new RegExp(e)}getAll(e){const t={"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0"};return this._http.get(this._apiSection,{headers:t,params:e})}get(e,t){const o={"Content-Type":"application/json"};return this._http.get(`${this._apiSection}/${e}`,{headers:o,params:t})}create(e){const t={"Content-Type":"application/json",Accept:"application/json"};return this._http.post(this._apiSection,e,{headers:t})}update(e,t){const o={"Content-Type":"application/json"};return this._http.put(`${this._apiSection}/${e}`,t,{headers:o})}delete(e){const t={"Content-Type":"application/json"};return this._http.delete(`${this._apiSection}/${e}`,{headers:t})}deleteAll(e){const t={"Content-Type":"application/json"};return this._http.delete(`${this._apiSection}`,{headers:t,data:e})}request(e){const t={"Content-Type":"application/json"};return this._http.request({url:this._apiSection,headers:t,...e})}ignoreError(e){if(this._ignorePathRegex&&(422===e.response?.status||400===e.response?.status)){const t=e.response.config.url??"";return this._ignorePathRegex.test(t)}return!1}setupResponseInterceptors(e){this._http.interceptors.response.use((e=>e),(t=>{if(401===t.response?.status)return A(),Promise.reject();if(this.ignoreError(t))return Promise.reject(t.response);const o=e?.appContext.config.globalProperties.$toast;if(o&&"ECONNABORTED"!==t.code){const e=t.response?.data;o.unexpectedError(e?.error.message||null)}return Promise.reject(t)}));{const e=e=>e.startsWith("W/")?e.substring(2):e;this._http.interceptors.request.use((e=>{if(e.url){const t=e.url,o=this._cacheStorage.getItem(t);o&&(e.headers={...e.headers,"If-None-Match":o})}return e}),(e=>Promise.reject(e))),this._http.interceptors.response.use((t=>{const{config:o,headers:a}=t;if(o.url&&a){const l=o.url,n=a["etag"],r=this._cacheStorage.getItem(l);n&&n!==r&&(this._cacheStorage.removeItem(l),this._cacheStorage.setItem(l,e(n)),r&&this._cacheStorage.removeItem(r),this._cacheStorage.setItem(e(n),JSON.stringify(t.data)))}return t}),(t=>{if(304===t.response?.status){const o=t.response.headers["etag"];if(o){const a=this._cacheStorage.getItem(e(o));if(a)return Promise.resolve({...t.response,status:200,data:JSON.parse(a)})}}return Promise.reject(t)}))}}get http(){return this._http}get baseUrl(){return this._baseUrl}set apiSection(e){this._apiSection=e}}var q=o(756),M={components:{"oxd-loading-spinner":q.OxdSpinner,"oxd-dialog":q.OxdDialog},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/core/about");return{http:e}},data(){return{isLoading:!1,data:null}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.data={...t}})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){this.$emit("close",!0)}}};const F=(0,r.Z)(M,[["render",S],["__scopeId","data-v-df10eb5c"]]);var j=F;const z=Symbol("dateFormat");function R(){const e=(0,a.inject)(z);if(!e)throw new Error("Date format is invalid");const t=(0,q.convertPHPDateFormat)(e.id),o=e.label,l="HH:mm",n="hh:mm a";return{timeFormat:l,jsTimeFormat:n,jsDateFormat:t,userDateFormat:o}}var O={components:{about:j,"oxd-layout":q.OxdLayout},inheritAttrs:!1,props:{permissions:{type:Object,default:()=>({})},logoutUrl:{type:String,default:"#"},supportUrl:{type:String,default:"#"},updatePasswordUrl:{type:String,default:"#"},dateFormat:{type:Object,default:null},helpUrl:{type:String,default:null}},setup(e){const t=(0,a.ref)(!1);(0,a.provide)("permissions",(0,a.readonly)(e.permissions)),(0,a.provide)(z,(0,a.readonly)(e.dateFormat));const o=()=>{t.value=!0},l=()=>{t.value=!1},n=()=>{e.helpUrl&&window.open(e.helpUrl,"_blank")};return{onClickSupport:n,showAboutModel:t,openAboutModel:o,closeAboutModel:l}}};const G=(0,r.Z)(O,[["render",N]]);var Z=G;function Q(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"date",placeholder:l.userDateFormat,"day-attributes":e.attributes,events:e.events,"display-format":l.jsDateFormat,locale:l.locale,onSelectYear:l.onSelectYear},null,8,["placeholder","day-attributes","events","display-format","locale","onSelectYear"])}var H=o(2034),W=o(1132),Y=o(9474),J=o(3151),X=o(2300),K=o(1699),ee=o(8148),te=o(876),oe=o(7349),ae=o(1085);const le=[{offset:0,label:"Europe/London"},{offset:1,label:"Europe/Belgrade"},{offset:2,label:"Europe/Minsk"},{offset:3,label:"Asia/Kuwait"},{offset:4,label:"Asia/Muscat"},{offset:5,label:"Asia/Yekaterinburg"},{offset:5.5,label:"Asia/Kolkata"},{offset:6,label:"Asia/Dhaka"},{offset:7,label:"Asia/Krasnoyarsk"},{offset:8,label:"Asia/Brunei"},{offset:9,label:"Asia/Seoul"},{offset:9.5,label:"Australia/Darwin"},{offset:10,label:"Australia/Canberra"},{offset:11,label:"Asia/Magadan"},{offset:12,label:"Pacific/Fiji"},{offset:-11,label:"Pacific/Midway"},{offset:-10,label:"Pacific/Honolulu"},{offset:-9,label:"America/Anchorage"},{offset:-8,label:"America/Los_Angeles"},{offset:-7,label:"America/Denver"},{offset:-6,label:"America/Tegucigalpa"},{offset:-5,label:"America/New_York"},{offset:-4,label:"America/Halifax"},{offset:-3.5,label:"America/St_Johns"},{offset:-3,label:"America/Argentina/Buenos_Aires"},{offset:-2,label:"Atlantic/South_Georgia"},{offset:-1,label:"Atlantic/Azores"}],ne=()=>new Date((new Date).setHours(0,0,0,0)),re=(e,t="yyyy-MM-dd",o={})=>{try{const a=(0,H.Z)(e,t,ne(),o);return!isNaN(a.valueOf())&&a.getFullYear()>=1e3?a:null}catch(a){return null}},ie=(e,t,o={})=>{try{return(0,W.Z)(e,t,o)}catch(a){return null}},se=(e,t,o)=>{const a=re(e,o),l=re(t,o);return!(!a||!l)&&-1===(0,Y.Z)(a,l)},de=(e,t,o)=>{const a=re(e,o),l=re(t,o);return!(!a||!l)&&1===(0,Y.Z)(a,l)},ce=(e,t,o)=>{const a=re(e,o),l=re(t,o);return!(!a||!l)&&0===(0,Y.Z)(a,l)},me=(e,t)=>re(e,t),ue=(e,t,o={})=>ie(e,t,o),pe=(e,t,o)=>{const a=re(e,o),l=re(t,o);if(a&&l){if(a.valueOf()l.valueOf())return-1;if(a.valueOf()===l.valueOf())return 0}return NaN},he=(e,t,o="yyyy-MM-dd")=>{const a=re(e,o),l=re(t,o);return a&&l?(0,J.Z)(l,a)?1:(0,X.Z)(l,a)+1:0},ge=(e,t,o="HH:mm")=>{const a=me(e,o),l=me(t,o);if(a&&l){const e=(0,K.Z)(l,a);if(e>0)return e}return 0},ve=e=>{const t=Math.floor(e/3600),o=Math.floor((e-3600*t)/60);return`${t.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`},fe=e=>{if(/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(e)){const t=e.split(":");return 60*parseInt(t[0])*60+60*parseInt(t[1])}return parseFloat(e)<24&&/^([0-9])+(?:\.[0-9]{1,2})?$/.test(e)?60*parseFloat(e)*60:-1},ye=(e,t=1e3)=>{t=t<1e3?1e3:t;const o=()=>{e(),setTimeout(o,t-(new Date).getTime()%t)};o()},Ce=e=>(e>0?"+":"-")+String(Math.abs(e).toFixed(2)).split(".").map(((e,t)=>0===t?e.padStart(2,"0"):String(.6*parseInt(e)).padEnd(2,"0"))).join(":"),be=()=>{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;const t=(new Date).getTimezoneOffset()/60*-1;if(void 0===e){const o=le.find((e=>e.offset===t));e=o?o.label:le[0].label}const o=Ce(t);return{name:e,label:`(GMT ${o}) ${e}`,offset:t}};var Ve=o(6791);const xe={},we=()=>(e,t={})=>{try{if(!xe[e])return e;const o=xe[e].format(t);return Array.isArray(o)?"string"===typeof o[0]?o[0]:e:o}catch(o){return console.error(o),e}},Ne=()=>({beforeCreate(){this.$t=we()}});function _e(e){const t=new P(e.baseUrl,e.resourceUrl);return{init:function(){return new Promise((e=>{t.request({method:"GET",headers:{Accept:"application/json",contentType:"application/json",...!1}}).then((e=>{const{data:t}=e,o={};for(const a in t)o[a]=t[a].target||t[a].source,xe[a]=new Ve.ZP(t[a].target||t[a].source,void 0,void 0,{ignoreTag:!0});q.StoreService.mergeConfig({language:o})})).finally((()=>e()))}))},i18n:function(e){e.mixin(Ne())}}}var ke=_e;function Se(){const e=we();return{$t:e}}function De(){const{$t:e}=Se(),t=(0,q.buildLocale)({months:{wide:[e("general.january"),e("general.february"),e("general.march"),e("general.april"),e("general.may"),e("general.june"),e("general.july"),e("general.august"),e("general.september"),e("general.october"),e("general.november"),e("general.december")],abbreviated:[e("general.jan"),e("general.feb"),e("general.mar"),e("general.apr"),e("general.may"),e("general.jun"),e("general.jul"),e("general.aug"),e("general.sep"),e("general.oct"),e("general.nov"),e("general.dec")]},days:{abbreviated:[e("general.sun"),e("general.mon"),e("general.tue"),e("general.wed"),e("general.thu"),e("general.fri"),e("general.sat")],wide:[e("general.sunday"),e("general.monday"),e("general.tuesday"),e("general.wednesday"),e("general.thursday"),e("general.friday"),e("general.saturday")]}});return{locale:t}}var $e={name:"DateInput",setup(){const e=(0,a.reactive)({attributes:[],events:[]}),t=new P(window.appGlobal.baseUrl,""),{jsDateFormat:o,userDateFormat:l}=R(),{locale:n}=De(),r=e=>e>=200&&e<300||403===e,i=async()=>{t.request({method:"GET",url:"/api/v2/leave/workweek",params:{model:"indexed"},validateStatus:r}).then((({data:t})=>{t?.data&&(e.attributes=Object.keys(t.data).map((e=>({index:parseInt(e),class:8===t.data[e]?"--non-working-day":4===t.data[e]?"--working-day-half":""}))))}))},s=async(o,a)=>{t.request({method:"GET",url:"/api/v2/leave/holidays",params:{fromDate:o,toDate:a},validateStatus:r}).then((({data:t})=>{Array.isArray(t?.data)&&(e.events=t.data.map((e=>({date:re(e.date,"yyyy-MM-dd"),type:e.name,class:0===e.length?"--holiday-full":"--holiday-half"}))))}))},d=async({year:e})=>{const t=(new Date).setFullYear(e),o=ie((0,ee.Z)(t),"yyyy-MM-dd"),a=ie((0,te.Z)(t),"yyyy-MM-dd");s(o,a)};return(0,a.onBeforeMount)((async()=>{await i(),await d({year:(new Date).getFullYear()})})),{jsDateFormat:o,userDateFormat:l,...(0,a.toRefs)(e),onSelectYear:d,locale:n}}};const Ee=(0,r.Z)($e,[["render",Q]]);var Te=Ee;function Be(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"time",step:15,placeholder:e.$t("attendance.hh_mm")},null,8,["placeholder"])}var Ie={name:"TimeInput"};const Le=(0,r.Z)(Ie,[["render",Be]]);var Ue=Le,Ae={install:e=>{e.component("OxdLayout",Z),e.component("OxdCardTable",q.OxdCardTable),e.component("OxdButton",q.OxdButton),e.component("OxdPagination",q.OxdPagination),e.component("OxdDivider",q.OxdDivider),e.component("OxdText",q.OxdText),e.component("OxdIconButton",q.OxdIconButton),e.component("OxdForm",q.OxdForm),e.component("OxdFormRow",q.OxdFormRow),e.component("OxdFormActions",q.OxdFormActions),e.component("OxdInputField",q.OxdInputField),e.component("OxdInputGroup",q.OxdInputGroup),e.component("OxdGrid",q.OxdGrid),e.component("OxdGridItem",q.OxdGridItem),e.component("OxdTableFilter",q.OxdTableFilter),e.component("SubmitButton",s),e.component("TableHeader",g),e.component("RequiredText",C),e.component("DateInput",Te),e.component("TimeInput",Ue)}};function Pe(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-alert");return(0,a.openBlock)(),(0,a.createBlock)(i,{show:!0,type:"warn",message:e.$t("general.no_records_found")},null,8,["message"])}var qe={components:{"oxd-alert":q.OxdAlert}};const Me=(0,r.Z)(qe,[["render",Pe]]);var Fe=Me;function je(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-alert");return(0,a.openBlock)(),(0,a.createBlock)(i,{show:!0,type:"warn",message:e.$t("general.bad_request")},null,8,["message"])}var ze={components:{"oxd-alert":q.OxdAlert}};const Re=(0,r.Z)(ze,[["render",je]]);var Oe=Re;const Ge={class:"orangehrm-background-container"},Ze={class:"orangehrm-card-container"},Qe={class:"orangehrm-module-under-development"},He=["src"],We={target:"_blank",class:"orangehrm-module-under-development-link",href:"https://sourceforge.net/projects/orangehrm/files/latest/download"};function Ye(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ge,[(0,a.createElementVNode)("div",Ze,[(0,a.createElementVNode)("div",Qe,[(0,a.createVNode)(i,{tag:"h4",class:"orangehrm-module-under-development-heading"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.launching_soon")),1)])),_:1}),(0,a.createElementVNode)("img",{src:n.moduleUnderDevelopment,class:"orangehrm-module-under-development-img",alt:"this module is under development"},null,8,He),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-under-development-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.this_page_is_being_developed",{version:"5.4"}))+" ",1),(0,a.createElementVNode)("a",We,(0,a.toDisplayString)(e.$t("general.click_here")),1),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("general.download_latest_release_with_all_features")),1)])),_:1})])])])}var Je={data(){return{moduleUnderDevelopment:`${window.appGlobal.publicPath}/images/web_under_construction.png`}}};const Xe=(0,r.Z)(Je,[["render",Ye],["__scopeId","data-v-c0c6b572"]]);var Ke=Xe;const et={class:"orangehrm-background-container"},tt={class:"orangehrm-card-container"},ot={class:"orangehrm-module-disabled"};function at(e,t){const o=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",et,[(0,a.createElementVNode)("div",tt,[(0,a.createElementVNode)("div",ot,[(0,a.createVNode)(o,{tag:"h1",class:"orangehrm-module-disabled-heading"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" 403 ")])),_:1}),(0,a.createVNode)(o,{tag:"h4",class:"orangehrm-module-disabled-sub-heading"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.module_forbidden")),1)])),_:1}),(0,a.createVNode)(o,{tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.module_access_restriction")),1)])),_:1})])])])}const lt={},nt=(0,r.Z)(lt,[["render",at],["__scopeId","data-v-3d2f2dd1"]]);var rt=nt;function it(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-alert");return(0,a.openBlock)(),(0,a.createBlock)(i,{show:!0,type:"warn",message:e.$t("time.timesheet_period_not_defined")},null,8,["message"])}var st={components:{"oxd-alert":q.OxdAlert}};const dt=(0,r.Z)(st,[["render",it]]);var ct=dt,mt={"bad-request":Oe,"no-records-found":Fe,"module-under-development":Ke,"disabled-module":rt,"time-sheet-period-not-defined":ct};const ut={class:"orangehrm-background-container"},pt={class:"orangehrm-paper-container"},ht={class:"orangehrm-header-container"},gt={class:"orangehrm-container"},vt={class:"orangehrm-bottom-container"};function ft(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ut,[(0,a.createElementVNode)("div",pt,[(0,a.createElementVNode)("div",ht,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.job_titles")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",gt,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[1]||(t[1]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",vt,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[2]||(t[2]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}o(7658);function yt(){const e=(0,a.getCurrentInstance)()?.appContext.config.globalProperties.$toast,t=e=>(...t)=>e&&e(...t);return{notify:t(e?.notify),show:t(e?.show),success:t(e?.success),error:t(e?.error),info:t(e?.info),warn:t(e?.warn),clear:t(e?.clear),clearAll:t(e?.clearAll),saveSuccess:t(e?.saveSuccess),addSuccess:t(e?.addSuccess),updateSuccess:t(e?.updateSuccess),deleteSuccess:t(e?.deleteSuccess),cannotDelete:t(e?.cannotDelete),noRecordsFound:t(e?.noRecordsFound)}}async function Ct(e,t){try{const o=await e.getAll(t);return{data:o.data.data,meta:o.data.meta,error:!1}}catch(o){return{error:!0,message:o.message}}}function bt(e,t){const o=e*(t-1);return{limit:e,offset:o}}function Vt(e){const t=JSON.parse(JSON.stringify((0,a.unref)(e)));for(const[o,a]of Object.entries(t))t[o]=null===a||""===a?void 0:a;return t}function xt(e){return e}function wt(e,{query:t={},normalizer:o=xt,prefetch:l=!0,toastNoRecords:n=!0,pageSize:r=50}={}){const i=(0,a.reactive)({showPaginator:!1,isLoading:!1,response:{},total:0,pages:0,currentPage:1}),{noRecordsFound:s}=yt(),d=async()=>{i.isLoading=!0;const a=bt(r,i.currentPage),l=Vt(t);if(i.response=await Ct(e,{...a,...l}),!i.response.error){const{data:e,...t}=i.response,a=o(e);i.response={data:a,...t}}i.response.meta&&(i.total=i.response.meta.total,i.total>r?(i.showPaginator=!0,i.pages=Math.ceil(i.total/r)):(i.currentPage=1,i.pages=1,i.showPaginator=!1),0===i.total&&n&&s()),i.isLoading=!1};return l&&(0,a.onBeforeMount)(d),(0,a.watch)((()=>i.currentPage),d),{...(0,a.toRefs)(i),execQuery:d}}const Nt={class:"orangehrm-modal-header"},_t={class:"orangehrm-text-center-align"},kt={class:"orangehrm-modal-footer"};function St(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-dialog-popup","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Nt,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.are_you_sure")),1)])),_:1})]),(0,a.createElementVNode)("div",_t,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.message||e.$t("general.delete_confirmation_message")),1)])),_:1})]),(0,a.createElementVNode)("div",kt,[(0,a.createVNode)(s,{label:e.$t("general.no_cancel"),"display-type":"text",class:"orangehrm-button-margin",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{label:e.$t("general.yes_delete"),"icon-name":"trash","display-type":"label-danger",class:"orangehrm-button-margin",onClick:r.onDelete},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var Dt={components:{"oxd-dialog":q.OxdDialog},props:{message:{type:String,default:null,required:!1}},data(){return{show:!1,reject:null,resolve:null}},methods:{showDialog(){return new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))},onDelete(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const $t=(0,r.Z)(Dt,[["render",St],["__scopeId","data-v-64d94959"]]);var Et=$t;function Tt(e){const t=(0,a.ref)({...JSON.parse(JSON.stringify(e.sortDefinition))}),o=(0,a.computed)((()=>Object.keys(t.value).filter((e=>{const o=t.value[e];return o&&"DEFAULT"!=o}))[0])),l=(0,a.computed)((()=>t.value[o.value])),n=e=>(0,a.watch)(t,e);return{sortDefinition:t,sortField:o,sortOrder:l,onSort:n}}const Bt={jobTitleName:"",jobDescription:""},It={"jt.jobTitleName":"ASC"};var Lt={components:{"delete-confirmation":Et},setup(){const e=(0,a.ref)({...Bt}),{sortDefinition:t,sortField:o,sortOrder:l,onSort:n}=Tt({sortDefinition:It}),r=(0,a.computed)((()=>({jobTitleName:e.value.jobTitleName,jobDescription:e.value.jobDescription,sortField:o.value,sortOrder:l.value}))),i=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-titles"),{showPaginator:s,currentPage:d,total:c,pages:m,pageSize:u,response:p,isLoading:h,execQuery:g}=wt(i,{query:r});return n(g),{http:i,showPaginator:s,currentPage:d,isLoading:h,total:c,pages:m,pageSize:u,execQuery:g,items:p,filters:e,sortDefinition:t}},data(){return{headers:[{name:"title",slot:"title",title:this.$t("admin.job_titles"),sortField:"jt.jobTitleName",style:{flex:2}},{name:"description",cellType:"oxd-table-cell-truncate",title:this.$t("admin.job_description"),style:{flex:4}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveJobTitle")},onClickEdit(e){U("/admin/saveJobTitle/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Ut=(0,r.Z)(Lt,[["render",ft]]);var At=Ut;const Pt={class:"orangehrm-background-container"},qt={class:"orangehrm-card-container"};function Mt(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("file-upload-input"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Pt,[(0,a.createElementVNode)("div",qt,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_job_title")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.title,"onUpdate:modelValue":t[0]||(t[0]=e=>n.jobTitle.title=e),label:e.$t("general.job_title"),rules:n.rules.title,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.jobTitle.description=e),type:"textarea",label:e.$t("admin.job_description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{newFile:n.jobTitle.newSpecification,"onUpdate:newFile":t[2]||(t[2]=e=>n.jobTitle.newSpecification=e),method:n.jobTitle.method,"onUpdate:method":t[3]||(t[3]=e=>n.jobTitle.method=e),label:e.$t("general.job_specification"),"button-label":e.$t("general.browse"),file:n.jobTitle.oldSpecification,rules:n.rules.specification,url:"admin/viewJobSpecification/attachId",hint:e.$t("general.accepts_up_to_1mb")},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.note,"onUpdate:modelValue":t[4]||(t[4]=e=>n.jobTitle.note=e),type:"textarea",label:e.$t("general.note"),placeholder:e.$t("general.add_note"),rules:n.rules.note,"label-icon":"pencil-square"},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(h)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Ft=we(),jt=function(e){return"string"===typeof e?!!e&&""!==e.trim()||Ft("general.required"):"number"===typeof e?!Number.isNaN(e)||"general.required":Array.isArray(e)?!!e&&0!==e.length||Ft("general.required"):"object"===typeof e&&null!==e||Ft("general.required")},zt=function(e){return function(t){return!t||new String(t).length<=e||Ft("general.should_be_less_n_characters",{amount:e})}},Rt=function(e="yyyy-mm-dd",t="yyyy-MM-dd"){return function(o){if(!o)return!0;const a=re(o,t);return!!a||Ft("general.should_be_a_valid_date_in_x_format",{format:e})}},Ot=function(){return function(e){if(!e)return!0;const t="yyyy-MM-dd",o=ie(new Date,t)||"",a=he(e,o,t);return a>0||Ft("recruitment.should_be_current_date_previous_date")}},Gt=function(e){if(!e)return!0;const t=re(e,"HH:mm");return!!t||Ft("general.should_be_a_valid_date_in_hh:mm_format")},Zt=function(e){return function(t){return Number.isNaN(parseFloat(t))||parseFloat(t)a=>{const l="function"===typeof e?e():e,n="string"===typeof t?t:Ft("general.end_date_should_be_after_start_date");return o.allowSameDate?Kt(a,l)||Xt(a,l,o.dateFormat)||n:Xt(a,l,o.dateFormat)||n},to=function(e,t,o="yyyy-MM-dd"){return!e||!t||1===pe(e,t,o)},oo=function(e,t,o="HH:mm"){return!e||!t||-1===pe(e,t,o)},ao=function(e,t,o="HH:mm"){return!e||!t||0===pe(e,t,o)},lo=(e,t,o={allowSameTime:!1,timeFormat:"HH:mm"})=>a=>{const l="function"===typeof e?e():e,n="string"===typeof t?t:Ft("general.end_time_should_be_after_start_time");return o.allowSameTime?ao(a,l)||oo(a,l,o.timeFormat)||n:oo(a,l,o.timeFormat)||n},no=function(e){return function(t){return null===t||t.size&&t.size<=e||Ft("general.attachment_size_exceeded")}},ro=function(e){return function(t){return null===t||t&&e.findIndex((e=>e===t.type))>-1||Ft("general.file_type_not_allowed")}},io=function(e){return!e||/^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/.test(e)||Ft("general.expected_email_address_format_not_matched")},so=function(e){return!e||/^[0-9+\-/() ]+$/.test(e)||Ft("general.allows_phone_numbers_only")},co=(e,t,o={allowSameDate:!1,dateFormat:"yyyy-MM-dd"})=>a=>{const l="function"===typeof e?e():e,n="string"===typeof t?t:Ft("general.start_date_should_be_before_end_date");return o.allowSameDate?Kt(a,l)||Jt(a,l,o.dateFormat)||n:Jt(a,l,o.dateFormat)||n},mo=function(e){return function(t){return Number.isNaN(parseFloat(t))||parseFloat(t)a=>{const l="function"===typeof e?e():e,n="string"===typeof t?t:Ft("general.start_time_should_be_before_end_time");return o.allowSameTime?ao(a,l)||to(a,l,o.timeFormat)||n:to(a,l,o.timeFormat)||n},po=function(e){return function(t){return!t||String(t).length>=e||Ft("general.should_be_least_n_characters",{amount:e})}},ho=(e,t)=>o=>{const a="function"===typeof e?e():e,l="string"===typeof t?t:Ft("general.should_be_higher_than_minimum_value");return null===a||null===o||(void 0===a||void 0===o||(""===a||""===o||("0"===a||"0"===o||(parseFloat(a)o=>{const a="function"===typeof e?e():e,l="string"===typeof t?t:Ft("general.should_be_lower_than_maximum_value");return null===a||null===o||(void 0===a||void 0===o||(""===a||"0"===o||(parseFloat(a)>parseFloat(o)||l)))},vo=(e,t,o)=>a=>{const l="string"===typeof o?o:Ft("general.should_be_a_number_between_min_and_max",{min:e,max:t});return!0===Qt(a)&&parseFloat(a)>=e&&parseFloat(a)<=t||l},fo=function(e){return!e||(!!/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/i.test(e)||Ft("general.invalid"))},yo=function(e,t=.1){return function(o){return new Promise((a=>{if(null===o||"image/svg+xml"===o.type)return a(!0);const l=new Image;l.src=`data:${o.type};base64, ${o.base64}`,l.decode().then((()=>{Math.abs(l.width/l.height-e)=e||o)}},bo=function(e,t){const o="string"===typeof t?t:Ft("general.less_than_or_equal_to_n",{maxValue:e});return function(t){return null===t||""===t||(!0!==Yt(t)?o:parseFloat(t)<=e||o)}},Vo=function(e){return null===e||""===e||(0===e.split("").reduce(((e,t)=>("{"===t&&e++,"}"===t&&e--,e)),0)||Ft("general.invalid"))},xo=function(e){return"string"!==typeof e||Ft("general.invalid")},wo=function(e){let t;return t=/\p{L}/u.test(e)?/^([\p{L}\p{N}\p{S}\-.])+(\.?([\p{L}\p{N}]|xn--[\p{L}\p{N}-]+)+\.?)(:[0-9]+)?$/gu:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/,!e||t.test(e)||Ft("general.invalid")},No=function(e,t,o){return function(a){return!a||/^\d+$/.test(a)&&!Number.isNaN(parseFloat(a))&&String(a).length<=e&&parseInt(a)>=t&&parseInt(a)<=o||Ft("general.enter_valid_port_between_a_to_b",{minValue:t,maxValue:o})}},_o={class:"orangehrm-file-current"},ko={key:0,class:"orangehrm-file-options"},So={key:1,class:"orangehrm-file-input"};function Do(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[r.fileSelected?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,label:o.label},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",_o,[(0,a.createElementVNode)("div",{class:"orangehrm-file-preview",onClick:t[0]||(t[0]=(...e)=>r.downloadFile&&r.downloadFile(...e))},[(0,a.createVNode)(i,{class:"orangehrm-file-icon",name:"file-earmark-text"}),(0,a.createVNode)(s,{class:"orangehrm-file-name",tag:"p",title:o.file.filename},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.file.filename)+" ",1),(0,a.createVNode)(i,{class:"orangehrm-file-download",name:"download"})])),_:1},8,["title"])]),o.disabled?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",ko,[(0,a.createVNode)(d,{type:"radio","option-label":e.$t("general.keep_current"),value:"keepCurrent","model-value":o.method,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:method",t))},null,8,["option-label","model-value"]),o.deletable?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,type:"radio","option-label":e.$t("general.delete_current"),value:"deleteCurrent","model-value":o.method,"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update:method",t))},null,8,["option-label","model-value"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{type:"radio","option-label":e.$t("general.replace_current"),value:"replaceCurrent","model-value":o.method,"onUpdate:modelValue":t[3]||(t[3]=t=>e.$emit("update:method",t))},null,8,["option-label","model-value"])]))])])),_:1},8,["label"])):(0,a.createCommentVNode)("",!0),"replaceCurrent"!==o.method&&r.fileSelected?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",So,[(0,a.createVNode)(d,(0,a.mergeProps)(e.$attrs,{type:"file",label:r.fieldLabel,"model-value":o.newFile,disabled:o.disabled,placeholder:e.$t("general.no_file_selected"),"onUpdate:modelValue":t[4]||(t[4]=t=>e.$emit("update:newFile",t))}),null,16,["label","model-value","disabled","placeholder"]),(0,a.createVNode)(s,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.hint),1)])),_:1})]))],64)}var $o={name:"FileUploadInput",components:{"oxd-icon":q.OxdIcon},inheritAttrs:!1,props:{label:{type:String,default:""},hint:{type:String,default:""},url:{type:[String,Function],required:!0},method:{type:String,required:!0},file:{type:Object,required:!1,default:()=>null},newFile:{type:Object,required:!1,default:()=>null},disabled:{type:Boolean,default:!1},deletable:{type:Boolean,default:!0}},emits:["update:method","update:newFile"],computed:{fileSelected(){return this.file&&Object.keys(this.file).length>0},fieldLabel(){return"replaceCurrent"===this.method&&this.fileSelected?this.$t("general.upload_n_file",{fileName:this.label}):this.label}},methods:{downloadFile(){let e;if("function"===typeof this.url)e=this.url(this.$props);else{if(!this.file?.id)return;e=`${window.appGlobal.baseUrl}/${this.url}/${this.file.id}`}window.open(e,"_blank")}}};const Eo=(0,r.Z)($o,[["render",Do],["__scopeId","data-v-0511e208"]]);var To=Eo;const Bo={title:"",description:"",oldSpecification:"",newSpecification:null,method:"keepCurrent",note:""};var Io={components:{"file-upload-input":To},props:{jobTitleId:{type:String,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-titles");return{http:e}},data(){return{isLoading:!1,jobTitle:{...Bo},rules:{title:[jt,zt(100)],description:[zt(400)],specification:[e=>"replaceCurrent"!=this.jobTitle.method||jt(e),ro(this.allowedFileTypes),no(this.maxFileSize)],note:[zt(400)]}}},created(){this.isLoading=!0,this.http.get(this.jobTitleId).then((e=>{const{data:t}=e.data;return this.jobTitle.title=t.title,this.jobTitle.description=t.description,this.jobTitle.note=t.note,this.jobTitle.oldSpecification=t.jobSpecification?.id?t.jobSpecification:null,this.jobTitle.newSpecification=null,this.jobTitle.method="keepCurrent",this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.title.push((e=>{const o=t.findIndex((t=>String(t.title).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.jobTitleId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/admin/viewJobTitleList")},onSave(){this.isLoading=!0,this.http.update(this.jobTitleId,{title:this.jobTitle.title,description:this.jobTitle.description,note:this.jobTitle.note,currentJobSpecification:this.jobTitle.oldSpecification?this.jobTitle.method:void 0,specification:this.jobTitle.newSpecification?this.jobTitle.newSpecification:void 0}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))}}};const Lo=(0,r.Z)(Io,[["render",Mt]]);var Uo=Lo;const Ao={class:"orangehrm-background-container"},Po={class:"orangehrm-card-container"};function qo(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ao,[(0,a.createElementVNode)("div",Po,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_job_title")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.title,"onUpdate:modelValue":t[0]||(t[0]=e=>n.jobTitle.title=e),label:e.$t("general.job_title"),rules:n.rules.title,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.jobTitle.description=e),type:"textarea",label:e.$t("admin.job_description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.specification,"onUpdate:modelValue":t[2]||(t[2]=e=>n.jobTitle.specification=e),type:"file",label:e.$t("general.job_specification"),"button-label":e.$t("general.browse"),rules:n.rules.specification},null,8,["modelValue","label","button-label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.note,"onUpdate:modelValue":t[3]||(t[3]=e=>n.jobTitle.note=e),type:"textarea",label:e.$t("general.note"),placeholder:e.$t("general.add_note"),"label-icon":"pencil-square",rules:n.rules.note},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Mo={title:"",description:"",specification:null,note:""};var Fo={props:{allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-titles");return{http:e}},data(){return{isLoading:!1,jobTitle:{...Mo},rules:{title:[jt,zt(100)],description:[zt(400)],specification:[ro(this.allowedFileTypes),no(this.maxFileSize)],note:[zt(400)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.title.push((e=>{const o=t.findIndex((t=>String(t.title).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/admin/viewJobTitleList")},onSave(){this.isLoading=!0,this.http.create({...this.jobTitle}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))}}};const jo=(0,r.Z)(Fo,[["render",qo]]);var zo=jo;const Ro={class:"orangehrm-background-container"},Oo={class:"orangehrm-paper-container"},Go={class:"orangehrm-header-container"},Zo={class:"orangehrm-container"},Qo={class:"orangehrm-bottom-container"};function Ho(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ro,[(0,a.createElementVNode)("div",Oo,[(0,a.createElementVNode)("div",Go,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.job_categories")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Zo,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",Qo,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Wo={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-categories"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.job_category"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveJobCategory")},onClickEdit(e){U("/admin/saveJobCategory/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Yo=(0,r.Z)(Wo,[["render",Ho]]);var Jo=Yo;const Xo={class:"orangehrm-background-container"},Ko={class:"orangehrm-card-container"};function ea(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Xo,[(0,a.createElementVNode)("div",Ko,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_job_category")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.category.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.category.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var ta={props:{jobCategoryId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-categories");return{http:e}},data(){return{isLoading:!1,category:{id:"",name:""},rules:{name:[jt,zt(50)]},errors:[]}},created(){this.isLoading=!0,this.http.get(this.jobCategoryId).then((e=>{const{data:t}=e.data;return this.category.id=t.id,this.category.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.category.id||this.$t("general.already_exists")}return!0})),this.isLoading=!1})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.jobCategoryId,{name:this.category.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/jobCategory")}}};const oa=(0,r.Z)(ta,[["render",ea]]);var aa=oa;const la={class:"orangehrm-background-container"},na={class:"orangehrm-card-container"};function ra(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",la,[(0,a.createElementVNode)("div",na,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_job_category")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.category.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.category.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var ia={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-categories");return{http:e}},data(){return{isLoading:!1,category:{id:"",name:""},rules:{name:[jt,zt(50)]},errors:[]}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")})),this.isLoading=!1})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.category.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/jobCategory")}}};const sa=(0,r.Z)(ia,[["render",ra]]);var da=sa;const ca={class:"orangehrm-background-container"},ma=(0,a.createElementVNode)("br",null,null,-1),ua={class:"orangehrm-paper-container"},pa={class:"orangehrm-header-container"},ha={class:"orangehrm-container"},ga={class:"orangehrm-bottom-container"};function va(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("table-header"),y=(0,a.resolveComponent)("oxd-card-table"),C=(0,a.resolveComponent)("oxd-pagination"),b=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ca,[(0,a.createVNode)(v,{"filter-title":e.$t("admin.system_users")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.username,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.username=e),label:e.$t("general.username")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.userRoleId,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.userRoleId=e),type:"select",label:e.$t("general.user_role"),options:n.userRoles},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.empNumber,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.empNumber=e),rules:n.rules.employee},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.status,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.status=e),type:"select",label:e.$t("general.status"),options:n.userStatuses},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(p,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),ma,(0,a.createElementVNode)("div",ua,[(0,a.createElementVNode)("div",pa,[(0,a.createVNode)(p,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(f,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",ha,[(0,a.createVNode)(y,{selected:n.checkedItems,"onUpdate:selected":t[4]||(t[4]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[5]||(t[5]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",ga,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(C,{key:0,current:l.currentPage,"onUpdate:current":t[6]||(t[6]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(b,{ref:"deleteDialog"},null,512)])}const fa={key:0,class:"past-employee-tag"};function ya(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",label:e.$t("general.employee_name"),clear:!1,"create-options":r.loadEmployees},{afterSelected:(0,a.withCtx)((({data:t})=>[t.isPastEmployee?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.past_employee")),1)],64)):(0,a.createCommentVNode)("",!0)])),option:(0,a.withCtx)((({data:t})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(t.label),1),t.isPastEmployee?((0,a.openBlock)(),(0,a.createElementBlock)("div",fa,(0,a.toDisplayString)(e.$t("general.past_employee")),1)):(0,a.createCommentVNode)("",!0)])),_:1},8,["label","create-options"])}var Ca={name:"EmployeeAutocomplete",props:{params:{type:Object,default:()=>({})},apiPath:{type:String,default:"/api/v2/pim/employees"}},setup(e){const t=new P(window.appGlobal.baseUrl,e.apiPath);return{http:t}},methods:{async loadEmployees(e){return new Promise((t=>{e.trim()?this.http.getAll({nameOrId:e.trim(),...this.params}).then((({data:e})=>{t(e.data.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,_employee:e,isPastEmployee:!!e.terminationId}))))})):t([])}))}}};const ba=(0,r.Z)(Ca,[["render",ya],["__scopeId","data-v-1ccb3a64"]]);var Va=ba;function xa(){const{$t:e}=Se(),t=(t,o)=>{if("Purged"===t.firstName&&"Employee"===t.lastName)return e("general.purged_employee");const a=o?.includeMiddle,l=o?.excludePastEmpTag,n="boolean"===typeof a&&a&&"string"===typeof t.middleName?` ${t.middleName} `:" ";if(t.terminationId){const o="undefined"===typeof l?` ${e("general.past_employee")}`:l?"":` ${e("general.past_employee")}`;return`${t.firstName}${n}${t.lastName}${o}`}return`${t.firstName}${n}${t.lastName}`};return{$tEmpName:t}}const wa={username:"",userRoleId:null,empNumber:null,status:null},Na={"u.userName":"ASC","r.displayName":"ASC","e.firstName":"ASC","u.status":"DEFAULT"};var _a={components:{"delete-confirmation":Et,"employee-autocomplete":Va},props:{unselectableIds:{type:Array,default:()=>[]}},setup(e){const{$t:t}=Se(),{$tEmpName:o}=xa(),l=a=>a.map((a=>{const l=e.unselectableIds.findIndex((e=>e==a.id));return{id:a.id,userName:a.userName,role:"Admin"===a.userRole?.displayName?t("general.admin"):t("general.ess"),empName:o(a.employee,{includeMiddle:!1}),status:a.status?"Enabled":"Disabled",isSelectable:-1===l}})),n=(0,a.ref)({...wa}),{sortDefinition:r,sortField:i,sortOrder:s,onSort:d}=Tt({sortDefinition:Na}),c=(0,a.computed)((()=>({username:n.value.username,userRoleId:n.value.userRoleId?.id,empNumber:n.value.empNumber?.id,status:n.value.status?.id,sortField:i.value,sortOrder:s.value}))),m=new P(window.appGlobal.baseUrl,"/api/v2/admin/users"),{showPaginator:u,currentPage:p,total:h,pages:g,pageSize:v,response:f,isLoading:y,execQuery:C}=wt(m,{query:c,normalizer:l});return d(C),{http:m,showPaginator:u,currentPage:p,isLoading:y,total:h,pages:g,pageSize:v,execQuery:C,items:f,filters:n,sortDefinition:r}},data(){return{headers:[{name:"userName",title:this.$t("general.username"),sortField:"u.userName",style:{flex:1}},{name:"role",title:this.$t("general.user_role"),style:{flex:1},sortField:"r.displayName"},{name:"empName",slot:"title",title:this.$t("general.employee_name"),sortField:"e.firstName",style:{flex:1}},{name:"status",title:this.$t("general.status"),sortField:"u.status",style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],userRoles:[{id:1,label:this.$t("general.admin")},{id:2,label:this.$t("general.ess")}],userStatuses:[{id:1,label:this.$t("general.enabled")},{id:0,label:this.$t("general.disabled")}],checkedItems:[],rules:{employee:[xo]}}},methods:{onClickAdd(){U("/admin/saveSystemUser")},onClickEdit(e){U("/admin/saveSystemUser/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.cannotDelete();this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onClickReset(){this.filters={...wa},this.filterItems()}}};const ka=(0,r.Z)(_a,[["render",va]]);var Sa=ka;const Da={class:"orangehrm-background-container"},$a={class:"orangehrm-card-container"};function Ea(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("employee-autocomplete"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("password-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Da,[(0,a.createElementVNode)("div",$a,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_user")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.role,"onUpdate:modelValue":t[0]||(t[0]=e=>n.user.role=e),type:"select",label:e.$t("general.user_role"),rules:n.rules.role,options:n.userRoles,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.user.employee,"onUpdate:modelValue":t[1]||(t[1]=e=>n.user.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.status,"onUpdate:modelValue":t[2]||(t[2]=e=>n.user.status=e),type:"select",label:e.$t("general.status"),rules:n.rules.status,options:n.userStatuses,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.username,"onUpdate:modelValue":t[3]||(t[3]=e=>n.user.username=e),label:e.$t("general.username"),rules:n.rules.username,required:"",autocomplete:"off"},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,{password:n.user.password,"onUpdate:password":t[4]||(t[4]=e=>n.user.password=e),passwordConfirm:n.user.passwordConfirm,"onUpdate:passwordConfirm":t[5]||(t[5]=e=>n.user.passwordConfirm=e)},null,8,["password","passwordConfirm"]),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}function Ta(e,t,o,l,n,r){const i=(0,a.resolveComponent)("password-strength-indicator"),s=(0,a.resolveComponent)("oxd-input-field"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row");return(0,a.openBlock)(),(0,a.createBlock)(u,{class:"user-password-row"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"user-password-cell"},{default:(0,a.withCtx)((()=>[o.password?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,"password-strength":l.passwordStrength},null,8,["password-strength"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s,{type:"password",autocomplete:"off",required:!0,"model-value":o.password,rules:n.rules.password,label:e.$t("general.password"),"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:password",t))},null,8,["model-value","rules","label"]),(0,a.createVNode)(d,{class:"user-password-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.password_strength_message")),1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{ref:"passwordConfirm",type:"password",autocomplete:"off",required:!0,"model-value":o.passwordConfirm,rules:n.rules.passwordConfirm,label:e.$t("general.confirm_password"),"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:passwordConfirm",t))},null,8,["model-value","rules","label"])])),_:1})])),_:1})])),_:1})}function Ba(e){const t=(0,a.ref)(0),o=o=>new Promise((a=>{""!==o.trim()?e.request({method:"POST",url:"/api/v2/auth/public/validation/password",data:{password:o}}).then((e=>{const{data:o,meta:l}=e.data;t.value=l?.strength||0,Array.isArray(o?.messages)&&o.messages.length>0?a(o.messages[0]):a(!0)})):(t.value=0,a(!0))}));return{passwordStrength:t,validatePassword:o}}function Ia(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-chip");return(0,a.openBlock)(),(0,a.createBlock)(i,{class:(0,a.normalizeClass)(r.chipClasses),label:r.passwordStrengthLabel},null,8,["class","label"])}var La={name:"PasswordStrengthIndicator",components:{"oxd-chip":q.OxdChip},props:{passwordStrength:{type:Number,required:!0}},computed:{passwordStrengthLabel(){switch(this.passwordStrength){case 1:return this.$t("general.weak");case 2:return this.$t("general.better");case 3:return this.$t("general.strong");case 4:return this.$t("general.strongest");default:return this.$t("general.very_weak")}},chipClasses(){return{"orangehrm-password-chip":!0,"--strength-better":2===this.passwordStrength,"--strength-strong":3===this.passwordStrength,"--strength-strongest":4===this.passwordStrength}}}};const Ua=(0,r.Z)(La,[["render",Ia],["__scopeId","data-v-2eef2625"]]);var Aa=Ua,Pa={name:"PasswordInput",components:{"password-strength-indicator":Aa},props:{password:{type:String,required:!0},passwordConfirm:{type:String,required:!0}},emits:["update:password","update:passwordConfirm"],setup(){const e=new P(window.appGlobal.baseUrl,""),{passwordStrength:t,validatePassword:o}=Ba(e);return{passwordStrength:t,validatePassword:o}},data(){return{rules:{password:[jt,zt(64),(0,q.promiseDebounce)(this.validatePassword,500)],passwordConfirm:[jt,zt(64),e=>!!e&&e===this.password||this.$t("general.passwords_do_not_match")]}}},watch:{password(e){(this.passwordConfirm&&e!==this.passwordConfirm||this.passwordConfirm&&e===this.passwordConfirm)&&this.$nextTick(this.$refs.passwordConfirm.triggerUpdate)}}};const qa=(0,r.Z)(Pa,[["render",Ta],["__scopeId","data-v-9345d4ba"]]);var Ma=qa;const Fa={username:"",role:null,employee:null,status:null,password:"",passwordConfirm:""};var ja={components:{"employee-autocomplete":Va,"password-input":Ma},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/users");return e.setIgnorePath("/api/v2/admin/validation/user-name"),{http:e}},data(){return{isLoading:!1,user:{...Fa},rules:{username:[jt,po(5),zt(40),(0,q.promiseDebounce)(this.validateUserName,500)],role:[jt],employee:[jt,xo],status:[jt]},userRoles:[{id:1,label:this.$t("general.admin")},{id:2,label:this.$t("general.ess")}],userStatuses:[{id:1,label:this.$t("general.enabled")},{id:2,label:this.$t("general.disabled")}]}},methods:{onCancel(){U("/admin/viewSystemUsers")},onSave(){this.isLoading=!0,this.http.create({username:this.user.username.trim(),password:this.user.password,status:this.user.status&&1===this.user.status.id,userRoleId:this.user.role?.id,empNumber:this.user.employee?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},validateUserName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/admin/validation/user-name",params:{userName:this.user.username.trim()}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const za=(0,r.Z)(ja,[["render",Ea]]);var Ra=za;const Oa={class:"orangehrm-background-container"},Ga={class:"orangehrm-card-container"};function Za(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("employee-autocomplete"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("password-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Oa,[(0,a.createElementVNode)("div",Ga,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_user")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.role,"onUpdate:modelValue":t[0]||(t[0]=e=>n.user.role=e),type:"select",label:e.$t("general.user_role"),rules:n.rules.role,options:n.userRoles,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.user.employee,"onUpdate:modelValue":t[1]||(t[1]=e=>n.user.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.status,"onUpdate:modelValue":t[2]||(t[2]=e=>n.user.status=e),type:"select",label:e.$t("general.status"),rules:n.rules.status,options:n.userStatuses,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.username,"onUpdate:modelValue":t[3]||(t[3]=e=>n.user.username=e),label:e.$t("general.username"),rules:n.rules.username,required:"",autocomplete:"off"},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.changePassword,"onUpdate:modelValue":t[4]||(t[4]=e=>n.user.changePassword=e),type:"checkbox",value:"true","true-value":!0,"false-value":!1,"option-label":"Yes",label:e.$t("general.change_password_question")},null,8,["modelValue","label"])])),_:1})])),_:1})])),_:1}),n.user.changePassword?((0,a.openBlock)(),(0,a.createBlock)(h,{key:0,password:n.user.password,"onUpdate:password":t[5]||(t[5]=e=>n.user.password=e),passwordConfirm:n.user.passwordConfirm,"onUpdate:passwordConfirm":t[6]||(t[6]=e=>n.user.passwordConfirm=e)},null,8,["password","passwordConfirm"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Qa={id:"",username:"",role:null,employee:null,status:null,changePassword:!1,password:"",passwordConfirm:""};var Ha={components:{"employee-autocomplete":Va,"password-input":Ma},props:{systemUserId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/users");return e.setIgnorePath("/api/v2/admin/validation/user-name"),{http:e}},data(){return{isLoading:!1,user:{...Qa},rules:{username:[jt,po(5),zt(40),(0,q.promiseDebounce)(this.validateUserName,500)],role:[jt],employee:[jt,xo],status:[jt]},userRoles:[{id:1,label:this.$t("general.admin")},{id:2,label:this.$t("general.ess")}],userStatuses:[{id:1,label:this.$t("general.enabled")},{id:2,label:this.$t("general.disabled")}]}},beforeMount(){this.isLoading=!0,this.http.get(this.systemUserId).then((e=>{const{data:t}=e.data;this.user.id=t.id,this.user.username=t.userName,this.user.role=this.userRoles.find((e=>e.id===t.userRole.id)),this.user.employee={id:t.employee.empNumber,label:`${t.employee.firstName} ${t.employee.middleName} ${t.employee.lastName}`,isPastEmployee:t.employee.terminationId},t.status?this.user.status={id:1,label:this.$t("general.enabled")}:this.user.status={id:2,label:this.$t("general.disabled")}})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/admin/viewSystemUsers")},onSave(){this.isLoading=!0,this.http.update(this.systemUserId,{username:this.user.username.trim(),password:this.user.password,status:this.user.status&&"Enabled"===this.user.status.label,userRoleId:this.user.role?.id,empNumber:this.user.employee?.id,changePassword:this.user.changePassword}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},validateUserName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/admin/validation/user-name",params:{userName:this.user.username.trim(),userId:this.systemUserId}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const Wa=(0,r.Z)(Ha,[["render",Za]]);var Ya=Wa;const Ja={class:"orangehrm-background-container"},Xa={class:"orangehrm-paper-container"},Ka={class:"orangehrm-header-container"},el={key:1,class:"org-root-container"},tl={class:"org-container"},ol={key:0,class:"loader"},al={class:"org-name"},ll={key:0,class:"org-action"},nl=["onClick"],rl=["onClick"],il=["onClick"];function sl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-switch-input"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("oxd-loading-spinner"),u=(0,a.resolveComponent)("oxd-icon-button"),p=(0,a.resolveComponent)("oxd-dropdown"),h=(0,a.resolveComponent)("oxd-sheet"),g=(0,a.resolveComponent)("oxd-tree-view"),v=(0,a.resolveComponent)("delete-confirmation"),f=(0,a.resolveComponent)("save-org-unit"),y=(0,a.resolveComponent)("edit-org-unit");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ja,[(0,a.createElementVNode)("div",Xa,[(0,a.createElementVNode)("div",Ka,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.organization_structure")),1)])),_:1}),n.isLoading?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,modelValue:n.editable,"onUpdate:modelValue":t[0]||(t[0]=e=>n.editable=e),"option-label":e.$t("general.edit"),"label-position":"left"},null,8,["modelValue","option-label"]))]),n.isLoading?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-horizontal-margin orangehrm-clear-margins"})),n.isLoading?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",el,[(0,a.createVNode)(i,{tag:"p",class:(0,a.normalizeClass)({"--parent":n.data&&0!=n.data.children})},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.data.name),1)])),_:1},8,["class"]),(0,a.withDirectives)((0,a.createVNode)(c,{class:"org-structure-add",label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:t[1]||(t[1]=e=>r.onAddOrglevel(n.data))},null,8,["label"]),[[a.vShow,n.editable]])])),(0,a.createElementVNode)("div",tl,[n.isLoading?((0,a.openBlock)(),(0,a.createElementBlock)("div",ol,[(0,a.createVNode)(m)])):((0,a.openBlock)(),(0,a.createBlock)(g,{key:1,data:n.data,open:!0,"show-root":!1,class:"org-structure"},{content:(0,a.withCtx)((({nodeData:t})=>[(0,a.createVNode)(h,{type:"pastel-white",class:(0,a.normalizeClass)({"org-structure-card":!0,"--edit":n.editable})},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",al,(0,a.toDisplayString)(t.unitId?`${t.unitId}: ${t.name}`:`${t.name}`),1),n.editable?((0,a.openBlock)(),(0,a.createElementBlock)("div",ll,[l.isMobile?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0},{content:(0,a.withCtx)((()=>[(0,a.createElementVNode)("li",{class:"org-action-description",onClick:e=>r.onDelete(t)},[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.delete")),1)])),_:1})],8,nl),(0,a.createElementVNode)("li",{class:"org-action-description",onClick:e=>r.onEditOrglevel(t)},[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit")),1)])),_:1})],8,rl),(0,a.createElementVNode)("li",{class:"org-action-description",onClick:e=>r.onAddOrglevel(t)},[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add")),1)])),_:1})],8,il)])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{name:"three-dots","with-container":!0})])),_:2},1024)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createVNode)(u,{class:"org-action-icon",name:"trash-fill",role:"none",onClick:e=>r.onDelete(t)},null,8,["onClick"]),(0,a.createVNode)(u,{class:"org-action-icon",name:"pencil-fill",role:"none",onClick:e=>r.onEditOrglevel(t)},null,8,["onClick"]),(0,a.createVNode)(u,{class:"org-action-icon",name:"plus",role:"none",onClick:e=>r.onAddOrglevel(t)},null,8,["onClick"])],64))])):(0,a.createCommentVNode)("",!0)])),_:2},1032,["class"])])),_:1},8,["data"]))])]),(0,a.createVNode)(v,{ref:"deleteDialog"},null,512),n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(f,{key:0,data:n.saveModalState,onClose:r.onSaveModalClose},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(y,{key:1,data:n.editModalState,onClose:r.onEditModalClose},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0)])}const dl={class:"orangehrm-modal-header"};function cl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",dl,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_organization_unit")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.unitId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.orgUnit.unitId=e),label:e.$t("admin.unit_id"),rules:n.rules.unitId},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.name,"onUpdate:modelValue":t[1]||(t[1]=e=>n.orgUnit.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.orgUnit.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"level-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.this_unit_will_be_added_under"))+" ",1),(0,a.createElementVNode)("b",null,(0,a.toDisplayString)(o.data?.unitId?`${o.data.unitId}: ${o.data?.name}`:`${o.data?.name}`),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const ml={unitId:"",name:"",description:""};var ul={name:"SaveOrgUnit",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>({})}},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/subunits");return{http:e}},data(){return{isLoading:!1,orgUnit:{...ml},rules:{unitId:[zt(100)],name:[jt,zt(100)],description:[zt(400)]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;t&&this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return!(o>-1)||this.$t("admin.organization_unit_name_should_be_unique")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({...this.orgUnit,parentId:this.data?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.orgUnit={...ml},this.$emit("close",!0)}}};const pl=(0,r.Z)(ul,[["render",cl],["__scopeId","data-v-391369a4"]]);var hl=pl;const gl={class:"orangehrm-modal-header"};function vl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",gl,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_organization_unit")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.unitId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.orgUnit.unitId=e),label:e.$t("admin.unit_id"),rules:n.rules.unitId},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.name,"onUpdate:modelValue":t[1]||(t[1]=e=>n.orgUnit.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.orgUnit.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const fl={unitId:"",name:"",description:""};var yl={name:"EditOrgUnit",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>({})}},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/subunits");return{http:e}},data(){return{isLoading:!1,orgUnit:{...fl},rules:{unitId:[zt(100)],name:[jt,zt(100)],description:[zt(400)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;return this.orgUnit.name=t.name,this.orgUnit.description=t.description,this.orgUnit.unitId=t.unitId,this.http.getAll()})).then((e=>{const{data:t}=e.data;t&&this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.data.id||this.$t("admin.organization_unit_name_should_be_unique")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.orgUnit}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Cl=(0,r.Z)(yl,[["render",vl]]);var bl=Cl,Vl={components:{"oxd-sheet":q.OxdSheet,"save-org-unit":hl,"edit-org-unit":bl,"oxd-tree-view":q.OxdTreeView,"oxd-dropdown":q.OxdDropdownMenu,"oxd-loading-spinner":q.OxdSpinner,"oxd-switch-input":q.OxdSwitchInput,"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/subunits"),t=(0,q.useResponsive)(),o=(0,a.computed)((()=>!(t.screenType===q.DEVICE_TYPES.DEVICE_LG||t.screenType===q.DEVICE_TYPES.DEVICE_XL)));return{http:e,isMobile:o}},data(){return{isLoading:!1,editable:!1,showSaveModal:!1,saveModalState:null,showEditModal:!1,editModalState:null,data:{}}},created(){this.fetchOrgStructure()},methods:{onDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&(this.isLoading=!0,this.http.delete(e.id).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.fetchOrgStructure()})))}))},onAddOrglevel(e){this.editable&&(this.saveModalState=e,this.showSaveModal=!0)},onEditOrglevel(e){this.editable&&(this.editModalState=e,this.showEditModal=!0)},onSaveModalClose(){this.saveModalState=null,this.showSaveModal=!1,this.fetchOrgStructure()},onEditModalClose(){this.editModalState=null,this.showEditModal=!1,this.fetchOrgStructure()},fetchOrgStructure(){this.isLoading=!0,this.http.getAll({mode:"tree"}).then((e=>{const{data:t}=e.data;this.data=t[0]})).finally((()=>{this.isLoading=!1}))}}};const xl=(0,r.Z)(Vl,[["render",sl],["__scopeId","data-v-a525b582"]]);var wl=xl;const Nl={class:"orangehrm-background-container"},_l={class:"orangehrm-card-container"};function kl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Nl,[(0,a.createElementVNode)("div",_l,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_employment_status")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employmentStatus.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employmentStatus.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var Sl={props:{employmentStatusId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/employment-statuses");return{http:e}},data(){return{isLoading:!1,employmentStatus:{id:"",name:""},rules:{name:[jt,zt(50)]}}},created(){this.isLoading=!0,this.http.get(this.employmentStatusId).then((e=>{const{data:t}=e.data;return this.employmentStatus.id=t.id,this.employmentStatus.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.employmentStatus.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.employmentStatusId,{name:this.employmentStatus.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/employmentStatus")}}};const Dl=(0,r.Z)(Sl,[["render",kl]]);var $l=Dl;const El={class:"orangehrm-background-container"},Tl={class:"orangehrm-paper-container"},Bl={class:"orangehrm-header-container"},Il={class:"orangehrm-container"},Ll={class:"orangehrm-bottom-container"};function Ul(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",El,[(0,a.createElementVNode)("div",Tl,[(0,a.createElementVNode)("div",Bl,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.employment_status")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Il,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",Ll,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Al={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/employment-statuses"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.employment_status"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveEmploymentStatus")},onClickEdit(e){U("/admin/saveEmploymentStatus/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Pl=(0,r.Z)(Al,[["render",Ul]]);var ql=Pl;const Ml={class:"orangehrm-background-container"},Fl={class:"orangehrm-card-container"};function jl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ml,[(0,a.createElementVNode)("div",Fl,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_employment_status")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employmentStatus.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employmentStatus.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var zl={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/employment-statuses");return{http:e}},data(){return{isLoading:!1,employmentStatus:{id:"",name:""},rules:{name:[jt,zt(50)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.employmentStatus.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/employmentStatus")}}};const Rl=(0,r.Z)(zl,[["render",jl]]);var Ol=Rl;const Gl={class:"orangehrm-background-container"},Zl={class:"orangehrm-paper-container"},Ql={class:"orangehrm-header-container"},Hl={class:"orangehrm-container"},Wl={class:"orangehrm-bottom-container"};function Yl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Gl,[(0,a.createElementVNode)("div",Zl,[(0,a.createElementVNode)("div",Ql,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.education")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Hl,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",Wl,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Jl={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/educations"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.level"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveEducation")},onClickEdit(e){U("/admin/saveEducation/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Xl=(0,r.Z)(Jl,[["render",Yl]]);var Kl=Xl;const en={class:"orangehrm-background-container"},tn={class:"orangehrm-card-container"};function on(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",en,[(0,a.createElementVNode)("div",tn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_education")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.qualification.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.qualification.name=e),label:e.$t("general.level"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var an={props:{educationId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/educations");return{http:e}},data(){return{isLoading:!1,qualification:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.get(this.educationId).then((e=>{const{data:t}=e.data;return this.qualification.id=t.id,this.qualification.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e===this.qualification.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.educationId,{name:this.qualification.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/viewEducation")}}};const ln=(0,r.Z)(an,[["render",on]]);var nn=ln;const rn={class:"orangehrm-background-container"},sn={class:"orangehrm-card-container"};function dn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rn,[(0,a.createElementVNode)("div",sn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_education")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.qualification.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.qualification.name=e),label:e.$t("general.level"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var cn={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/educations");return{http:e}},data(){return{isLoading:!1,qualification:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")})),this.isLoading=!1})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.qualification.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/viewEducation")}}};const mn=(0,r.Z)(cn,[["render",dn]]);var un=mn;const pn={class:"orangehrm-background-container"},hn={class:"orangehrm-paper-container"},gn={class:"orangehrm-header-container"},vn={class:"orangehrm-container"},fn={class:"orangehrm-bottom-container"};function yn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",pn,[(0,a.createElementVNode)("div",hn,[(0,a.createElementVNode)("div",gn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.skills")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",vn,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",fn,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Cn={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/skills"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:2}},{name:"description",title:this.$t("general.description"),style:{flex:4}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveSkills")},onClickEdit(e){U("/admin/saveSkills/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const bn=(0,r.Z)(Cn,[["render",yn]]);var Vn=bn;const xn={class:"orangehrm-background-container"},wn={class:"orangehrm-card-container"};function Nn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xn,[(0,a.createElementVNode)("div",wn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_skill")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.skill.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.skill.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const _n={id:"",name:"",description:""};var kn={props:{qualificationSkillId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/skills");return{http:e}},data(){return{isLoading:!1,skill:{..._n},rules:{name:[jt,zt(120)],description:[zt(400)]}}},created(){this.isLoading=!0,this.http.get(this.qualificationSkillId).then((e=>{const{data:t}=e.data;return this.skill.id=t.id,this.skill.name=t.name,this.skill.description=t.description,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.qualificationSkillId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.qualificationSkillId,{name:this.skill.name,description:this.skill.description}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/viewSkills")}}};const Sn=(0,r.Z)(kn,[["render",Nn]]);var Dn=Sn;const $n={class:"orangehrm-background-container"},En={class:"orangehrm-card-container"};function Tn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",$n,[(0,a.createElementVNode)("div",En,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_skill")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.skill.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.skill.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Bn={id:"",name:"",description:""};var In={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/skills");return{http:e}},data(){return{isLoading:!1,skill:{...Bn},rules:{name:[jt,zt(120)],description:[zt(400)]},errors:[]}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.skill.name,description:this.skill.description}).then((()=>this.$toast.saveSuccess())).then((()=>{this.skill.name="",this.skill.description="",this.onCancel()}))},onCancel(){U("/admin/viewSkills")}}};const Ln=(0,r.Z)(In,[["render",Tn]]);var Un=Ln;const An={class:"orangehrm-background-container"},Pn={class:"orangehrm-card-container"};function qn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",An,[(0,a.createElementVNode)("div",Pn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_license")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.license.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.license.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var Mn={props:{licenseId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/licenses");return{http:e}},data(){return{isLoading:!1,license:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.get(this.licenseId).then((e=>{const{data:t}=e.data;return this.license.id=t.id,this.license.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e===this.license.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.licenseId,{name:this.license.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/viewLicenses")}}};const Fn=(0,r.Z)(Mn,[["render",qn]]);var jn=Fn;const zn={class:"orangehrm-background-container"},Rn={class:"orangehrm-card-container"};function On(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",zn,[(0,a.createElementVNode)("div",Rn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_license")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.license.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.license.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var Gn={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/licenses");return{http:e}},data(){return{isLoading:!1,license:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.license.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.license.name="",this.onCancel()}))},onCancel(){U("/admin/viewLicenses")}}};const Zn=(0,r.Z)(Gn,[["render",On]]);var Qn=Zn;const Hn={class:"orangehrm-background-container"},Wn={class:"orangehrm-paper-container"},Yn={class:"orangehrm-header-container"},Jn={class:"orangehrm-container"},Xn={class:"orangehrm-bottom-container"};function Kn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Hn,[(0,a.createElementVNode)("div",Wn,[(0,a.createElementVNode)("div",Yn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.licenses")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Jn,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",Xn,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var er={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/licenses"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveLicenses")},onClickEdit(e){U("/admin/saveLicenses/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const tr=(0,r.Z)(er,[["render",Kn]]);var or=tr;const ar={class:"orangehrm-background-container"},lr={class:"orangehrm-card-container"};function nr(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ar,[(0,a.createElementVNode)("div",lr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_language")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.language.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var rr={props:{qualificationLanguageId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/languages");return{http:e}},data(){return{isLoading:!1,language:{id:"",name:""},rules:{name:[jt,zt(120)]}}},created(){this.isLoading=!0,this.http.get(this.qualificationLanguageId).then((e=>{const{data:t}=e.data;return this.language.id=t.id,this.language.name=t.name,this.http.getAll()})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e===this.language.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.qualificationLanguageId,{name:this.language.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/viewLanguages")}}};const ir=(0,r.Z)(rr,[["render",nr]]);var sr=ir;const dr={class:"orangehrm-background-container"},cr={class:"orangehrm-card-container"};function mr(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",dr,[(0,a.createElementVNode)("div",cr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_language")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.language.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var ur={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/languages");return{http:e}},data(){return{isLoading:!1,language:{id:"",name:""},rules:{name:[jt,zt(120)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.language.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.language.name="",this.onCancel()}))},onCancel(){U("/admin/viewLanguages")}}};const pr=(0,r.Z)(ur,[["render",mr]]);var hr=pr;const gr={class:"orangehrm-background-container"},vr={class:"orangehrm-paper-container"},fr={class:"orangehrm-header-container"},yr={class:"orangehrm-container"},Cr={class:"orangehrm-bottom-container"};function br(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",gr,[(0,a.createElementVNode)("div",vr,[(0,a.createElementVNode)("div",fr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.languages")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",yr,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",Cr,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Vr={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/languages"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveLanguages")},onClickEdit(e){U("/admin/saveLanguages/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const xr=(0,r.Z)(Vr,[["render",br]]);var wr=xr;const Nr={class:"orangehrm-background-container"},_r={class:"orangehrm-paper-container"},kr={class:"orangehrm-header-container"},Sr={class:"orangehrm-container"},Dr={class:"orangehrm-bottom-container"};function $r(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Nr,[(0,a.createElementVNode)("div",_r,[(0,a.createElementVNode)("div",kr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.memberships")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Sr,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",Dr,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Er={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/memberships"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("pim.membership"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveMemberships")},onClickEdit(e){U("/admin/saveMemberships/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Tr=(0,r.Z)(Er,[["render",$r]]);var Br=Tr;const Ir={class:"orangehrm-background-container"},Lr={class:"orangehrm-card-container"};function Ur(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ir,[(0,a.createElementVNode)("div",Lr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_membership")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.membership.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var Ar={props:{qualificationMembershipId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/memberships");return{http:e}},data(){return{isLoading:!1,membership:{id:"",name:""},rules:{name:[jt,zt(50)]}}},created(){this.isLoading=!0,this.http.get(this.qualificationMembershipId).then((e=>{const{data:t}=e.data;return this.membership.id=t.id,this.membership.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e===this.membership.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.qualificationMembershipId,{name:this.membership.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/membership")}}};const Pr=(0,r.Z)(Ar,[["render",Ur]]);var qr=Pr;const Mr={class:"orangehrm-background-container"},Fr={class:"orangehrm-card-container"};function jr(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Mr,[(0,a.createElementVNode)("div",Fr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_membership")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.membership.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var zr={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/memberships");return{http:e}},data(){return{isLoading:!1,membership:{id:"",name:""},rules:{name:[jt,zt(50)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.membership.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.membership.name="",this.onCancel()}))},onCancel(){U("/admin/membership")}}};const Rr=(0,r.Z)(zr,[["render",jr]]);var Or=Rr;const Gr={class:"orangehrm-background-container"},Zr={class:"orangehrm-card-container"},Qr={class:"orangehrm-header-container"};function Hr(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-switch-input"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-input-group"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Gr,[(0,a.createElementVNode)("div",Zr,[(0,a.createElementVNode)("div",Qr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.general_information")),1)])),_:1}),(0,a.createVNode)(s,{modelValue:n.editable,"onUpdate:modelValue":t[0]||(t[0]=e=>n.editable=e),"option-label":e.$t("general.edit"),"label-position":"left"},null,8,["modelValue","option-label"])]),(0,a.createVNode)(d),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.name,"onUpdate:modelValue":t[1]||(t[1]=e=>n.organization.name=e),label:e.$t("admin.organization_name"),rules:n.rules.name,disabled:!n.editable,required:""},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{label:e.$t("admin.number_of_employees")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"no-of-employees-value"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.organization.noOfEmployees),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.registrationNumber,"onUpdate:modelValue":t[2]||(t[2]=e=>n.organization.registrationNumber=e),label:e.$t("admin.registration_number"),rules:n.rules.registrationNumber,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.taxId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.organization.taxId=e),label:e.$t("admin.tax_id"),rules:n.rules.taxId,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.phone,"onUpdate:modelValue":t[4]||(t[4]=e=>n.organization.phone=e),modelModifiers:{trim:!0},label:e.$t("general.phone"),rules:n.rules.phone,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.fax,"onUpdate:modelValue":t[5]||(t[5]=e=>n.organization.fax=e),label:e.$t("general.fax"),rules:n.rules.fax,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.email,"onUpdate:modelValue":t[6]||(t[6]=e=>n.organization.email=e),label:e.$t("general.email"),rules:n.rules.email,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.street1,"onUpdate:modelValue":t[7]||(t[7]=e=>n.organization.street1=e),label:e.$t("general.address_street_1"),rules:n.rules.street1,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.street2,"onUpdate:modelValue":t[8]||(t[8]=e=>n.organization.street2=e),label:e.$t("general.address_street_2"),rules:n.rules.street2,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.city,"onUpdate:modelValue":t[9]||(t[9]=e=>n.organization.city=e),label:e.$t("general.city"),rules:n.rules.city,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.province,"onUpdate:modelValue":t[10]||(t[10]=e=>n.organization.province=e),label:e.$t("general.state_province"),rules:n.rules.province,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.zipCode,"onUpdate:modelValue":t[11]||(t[11]=e=>n.organization.zipCode=e),label:e.$t("general.zip_postal_code"),rules:n.rules.zipCode,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.country,"onUpdate:modelValue":t[12]||(t[12]=e=>n.organization.country=e),label:e.$t("general.country"),type:"select",rules:n.rules.country,options:o.countryList,disabled:!n.editable},null,8,["modelValue","label","rules","options","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.note,"onUpdate:modelValue":t[13]||(t[13]=e=>n.organization.note=e),label:e.$t("general.notes"),type:"textarea",rules:n.rules.note,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),n.editable?((0,a.openBlock)(),(0,a.createBlock)(v,{key:0})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var Wr={components:{"oxd-switch-input":q.OxdSwitchInput},props:{numberOfEmployees:{type:Number,required:!0},countryList:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/organization");return{http:e}},data(){return{editable:!1,isLoading:!1,organization:{name:"",noOfEmployees:this.numberOfEmployees,registrationNumber:"",taxId:"",phone:"",fax:"",email:"",street1:"",street2:"",city:"",province:"",country:null,zipCode:"",note:""},rules:{name:[jt,zt(100)],registrationNumber:[zt(30)],taxId:[zt(30)],phone:[zt(30),so],fax:[zt(30),so],email:[zt(30),io],street1:[zt(100)],street2:[zt(100)],city:[zt(30)],province:[zt(30)],zipCode:[zt(30)],note:[zt(255)],country:[]},errors:[]}},created(){this.isLoading=!0,this.http.http.get("/api/v2/admin/organization").then((e=>{const{data:t}=e.data;this.organization.name=t.name,this.organization.registrationNumber=t.registrationNumber,this.organization.taxId=t.taxId,this.organization.phone=t.phone,this.organization.fax=t.fax,this.organization.email=t.email,this.organization.street1=t.street1,this.organization.street2=t.street2,this.organization.city=t.city,this.organization.province=t.province,""!==t.country&&null!==t.country&&(this.organization.country=this.countryList.find((e=>e.id===t.country))),this.organization.zipCode=t.zipCode,this.organization.note=t.note})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.http.put("/api/v2/admin/organization",{name:this.organization.name,registrationNumber:this.organization.registrationNumber,taxId:this.organization.taxId,phone:this.organization.phone,fax:this.organization.fax,email:this.organization.email,street1:this.organization.street1,street2:this.organization.street2,city:this.organization.city,province:this.organization.province,country:this.organization.country?.id,zipCode:this.organization.zipCode,note:this.organization.note}).then((()=>this.$toast.updateSuccess())).then((()=>{this.isLoading=!1,this.editable=!1}))}}};const Yr=(0,r.Z)(Wr,[["render",Hr],["__scopeId","data-v-440f5057"]]);var Jr=Yr;const Xr={class:"orangehrm-background-container"},Kr={class:"orangehrm-paper-container"},ei={class:"orangehrm-header-container"},ti={class:"orangehrm-container"},oi={class:"orangehrm-bottom-container"};function ai(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Xr,[(0,a.createElementVNode)("div",Kr,[(0,a.createElementVNode)("div",ei,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.nationalities")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",ti,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",oi,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var li={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/nationalities"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.nationality"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveNationality")},onClickEdit(e){U("/admin/saveNationality/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const ni=(0,r.Z)(li,[["render",ai]]);var ri=ni;const ii={class:"orangehrm-background-container"},si={class:"orangehrm-card-container"};function di(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ii,[(0,a.createElementVNode)("div",si,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_nationality")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.nationality.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.nationality.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var ci={props:{nationalityId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/nationalities");return{http:e}},data(){return{isLoading:!1,nationality:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.get(this.nationalityId).then((e=>{const{data:t}=e.data;return this.nationality.id=t.id,this.nationality.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e===this.nationality.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.nationalityId,{name:this.nationality.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/nationality")}}};const mi=(0,r.Z)(ci,[["render",di]]);var ui=mi;const pi={class:"orangehrm-background-container"},hi={class:"orangehrm-card-container"};function gi(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",pi,[(0,a.createElementVNode)("div",hi,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_nationality")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.nationality.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.nationality.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var vi={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/nationalities");return{http:e}},data(){return{isLoading:!1,nationality:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.nationality.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/nationality")}}};const fi=(0,r.Z)(vi,[["render",gi]]);var yi=fi;const Ci={class:"orangehrm-background-container"},bi={class:"orangehrm-card-container"},Vi={class:"send-method-div"},xi={class:"orangehrm-optional-field-row"},wi={class:"orangehrm-optional-field-row"};function Ni(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-group"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ci,[(0,a.createElementVNode)("div",bi,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.email_configuration")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.sentAs,"onUpdate:modelValue":t[0]||(t[0]=e=>n.emailConfiguration.sentAs=e),label:e.$t("admin.mail_sent_as"),rules:n.rules.sentAs,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{label:e.$t("admin.sending_method")},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Vi,[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.mailType,"onUpdate:modelValue":t[1]||(t[1]=e=>n.emailConfiguration.mailType=e),type:"radio","option-label":e.$t("admin.secure_smtp"),value:"smtps"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.emailConfiguration.mailType,"onUpdate:modelValue":t[2]||(t[2]=e=>n.emailConfiguration.mailType=e),type:"radio","option-label":e.$t("admin.smtp"),value:"smtp"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.emailConfiguration.mailType,"onUpdate:modelValue":t[3]||(t[3]=e=>n.emailConfiguration.mailType=e),type:"radio","option-label":e.$t("admin.sendmail"),value:"sendmail"},null,8,["modelValue","option-label"])])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),"sendmail"===n.emailConfiguration.mailType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{label:e.$t("admin.path_to_sendmail")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"sendmail-path-value"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.emailConfiguration.pathToSendmail),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),"sendmail"!==n.emailConfiguration.mailType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpHost,"onUpdate:modelValue":t[4]||(t[4]=e=>n.emailConfiguration.smtpHost=e),label:e.$t("admin.smtp_host"),rules:n.rules.smtpHost,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpPort,"onUpdate:modelValue":t[5]||(t[5]=e=>n.emailConfiguration.smtpPort=e),label:e.$t("admin.smtp_port"),rules:n.rules.smtpPort},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),"sendmail"!==n.emailConfiguration.mailType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:2},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{label:e.$t("admin.use_smtp_authentication"),classes:{wrapper:"--status-grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpAuthType,"onUpdate:modelValue":t[6]||(t[6]=e=>n.emailConfiguration.smtpAuthType=e),type:"radio","option-label":e.$t("general.yes"),value:"login"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpAuthType,"onUpdate:modelValue":t[7]||(t[7]=e=>n.emailConfiguration.smtpAuthType=e),type:"radio","option-label":e.$t("general.no"),value:"none"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),"sendmail"!==n.emailConfiguration.mailType&&"login"===n.emailConfiguration.smtpAuthType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpUsername,"onUpdate:modelValue":t[8]||(t[8]=e=>n.emailConfiguration.smtpUsername=e),label:e.$t("admin.smtp_user"),rules:n.rules.smtpUsername,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpPassword,"onUpdate:modelValue":t[9]||(t[9]=e=>n.emailConfiguration.smtpPassword=e),label:e.$t("admin.smtp_password"),rules:n.rules.smtpPassword,type:"password",placeholder:n.passwordPlaceHolder,required:""},null,8,["modelValue","label","rules","placeholder"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),"sendmail"!==n.emailConfiguration.mailType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:4,class:"orangehrm-input-field-bottom-space"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",xi,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.tls")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.useTLSSecureConnection,"onUpdate:modelValue":t[10]||(t[10]=e=>n.useTLSSecureConnection=e)},null,8,["modelValue"])])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),"sendmail"!==n.emailConfiguration.mailType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:5},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:1,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"tls-hint"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.optional_the_mail_server_requires_the_use_of_tls_security")),1)])),_:1})])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",wi,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.send_test_email")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.sendTestMailEditable,"onUpdate:modelValue":t[11]||(t[11]=e=>n.sendTestMailEditable=e)},null,8,["modelValue"])])])),_:1})])),_:1})])),_:1}),n.sendTestMailEditable?((0,a.openBlock)(),(0,a.createBlock)(p,{key:6},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.testEmailAddress,"onUpdate:modelValue":t[12]||(t[12]=e=>n.emailConfiguration.testEmailAddress=e),label:e.$t("admin.test_email_address"),rules:n.rules.testEmailAddress,disabled:!n.sendTestMailEditable,required:""},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onReset},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var _i={components:{"oxd-switch-input":q.OxdSwitchInput},props:{pathToSendmail:{type:String,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/email-configuration");return{http:e}},data(){return{passwordPlaceHolder:"",defaultValues:{smtpSecurityType:"tls"},useTLSSecureConnection:!0,sendTestMailEditable:!1,isLoading:!1,emailConfiguration:{mailType:"",sentAs:"",pathToSendmail:this.pathToSendmail,smtpHost:"",smtpPort:null,smtpUsername:"",smtpPassword:null,smtpAuthType:"",smtpSecurityType:"",testEmailAddress:""},initialEmailConfiguration:{...this.emailConfiguration,useTLSSecureConnection:!1},rules:{mailType:[jt,zt(50)],sentAs:[jt,zt(100),io],smtpHost:[jt,zt(100)],smtpPort:[zt(10)],smtpUsername:[jt,zt(100)],smtpPassword:[zt(100)],smtpAuthType:[zt(50)],smtpSecurityType:[zt(50)],testEmailAddress:[jt,zt(250),io]}}},created(){this.isLoading=!0,this.http.request({method:"GET",url:"/api/v2/admin/email-configuration"}).then((e=>{const{data:t}=e.data;this.emailConfiguration.mailType=t.mailType,this.emailConfiguration.sentAs=t.sentAs,this.emailConfiguration.smtpHost=t.smtpHost,this.emailConfiguration.smtpPort=t.smtpPort,this.emailConfiguration.smtpUsername=t.smtpUsername,this.passwordPlaceHolder=t.smtpUsername?"******":"",this.emailConfiguration.smtpAuthType=t.smtpAuthType,this.emailConfiguration.testEmailAddress=t.testEmailAddress,this.useTLSSecureConnection="tls"===t.smtpSecurityType,this.initialEmailConfiguration={...this.emailConfiguration,useTLSSecureConnection:this.useTLSSecureConnection},t.smtpUsername||this.rules.smtpPassword.push(jt)})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{mailType:this.emailConfiguration.mailType,sentAs:this.emailConfiguration.sentAs,smtpHost:this.emailConfiguration.smtpHost,smtpPort:parseInt(this.emailConfiguration.smtpPort),smtpUsername:"login"===this.emailConfiguration.smtpAuthType?this.emailConfiguration.smtpUsername:"",smtpPassword:""===this.emailConfiguration.smtpPassword?null:this.emailConfiguration.smtpPassword,smtpAuthType:this.emailConfiguration.smtpAuthType,smtpSecurityType:this.useTLSSecureConnection?"tls":"none",testEmailAddress:this.emailConfiguration.testEmailAddress}}).then((e=>{const t=e.data.meta?.testEmailStatus;return 1===t&&this.sendTestMailEditable?this.$toast.success({title:this.$t("general.success"),message:this.$t("admin.test_email_sent")}):0===t&&this.sendTestMailEditable&&this.$toast.warn({title:this.$t("general.failed"),message:this.$t("admin.test_email_not_sent")}),this.$toast.saveSuccess()})).then((()=>{this.isLoading=!1}))},onReset(){this.emailConfiguration={...this.initialEmailConfiguration},this.useTLSSecureConnection=this.initialEmailConfiguration.useTLSSecureConnection}}};const ki=(0,r.Z)(_i,[["render",Ni],["__scopeId","data-v-5b5ad744"]]);var Si=ki;const Di={class:"orangehrm-background-container"},$i=(0,a.createElementVNode)("br",null,null,-1),Ei={class:"orangehrm-paper-container"},Ti={class:"orangehrm-header-container"},Bi={class:"orangehrm-container"},Ii={class:"orangehrm-bottom-container"};function Li(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-table-filter"),v=(0,a.resolveComponent)("table-header"),f=(0,a.resolveComponent)("oxd-card-table"),y=(0,a.resolveComponent)("oxd-pagination"),C=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Di,[(0,a.createVNode)(g,{"filter-title":e.$t("admin.locations")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.name,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.name=e),label:e.$t("general.name")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.city,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.city=e),label:e.$t("general.city")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.countryCode,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.countryCode=e),type:"select",label:e.$t("general.country"),clear:!1,options:o.countries},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(u,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),$i,(0,a.createElementVNode)("div",Ei,[(0,a.createElementVNode)("div",Ti,[(0,a.createElementVNode)("div",null,[e.$can.create("locations")?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(v,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Bi,[(0,a.createVNode)(f,{selected:n.checkedItems,"onUpdate:selected":t[3]||(t[3]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[4]||(t[4]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:e.$can.delete("locations"),disabled:!(e.$can.delete("locations")&&e.$can.update("locations")),clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","selectable","disabled","loading"])]),(0,a.createElementVNode)("div",Ii,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,current:l.currentPage,"onUpdate:current":t[5]||(t[5]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(C,{ref:"deleteDialog"},null,512)])}const Ui={name:"",city:"",countryCode:{}},Ai={"location.name":"ASC","location.city":"DEFAULT","country.countryName":"DEFAULT","location.phone":"DEFAULT",noOfEmployees:"DEFAULT"},Pi=e=>e.map((e=>({id:e.id,name:e.name,city:e.city,country:e.country.countryName,phone:e.phone,noOfEmployees:e.noOfEmployees?e.noOfEmployees:0})));var qi={components:{"delete-confirmation":Et},props:{countries:{type:Array,default:()=>[]}},setup(){const{sortDefinition:e,sortField:t,sortOrder:o,onSort:l}=Tt({sortDefinition:Ai}),n=(0,a.ref)({...Ui}),r=(0,a.computed)((()=>({name:n.value.name,city:n.value.city,countryCode:n.value.countryCode?.id,sortField:t.value,sortOrder:o.value}))),i=new P(window.appGlobal.baseUrl,"/api/v2/admin/locations"),{showPaginator:s,currentPage:d,total:c,pages:m,pageSize:u,response:p,isLoading:h,execQuery:g}=wt(i,{query:r,normalizer:Pi});return l(g),{http:i,showPaginator:s,currentPage:d,isLoading:h,total:c,pages:m,pageSize:u,execQuery:g,items:p,filters:n,sortDefinition:e}},data(){const e={delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}};return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1},sortField:"location.name"},{name:"city",title:this.$t("general.city"),style:{flex:1},sortField:"location.city"},{name:"country",title:this.$t("general.country"),style:{flex:1},sortField:"country.countryName"},{name:"phone",title:this.$t("general.phone"),style:{flex:1},sortField:"location.phone"},{name:"noOfEmployees",title:this.$t("admin.number_of_employees"),style:{flex:1},sortField:"noOfEmployees"},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:e}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveLocation")},onClickEdit(e){U("/admin/saveLocation/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onClickReset(){this.filters={...Ui},this.filterItems()}}};const Mi=(0,r.Z)(qi,[["render",Li]]);var Fi=Mi;const ji={class:"orangehrm-background-container"},zi={class:"orangehrm-card-container"};function Ri(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ji,[(0,a.createElementVNode)("div",zi,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_location")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.location.name=e),label:e.$t("general.name"),rules:n.rules.name,required:"",disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.city,"onUpdate:modelValue":t[1]||(t[1]=e=>n.location.city=e),label:e.$t("general.city"),rules:n.rules.city,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.province,"onUpdate:modelValue":t[2]||(t[2]=e=>n.location.province=e),label:e.$t("general.state_province"),rules:n.rules.province,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.zipCode,"onUpdate:modelValue":t[3]||(t[3]=e=>n.location.zipCode=e),label:e.$t("general.zip_postal_code"),rules:n.rules.zipCode,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.countryCode,"onUpdate:modelValue":t[4]||(t[4]=e=>n.location.countryCode=e),type:"select",label:e.$t("general.country"),rules:n.rules.countryCode,clear:!1,options:o.countries,required:"",disabled:!r.hasCreatePermissions},null,8,["modelValue","label","rules","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.phone,"onUpdate:modelValue":t[5]||(t[5]=e=>n.location.phone=e),modelModifiers:{trim:!0},label:e.$t("general.phone"),rules:n.rules.phone,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.fax,"onUpdate:modelValue":t[6]||(t[6]=e=>n.location.fax=e),label:e.$t("general.fax"),rules:n.rules.fax,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.address,"onUpdate:modelValue":t[7]||(t[7]=e=>n.location.address=e),type:"textarea",label:e.$t("admin.address"),rules:n.rules.address,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.note,"onUpdate:modelValue":t[8]||(t[8]=e=>n.location.note=e),type:"textarea",label:e.$t("general.notes"),rules:n.rules.note,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),r.hasCreatePermissions?((0,a.openBlock)(),(0,a.createBlock)(g,{key:0})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Oi={name:"",countryCode:null,province:"",city:"",address:"",zipCode:"",phone:"",fax:"",note:""};var Gi={props:{countries:{type:Array,default:()=>[]}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/locations");return{http:e}},data(){return{isLoading:!1,location:{...Oi},rules:{name:[jt,zt(100)],countryCode:[jt],province:[zt(50)],city:[zt(50)],address:[zt(250)],zipCode:[zt(30)],phone:[zt(30),so],fax:[zt(30),so],note:[zt(250)]}}},computed:{hasCreatePermissions(){return this.$can.create("locations")}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/admin/viewLocations")},onSave(){this.isLoading=!0,this.http.create({...this.location,countryCode:this.location.countryCode.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))}}};const Zi=(0,r.Z)(Gi,[["render",Ri]]);var Qi=Zi;const Hi={class:"orangehrm-background-container"},Wi={class:"orangehrm-card-container"};function Yi(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Hi,[(0,a.createElementVNode)("div",Wi,[(0,a.createVNode)(i,{class:"orangehrm-main-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_location")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.location.name=e),disabled:!r.hasUpdatePermissions,rules:n.rules.name,label:e.$t("general.name"),required:""},null,8,["modelValue","disabled","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.city,"onUpdate:modelValue":t[1]||(t[1]=e=>n.location.city=e),disabled:!r.hasUpdatePermissions,rules:n.rules.city,label:e.$t("general.city")},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.province,"onUpdate:modelValue":t[2]||(t[2]=e=>n.location.province=e),disabled:!r.hasUpdatePermissions,rules:n.rules.province,label:e.$t("general.state_province")},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.zipCode,"onUpdate:modelValue":t[3]||(t[3]=e=>n.location.zipCode=e),disabled:!r.hasUpdatePermissions,rules:n.rules.zipCode,label:e.$t("general.zip_postal_code")},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.countryCode,"onUpdate:modelValue":t[4]||(t[4]=e=>n.location.countryCode=e),clear:!1,disabled:!r.hasUpdatePermissions,options:o.countries,rules:n.rules.countryCode,label:e.$t("general.country"),required:"",type:"select"},null,8,["modelValue","disabled","options","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.phone,"onUpdate:modelValue":t[5]||(t[5]=e=>n.location.phone=e),modelModifiers:{trim:!0},disabled:!r.hasUpdatePermissions,rules:n.rules.phone,label:e.$t("general.phone")},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.fax,"onUpdate:modelValue":t[6]||(t[6]=e=>n.location.fax=e),disabled:!r.hasUpdatePermissions,rules:n.rules.fax,label:e.$t("general.fax")},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.address,"onUpdate:modelValue":t[7]||(t[7]=e=>n.location.address=e),disabled:!r.hasUpdatePermissions,rules:n.rules.address,label:e.$t("admin.address"),type:"textarea"},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.note,"onUpdate:modelValue":t[8]||(t[8]=e=>n.location.note=e),disabled:!r.hasUpdatePermissions,rules:n.rules.note,label:e.$t("general.note"),type:"textarea"},null,8,["modelValue","disabled","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),r.hasUpdatePermissions?((0,a.openBlock)(),(0,a.createBlock)(g,{key:0})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Ji={name:"",countryCode:null,province:"",city:"",address:"",zipCode:"",phone:"",fax:"",note:""};var Xi={props:{locationId:{type:String,required:!0},countries:{type:Array,default:()=>[]}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/locations");return{http:e}},data(){return{isLoading:!1,location:{...Ji},rules:{name:[jt,zt(100)],countryCode:[jt],province:[zt(50)],city:[zt(50)],address:[zt(250)],zipCode:[zt(30)],phone:[zt(30),so],fax:[zt(30),so],note:[zt(250)]}}},computed:{hasUpdatePermissions(){return this.$can.update("locations")}},created(){this.isLoading=!0,this.http.get(parseInt(this.locationId,10)).then((e=>{const{data:t}=e.data;return this.location.name=t.name,this.location.countryCode=this.countries.find((e=>e.id===t.country.countryCode)),this.location.province=t.province,this.location.city=t.city,this.location.address=t.address,this.location.zipCode=t.zipCode,this.location.phone=t.phone,this.location.fax=t.fax,this.location.note=t.note,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return parseInt(e,10)===parseInt(this.locationId,10)||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/admin/viewLocations")},onSave(){this.isLoading=!0,this.http.update(this.locationId,{name:this.location.name,countryCode:this.location.countryCode.id,province:this.location.province,city:this.location.city,address:this.location.address,zipCode:this.location.zipCode,phone:this.location.phone,fax:this.location.fax,note:this.location.note}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))}}};const Ki=(0,r.Z)(Xi,[["render",Yi]]);var es=Ki;const ts={class:"orangehrm-background-container"},os={class:"orangehrm-paper-container"},as={class:"orangehrm-header-container"},ls={class:"orangehrm-container"},ns={class:"orangehrm-bottom-container"};function rs(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ts,[(0,a.createElementVNode)("div",os,[(0,a.createElementVNode)("div",as,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.pay_grades")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",ls,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",ns,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}const is=e=>e.map((e=>{const t=e.currencies.map((e=>e.name));return{id:e.id,name:e.name,currency:t.join(",")}}));var ss={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/pay-grades"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e,{normalizer:is});return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{"flex-basis":"40%"}},{name:"currency",title:this.$t("general.currency"),style:{"flex-basis":"40%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/payGrade")},onClickEdit(e){U("/admin/payGrade/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const ds=(0,r.Z)(ss,[["render",rs]]);var cs=ds;const ms={class:"orangehrm-background-container"},us={class:"orangehrm-card-container"};function ps(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ms,[(0,a.createElementVNode)("div",us,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_pay_grade")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.grade.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.grade.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var hs={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/pay-grades");return{http:e}},data(){return{isLoading:!1,grade:{id:"",name:""},rules:{name:[jt,zt(50)]},errors:[]}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")})),this.isLoading=!1})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.grade.name}).then((e=>{const{data:t}=e.data;this.$toast.saveSuccess(),U("/admin/payGrade/{id}",{id:t.id})}))},onCancel(){U("/admin/viewPayGrades")}}};const gs=(0,r.Z)(hs,[["render",ps]]);var vs=gs;const fs={class:"orangehrm-background-container"},ys={class:"orangehrm-card-container"};function Cs(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("pay-grade-currency");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",fs,[(0,a.createElementVNode)("div",ys,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_pay_grade")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.grade.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.grade.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])]),(0,a.createVNode)(y,{"pay-grade-id":o.payGradeId},null,8,["pay-grade-id"])],64)}const bs={class:"orangehrm-background-container"},Vs={class:"orangehrm-paper-container"},xs={class:"orangehrm-header-container"},ws={class:"orangehrm-container"},Ns={class:"orangehrm-bottom-container"};function _s(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-pay-currency"),s=(0,a.resolveComponent)("edit-pay-currency"),d=(0,a.resolveComponent)("inline-action-button"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,"pay-grade-id":o.payGradeId,onClose:r.onSaveModalClose},null,8,["pay-grade-id","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,data:n.editModalState,"pay-grade-id":o.payGradeId,onClose:r.onEditModalClose},null,8,["data","pay-grade-id","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",bs,[(0,a.createElementVNode)("div",Vs,[(0,a.createElementVNode)("div",xs,[(0,a.createVNode)(d,{"display-type":"secondary",onClick:r.onclickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.currencies")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",ws,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:r.selectable,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","loading"])]),(0,a.createElementVNode)("div",Ns,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])])],64)}const ks={class:"orangehrm-action-header"};function Ss(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ks,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)])),_:3}),(0,a.createVNode)(s,(0,a.mergeProps)({label:e.$t("general.add"),"icon-name":"plus","display-type":"text"},e.$attrs),null,16,["label"])])}var Ds={name:"InlineActionButton",inheritAttrs:!1};const $s=(0,r.Z)(Ds,[["render",Ss],["__scopeId","data-v-6526a07f"]]);var Es=$s;const Ts={class:"orangehrm-card-container"};function Bs(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ts,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_currency")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.currencyId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.payCurrency.currencyId=e),type:"select",label:e.$t("general.currency"),options:n.currencies,rules:n.rules.currencyId,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.minSalary,"onUpdate:modelValue":t[1]||(t[1]=e=>n.payCurrency.minSalary=e),label:e.$t("admin.minimum_salary"),rules:n.rules.minSalary},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.maxSalary,"onUpdate:modelValue":t[2]||(t[2]=e=>n.payCurrency.maxSalary=e),label:e.$t("admin.maximum_salary"),rules:n.rules.maxSalary},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const Is={currencyId:null,minSalary:"",maxSalary:""};var Ls={name:"SavePayCurrency",props:{payGradeId:{type:Number,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/pay-grades/${e.payGradeId}/currencies`);return{http:t}},data(){return{isLoading:!1,payCurrency:{...Is},currencies:[],rules:{currencyId:[jt],minSalary:[mo(1e9),Qt],maxSalary:[mo(1e9),Qt,ho((()=>this.payCurrency.minSalary),this.$t("admin.should_be_higher_than_minimum_salary"))]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:`/api/v2/admin/pay-grades/${this.payGradeId}/currencies/allowed`,params:{limit:0}}).then((e=>{const{data:t}=e.data;this.currencies=t.map((e=>({id:e.id,label:e.id+" - "+e.name})))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({...this.payCurrency,currencyId:this.payCurrency.currencyId.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Us=(0,r.Z)(Ls,[["render",Bs]]);var As=Us;const Ps={class:"orangehrm-card-container"};function qs(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ps,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_currency")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.payCurrency.name=e),label:e.$t("general.currency"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.minSalary,"onUpdate:modelValue":t[1]||(t[1]=e=>n.payCurrency.minSalary=e),label:e.$t("admin.minimum_salary"),rules:n.rules.minSalary},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.maxSalary,"onUpdate:modelValue":t[2]||(t[2]=e=>n.payCurrency.maxSalary=e),label:e.$t("admin.maximum_salary"),rules:n.rules.maxSalary},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const Ms={currencyId:null,minSalary:"",maxSalary:""};var Fs={name:"EditPayCurrency",props:{payGradeId:{type:Number,required:!0},data:{type:Object,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/pay-grades/${e.payGradeId}/currencies`);return{http:t}},data(){return{isLoading:!1,payCurrency:{...Ms},rules:{currencyId:[jt],minSalary:[mo(1e9),Qt],maxSalary:[mo(1e9),Qt,ho((()=>this.payCurrency.minSalary),this.$t("admin.should_be_higher_than_minimum_salary"))]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.payCurrency.name=t.currencyType.name,this.payCurrency.minSalary=t.minSalary?t.minSalary:"0",this.payCurrency.maxSalary=t.maxSalary?t.maxSalary:"0"})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{minSalary:this.payCurrency.minSalary,maxSalary:this.payCurrency.maxSalary}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const js=(0,r.Z)(Fs,[["render",qs]]);var zs=js;const Rs=e=>e.map((e=>({id:e.currencyType.id,name:e.currencyType.name,maxSalary:e.maxSalary?parseFloat(e.maxSalary).toFixed(2):"0.00",minSalary:e.minSalary?parseFloat(e.minSalary).toFixed(2):"0.00"})));var Os={name:"PayGradeCurrency",components:{"inline-action-button":Es,"save-pay-currency":As,"edit-pay-currency":zs,"delete-confirmation":Et},props:{payGradeId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/pay-grades/${e.payGradeId}/currencies`),{showPaginator:o,currentPage:a,total:l,pages:n,pageSize:r,response:i,isLoading:s,execQuery:d}=wt(t,{normalizer:Rs});return{http:t,showPaginator:o,currentPage:a,isLoading:s,total:l,pages:n,pageSize:r,execQuery:d,items:i}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.currency"),style:{flex:2}},{name:"minSalary",title:this.$t("admin.minimum_salary"),style:{flex:1}},{name:"maxSalary",title:this.$t("admin.maximum_salary"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{selectable(){return!(this.showSaveModal||this.showEditModal)}},methods:{onclickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickDelete(e){this.selectable&&this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},onClickDeleteSelected(){if(!this.selectable)return;const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Gs=(0,r.Z)(Os,[["render",_s]]);var Zs=Gs,Qs={components:{"pay-grade-currency":Zs},props:{payGradeId:{type:String,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/pay-grades");return{http:e}},data(){return{isLoading:!1,grade:{id:"",name:""},rules:{name:[jt,zt(50)]},errors:[]}},created(){this.isLoading=!0,this.http.get(this.payGradeId).then((e=>{const{data:t}=e.data;return this.grade.id=t.id,this.grade.name=t.name,this.http.getAll()})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.grade.id||this.$t("general.already_exists")}return!0})),this.isLoading=!1})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.payGradeId,{name:this.grade.name}).then((()=>this.$toast.updateSuccess())).then((()=>{A()}))},onCancel(){U("/admin/viewPayGrades")}}};const Hs=(0,r.Z)(Qs,[["render",Cs]]);var Ws=Hs;const Ys={class:"orangehrm-background-container"},Js={class:"orangehrm-card-container"},Xs={class:"orangehrm-module-field-row"},Ks={class:"orangehrm-module-field-row"},ed={class:"orangehrm-module-field-row"},td={class:"orangehrm-module-field-row"},od={class:"orangehrm-module-field-row"},ad={class:"orangehrm-module-field-row"},ld={class:"orangehrm-module-field-row"},nd={class:"orangehrm-module-field-row"},rd={class:"orangehrm-module-field-row"};function id(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-switch-input"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("submit-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ys,[(0,a.createElementVNode)("div",Js,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.module_configuration")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Xs,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.admin_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.admin,"onUpdate:modelValue":t[0]||(t[0]=e=>n.modules.admin=e),disabled:!0},null,8,["modelValue"])]),(0,a.createElementVNode)("div",Ks,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.pim_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.pim,"onUpdate:modelValue":t[1]||(t[1]=e=>n.modules.pim=e),disabled:!0},null,8,["modelValue"])]),(0,a.createElementVNode)("div",ed,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.leave_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.leave,"onUpdate:modelValue":t[2]||(t[2]=e=>n.modules.leave=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",td,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.time_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.time,"onUpdate:modelValue":t[3]||(t[3]=e=>n.modules.time=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",od,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.recruitment_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.recruitment,"onUpdate:modelValue":t[4]||(t[4]=e=>n.modules.recruitment=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",ad,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.performance_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.performance,"onUpdate:modelValue":t[5]||(t[5]=e=>n.modules.performance=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",ld,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.directory_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.directory,"onUpdate:modelValue":t[6]||(t[6]=e=>n.modules.directory=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",nd,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.maintenance_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.maintenance,"onUpdate:modelValue":t[7]||(t[7]=e=>n.modules.maintenance=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",rd,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.mobile")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.mobile,"onUpdate:modelValue":t[8]||(t[8]=e=>n.modules.mobile=e)},null,8,["modelValue"])])])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const sd={admin:!1,pim:!1,leave:!1,time:!1,recruitment:!1,performance:!1,maintenance:!1,mobile:!1,directory:!1};var dd={components:{"oxd-switch-input":q.OxdSwitchInput},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/modules");return{http:e}},data(){return{modules:{...sd},isLoading:!1}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.modules.admin=t.admin,this.modules.pim=t.pim,this.modules.leave=t.leave,this.modules.time=t.time,this.modules.recruitment=t.recruitment,this.modules.performance=t.performance,this.modules.maintenance=t.maintenance,this.modules.mobile=t.mobile,this.modules.directory=t.directory})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e={admin:!0,pim:!0,leave:this.modules.leave,time:this.modules.time,recruitment:this.modules.recruitment,performance:this.modules.performance,maintenance:this.modules.maintenance,mobile:this.modules.mobile,directory:this.modules.directory};this.http.request({method:"PUT",data:e}).then((e=>{const{data:t}=e.data;return this.modules=t,this.$toast.saveSuccess()})).finally((()=>{this.isLoading=!1,A()}))}}};const cd=(0,r.Z)(dd,[["render",id],["__scopeId","data-v-4e1bed3c"]]);var md=cd;const ud={class:"orangehrm-background-container"},pd={class:"orangehrm-paper-container"},hd={class:"orangehrm-header-container"},gd={class:"orangehrm-container"},vd={class:"orangehrm-bottom-container"};function fd(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ud,[(0,a.createElementVNode)("div",pd,[(0,a.createElementVNode)("div",hd,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.work_shifts")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",gd,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",vd,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var yd={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/work-shifts"),{timeFormat:t,jsTimeFormat:o}=R(),a=e=>e.map((e=>({id:e.id,name:e.name,startTime:ue(me(e.startTime,t),o),endTime:ue(me(e.endTime,t),o),hoursPerDay:parseFloat(e.hoursPerDay).toFixed(2)}))),{showPaginator:l,currentPage:n,total:r,pages:i,pageSize:s,response:d,isLoading:c,execQuery:m}=wt(e,{normalizer:a});return{http:e,showPaginator:l,currentPage:n,isLoading:c,total:r,pages:i,pageSize:s,execQuery:m,items:d}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1}},{name:"startTime",title:this.$t("general.from"),style:{flex:1}},{name:"endTime",title:this.$t("general.to"),style:{flex:1}},{name:"hoursPerDay",title:this.$t("admin.hours_per_day"),style:{flex:1}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveWorkShifts")},onClickEdit(e){U("/admin/saveWorkShifts/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Cd=(0,r.Z)(yd,[["render",fd]]);var bd=Cd;const Vd={class:"orangehrm-background-container"},xd={class:"orangehrm-card-container"};function wd(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("time-input"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("work-shift-employee-autocomplete"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Vd,[(0,a.createElementVNode)("div",xd,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_work_shift")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workShift.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.workShift.name=e),label:e.$t("admin.shift_name"),rules:n.rules.name},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.working_hours"))+" *",1)])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workShift.startTime,"onUpdate:modelValue":t[1]||(t[1]=e=>n.workShift.startTime=e),rules:n.rules.fromTime,label:e.$t("general.from")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workShift.endTime,"onUpdate:modelValue":t[2]||(t[2]=e=>n.workShift.endTime=e),rules:n.rules.endTime,label:e.$t("general.to")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{label:e.$t("admin.duration_per_day")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-workshift-duration",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.selectedTimeDuration),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.workShift.empNumbers,"onUpdate:modelValue":t[3]||(t[3]=e=>n.workShift.empNumbers=e),rules:n.rules.empNumbers},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}function Nd(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete");return(0,a.openBlock)(),(0,a.createBlock)(i,{label:e.$t("admin.assigned_employees"),multiple:!0,clear:!1,"create-options":r.loadEmployees},null,8,["label","create-options"])}var _d={name:"WorkShiftEmployeeAutocomplete",components:{"employee-autocomplete":Va},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/work-shifts/employees");return{http:e}},methods:{async loadEmployees(e){return new Promise((t=>{e.trim()?this.http.getAll({nameOrId:e.trim()}).then((({data:e})=>{t(e.data.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId}))))})):t([])}))}}};const kd=(0,r.Z)(_d,[["render",Nd]]);var Sd=kd;const Dd={id:"",name:"",hoursPerDay:"",startTime:"",endTime:"",empNumbers:[]};var $d={components:{"work-shift-employee-autocomplete":Sd},props:{workShiftConfig:{type:Object,required:!0,default:()=>({})}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/work-shifts");return{http:e}},data(){return{isLoading:!1,workShift:{...Dd},rules:{name:[jt,zt(50)],fromTime:[jt,Gt],endTime:[jt,Gt,lo((()=>this.workShift.startTime),this.$t("general.to_time_should_be_after_from_time"))],empNumbers:[xo]}}},computed:{selectedTimeDuration(){return parseFloat(ge(this.workShift.startTime,this.workShift.endTime)/3600).toFixed(2)}},beforeMount(){this.isLoading=!0,this.workShift.startTime=this.workShiftConfig.startTime,this.workShift.endTime=this.workShiftConfig.endTime,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e={name:this.workShift.name,hoursPerDay:this.selectedTimeDuration,startTime:this.workShift.startTime,endTime:this.workShift.endTime,empNumbers:this.workShift.empNumbers.map((e=>e.id))};this.http.create(e).then((()=>this.$toast.saveSuccess())).then((()=>{this.workShift={...Dd},this.onCancel()}))},onCancel(){U("/admin/workShift")}}};const Ed=(0,r.Z)($d,[["render",wd],["__scopeId","data-v-003161fa"]]);var Td=Ed;const Bd={class:"orangehrm-background-container"},Id={class:"orangehrm-card-container"};function Ld(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("time-input"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("work-shift-employee-autocomplete"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Bd,[(0,a.createElementVNode)("div",Id,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_work_shift")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workShift.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.workShift.name=e),label:e.$t("admin.shift_name"),rules:n.rules.name},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("Working Hours*")])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workShift.startTime,"onUpdate:modelValue":t[1]||(t[1]=e=>n.workShift.startTime=e),rules:n.rules.fromTime,label:e.$t("general.from")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workShift.endTime,"onUpdate:modelValue":t[2]||(t[2]=e=>n.workShift.endTime=e),rules:n.rules.endTime,label:e.$t("general.to")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{label:e.$t("admin.duration_per_day")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-workshift-duration",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.selectedTimeDuration),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.workShift.empNumbers,"onUpdate:modelValue":t[3]||(t[3]=e=>n.workShift.empNumbers=e),rules:n.rules.empNumbers},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Ud={id:"",name:"",hoursPerDay:"",startTime:null,endTime:null,empNumbers:[]};var Ad={components:{"work-shift-employee-autocomplete":Sd},props:{workShiftId:{type:Number,required:!0,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/work-shifts");return{http:e}},data(){return{isLoading:!1,workShift:{...Ud},rules:{name:[jt,zt(50)],fromTime:[Gt],endTime:[Gt,lo((()=>this.workShift.startTime),"To time should be after from time")],empNumbers:[xo]}}},computed:{selectedTimeDuration(){return parseFloat(ge(this.workShift.startTime,this.workShift.endTime)/3600).toFixed(2)}},beforeMount(){this.isLoading=!0,this.http.get(this.workShiftId).then((e=>{const{data:t}=e.data;return this.workShift.id=t.id,this.workShift.name=t.name,this.workShift.hoursPerDay=t.hoursPerDay,this.workShift.startTime=t.startTime,this.workShift.endTime=t.endTime,this.workShift.empNumbers=t.employees.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId}))),this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.workShift.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e={name:this.workShift.name,hoursPerDay:this.selectedTimeDuration,startTime:this.workShift.startTime,endTime:this.workShift.endTime,empNumbers:this.workShift.empNumbers.map((e=>e.id))};this.http.update(this.workShiftId,e).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/workShift")}}};const Pd=(0,r.Z)(Ad,[["render",Ld],["__scopeId","data-v-4e80e7d6"]]);var qd=Pd;const Md={class:"orangehrm-background-container"},Fd={class:"orangehrm-paper-container"},jd={class:"orangehrm-header-container"},zd={class:"orangehrm-container"},Rd=(0,a.createElementVNode)("div",{class:"orangehrm-bottom-container"},null,-1);function Od(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Md,[(0,a.createElementVNode)("div",Fd,[(0,a.createElementVNode)("div",jd,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.email_subscriptions")),1)])),_:1})]),(0,a.createVNode)(s,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",zd,[(0,a.createVNode)(d,{loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["loading","headers","items"])]),Rd])])}var Gd={setup(){const{$t:e}=Se(),t=t=>t.map((t=>{const o=Array.isArray(t.subscribers)?t.subscribers.slice(0,10):[];let a=t.name;switch(a){case"Leave Applications":a=e("admin.leave_applications");break;case"Leave Approvals":a=e("admin.leave_approvals");break;case"Leave Assignments":a=e("admin.leave_assignments");break;case"Leave Cancellations":a=e("admin.leave_cancellation");break;case"Leave Rejections":a=e("admin.leave_rejections");break}return{id:t.id,type:a,subscribers:o.map((e=>`${e.name} <${e.email}>`)).join(", "),enabled:t.isEnabled,_loading:!1}})),o=new P(window.appGlobal.baseUrl,"/api/v2/admin/email-subscriptions"),{total:a,response:l,isLoading:n}=wt(o,{normalizer:t});return{http:o,isLoading:n,total:a,items:l}},data(){return{headers:[{name:"type",slot:"title",title:this.$t("admin.notification_type"),style:{flex:"20%"}},{name:"subscribers",title:this.$t("admin.subscribers"),style:{flex:"65%"}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:"15%"},cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer}]}},methods:{cellRenderer(...e){const[t,,,o]=e,a={component:"oxd-icon-button",props:{name:"person-plus-fill",onClick:()=>{U("/admin/saveSubscriber/{id}",{id:o.id})}}},l={component:q.OxdSwitchInput,props:{modelValue:o.enabled,"onUpdate:modelValue":e=>{this.items.data[t]._loading=!0,this.http.update(o.id,{enabled:e}).then((e=>{const{data:o}=e.data;this.items.data[t].enabled=o.isEnabled,this.$toast.updateSuccess()})).finally((()=>{this.items.data[t]._loading=!1}))},style:{"margin-left":"1rem","text-align":"left"}}},n={component:q.OxdSpinner,props:{withContainer:!1}};return{props:{header:{cellConfig:{...o._loading?{loader:n}:{addSubscriber:a,switchSubscription:l}}}}}}}};const Zd=(0,r.Z)(Gd,[["render",Od]]);var Qd=Zd;const Hd={class:"orangehrm-background-container"},Wd={class:"orangehrm-paper-container"},Yd={class:"orangehrm-header-container"},Jd={class:"orangehrm-container"},Xd={class:"orangehrm-bottom-container"};function Kd(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation"),p=(0,a.resolveComponent)("save-subscriber"),h=(0,a.resolveComponent)("edit-subscriber");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Hd,[(0,a.createElementVNode)("div",Wd,[(0,a.createElementVNode)("div",Yd,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.subscribers"))+": "+(0,a.toDisplayString)(r.title),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Jd,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",Xd,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512),n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,data:{subscriptionId:o.subscriptionId},onClose:r.onSaveModalClose},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(h,{key:1,data:n.editModalState,onClose:r.onEditModalClose},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0)])}const ec={class:"orangehrm-modal-header"};function tc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",ec,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_subscriber")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.subscriber.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.subscriber.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.subscriber.email,"onUpdate:modelValue":t[1]||(t[1]=e=>n.subscriber.email=e),label:e.$t("general.email"),rules:n.rules.email,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const oc={name:"",email:""};var ac={name:"SaveSubscriber",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>({})}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/email-subscriptions/${e.data.subscriptionId}/subscribers`);return{http:t}},data(){return{isLoading:!1,subscriber:{...oc},rules:{name:[jt,zt(100)],email:[jt,io,zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;t&&this.rules.email.push((e=>{const o=t.findIndex((t=>t.email==e));return!(o>-1)||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({...this.subscriber}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.subscriber={...oc},this.$emit("close",!0)}}};const lc=(0,r.Z)(ac,[["render",tc],["__scopeId","data-v-cc6ef064"]]);var nc=lc;const rc={class:"orangehrm-modal-header"};function ic(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",rc,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_subscriber")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.subscriber.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.subscriber.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.subscriber.email,"onUpdate:modelValue":t[1]||(t[1]=e=>n.subscriber.email=e),label:e.$t("general.email"),rules:n.rules.email,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const sc={name:"",email:""};var dc={name:"EditSubscriber",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>({})}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/email-subscriptions/${e.data.subscriptionId}/subscribers`);return{http:t}},data(){return{isLoading:!1,subscriber:{...sc},rules:{name:[jt,zt(100)],email:[jt,io,zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;return this.subscriber.name=t.name,this.subscriber.email=t.email,this.http.getAll()})).then((e=>{const{data:t}=e.data;t&&this.rules.email.push((e=>{const o=t.findIndex((t=>t.email==e));if(o>-1){const{id:e}=t[o];return e==this.data.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.subscriber}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.subscriber={...sc},this.$emit("close",!0)}}};const cc=(0,r.Z)(dc,[["render",ic],["__scopeId","data-v-36993096"]]);var mc=cc,uc={components:{"save-subscriber":nc,"edit-subscriber":mc,"delete-confirmation":Et},props:{subscriptionId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/email-subscriptions/${e.subscriptionId}/subscribers`),{showPaginator:o,currentPage:a,total:l,pages:n,pageSize:r,response:i,isLoading:s,execQuery:d}=wt(t);return{http:t,showPaginator:o,currentPage:a,isLoading:s,total:l,pages:n,pageSize:r,execQuery:d,items:i}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:"30%"}},{name:"email",title:this.$t("general.email"),style:{flex:"55%"}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:"15%"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{title(){return this.items.meta?this.items.meta?.name:""}},methods:{onClickAdd(){this.showSaveModal=!0},onClickEdit(e){this.editModalState={...e,subscriptionId:this.subscriptionId},this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.editModalState=null,this.showEditModal=!1,this.resetDataTable()},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const pc=(0,r.Z)(uc,[["render",Kd]]);var hc=pc;const gc={class:"orangehrm-background-container"},vc={class:"orangehrm-card-container"};function fc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",gc,[(0,a.createElementVNode)("div",vc,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.localization")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.configuration.language,"onUpdate:modelValue":t[0]||(t[0]=e=>n.configuration.language=e),label:e.$t("general.language"),type:"select","show-empty-selector":!1,options:o.languageList},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.configuration.dateFormat,"onUpdate:modelValue":t[1]||(t[1]=e=>n.configuration.dateFormat=e),label:e.$t("admin.date_format"),type:"select","show-empty-selector":!1,options:o.dateFormatList},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var yc={props:{dateFormatList:{type:Array,required:!0},languageList:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/localization");return{http:e}},data(){return{isLoading:!1,configuration:{language:null,dateFormat:null}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.configuration.language=this.languageList.find((e=>e.id===t.language)),this.configuration.dateFormat=this.dateFormatList.find((e=>e.id===t.dateFormat))})).finally((()=>this.isLoading=!1))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",url:"/api/v2/admin/localization",data:{language:this.configuration.language?.id,dateFormat:this.configuration.dateFormat?.id}}).then((()=>this.$toast.updateSuccess())).then((()=>A()))}}};const Cc=(0,r.Z)(yc,[["render",fc]]);var bc=Cc;const Vc=e=>((0,a.pushScopeId)("data-v-f2980770"),e=e(),(0,a.popScopeId)(),e),xc={class:"orangehrm-background-container"},wc={class:"orangehrm-card-container"},Nc=Vc((()=>(0,a.createElementVNode)("br",null,null,-1))),_c=Vc((()=>(0,a.createElementVNode)("br",null,null,-1))),kc={class:"orangehrm-sm-field"},Sc={class:"orangehrm-actions-group"};function Dc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("inline-color-input"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("file-upload-input"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xc,[(0,a.createElementVNode)("div",wc,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.corporate_branding")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{ref:"formRef",loading:e.isLoading,onSubmitValid:l.onFormSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.primaryColor,"onUpdate:modelValue":t[0]||(t[0]=t=>e.colors.primaryColor=t),rules:l.rules.color,label:e.$t("admin.primary_color"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-column-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.secondaryColor,"onUpdate:modelValue":t[1]||(t[1]=t=>e.colors.secondaryColor=t),rules:l.rules.color,label:e.$t("admin.secondary_color"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.primaryFontColor,"onUpdate:modelValue":t[2]||(t[2]=t=>e.colors.primaryFontColor=t),rules:l.rules.color,label:e.$t("admin.primary_font_color"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2 --offset-column-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.secondaryFontColor,"onUpdate:modelValue":t[3]||(t[3]=t=>e.colors.secondaryFontColor=t),rules:l.rules.color,label:e.$t("admin.secondary_font_color"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.primaryGradientStartColor,"onUpdate:modelValue":t[4]||(t[4]=t=>e.colors.primaryGradientStartColor=t),rules:l.rules.color,label:e.$t("admin.primary_gradient_color_one"),type:"color",required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-3 --offset-column-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.primaryGradientEndColor,"onUpdate:modelValue":t[5]||(t[5]=t=>e.colors.primaryGradientEndColor=t),rules:l.rules.color,label:e.$t("admin.primary_gradient_color_two"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),Nc,(0,a.createVNode)(s),_c,(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{newFile:e.clientLogo.newAttachment,"onUpdate:newFile":t[6]||(t[6]=t=>e.clientLogo.newAttachment=t),method:e.clientLogo.method,"onUpdate:method":t[7]||(t[7]=t=>e.clientLogo.method=t),label:e.$t("admin.client_logo"),"button-label":e.$t("general.browse"),file:e.clientLogo.oldAttachment,rules:l.rules.clientLogo,hint:e.$t("general.accept_jpg_png_gif_upto_recommended_dimensions",{fileSize:"1MB",width:50,height:50}),"button-icon":"",url:"admin/theme/attachments/image"},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{newFile:e.clientBanner.newAttachment,"onUpdate:newFile":t[8]||(t[8]=t=>e.clientBanner.newAttachment=t),method:e.clientBanner.method,"onUpdate:method":t[9]||(t[9]=t=>e.clientBanner.method=t),label:e.$t("admin.client_banner"),"button-label":e.$t("general.browse"),file:e.clientBanner.oldAttachment,rules:l.rules.clientBanner,hint:e.$t("general.accept_jpg_png_gif_upto_recommended_dimensions",{fileSize:"1MB",width:182,height:50}),"button-icon":"",url:"admin/theme/attachments/image"},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{newFile:e.loginBanner.newAttachment,"onUpdate:newFile":t[10]||(t[10]=t=>e.loginBanner.newAttachment=t),method:e.loginBanner.method,"onUpdate:method":t[11]||(t[11]=t=>e.loginBanner.method=t),label:e.$t("admin.login_banner"),"button-label":e.$t("general.browse"),file:e.loginBanner.oldAttachment,rules:l.rules.loginBanner,hint:e.$t("general.accept_jpg_png_gif_upto_recommended_dimensions",{fileSize:"1MB",width:340,height:65}),"button-icon":"",url:"admin/theme/attachments/image"},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",kc,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-sm-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.social_media_images")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:e.showSocialMediaImages,"onUpdate:modelValue":t[12]||(t[12]=t=>e.showSocialMediaImages=t)},null,8,["modelValue"])])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createElementVNode)("div",Sc,[(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.reset_to_default"),onClick:l.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.preview"),onClick:l.onClickPreview},null,8,["label","onClick"]),(0,a.createVNode)(v,{type:"submit","display-type":"secondary",label:e.$t("general.publish")},null,8,["label"])])])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}function $c({refName:e="formRef"}={}){const t=(0,a.ref)(),o=()=>t.value?.onSubmit(new Event("submit")),l=()=>t.value?.onReset(),n=()=>t.value?.validate(),r=(0,a.computed)((()=>t.value?.isFromInvalid)),i=(0,a.computed)((()=>t.value?.errorbag));return{reset:l,submit:o,validate:n,[e]:t,errorbag:i,invalid:r}}function Ec(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-label"),s=(0,a.resolveComponent)("oxd-color-input"),d=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createBlock)(d,{class:"oxd-input-field-bottom-space",message:l.message,classes:l.classes},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:o.label,class:(0,a.normalizeClass)(l.classes.label)},null,8,["label","class"]),(0,a.createVNode)(s,(0,a.mergeProps)(e.$attrs,{disabled:o.disabled,"has-error":l.hasError,"model-value":o.modelValue,"dropdown-position":"left","onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t))}),null,16,["disabled","has-error","model-value"])])),_:1},8,["message","classes"])}var Tc={name:"InlineColorInput",components:{"oxd-label":q.OxdLabel,"oxd-color-input":q.OxdColorInput},inheritAttrs:!1,props:{label:{type:String,default:null,required:!1},rules:{type:Array,default:()=>[],required:!1},required:{type:Boolean,default:!1,required:!1},modelValue:{type:String,default:null,required:!1},disabled:{type:Boolean,default:!1,required:!1}},emits:["update:modelValue"],setup(e,t){const o=(0,a.toRef)(e,"disabled"),l=(0,a.toRef)(e,"modelValue"),n=l.value,r=async()=>{t.emit("update:modelValue",n),await(0,a.nextTick)()},{hasError:i,message:s}=(0,q.useField)({fieldLabel:e.label??"",rules:e.rules,modelValue:l,onReset:r,disabled:o}),d=(0,a.computed)((()=>({label:{"oxd-input-field-required":e.required},message:{"oxd-input-field-error-message":i},wrapper:{"orangehrm-color-input-wrapper":!0}})));return{classes:d,message:s,hasError:i}}};const Bc=(0,r.Z)(Tc,[["render",Ec],["__scopeId","data-v-9d33cb16"]]);var Ic=Bc;const Lc={primaryColor:null,primaryFontColor:null,secondaryColor:null,secondaryFontColor:null,primaryGradientStartColor:null,primaryGradientEndColor:null},Uc={oldAttachment:null,newAttachment:null,method:"keepCurrent"};var Ac={components:{"oxd-switch-input":q.OxdSwitchInput,"file-upload-input":To,"inline-color-input":Ic},props:{allowedImageTypes:{type:Array,required:!0},aspectRatios:{type:Object,required:!0},aspectRatioTolerance:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/admin/theme"),{saveSuccess:o}=yt(),{formRef:l,invalid:n,validate:r}=$c(),i=(0,a.reactive)({isLoading:!1,colors:{...Lc},clientLogo:{...Uc},clientBanner:{...Uc},loginBanner:{...Uc},showSocialMediaImages:!0}),s={color:[jt,fo],clientLogo:[e=>"replaceCurrent"!==i.clientLogo.method||jt(e),no(1048576),yo(e.aspectRatios.clientLogo,e.aspectRatioTolerance),ro(e.allowedImageTypes)],clientBanner:[e=>"replaceCurrent"!==i.clientBanner.method||jt(e),no(1048576),yo(e.aspectRatios.clientBanner,e.aspectRatioTolerance),ro(e.allowedImageTypes)],loginBanner:[e=>"replaceCurrent"!==i.loginBanner.method||jt(e),no(1048576),yo(e.aspectRatios.loginBanner,e.aspectRatioTolerance),ro(e.allowedImageTypes)]},d=()=>{const e=e=>{if(null===e.method||"replaceCurrent"===e.method)return e.newAttachment};i.isLoading=!0,t.request({method:"PUT",url:"/api/v2/admin/theme",data:{variables:i.colors,showSocialMediaImages:i.showSocialMediaImages,currentClientLogo:i.clientLogo.method,clientLogo:e(i.clientLogo),currentClientBanner:i.clientBanner.method,clientBanner:e(i.clientBanner),currentLoginBanner:i.loginBanner.method,loginBanner:e(i.loginBanner)}}).then((()=>o())).then((()=>A()))},c=()=>{i.isLoading=!0,t.request({method:"DELETE",url:"/api/v2/admin/theme"}).then((()=>A()))},m=()=>{r().then((()=>{!0!==n.value&&(i.isLoading=!0,t.request({method:"POST",url:"/api/v2/admin/theme/preview",data:{...i.colors}}).then((e=>{const{data:t}=e.data;for(const o in t){const e=t[o];document.documentElement.style.setProperty(o,e)}})).finally((()=>i.isLoading=!1)))}))};return(0,a.onBeforeMount)((()=>{i.isLoading=!0,t.getAll().then((e=>{const{data:t}=e.data,{clientLogo:o,clientBanner:a,loginBanner:l,showSocialMediaImages:n,variables:r}=t;i.colors=r,null===o?i.clientLogo.method=null:(i.clientLogo.oldAttachment=o,i.clientLogo.oldAttachment.id="clientLogo"),null===a?i.clientBanner.method=null:(i.clientBanner.oldAttachment=a,i.clientBanner.oldAttachment.id="clientBanner"),null===l?i.loginBanner.method=null:(i.loginBanner.oldAttachment=l,i.loginBanner.oldAttachment.id="loginBanner"),i.showSocialMediaImages=n})).finally((()=>i.isLoading=!1))})),{rules:s,formRef:l,onFormSubmit:d,onClickReset:c,onClickPreview:m,...(0,a.toRefs)(i)}}};const Pc=(0,r.Z)(Ac,[["render",Dc],["__scopeId","data-v-f2980770"]]);var qc=Pc;const Mc={class:"orangehrm-background-container"},Fc={class:"orangehrm-paper-container"},jc={class:"orangehrm-header-container"},zc={class:"orangehrm-container"},Rc={class:"orangehrm-bottom-container"};function Oc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("add-language-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Mc,[(0,a.createElementVNode)("div",Fc,[(0,a.createElementVNode)("div",jc,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.language_packages")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAddLanguage},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{loading:l.isLoading,total:l.total,selected:0},null,8,["loading","total"]),(0,a.createElementVNode)("div",zc,[(0,a.createVNode)(c,{order:l.sortDefinition,"onUpdate:order":t[0]||(t[0]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["order","headers","items","loading"])]),(0,a.createElementVNode)("div",Rc,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),n.showAddLanguageModal?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,onClose:r.onAddLanguageModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)])}const Gc={class:"orangehrm-modal-header"},Zc={class:"addlanguage-note"},Qc={class:"addlanguage-note-text"};function Hc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("languages-dropdown"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(g,{"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Gc,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_language_package")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(h,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language,"onUpdate:modelValue":t[0]||(t[0]=e=>n.language=e),rules:n.rules.language},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Zc,[(0,a.createElementVNode)("div",Qc,[(0,a.createVNode)(i,{class:"orangehrm-sub-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.note")),1)])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.translate_text_manually")),1)])),_:1})])])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,{class:"orangehrm-form-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(u,{"display-type":"secondary",label:e.$t("general.save"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}function Wc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("general.name"),options:l.options,required:""},null,8,["label","options"])}var Yc={name:"LanguagesDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/admin/i18n/languages");return(0,a.onBeforeMount)((()=>{t.getAll({activeOnly:!1,limit:0}).then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.name})))}))})),{options:e}}};const Jc=(0,r.Z)(Yc,[["render",Wc]]);var Xc=Jc,Kc={name:"AddLanguageModal",components:{"oxd-dialog":q.OxdDialog,"languages-dropdown":Xc},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/i18n/languages");return{http:e}},data(){return{isLoading:!1,language:null,rules:{language:[jt]}}},methods:{onSave(){this.http.update(this.language.id,null).then((e=>{if(e)return this.$toast.saveSuccess()})).then((()=>{this.isLoading=!1,this.$emit("close")}))},onCancel(){this.$emit("close")}}};const em=(0,r.Z)(Kc,[["render",Hc],["__scopeId","data-v-08ca613a"]]);var tm=em;const om={languageName:""},am={languageName:"ASC"};var lm={name:"LanguagePackageList",components:{"add-language-modal":tm},setup(){const e=(0,a.ref)({...om}),{sortDefinition:t,sortOrder:o,onSort:l}=Tt({sortDefinition:am}),n=(0,a.computed)((()=>({sortOrder:o.value,activeOnly:!0}))),r=new P(window.appGlobal.baseUrl,"/api/v2/admin/i18n/languages"),{showPaginator:i,currentPage:s,total:d,pages:c,pageSize:m,response:u,isLoading:p,execQuery:h}=wt(r,{query:n});return l(h),{http:r,showPaginator:i,currentPage:s,isLoading:p,total:d,pages:c,pageSize:m,execQuery:h,items:u,filters:e,sortDefinition:t}},data(){return{showAddLanguageModal:!1,headers:[{name:"name",slot:"title",title:this.$t("general.language_packages"),sortField:"languageName",style:{flex:"70%"}},{name:"actions",slot:"footer",title:this.$t("general.actions"),cellType:"oxd-table-cell-actions",style:{flex:"30%"},cellConfig:{translate:{component:"oxd-button",onClick:this.onClickTranslate,props:{label:this.$t("admin.translate"),style:"Text",displayType:"text"}},export:{component:"oxd-button",props:{label:this.$t("admin.export"),displayType:"text",size:"medium"},onClick:this.onClickExport}}}]}},methods:{onClickAddLanguage(){this.showAddLanguageModal=!0},onAddLanguageModalClose(){this.showAddLanguageModal=!1,this.reloadLanguages()},onCancel(){U("/admin/languagePackage")},async reloadLanguages(){await this.execQuery()},onClickTranslate(e){U("/admin/languageCustomization/{id}",{id:e.id})},onClickExport(e){const t=L("/admin/viewLanguagePackage/languageId/{languageId}",{languageId:e.id});window.open(t,"_blank")}}};const nm=(0,r.Z)(lm,[["render",Oc],["__scopeId","data-v-745f4367"]]);var rm=nm;const im=e=>((0,a.pushScopeId)("data-v-1ad53bff"),e=e(),(0,a.popScopeId)(),e),sm={class:"orangehrm-background-container"},dm=im((()=>(0,a.createElementVNode)("br",null,null,-1))),cm={class:"orangehrm-paper-container"},mm={class:"orangehrm-header-container"},um={class:"orangehrm-bottom-container"};function pm(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("language-group-list-dropdown"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("oxd-pagination"),y=(0,a.resolveComponent)("table-header"),C=(0,a.resolveComponent)("edit-translations");return(0,a.openBlock)(),(0,a.createElementBlock)("div",sm,[(0,a.createVNode)(v,{"filter-title":e.$t("admin.translate_language_package")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:l.onSubmit,onReset:l.onReset},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{value:o.languagePackage,label:e.$t("admin.language_package"),disabled:""},null,8,["value","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{value:o.sourceLanguage,label:e.$t("admin.source_language"),disabled:""},null,8,["value","label"])])),_:1})])),_:1}),(0,a.createVNode)(d,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.groupId,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.groupId=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.sourceText,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.sourceText=e),label:e.$t("admin.source_text")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.translatedText,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.translatedText=e),label:e.$t("admin.translated_text")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.onlyTranslated,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.onlyTranslated=e),type:"select",label:e.$t("admin.show"),options:l.translationOptions},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.sortOrder,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.sortOrder=e),type:"select",label:e.$t("admin.order"),options:l.sortOptions},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(p,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),dm,(0,a.createElementVNode)("div",cm,[l.total>0?((0,a.openBlock)(),(0,a.createBlock)(g,{key:0,loading:l.isLoading,onSubmitValid:l.onSubmitLangString,onReset:l.onReset},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",mm,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(f,{key:l.currentPage,current:l.currentPage,"onUpdate:current":t[5]||(t[5]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(y,{loading:l.isLoading,total:l.total,selected:0},null,8,["loading","total"]),l.items?.data?((0,a.openBlock)(),(0,a.createBlock)(C,{key:0,langstrings:l.items.data,"onUpdate:langstrings":t[6]||(t[6]=e=>l.items.data=e)},null,8,["langstrings"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",um,[(0,a.createElementVNode)("div",null,[(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.cancel"),type:"reset"},null,8,["label"]),(0,a.createVNode)(p,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.save"),type:"submit"},null,8,["label"])])])])),_:1})])),_:1},8,["loading","onSubmitValid","onReset"])):(0,a.createCommentVNode)("",!0)])])}const hm={class:"orangehrm-translation-container"};function gm(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-divider"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid");return(0,a.openBlock)(),(0,a.createElementBlock)("div",hm,[(0,a.createVNode)(i),(0,a.createVNode)(m,{cols:3,class:"orangehrm-translation-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{class:"orangehrm-translation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.source_text")),1)])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-translation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.source_note")),1)])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-translation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.translated_text")),1)])),_:1})])),_:1}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.langstrings,((t,o)=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:o},[(0,a.createVNode)(d,{class:"orangehrm-translation-grid-text"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-translation-grid-langstring-header",type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.source_text")),1)])),_:1}),(0,a.createVNode)(s,{title:t.source},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.source),1)])),_:2},1032,["title"])])),_:2},1024),(0,a.createVNode)(d,{class:"orangehrm-translation-grid-text"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-translation-grid-langstring-header-note",type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.source_note")),1)])),_:1}),(0,a.createVNode)(s,{title:t.note,class:"orangehrm-translation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.note),1)])),_:2},1032,["title"])])),_:2},1024),(0,a.createVNode)(d,{class:"orangehrm-translation-grid-text"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-translation-grid-langstring-header",type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.translated_text")),1)])),_:1}),(0,a.createVNode)(c,{type:"input",placeholder:t.target,"model-value":t.target,rules:l.rules.langString,"onUpdate:modelValue":e=>l.onUpdateTranslation(e,o)},null,8,["placeholder","model-value","rules","onUpdate:modelValue"]),(0,a.createVNode)(i,{class:"orangehrm-translation-grid-langstring-header"})])),_:2},1024)],64)))),128))])),_:1}),(0,a.createVNode)(i)])}var vm={props:{langstrings:{type:Array,required:!0}},emits:["update:langstrings"],setup(e,t){const o=(o,a)=>{t.emit("update:langstrings",e.langstrings.map(((e,t)=>t===a?{...e,target:o,modified:!0}:e)))};return{onUpdateTranslation:o,rules:{langString:[Vo]}}}};const fm=(0,r.Z)(vm,[["render",gm],["__scopeId","data-v-5f0f9ef8"]]);var ym=fm;function Cm(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("admin.module"),options:l.options},null,8,["label","options"])}var bm={name:"GroupListDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/admin/i18n/groups");return(0,a.onBeforeMount)((()=>{t.getAll().then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.title})))}))})),{options:e}}};const Vm=(0,r.Z)(bm,[["render",Cm]]);var xm=Vm;const wm={sourceText:null,translatedText:null,groupId:null,sortOrder:null,onlyTranslated:null};var Nm={name:"LanguageTranslationList",components:{"language-group-list-dropdown":xm,"edit-translations":ym},props:{languageId:{type:Number,required:!0},languagePackage:{type:String,required:!0},sourceLanguage:{type:String,required:!0}},setup(e){const{$t:t}=Se(),{saveSuccess:o}=yt(),l=(0,a.ref)([{id:1,label:t("admin.all"),value:null},{id:2,label:t("admin.translated"),value:!0},{id:3,label:t("admin.not_translated"),value:!1}]),n=(0,a.ref)([{id:"ASC",label:t("general.ascending")},{id:"DESC",label:t("general.descending")}]),r=(0,a.ref)({...wm,sortOrder:n.value[0],onlyTranslated:l.value[0]}),i=(0,a.computed)((()=>({sourceText:r.value.sourceText,translatedText:r.value.translatedText,groupId:r.value.groupId?.id,sortOrder:r.value.sortOrder?.id,onlyTranslated:r.value.onlyTranslated?.value}))),s=new P(window.appGlobal.baseUrl,`/api/v2/admin/i18n/languages/${e.languageId}/translations`),{showPaginator:d,currentPage:c,total:m,pages:u,response:p,isLoading:h,execQuery:g}=wt(s,{query:i}),v=()=>{c.value=1,r.value={...wm,sortOrder:n.value[0]},g()},f=()=>{c.value=1,g()},y=()=>{h.value=!0,s.request({method:"PUT",url:`/api/v2/admin/i18n/languages/${e.languageId}/translations/bulk`,data:{data:p.value.data.filter((e=>null!==e.target&&1==e.modified)).map((e=>({langStringId:e.langStringId,translatedValue:e.target})))}}).then((()=>o())).then((()=>A()))};return{showPaginator:d,currentPage:c,isLoading:h,total:m,pages:u,items:p,filters:r,translationOptions:l,sortOptions:n,onReset:v,onSubmit:f,onSubmitLangString:y}}};const _m=(0,r.Z)(Nm,[["render",pm],["__scopeId","data-v-1ad53bff"]]);var km=_m;const Sm=e=>((0,a.pushScopeId)("data-v-89df999a"),e=e(),(0,a.popScopeId)(),e),Dm={class:"orangehrm-background-container"},$m={class:"orangehrm-card-container"},Em={class:"orangehrm-header-container"},Tm=Sm((()=>(0,a.createElementVNode)("br",null,null,-1)));function Bm(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-switch-input"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-icon"),g=(0,a.resolveComponent)("oxd-alert"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("ldap-test-connection-modal"),b=(0,a.resolveComponent)("ldap-sync-connection");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Dm,[(0,a.createElementVNode)("div",$m,[(0,a.createElementVNode)("div",Em,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.ldap_configuration")),1)])),_:1}),(0,a.createVNode)(s,{modelValue:n.configuration.enable,"onUpdate:modelValue":t[0]||(t[0]=e=>n.configuration.enable=e),"label-position":"left","option-label":e.$t("general.enable")},null,8,["modelValue","option-label"])]),(0,a.createVNode)(d),(0,a.createVNode)(y,{ref:"formRef",loading:n.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.server_settings")),1)])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.hostname,"onUpdate:modelValue":t[1]||(t[1]=e=>n.configuration.hostname=e),label:e.$t("admin.host"),rules:n.rules.hostname,required:""},null,8,["modelValue","label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.ldap_host_input_hint")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-column-half"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.port,"onUpdate:modelValue":t[2]||(t[2]=e=>n.configuration.port=e),label:e.$t("admin.port"),rules:n.rules.port,required:""},null,8,["modelValue","label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.port_input_hint")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.encryption,"onUpdate:modelValue":t[3]||(t[3]=e=>n.configuration.encryption=e),type:"select",options:n.encryptionOptions,label:e.$t("admin.encryption")},null,8,["modelValue","options","label"])])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.ldapImplementation,"onUpdate:modelValue":t[4]||(t[4]=e=>n.configuration.ldapImplementation=e),type:"select","show-empty-selector":!1,options:n.ldapImplementationOptions,label:e.$t("admin.ldap_implementation")},null,8,["modelValue","options","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-form-divider"}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.bind_settings")),1)])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-ldap-switch"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-ldap-switch-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.bind_anonymously")),1)])),_:1}),(0,a.createVNode)(s,{modelValue:n.configuration.bindAnonymously,"onUpdate:modelValue":t[5]||(t[5]=e=>n.configuration.bindAnonymously=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),n.configuration.bindAnonymously?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(p,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.bindUserDN,"onUpdate:modelValue":t[6]||(t[6]=e=>n.configuration.bindUserDN=e),label:e.$t("admin.distinguished_name"),rules:n.rules.bindUserDN,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.bindUserPassword,"onUpdate:modelValue":t[7]||(t[7]=e=>n.configuration.bindUserPassword=e),type:"password",label:e.$t("general.password"),placeholder:r.passwordPlaceHolder,rules:n.rules.bindUserPassword,required:!n.configuration.hasBindUserPassword},null,8,["modelValue","label","placeholder","rules","required"])])),_:1})])),_:1})])),_:1})),(0,a.createVNode)(d,{class:"orangehrm-form-divider"}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.user_lookup_settings")),1)])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.baseDistinguishedName,"onUpdate:modelValue":t[8]||(t[8]=e=>n.configuration.baseDistinguishedName=e),label:e.$t("admin.base_distinguished_name"),rules:n.rules.baseDistinguishedName,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.searchScope,"onUpdate:modelValue":t[9]||(t[9]=e=>n.configuration.searchScope=e),type:"select","show-empty-selector":!1,options:n.searchScopeOptions,label:e.$t("admin.search_scope")},null,8,["modelValue","options","label"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.search_scope_input_hint")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.userNameAttribute,"onUpdate:modelValue":t[10]||(t[10]=e=>n.configuration.userNameAttribute=e),label:e.$t("admin.user_name_attribute"),rules:n.rules.userNameAttribute,required:""},null,8,["modelValue","label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.user_name_input_hint")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-4"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.userSearchFilter,"onUpdate:modelValue":t[11]||(t[11]=e=>n.configuration.userSearchFilter=e),label:e.$t("admin.user_search_filter"),rules:n.rules.userSearchFilter,required:""},null,8,["modelValue","label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.user_search_filter_input_hint")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-5"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.userUniqueIdAttribute,"onUpdate:modelValue":t[12]||(t[12]=e=>n.configuration.userUniqueIdAttribute=e),label:e.$t("admin.user_unique_id_attribute"),rules:n.rules.userUniqueIdAttribute},null,8,["modelValue","label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.user_unique_attribute_input_hint")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-form-divider"}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.data_mapping")),1)])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-ldap-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.field_in_orangehrm")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.field_in_ldap_directory")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.use_this_field_as_the_employee_user_mapping_field")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"oxd-input-field-required"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.first_name")),1)])),_:1}),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.dataMapping.firstName,"onUpdate:modelValue":t[13]||(t[13]=e=>n.configuration.dataMapping.firstName=e),rules:n.rules.firstNameAttribute,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.middle_name")),1)])),_:1}),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.dataMapping.middleName,"onUpdate:modelValue":t[14]||(t[14]=e=>n.configuration.dataMapping.middleName=e),rules:n.rules.middleNameAttribute},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"oxd-input-field-required"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.last_name")),1)])),_:1}),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.dataMapping.lastName,"onUpdate:modelValue":t[15]||(t[15]=e=>n.configuration.dataMapping.lastName=e),rules:n.rules.lastNameAttribute},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.user_status")),1)])),_:1}),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.dataMapping.userStatus,"onUpdate:modelValue":t[16]||(t[16]=e=>n.configuration.dataMapping.userStatus=e),rules:n.rules.userStatusAttribute},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:(0,a.normalizeClass)(r.workEmailLabelClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.work_email")),1)])),_:1},8,["class"]),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(c,{key:n.configuration.employeeSelectorMapping,modelValue:n.configuration.dataMapping.workEmail,"onUpdate:modelValue":t[17]||(t[17]=e=>n.configuration.dataMapping.workEmail=e),rules:n.rules.workEmailAttribute},null,8,["modelValue","rules"]))])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:n.configuration.employeeSelectorMapping,"onUpdate:modelValue":t[18]||(t[18]=e=>n.configuration.employeeSelectorMapping=e),"true-value":"workEmail"},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:(0,a.normalizeClass)(r.employeeIdLabelClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.employee_id")),1)])),_:1},8,["class"]),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(c,{key:n.configuration.employeeSelectorMapping,modelValue:n.configuration.dataMapping.employeeId,"onUpdate:modelValue":t[19]||(t[19]=e=>n.configuration.dataMapping.employeeId=e),rules:n.rules.employeeIdAttribute},null,8,["modelValue","rules"]))])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:n.configuration.employeeSelectorMapping,"onUpdate:modelValue":t[20]||(t[20]=e=>n.configuration.employeeSelectorMapping=e),"true-value":"employeeId"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-form-divider"}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.additional_settings")),1)])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-ldap-switch --offset-row-1"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-ldap-switch-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.merge_ldap_users_with_existing_system_users")),1)])),_:1}),(0,a.createVNode)(s,{modelValue:n.configuration.mergeLDAPUsersWithExistingSystemUsers,"onUpdate:modelValue":t[21]||(t[21]=e=>n.configuration.mergeLDAPUsersWithExistingSystemUsers=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.syncInterval,"onUpdate:modelValue":t[22]||(t[22]=e=>n.configuration.syncInterval=e),label:e.$t("admin.sync_interval"),rules:n.rules.syncInterval,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g,{type:"warn",show:!0,message:e.$t("admin.ldap_configuration_warning_message")},null,8,["message"]),(0,a.createVNode)(d),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("admin.test_connection"),onClick:r.onClickTest},null,8,["label","onClick"]),(0,a.createVNode)(v,{type:"button",class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.save"),onClick:r.onClickSave},null,8,["label","onClick"])])),_:1})])),_:1},8,["loading"])]),n.testModalState?((0,a.openBlock)(),(0,a.createBlock)(C,{key:0,data:n.testModalState,onClose:r.onCloseTestModal},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0),Tm,o.showSync?((0,a.openBlock)(),(0,a.createBlock)(b,{key:1})):(0,a.createCommentVNode)("",!0)])}const Im={class:"orangehrm-paper-container"},Lm={class:"orangehrm-header-container"},Um={class:"orangehrm-ldap-sync"};function Am(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-loading-spinner"),d=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Im,[(0,a.createElementVNode)("div",Lm,[(0,a.createElementVNode)("div",Um,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.sync_connection")),1)])),_:1}),(0,a.withDirectives)((0,a.createVNode)(i,{type:"card-body",class:"orangehrm-ldap-sync-time"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" ("+(0,a.toDisplayString)(r.lastSync)+") ",1)])),_:1},512),[[a.vShow,r.lastSync]])]),n.isLoading?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"orangehrm-ldap-sync-loader"})):((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,"display-type":"secondary",class:"orangehrm-ldap-sync-button",label:e.$t("admin.sync_now"),onClick:r.onClickSync},null,8,["label","onClick"]))])])}var Pm={name:"LdapSyncConnection",components:{"oxd-loading-spinner":q.OxdSpinner},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/ldap/user-sync"),{jsDateFormat:t}=R();return{http:e,jsDateFormat:t}},data(){return{isLoading:!1,lastSyncDate:null,lastSyncTime:null,lastSyncStatus:null}},computed:{lastSync(){if(2===this.lastSyncStatus)return null;if(this.lastSyncDate&&this.lastSyncTime){const e=re(`${this.lastSyncDate} ${this.lastSyncTime} +00:00`,"yyyy-MM-dd HH:mm xxx");return this.$t(1===this.lastSyncStatus?"admin.last_synced_on_datetime":"admin.last_sync_failed_on_datetime",{datetime:ie(e,`hh:mm a ${this.jsDateFormat}`)})}return null}},beforeMount(){this.getLastSyncStatus()},methods:{getLastSyncStatus(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.lastSyncStatus=t.syncStatus,this.lastSyncDate=t.syncFinishedAt?.date||t.syncStartedAt?.date,this.lastSyncTime=t.syncFinishedAt?.time||t.syncStartedAt?.time})).finally((()=>{this.isLoading=!1}))},onClickSync(){this.isLoading=!0,this.http.create().then((e=>{const{data:t}=e.data;this.lastSyncStatus=t.syncStatus,this.lastSyncDate=t.syncFinishedAt?.date||t.syncStartedAt?.date,this.lastSyncTime=t.syncFinishedAt?.time||t.syncStartedAt?.time,this.$toast.success({title:this.$t("general.success"),message:this.$t("admin.synchronization_successful")})})).catch((()=>{this.getLastSyncStatus(),this.$toast.error({title:this.$t("general.error"),message:this.$t("admin.synchronization_failed")})})).finally((()=>{this.isLoading=!1}))}}};const qm=(0,r.Z)(Pm,[["render",Am],["__scopeId","data-v-0aa30e8a"]]);var Mm=qm;const Fm={class:"orangehrm-modal-header"};function jm(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(d,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Fm,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.connection_status")),1)])),_:1})]),(0,a.createVNode)(s),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.data,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:e,class:"orangehrm-ldap-test"},[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-ldap-test-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.category),1)])),_:2},1024),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.checks,((e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t,class:"orangehrm-ldap-test-row"},[(0,a.createVNode)(i,{class:"orangehrm-ldap-test-content"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)])),_:2},1024),(0,a.createVNode)(i,{class:(0,a.normalizeClass)(r.getClass(e.value.status))},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.value.message),1)])),_:2},1032,["class"])])))),128))])))),128))])),_:1},8,["onUpdate:show"])}var zm={name:"LdapTestConnectionModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Array,default:()=>[]}},emits:["close"],methods:{getClass(e){return 1===e?"orangehrm-ldap-test-value --success":"orangehrm-ldap-test-value --error"},onCancel(){this.$emit("close")}}};const Rm=(0,r.Z)(zm,[["render",jm],["__scopeId","data-v-7b76f5a0"]]);var Om=Rm;const Gm={enable:!1,hostname:"localhost",port:389,encryption:null,ldapImplementation:null,bindAnonymously:!0,bindUserDN:null,bindUserPassword:null,baseDistinguishedName:null,searchScope:null,userNameAttribute:"cn",userSearchFilter:"objectClass=person",userUniqueIdAttribute:null,mergeLDAPUsersWithExistingSystemUsers:!1,syncInterval:1,employeeSelectorMapping:"",hasBindUserPassword:!1},Zm={firstName:"givenName",lastName:"sn",middleName:null,userStatus:null,workEmail:null,employeeId:null};var Qm={components:{"oxd-icon":q.OxdIcon,"oxd-alert":q.OxdAlert,"oxd-switch-input":q.OxdSwitchInput,"ldap-sync-connection":Mm,"ldap-test-connection-modal":Om},props:{showSync:{type:Boolean,default:!1}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/ldap-config"),{formRef:t,invalid:o,validate:a}=$c();return{http:e,formRef:t,invalid:o,validate:a}},data(){return{isLoading:!1,configuration:{...Gm,dataMapping:{...Zm}},encryptionOptions:[{id:"tls",label:this.$t("admin.tls")},{id:"ssl",label:this.$t("admin.ssl")}],searchScopeOptions:[{id:"sub",label:this.$t("admin.subtree")},{id:"one",label:this.$t("admin.one_level")}],ldapImplementationOptions:[{id:"OpenLDAP",label:this.$t("admin.open_ldap_v3")},{id:"ActiveDirectory",label:this.$t("admin.ms_active_directory")}],rules:{hostname:[jt,wo,zt(255)],port:[jt,No(5,0,65535)],bindUserDN:[jt,zt(255)],bindUserPassword:[e=>this.configuration.hasBindUserPassword||jt(e),zt(255)],baseDistinguishedName:[jt,zt(255)],userNameAttribute:[jt,zt(100)],userSearchFilter:[jt,zt(100)],userUniqueIdAttribute:[zt(100)],firstNameAttribute:[jt,zt(100)],lastNameAttribute:[jt,zt(100)],syncInterval:[jt,Qt,vo(1,23)],middleNameAttribute:[zt(100)],userStatusAttribute:[zt(100)],workEmailAttribute:[e=>"workEmail"!==this.configuration.employeeSelectorMapping||jt(e),zt(100)],employeeIdAttribute:[e=>"employeeId"!==this.configuration.employeeSelectorMapping||jt(e),zt(100)]},testModalState:null}},computed:{passwordPlaceHolder(){return this.configuration.hasBindUserPassword?"********":null},workEmailLabelClasses(){return{"oxd-input-field-required":"workEmail"===this.configuration.employeeSelectorMapping}},employeeIdLabelClasses(){return{"oxd-input-field-required":"employeeId"===this.configuration.employeeSelectorMapping}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data,{userLookupSettings:o}=t,a=o[0];this.configuration.enable=t.enable,this.configuration.hostname=t.hostname,this.configuration.port=t.port,this.configuration.encryption=this.encryptionOptions.find((e=>e.id===t.encryption)),this.configuration.ldapImplementation=this.ldapImplementationOptions.find((e=>e.id===t.ldapImplementation))||this.ldapImplementationOptions[0],this.configuration.bindAnonymously=t.bindAnonymously,this.configuration.bindUserDN=t.bindUserDN,this.configuration.hasBindUserPassword=t.hasBindUserPassword,a&&(this.configuration.baseDistinguishedName=a?.baseDN,this.configuration.userNameAttribute=a?.userNameAttribute,this.configuration.userSearchFilter=a?.userSearchFilter,this.configuration.userUniqueIdAttribute=a?.userUniqueIdAttribute,Array.isArray(a?.employeeSelectorMapping)&&(0===a.employeeSelectorMapping.length?this.configuration.employeeSelectorMapping="":this.configuration.employeeSelectorMapping=a.employeeSelectorMapping[0]["field"])),this.configuration.searchScope=this.searchScopeOptions.find((e=>e.id===a?.searchScope))||this.searchScopeOptions[0],this.configuration.dataMapping=t.dataMapping,this.configuration.mergeLDAPUsersWithExistingSystemUsers=t.mergeLDAPUsersWithExistingSystemUsers,this.configuration.syncInterval=t.syncInterval})).finally((()=>{this.isLoading=!1}))},methods:{onClickTest(){this.validate().then((()=>{if(!0===this.invalid)return;this.isLoading=!0;const e=this.getRequestBody();delete e.enable,delete e.syncInterval,this.http.request({method:"POST",url:"/api/v2/admin/ldap-test-connection",data:e}).then((e=>{const{data:t}=e.data;this.testModalState=t})).finally((()=>this.isLoading=!1))}))},getRequestBody(){let e;return this.configuration.employeeSelectorMapping&&(e=[{field:this.configuration.employeeSelectorMapping,attributeName:this.configuration.dataMapping[this.configuration.employeeSelectorMapping]}]),{enable:this.configuration.enable,hostname:this.configuration.hostname,port:parseInt(this.configuration.port),encryption:this.configuration.encryption?.id||"none",ldapImplementation:this.configuration.ldapImplementation?.id,bindAnonymously:this.configuration.bindAnonymously,bindUserDN:this.configuration.bindUserDN,bindUserPassword:this.configuration.bindUserPassword,userLookupSettings:[{baseDN:this.configuration.baseDistinguishedName,searchScope:this.configuration.searchScope?.id,userNameAttribute:this.configuration.userNameAttribute,userSearchFilter:this.configuration.userSearchFilter,userUniqueIdAttribute:this.configuration.userUniqueIdAttribute,employeeSelectorMapping:e||[]}],dataMapping:this.configuration.dataMapping,mergeLDAPUsersWithExistingSystemUsers:this.configuration.mergeLDAPUsersWithExistingSystemUsers,syncInterval:parseInt(this.configuration.syncInterval)}},onClickSave(){this.validate().then((()=>{!0!==this.invalid&&(this.isLoading=!0,this.http.request({method:"PUT",data:this.getRequestBody()}).then((()=>this.$toast.updateSuccess())).finally((()=>A())))}))},onCloseTestModal(){this.testModalState=null}}};const Hm=(0,r.Z)(Qm,[["render",Bm],["__scopeId","data-v-89df999a"]]);var Wm=Hm,Ym={"job-title-list":At,"job-title-edit":Uo,"job-title-save":zo,"job-category-list":Jo,"job-category-edit":aa,"job-category-save":da,"qualification-education-list":Kl,"qualification-education-edit":nn,"qualification-education-save":un,"system-user-list":Sa,"system-user-edit":Ya,"system-user-save":Ra,"organization-structure":wl,"employment-status-list":ql,"employment-status-save":Ol,"employment-status-edit":$l,"qualification-skill-list":Vn,"qualification-skill-edit":Dn,"qualification-skill-save":Un,"license-list":or,"license-save":Qn,"license-edit":jn,"module-configuration-edit":md,"qualification-language-list":wr,"qualification-language-edit":sr,"qualification-language-save":hr,"qualification-membership-list":Br,"qualification-membership-edit":qr,"qualification-membership-save":Or,"organization-general-information-view":Jr,"nationality-list":ri,"nationality-edit":ui,"nationality-save":yi,"location-list":Fi,"location-save":Qi,"location-edit":es,"email-configuration-view":Si,"pay-grade-list":cs,"pay-grade-add":vs,"pay-grade-edit":Ws,"work-shift-list":bd,"work-shift-save":Td,"work-shift-edit":qd,"email-subscription-list":Qd,"email-subscription-edit":hc,"localization-configuration":bc,"corporate-branding":qc,"language-package-list":rm,"language-translation-edit":km,"ldap-configuration":Wm};const Jm={class:"orangehrm-background-container"},Xm={class:"orangehrm-card-container"},Km={class:"orangehrm-employee-container"},eu={class:"orangehrm-employee-image"},tu={class:"orangehrm-employee-form"};function ou(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("profile-image-input"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("oxd-input-group"),v=(0,a.resolveComponent)("password-input"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Jm,[(0,a.createElementVNode)("div",Xm,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_employee")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Km,[(0,a.createElementVNode)("div",eu,[(0,a.createVNode)(d,{modelValue:l.employee.empPicture,"onUpdate:modelValue":t[0]||(t[0]=e=>l.employee.empPicture=e),rules:n.rules.empPicture,"img-src":r.profilePicUrl},null,8,["modelValue","rules","img-src"])]),(0,a.createElementVNode)("div",tu,[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.employee.firstName,"onUpdate:modelValue":t[1]||(t[1]=e=>l.employee.firstName=e),label:e.$t("pim.employee_first_name")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.employee.lastName,"onUpdate:modelValue":t[2]||(t[2]=e=>l.employee.lastName=e),label:e.$t("pim.employee_last_name")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.employee.middleName,"onUpdate:modelValue":t[3]||(t[3]=e=>l.employee.middleName=e),label:e.$t("pim.employee_middle_name")},null,8,["modelValue","label"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.employee.employeeId,"onUpdate:modelValue":t[4]||(t[4]=e=>l.employee.employeeId=e),label:e.$t("general.employee_id"),rules:n.rules.employeeId},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,{class:"user-form-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"user-form-header-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.create_login_details")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.createLogin,"onUpdate:modelValue":t[5]||(t[5]=e=>n.createLogin=e)},null,8,["modelValue"])])),_:1}),n.createLogin?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.user.username,"onUpdate:modelValue":t[6]||(t[6]=e=>n.user.username=e),label:e.$t("general.username"),rules:n.rules.username,required:"",autocomplete:"off"},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{label:e.$t("general.status"),classes:{wrapper:"--status-grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.user.status,"onUpdate:modelValue":t[7]||(t[7]=e=>n.user.status=e),type:"radio","option-label":e.$t("general.enabled"),value:"1"},null,8,["modelValue","option-label"]),(0,a.createVNode)(c,{modelValue:n.user.status,"onUpdate:modelValue":t[8]||(t[8]=e=>n.user.status=e),type:"radio","option-label":e.$t("general.disabled"),value:"2"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,{password:n.user.password,"onUpdate:password":t[9]||(t[9]=e=>n.user.password=e),passwordConfirm:n.user.passwordConfirm,"onUpdate:passwordConfirm":t[10]||(t[10]=e=>n.user.passwordConfirm=e)},null,8,["password","passwordConfirm"])],64)):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(s),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(C)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const au={class:"employee-image-wrapper"},lu=["src"];function nu(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-input-field"),d=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,(0,a.mergeProps)({ref:"fileInput"},e.$attrs,{type:"file"}),{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",au,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:o.imgSrc},null,8,lu)]),(0,a.createVNode)(i,{name:"plus",role:"none","display-type":"solid-main",class:"employee-image-action"})])),_:1},16),(0,a.createVNode)(d,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accept_jpg_png_upto_1mb_recomended_dimentions_200px_x_200px")),1)])),_:1})],64)}var ru={name:"ProfileImageInput",inheritAttrs:!1,props:{imgSrc:{type:String,required:!0}}};const iu=(0,r.Z)(ru,[["render",nu],["__scopeId","data-v-b553055e"]]);var su=iu;function du(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createBlock)(s,{label:r.localizedLabel,classes:r.classes},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-firstname",name:"firstName",placeholder:e.$t("general.first_name"),"model-value":o.firstName,rules:o.rules.firstName,disabled:o.disabled,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:firstName",t))},null,8,["placeholder","model-value","rules","disabled"]),(0,a.createVNode)(i,{class:"orangehrm-middlename",name:"middleName","model-value":o.middleName,rules:o.rules.middleName,disabled:o.disabled,placeholder:o.showMiddleNamePlaceholder?e.$t("general.middle_name"):"","onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:middleName",t))},null,8,["model-value","rules","disabled","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-lastname",name:"lastName",placeholder:e.$t("general.last_name"),"model-value":o.lastName,rules:o.rules.lastName,disabled:o.disabled,"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update:lastName",t))},null,8,["placeholder","model-value","rules","disabled"])])),_:1},8,["label","classes"])}var cu={name:"FullNameInput",inheritAttrs:!1,props:{firstName:{type:String,required:!0},middleName:{type:String,required:!0},lastName:{type:String,required:!0},rules:{type:Object,required:!0},disabled:{type:Boolean,default:!1},showMiddleNamePlaceholder:{type:Boolean,default:!0},label:{type:String,default:null}},emits:["update:firstName","update:middleName","update:lastName"],computed:{classes(){return{label:{"oxd-input-field-required":!0},wrapper:{"--name-grouped-field":!0}}},localizedLabel(){return this.label?this.label:this.$t("general.employee_full_name")}}};const mu=(0,r.Z)(cu,[["render",du],["__scopeId","data-v-16292a35"]]);var uu=mu;const pu=`${window.appGlobal.publicPath}/images/default-photo.png`,hu={firstName:"",middleName:"",lastName:"",empPicture:null,employeeId:""},gu={username:"",userRoleId:2,empNumber:0,status:"1",password:"",passwordConfirm:""};var vu={components:{"oxd-switch-input":q.OxdSwitchInput,"profile-image-input":su,"password-input":Ma},props:{empId:{type:String,required:!0},allowedImageTypes:{type:Array,required:!0}},setup(e){const t=(0,a.ref)({...hu,employeeId:e.empId?e.empId:""}),o=new P(window.appGlobal.baseUrl,"/api/v2/pim/employees");return{http:o,employee:t}},data(){return{isLoading:!1,createLogin:!1,user:{...gu},empNumber:null,rules:{firstName:[jt,zt(30)],middleName:[zt(30)],lastName:[jt,zt(30)],employeeId:[zt(10)],empPicture:[no(1048576),ro(this.allowedImageTypes)],username:[jt,po(5),zt(40)],status:[jt]}}},computed:{profilePicUrl(){if(this.employee.empPicture){const e=this.employee.empPicture.base64,t=this.employee.empPicture.type,o=this.allowedImageTypes.findIndex((e=>e===t));return o>-1?`data:${t};base64,${e}`:pu}return pu}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;return this.rules.employeeId.push((e=>{const o=t.findIndex((t=>t.employeeId?.trim()&&String(t.employeeId).toLowerCase()==String(e).toLowerCase()));return!(o>-1)||this.$t("pim.employee_id_exists")})),this.http.request({method:"GET",url:"/api/v2/admin/users"})})).then((e=>{const{data:t}=e.data;this.rules.username.push((e=>{const o=t.findIndex((t=>String(t.userName).toLowerCase()==String(e).toLowerCase()));return!(o>-1)||this.$t("pim.username_already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/pim/viewEmployeeList")},onSave(){this.isLoading=!0,this.http.create({...this.employee}).then((e=>{const{data:t}=e;return t?.data&&(this.empNumber=t.data.empNumber),this.createLogin&&t?.data?this.http.request({method:"POST",url:"/api/v2/admin/users",data:{username:this.user.username,password:this.user.password,status:"1"==this.user.status,userRoleId:this.user.userRoleId,empNumber:t.data.empNumber}}):void 0})).then((()=>this.$toast.saveSuccess())).then((()=>{this.employee={...hu},this.user={...gu},this.empNumber?U(`/pim/viewPersonalDetails/empNumber/${this.empNumber}`):this.onCancel()}))}}};const fu=(0,r.Z)(vu,[["render",ou],["__scopeId","data-v-e2b6125c"]]);var yu=fu;const Cu=e=>((0,a.pushScopeId)("data-v-0065ac32"),e=e(),(0,a.popScopeId)(),e),bu={class:"orangehrm-background-container"},Vu=Cu((()=>(0,a.createElementVNode)("br",null,null,-1))),xu={class:"orangehrm-paper-container"},wu={key:0,class:"orangehrm-header-container"},Nu={class:"orangehrm-container"},_u={class:"orangehrm-bottom-container"};function ku(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("employment-status-dropdown"),m=(0,a.resolveComponent)("include-employee-dropdown"),u=(0,a.resolveComponent)("jobtitle-dropdown"),p=(0,a.resolveComponent)("subunit-dropdown"),h=(0,a.resolveComponent)("oxd-grid"),g=(0,a.resolveComponent)("oxd-form-row"),v=(0,a.resolveComponent)("oxd-divider"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form"),b=(0,a.resolveComponent)("oxd-table-filter"),V=(0,a.resolveComponent)("table-header"),x=(0,a.resolveComponent)("oxd-card-table"),w=(0,a.resolveComponent)("oxd-pagination"),N=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",bu,[(0,a.createVNode)(b,{"filter-title":e.$t("pim.employee_information")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(C,{onSubmitValid:r.filterItems,onReset:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:n.rules.employee,params:{includeEmployees:l.filters.includeEmployees?.param}},null,8,["modelValue","rules","params"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.employeeId,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.employeeId=e),label:e.$t("general.employee_id")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.empStatusId,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.empStatusId=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.includeEmployees,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.includeEmployees=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.supervisor,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.supervisor=e),rules:n.rules.supervisor,label:e.$t("pim.supervisor_name")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.jobTitleId,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.jobTitleId=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.subunitId,"onUpdate:modelValue":t[6]||(t[6]=e=>l.filters.subunitId=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(f,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),Vu,(0,a.createElementVNode)("div",xu,[e.$can.create("employee_list")?((0,a.openBlock)(),(0,a.createElementBlock)("div",wu,[(0,a.createVNode)(f,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(V,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Nu,[(0,a.createVNode)(x,{ref:"cardTable",selected:n.checkedItems,"onUpdate:selected":t[7]||(t[7]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[8]||(t[8]=e=>l.sortDefinition=e),headers:r.headers,items:l.items?.data,selectable:e.$can.delete("employee_list"),clickable:!0,loading:l.isLoading,class:"orangehrm-employee-list","row-decorator":"oxd-table-decorator-card",onClick:r.onClickEdit},null,8,["selected","order","headers","items","selectable","loading","onClick"])]),(0,a.createElementVNode)("div",_u,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(w,{key:0,current:l.currentPage,"onUpdate:current":t[9]||(t[9]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(N,{ref:"deleteDialog"},null,512)])}function Su(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("general.job_title"),options:l.options},null,8,["label","options"])}var Du={name:"JobtitleDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-titles");return(0,a.onBeforeMount)((()=>{t.getAll({limit:0}).then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.title})))}))})),{options:e}}};const $u=(0,r.Z)(Du,[["render",Su]]);var Eu=$u;function Tu(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("general.sub_unit"),options:l.options},null,8,["label","options"])}var Bu={name:"SubunitDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/admin/subunits");return(0,a.onBeforeMount)((()=>{t.getAll().then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.name,_indent:e.level?e.level+1:1})))}))})),{options:e}}};const Iu=(0,r.Z)(Bu,[["render",Tu]]);var Lu=Iu;function Uu(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("general.employment_status"),options:l.options},null,8,["label","options"])}var Au={name:"EmploymentStatusDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/admin/employment-statuses");return(0,a.onBeforeMount)((()=>{t.getAll({limit:0}).then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.name})))}))})),{options:e}}};const Pu=(0,r.Z)(Au,[["render",Uu]]);var qu=Pu;function Mu(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("pim.include"),options:n.includeOpts,"show-empty-selector":!1},null,8,["label","options"])}var Fu={name:"IncludeEmployeeDropdown",data(){return{includeOpts:[{id:1,param:"onlyCurrent",label:this.$t("general.current_employees_only")},{id:2,param:"currentAndPast",label:this.$t("general.current_and_past_employees")},{id:3,param:"onlyPast",label:this.$t("general.past_employees_only")}]}}};const ju=(0,r.Z)(Fu,[["render",Mu]]);var zu=ju;const Ru={"employee.employeeId":"DEFAULT","employee.firstName":"ASC","jobTitle.jobTitleName":"DEFAULT","empStatus.name":"DEFAULT","subunit.name":"DEFAULT","supervisor.firstName":"DEFAULT"};var Ou={components:{"delete-confirmation":Et,"employee-autocomplete":Va,"jobtitle-dropdown":Eu,"subunit-dropdown":Lu,"employment-status-dropdown":qu,"include-employee-dropdown":zu},props:{unselectableEmpNumbers:{type:Array,default:()=>[]}},setup(e){const{$t:t}=Se(),o=o=>o.map((o=>{const a=e.unselectableEmpNumbers.findIndex((e=>e==o.empNumber));return{id:o.empNumber,employeeId:o.employeeId,firstAndMiddleName:`${o.firstName}`,jobTitle:o.jobTitle?.isDeleted?o.jobTitle.title+t("general.deleted"):o.jobTitle?.title,empStatus:o.empStatus?.name,subunit:o.subunit?.name,supervisor:o.supervisors?o.supervisors.map((e=>`${e.firstName} ${e.lastName}`)).join(","):"",isSelectable:-1===a}})),l=(0,a.ref)({employee:null,employeeId:"",empStatusId:null,supervisor:null,jobTitleId:null,subunitId:null,includeEmployees:{id:1,param:"onlyCurrent",label:t("general.current_employees_only")}}),{sortDefinition:n,sortField:r,sortOrder:i,onSort:s}=Tt({sortDefinition:Ru}),d=(0,a.computed)((()=>({model:"detailed",nameOrId:"string"===typeof l.value.employee?l.value.employee:void 0,empNumber:l.value.employee?.id,employeeId:l.value.employeeId,empStatusId:l.value.empStatusId?.id,includeEmployees:l.value.includeEmployees?.param,supervisorEmpNumbers:l.value.supervisor?[l.value.supervisor.id]:void 0,jobTitleId:l.value.jobTitleId?.id,subunitId:l.value.subunitId?.id,sortField:r.value,sortOrder:i.value}))),c=new P(window.appGlobal.baseUrl,"/api/v2/pim/employees"),{showPaginator:m,currentPage:u,total:p,pages:h,pageSize:g,response:v,isLoading:f,execQuery:y}=wt(c,{query:d,normalizer:o});return s(y),{http:c,showPaginator:m,currentPage:u,isLoading:f,total:p,pages:h,pageSize:g,execQuery:y,items:v,filters:l,sortDefinition:n}},data(){return{checkedItems:[],rules:{employee:[],supervisor:[xo]}}},computed:{headers(){return[{name:"employeeId",slot:"title",title:this.$t("general.id"),sortField:"employee.employeeId",style:{flex:1}},{name:"firstAndMiddleName",title:this.$t("pim.first_middle_name"),sortField:"employee.firstName",style:{flex:1}},{name:"jobTitle",title:this.$t("general.job_title"),sortField:"jobTitle.jobTitleName",style:{flex:1}},{name:"empStatus",title:this.$t("general.employment_status"),sortField:"empStatus.name",style:{flex:1}},{name:"subunit",title:this.$t("general.sub_unit"),sortField:"subunit.name",style:{flex:1}},{name:"supervisor",title:this.$t("pim.supervisor"),sortField:"supervisor.firstName",style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{...this.$can.delete("employee_list")&&{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}]}},methods:{onClickAdd(){U("/pim/addEmployee")},onClickEdit(e){const t=e.id?e.id:e.item?.id;U("/pim/viewPersonalDetails/empNumber/{id}",{id:t})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e,t){t.stopImmediatePropagation();const o=this.unselectableEmpNumbers.findIndex((t=>t==e.id));if(o>-1)return this.$toast.cannotDelete();this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()}}};const Gu=(0,r.Z)(Ou,[["render",ku],["__scopeId","data-v-0065ac32"]]);var Zu=Gu;const Qu={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Hu(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(C,{"employee-id":o.empNumber,screen:"personal"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Qu,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.personal_details")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.firstName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employee.firstName=e),label:e.$t("pim.employee_first_name")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.lastName,"onUpdate:modelValue":t[1]||(t[1]=e=>n.employee.lastName=e),label:e.$t("pim.employee_last_name")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.middleName,"onUpdate:modelValue":t[2]||(t[2]=e=>n.employee.middleName=e),label:e.$t("pim.employee_middle_name")},null,8,["modelValue","label"])])),_:1})])),_:1}),o.showDeprecatedFields?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.nickname,"onUpdate:modelValue":t[3]||(t[3]=e=>n.employee.nickname=e),label:e.$t("pim.nickname"),rules:n.rules.nickname},null,8,["modelValue","label","rules"])])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.employeeId,"onUpdate:modelValue":t[4]||(t[4]=e=>n.employee.employeeId=e),label:e.$t("general.employee_id"),rules:n.rules.employeeId,disabled:!e.$can.update("personal_sensitive_information")},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.otherId,"onUpdate:modelValue":t[5]||(t[5]=e=>n.employee.otherId=e),label:e.$t("pim.other_id"),rules:n.rules.otherId},null,8,["modelValue","label","rules"])])),_:1})])),_:1}),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.drivingLicenseNo,"onUpdate:modelValue":t[6]||(t[6]=e=>n.employee.drivingLicenseNo=e),label:e.$t("pim.driver_license_number"),rules:n.rules.drivingLicenseNo,disabled:!e.$can.update("personal_sensitive_information")},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.employee.drivingLicenseExpiredDate,"onUpdate:modelValue":t[7]||(t[7]=e=>n.employee.drivingLicenseExpiredDate=e),rules:n.rules.drivingLicenseExpiredDate,label:e.$t("pim.license_expiry_date")},null,8,["modelValue","rules","label"])])),_:1})])),_:1}),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[o.showSsnField?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.ssnNumber,"onUpdate:modelValue":t[8]||(t[8]=e=>n.employee.ssnNumber=e),label:e.$t("pim.ssn_number"),rules:n.rules.ssnNumber,disabled:!e.$can.update("personal_sensitive_information")},null,8,["modelValue","label","rules","disabled"])])),_:1})):(0,a.createCommentVNode)("",!0),o.showSinField?((0,a.openBlock)(),(0,a.createBlock)(c,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.sinNumber,"onUpdate:modelValue":t[9]||(t[9]=e=>n.employee.sinNumber=e),label:e.$t("pim.sin_number"),rules:n.rules.sinNumber,disabled:!e.$can.update("personal_sensitive_information")},null,8,["modelValue","label","rules","disabled"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.nationality,"onUpdate:modelValue":t[10]||(t[10]=e=>n.employee.nationality=e),type:"select",label:e.$t("general.nationality"),clear:!1,options:o.nationalities},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.maritalStatus,"onUpdate:modelValue":t[11]||(t[11]=e=>n.employee.maritalStatus=e),type:"select",label:e.$t("pim.marital_status"),clear:!1,options:n.maritalStatuses},null,8,["modelValue","label","options"])])),_:1})])),_:1}),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.employee.birthday,"onUpdate:modelValue":t[12]||(t[12]=e=>n.employee.birthday=e),label:e.$t("pim.date_of_birth"),rules:n.rules.birthday,disabled:!e.$can.update("personal_sensitive_information")},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{label:e.$t("pim.gender"),classes:{wrapper:"--gender-grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.gender,"onUpdate:modelValue":t[13]||(t[13]=e=>n.employee.gender=e),type:"radio","option-label":e.$t("general.male"),value:"1"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.employee.gender,"onUpdate:modelValue":t[14]||(t[14]=e=>n.employee.gender=e),type:"radio","option-label":e.$t("general.female"),value:"2"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),o.showDeprecatedFields?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0})):(0,a.createCommentVNode)("",!0),o.showDeprecatedFields?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.militaryService,"onUpdate:modelValue":t[15]||(t[15]=e=>n.employee.militaryService=e),label:e.$t("pim.military_service"),rules:n.rules.militaryService},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.smoker,"onUpdate:modelValue":t[16]||(t[16]=e=>n.employee.smoker=e),type:"checkbox",label:e.$t("pim.smoker"),"option-label":e.$t("general.yes")},null,8,["modelValue","label","option-label"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])),_:1},8,["employee-id"])}const Wu={class:"orangehrm-background-container"},Yu={class:"orangehrm-card-container"},Ju={class:"orangehrm-edit-employee"},Xu={class:"orangehrm-edit-employee-navigation"},Ku={class:"orangehrm-edit-employee-imagesection"},ep={class:"orangehrm-edit-employee-name"},tp={class:"orangehrm-edit-employee-image-wrapper"},op=["src"],ap={class:"orangehrm-edit-employee-content"};function lp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("tabs-navigation"),d=(0,a.resolveComponent)("profile-custom-fields"),c=(0,a.resolveComponent)("profile-attachments");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Wu,[(0,a.createElementVNode)("div",Yu,[(0,a.createElementVNode)("div",Ju,[(0,a.createElementVNode)("div",Xu,[(0,a.createElementVNode)("div",Ku,[(0,a.createElementVNode)("div",ep,[(0,a.createVNode)(i,{tag:"h6",class:"--strong"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeName),1)])),_:1}),l.isCurrentEmp?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.past_employee")),1)])),_:1}))]),(0,a.createElementVNode)("div",tp,[(0,a.createElementVNode)("div",{class:"orangehrm-edit-employee-image",onClick:t[0]||(t[0]=(...e)=>l.onClickProfilePic&&l.onClickProfilePic(...e))},[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:l.imgSrc},null,8,op)])])]),(0,a.createVNode)(s,{tabs:o.tabs},null,8,["tabs"])]),(0,a.createElementVNode)("div",ap,[(0,a.renderSlot)(e.$slots,"default",{},void 0,!0),"default"!==o.screen?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"employee-id":o.employeeId,screen:o.screen},null,8,["employee-id","screen"])):(0,a.createCommentVNode)("",!0),"default"!==o.screen?((0,a.openBlock)(),(0,a.createBlock)(c,{key:1,"employee-id":o.employeeId,"allowed-file-types":o.allowedFileTypes,"max-file-size":o.maxFileSize,screen:o.screen},null,8,["employee-id","allowed-file-types","max-file-size","screen"])):(0,a.createCommentVNode)("",!0)])])])])}const np={role:"tablist",class:"orangehrm-tabs"},rp=["href"];function ip(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",np,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.tabs,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:e,role:"tab",class:"orangehrm-tabs-wrapper"},[(0,a.createElementVNode)("a",{class:(0,a.normalizeClass)({"orangehrm-tabs-item":!0,"--active":e.active}),href:e.url},(0,a.toDisplayString)(e.name),11,rp)])))),128))])}var sp={name:"TabsNavigation",props:{tabs:{type:Array,required:!0}}};const dp=(0,r.Z)(sp,[["render",ip],["__scopeId","data-v-8cad1ea8"]]);var cp=dp;const mp={class:"orangehrm-attachment"},up={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},pp={class:"orangehrm-container"},hp={key:0,class:"orangehrm-bottom-container"};function gp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-divider"),s=(0,a.resolveComponent)("save-attachment"),d=(0,a.resolveComponent)("edit-attachment"),c=(0,a.resolveComponent)("profile-action-header"),m=(0,a.resolveComponent)("table-header"),u=(0,a.resolveComponent)("oxd-card-table"),p=(0,a.resolveComponent)("oxd-pagination"),h=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",mp,[(0,a.createVNode)(i),n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,http:l.http,"allowed-file-types":o.allowedFileTypes,"max-file-size":o.maxFileSize,onClose:r.onSaveModalClose},null,8,["http","allowed-file-types","max-file-size","onClose"])):n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,data:n.editModalState,http:l.http,"allowed-file-types":o.allowedFileTypes,"max-file-size":o.maxFileSize,onClose:r.onEditModalClose},null,8,["data","http","allowed-file-types","max-file-size","onClose"])):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createElementVNode)("div",up,[(0,a.createVNode)(c,{"action-button-shown":e.$can.create(`${o.screen}_attachment`),onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.attachments")),1)])),_:1},8,["action-button-shown","onClick"])]),(0,a.createVNode)(m,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",pp,[(0,a.createVNode)(u,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:r.tableHeaders,items:l.items?.data,selectable:e.$can.delete(`${o.screen}_attachment`),clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","loading"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",hp,[(0,a.createVNode)(p,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0)],64)),(0,a.createVNode)(h,{ref:"deleteDialog"},null,512)])}const vp=1,fp=1024,yp=1048576,Cp=1073741824,bp=function(e,t,o=!0){let a,l=vp,n="B";return a="number"===typeof e?e:parseInt(e,10),a>=Cp?(l=Cp,n="GB"):a>=yp?(l=yp,n="MB"):a>=fp&&(l=fp,n="kB"),(a/l).toFixed(t)+(o?" "+n:"")},Vp={class:"orangehrm-card-container"};function xp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Vp,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.attachment.attachment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attachment.attachment=e),type:"file",label:e.$t("general.select_file"),"button-label":e.$t("general.browse"),rules:n.rules.attachment,placeholder:e.$t("general.no_file_selected"),required:""},null,8,["modelValue","label","button-label","rules","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.attachment.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attachment.description=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const wp={attachment:null,description:""};var Np={name:"SaveAttachment",props:{http:{type:Object,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},emits:["close"],data(){return{isLoading:!1,attachment:{...wp},rules:{description:[zt(200)],attachment:[jt,no(this.maxFileSize),ro(this.allowedFileTypes)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.attachment}).then((()=>this.$toast.saveSuccess())).then((()=>{this.attachment={...wp},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const _p=(0,r.Z)(Np,[["render",xp]]);var kp=_p;const Sp={class:"orangehrm-card-container"};function Dp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-input-field"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Sp,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.current_file")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.currentFile),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.attachment.attachment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attachment.attachment=e),type:"file",label:e.$t("general.replace_with"),"button-label":e.$t("general.browse"),rules:n.rules.attachment,placeholder:e.$t("general.no_file_selected")},null,8,["modelValue","label","button-label","rules","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.attachment.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attachment.description=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const $p={attachment:null,description:""};var Ep={name:"EditAttachment",props:{http:{type:Object,required:!0},data:{type:Object,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},emits:["close"],data(){return{isLoading:!1,currentFile:"",attachment:{...$p},rules:{description:[zt(200)],attachment:[no(this.maxFileSize),ro(this.allowedFileTypes)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.currentFile=t.filename,this.attachment.description=t.description})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.attachment}).then((()=>this.$toast.updateSuccess())).then((()=>{this.attachment={...$p},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Tp=(0,r.Z)(Ep,[["render",Dp]]);var Bp=Tp;const Ip={class:"orangehrm-action-header"};function Lp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ip,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)])),_:3}),o.actionButtonShown?((0,a.openBlock)(),(0,a.createBlock)(s,(0,a.mergeProps)({key:0,label:e.$t("general.add"),"icon-name":"plus","display-type":"text"},e.$attrs),null,16,["label"])):(0,a.createCommentVNode)("",!0)])}var Up={name:"ProfileActionHeader",inheritAttrs:!1,props:{actionButtonShown:{type:Boolean,required:!1,default:!0}}};const Ap=(0,r.Z)(Up,[["render",Lp],["__scopeId","data-v-3dab643a"]]);var Pp=Ap,qp={name:"ProfileAttachments",components:{"save-attachment":kp,"edit-attachment":Bp,"profile-action-header":Pp,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0},screen:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/screen/${e.screen}/attachments`),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>({...e,attachedDate:ie(re(e.attachedDate),o,{locale:a}),size:bp(e.size,2)}))),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:l,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"filename",slot:"title",title:this.$t("general.file_name"),style:{flex:1}},{name:"description",title:this.$t("general.description"),style:{flex:1}},{name:"size",title:this.$t("general.size"),style:{flex:1}},{name:"fileType",title:this.$t("general.type"),style:{flex:1}},{name:"attachedDate",title:this.$t("pim.date_added"),style:{flex:1}},{name:"attachedByName",title:this.$t("pim.added_by"),style:{flex:1}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{tableHeaders(){const e={name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.update(`${this.screen}_attachment`)&&(e.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),this.$can.delete(`${this.screen}_attachment`)&&(e.cellConfig.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),this.$can.read(`${this.screen}_attachment`)&&(e.cellConfig.download={onClick:this.onClickDownload,props:{name:"download"}}),Object.keys(e.cellConfig).length>0?this.headers.concat([e]):this.headers}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onClickDownload(e){const t=`${window.appGlobal.baseUrl}/pim/viewAttachment/empNumber/${this.employeeId}/attachId/${e.id}`;window.open(t,"_blank")},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Mp=(0,r.Z)(qp,[["render",gp],["__scopeId","data-v-50e42520"]]);var Fp=Mp;const jp={key:0,class:"orangehrm-custom-fields"},zp={class:"orangehrm-card-container"};function Rp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-divider"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return 0!==n.fields.length?((0,a.openBlock)(),(0,a.createElementBlock)("div",jp,[(0,a.createVNode)(i),(0,a.createElementVNode)("div",zp,[(0,a.createVNode)(s,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.custom_fields")),1)])),_:1}),(0,a.createVNode)(i),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.fields,(t=>((0,a.openBlock)(),(0,a.createBlock)(c,{key:t.id},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customFieldsModel[t.model],"onUpdate:modelValue":e=>n.customFieldsModel[t.model]=e,type:t.type,label:t.label,options:t.extraData,rules:n.rules.default,disabled:!e.$can.update(`${o.screen}_custom_fields`)},null,8,["modelValue","onUpdate:modelValue","type","label","options","rules","disabled"])])),_:2},1024)))),128))])),_:1})])),_:1}),e.$can.update(`${o.screen}_custom_fields`)?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(i),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p)])),_:1})],64)):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","onSubmitValid"])])])):(0,a.createCommentVNode)("",!0)}const Op=e=>"string"===typeof e?e.split(",").map(((e,t)=>({id:t,label:e}))).filter((e=>""!=e.label.trim())):[];var Gp={name:"ProfileCustomFields",props:{employeeId:{type:String,required:!0},screen:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/custom-fields?screen=${e.screen}`);return{http:t}},data(){return{isLoading:!1,fields:[],customFieldsModel:{},rules:{default:[zt(250)]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t,meta:o}=e.data;this.customFieldsModel={...t},o.fields&&o.fields.length>0&&(this.fields=o.fields.map((e=>{const o=Op(e.extraData),a=`custom${e.id}`;if(1==e.fieldType&&t[a]){const e=o.find((e=>e.label==t[a]));this.customFieldsModel[a]=e||null}return{id:e.id,label:e.fieldName,type:1==e.fieldType?"select":"input",model:a,extraData:o}})))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",url:`/api/v2/pim/employees/${this.employeeId}/custom-fields`,data:{...this.customFieldsModel},transformRequest:[e=>{for(const t in e)e[t]?.label&&(e[t]=e[t].label);return JSON.stringify(e)}]}).then((()=>{this.isLoading=!1,this.$toast.saveSuccess()}))}}};const Zp=(0,r.Z)(Gp,[["render",Rp]]);var Qp=Zp;const Hp=`${window.appGlobal.publicPath}/images/default-photo.png`;var Wp={name:"EditEmployeeLayout",components:{"tabs-navigation":cp,"profile-attachments":Fp,"profile-custom-fields":Qp},props:{employeeId:{type:String,required:!0},tabs:{type:Array,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0},screen:{type:String,default:"default",validator(e){return["default","personal","contact","emergency","dependents","immigration","qualifications","tax","salary","job","report-to","membership"].includes(e)}}},setup(e){const t=(0,a.ref)(""),o=(0,a.ref)(!0),l=new P(window.appGlobal.baseUrl,"/api/v2/pim/employees");l.get(e.employeeId).then((({data:e})=>{t.value=`${e.data.firstName} ${e.data.lastName}`,o.value=!e.data.terminationId}));const n=(0,a.computed)((()=>e.employeeId?`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.employeeId}`:Hp)),r=()=>{U("/pim/viewPhotograph/empNumber/{empNumber}",{empNumber:e.employeeId})};return{imgSrc:n,employeeName:t,isCurrentEmp:o,onClickProfilePic:r}}};const Yp=(0,r.Z)(Wp,[["render",lp],["__scopeId","data-v-0349f171"]]);var Jp=Yp;const Xp={firstName:"",middleName:"",lastName:"",employeeId:"",otherId:"",drivingLicenseNo:"",drivingLicenseExpiredDate:"",ssnNumber:"",sinNumber:"",nationality:[],maritalStatus:[],birthday:"",gender:"",nickname:"",smoker:"",militaryService:""};var Kp={components:{"edit-employee-layout":Jp},props:{empNumber:{type:String,required:!0},nationalities:{type:Array,default:()=>[]},showDeprecatedFields:{type:Boolean,default:!1},showSsnField:{type:Boolean,default:!1},showSinField:{type:Boolean,default:!1}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/personal-details`),{userDateFormat:o}=R();return{http:t,userDateFormat:o}},data(){return{isLoading:!1,employee:{...Xp},rules:{firstName:[jt,zt(30)],middleName:[zt(30)],lastName:[jt,zt(30)],employeeId:[zt(10)],otherId:[zt(30)],drivingLicenseNo:[zt(30)],ssnNumber:[zt(30)],sinNumber:[zt(30)],nickname:[zt(30)],militaryService:[zt(30)],birthday:[Rt(this.userDateFormat)],drivingLicenseExpiredDate:[Rt(this.userDateFormat)]},maritalStatuses:[{id:"Single",label:"未婚"},{id:"Married",label:"已婚"},{id:"Other",label:"其他"}]}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>(this.updateModel(e),this.http.request({method:"GET",url:"/api/v2/pim/employees"})))).then((e=>{const{data:t}=e.data;this.rules.employeeId.push((e=>{const o=t.findIndex((t=>t.employeeId?.trim()&&String(t.employeeId).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{empNumber:e}=t[o];return e==this.empNumber||this.$t("pim.employee_id_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{lastName:this.employee.lastName,firstName:this.employee.firstName,middleName:this.employee.middleName,employeeId:this.employee.employeeId,otherId:this.employee.otherId,drivingLicenseNo:this.employee.drivingLicenseNo,drivingLicenseExpiredDate:this.employee.drivingLicenseExpiredDate,gender:this.employee.gender,maritalStatus:this.employee.maritalStatus?.id,birthday:this.employee.birthday,nationalityId:this.employee.nationality?.id,ssnNumber:this.showSsnField?this.employee.ssnNumber:void 0,sinNumber:this.showSinField?this.employee.sinNumber:void 0,nickname:this.showDeprecatedFields?this.employee.nickname:void 0,smoker:this.showDeprecatedFields?this.employee.smoker:void 0,militaryService:this.showDeprecatedFields?this.employee.militaryService:void 0}}).then((e=>(this.updateModel(e),this.$toast.updateSuccess()))).then((()=>{this.isLoading=!1}))},updateModel(e){const{data:t}=e.data;this.employee={...Xp,...t},this.employee.maritalStatus=this.maritalStatuses.find((e=>e.id===t.maritalStatus)),this.employee.nationality=this.nationalities.find((e=>e.id===t.nationality?.id))}}};const eh=(0,r.Z)(Kp,[["render",Hu],["__scopeId","data-v-13b4404f"]]);var th=eh;const oh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function ah(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(f,{"employee-id":o.empNumber,screen:"contact"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",oh,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.contact_details")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.address")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.street1,"onUpdate:modelValue":t[0]||(t[0]=e=>n.contact.street1=e),label:e.$t("pim.street1"),rules:n.rules.street1},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.street2,"onUpdate:modelValue":t[1]||(t[1]=e=>n.contact.street2=e),label:e.$t("pim.street2"),rules:n.rules.street2},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.city,"onUpdate:modelValue":t[2]||(t[2]=e=>n.contact.city=e),label:e.$t("general.city"),rules:n.rules.city},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.province,"onUpdate:modelValue":t[3]||(t[3]=e=>n.contact.province=e),label:e.$t("general.state_province"),rules:n.rules.province},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.zipCode,"onUpdate:modelValue":t[4]||(t[4]=e=>n.contact.zipCode=e),label:e.$t("general.zip_postal_code"),rules:n.rules.zipCode},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.countryCode,"onUpdate:modelValue":t[5]||(t[5]=e=>n.contact.countryCode=e),type:"select",label:e.$t("general.country"),options:o.countries},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.telephone")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.homeTelephone,"onUpdate:modelValue":t[6]||(t[6]=e=>n.contact.homeTelephone=e),modelModifiers:{trim:!0},label:e.$t("pim.home"),rules:n.rules.homeTelephone},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.mobile,"onUpdate:modelValue":t[7]||(t[7]=e=>n.contact.mobile=e),modelModifiers:{trim:!0},label:e.$t("general.mobile"),rules:n.rules.mobile},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.workTelephone,"onUpdate:modelValue":t[8]||(t[8]=e=>n.contact.workTelephone=e),modelModifiers:{trim:!0},label:e.$t("pim.work"),rules:n.rules.workTelephone},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.email")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.workEmail,"onUpdate:modelValue":t[9]||(t[9]=e=>n.contact.workEmail=e),label:e.$t("general.work_email"),rules:n.rules.workEmail},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.otherEmail,"onUpdate:modelValue":t[10]||(t[10]=e=>n.contact.otherEmail=e),label:e.$t("general.other_email"),rules:n.rules.otherEmail},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])),_:1},8,["employee-id"])}const lh={street1:"",street2:"",city:"",province:"",countryCode:[],zipCode:"",homeTelephone:"",workTelephone:"",mobile:"",workEmail:"",otherEmail:""};var nh={components:{"edit-employee-layout":Jp},props:{empNumber:{type:String,required:!0},countries:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employee/${e.empNumber}/contact-details`);return t.setIgnorePath("/api/v2/pim/employees/[0-9]+/contact-details/validation/(work-emails|other-emails)"),{http:t}},data(){return{isLoading:!1,contact:{...lh},rules:{street1:[zt(70)],street2:[zt(70)],city:[zt(70)],province:[zt(70)],zipCode:[zt(10)],homeTelephone:[zt(25),so],mobile:[zt(25),so],workTelephone:[zt(25),so],workEmail:[zt(50),io,(0,q.promiseDebounce)(this.validateWorkEmail,500)],otherEmail:[zt(50),io,(0,q.promiseDebounce)(this.validateOtherEmail,500)]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{this.updateModel(e)})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{...this.contact,countryCode:this.contact.countryCode?.id}}).then((e=>(this.updateModel(e),this.$toast.updateSuccess()))).then((()=>{this.isLoading=!1}))},validateWorkEmail(e){return new Promise((t=>{if(e){const e=this.contact.workEmail===this.contact.otherEmail;this.http.request({method:"GET",url:`/api/v2/pim/employees/${this.empNumber}/contact-details/validation/work-emails`,params:{workEmail:this.contact.workEmail}}).then((o=>{const{data:a}=o.data;return!0===a.valid?t(!e||this.$t("pim.work_email_and_other_email_cannot_be_the_same")):t(this.$t("general.already_exists"))}))}else t(!0)}))},validateOtherEmail(e){return new Promise((t=>{if(e){const e=this.contact.otherEmail===this.contact.workEmail;this.http.request({method:"GET",url:`/api/v2/pim/employees/${this.empNumber}/contact-details/validation/other-emails`,params:{otherEmail:this.contact.otherEmail}}).then((o=>{const{data:a}=o.data;return!0===a.valid?t(!e||this.$t("pim.work_email_and_other_email_cannot_be_the_same")):t(this.$t("general.already_exists"))}))}else t(!0)}))},validateEmailDifferent(e){return t=>{const o=e();return null===o||""===o||(t!==o||this.$t("pim.work_email_and_other_email_cannot_be_the_same"))}},updateModel(e){const{data:t}=e.data;this.contact={...lh,...t},this.contact.countryCode=this.countries.find((e=>e.id===t.countryCode))}}};const rh=(0,r.Z)(nh,[["render",ah]]);var ih=rh;const sh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},dh={class:"orangehrm-container"},ch={class:"orangehrm-bottom-container"};function mh(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-emergency-contact"),s=(0,a.resolveComponent)("edit-emergency-contact"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"emergency"},{default:(0,a.withCtx)((()=>[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,onClose:r.onSaveModalClose},null,8,["http","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",sh,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_emergency_contacts")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",dh,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","disabled","loading"])]),(0,a.createElementVNode)("div",ch,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])),_:1},8,["employee-id"])}const uh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function ph(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",uh,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.save_emergency_contact")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.contact.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.relationship,"onUpdate:modelValue":t[1]||(t[1]=e=>n.contact.relationship=e),label:e.$t("pim.relationship"),rules:n.rules.relationship,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.homePhone,"onUpdate:modelValue":t[2]||(t[2]=e=>n.contact.homePhone=e),modelModifiers:{trim:!0},label:e.$t("pim.home_telephone"),rules:n.rules.homePhone},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.mobilePhone,"onUpdate:modelValue":t[3]||(t[3]=e=>n.contact.mobilePhone=e),modelModifiers:{trim:!0},label:e.$t("general.mobile"),rules:n.rules.mobilePhone},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.officePhone,"onUpdate:modelValue":t[4]||(t[4]=e=>n.contact.officePhone=e),modelModifiers:{trim:!0},label:e.$t("pim.work_telephone"),rules:n.rules.officePhone},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const hh={name:"",relationship:"",homePhone:"",officePhone:"",mobilePhone:""};var gh={name:"SaveEmergencyContact",props:{http:{type:Object,required:!0}},emits:["close"],data(){return{isLoading:!1,contact:{...hh},rules:{name:[jt,zt(100)],relationship:[jt,zt(100)],homePhone:[so,zt(30),e=>""!==e||""!==this.contact.mobilePhone||""!==this.contact.officePhone||this.$t("pim.at_least_one_phone_number_is_required")],mobilePhone:[so,zt(30)],officePhone:[so,zt(30)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.contact}).then((()=>this.$toast.saveSuccess())).then((()=>{this.contact={...hh},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const vh=(0,r.Z)(gh,[["render",ph]]);var fh=vh;const yh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Ch(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",yh,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_emergency_contact")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.contact.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.relationship,"onUpdate:modelValue":t[1]||(t[1]=e=>n.contact.relationship=e),label:e.$t("pim.relationship"),rules:n.rules.relationship,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.homePhone,"onUpdate:modelValue":t[2]||(t[2]=e=>n.contact.homePhone=e),modelModifiers:{trim:!0},label:e.$t("pim.home_telephone"),rules:n.rules.homePhone},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.mobilePhone,"onUpdate:modelValue":t[3]||(t[3]=e=>n.contact.mobilePhone=e),modelModifiers:{trim:!0},label:e.$t("general.mobile"),rules:n.rules.mobilePhone},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.officePhone,"onUpdate:modelValue":t[4]||(t[4]=e=>n.contact.officePhone=e),modelModifiers:{trim:!0},label:e.$t("pim.work_telephone"),rules:n.rules.officePhone},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const bh={name:"",relationship:"",homePhone:"",officePhone:"",mobilePhone:""};var Vh={name:"EditEmergencyContact",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],data(){return{isLoading:!1,contact:{...bh},rules:{name:[jt,zt(100)],relationship:[jt,zt(100)],homePhone:[so,zt(30),e=>""!==e||""!==this.contact.mobilePhone||""!==this.contact.officePhone||this.$t("pim.at_least_one_phone_number_is_required")],mobilePhone:[so,zt(30)],officePhone:[so,zt(30)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.contact={...bh,...t}})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.contact}).then((()=>this.$toast.updateSuccess())).then((()=>{this.contact={...bh},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const xh=(0,r.Z)(Vh,[["render",Ch]]);var wh=xh,Nh={components:{"profile-action-header":Pp,"edit-employee-layout":Jp,"save-emergency-contact":fh,"edit-emergency-contact":wh,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},countries:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/emergency-contacts`),{showPaginator:o,currentPage:a,total:l,pages:n,pageSize:r,response:i,isLoading:s,execQuery:d}=wt(t,{toastNoRecords:!1});return{http:t,showPaginator:o,currentPage:a,isLoading:s,total:l,pages:n,pageSize:r,execQuery:d,items:i}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1}},{name:"relationship",title:this.$t("pim.relationship"),style:{flex:1}},{name:"homePhone",title:this.$t("pim.home_telephone"),style:{flex:1}},{name:"mobilePhone",title:this.$t("general.mobile"),style:{flex:1}},{name:"officePhone",title:this.$t("pim.work_telephone"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const _h=(0,r.Z)(Nh,[["render",mh],["__scopeId","data-v-f2414b96"]]);var kh=_h;const Sh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},Dh={class:"orangehrm-container"},$h={class:"orangehrm-bottom-container"};function Eh(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-dependent"),s=(0,a.resolveComponent)("edit-dependent"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"dependents"},{default:(0,a.withCtx)((()=>[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,onClose:r.onSaveModalClose},null,8,["http","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Sh,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_dependents")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Dh,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","disabled","loading"])]),(0,a.createElementVNode)("div",$h,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])),_:1},8,["employee-id"])}const Th={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Bh(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Th,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_dependent")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.dependent.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.relationshipType,"onUpdate:modelValue":t[1]||(t[1]=e=>n.dependent.relationshipType=e),type:"select",label:e.$t("pim.relationship"),rules:n.rules.relationshipType,options:n.relationshipOptions,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),r.showRelationship?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.relationship,"onUpdate:modelValue":t[2]||(t[2]=e=>n.dependent.relationship=e),label:e.$t("pim.please_specify"),rules:n.rules.relationship,required:""},null,8,["modelValue","label","rules"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.dependent.dateOfBirth,"onUpdate:modelValue":t[3]||(t[3]=e=>n.dependent.dateOfBirth=e),label:e.$t("pim.date_of_birth"),rules:n.rules.dateOfBirth},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Ih={name:"",relationshipType:null,relationship:"",dateOfBirth:""};var Lh={name:"SaveDependent",props:{http:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,dependent:{...Ih},rules:{name:[jt,zt(100)],relationshipType:[jt],relationship:[jt,zt(100)],dateOfBirth:[Rt(this.userDateFormat)]},relationshipOptions:[{id:"child",label:this.$t("pim.child")},{id:"other",label:this.$t("pim.other")}]}},computed:{showRelationship(){return"other"==this.dependent.relationshipType?.id}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.dependent,relationshipType:this.dependent.relationshipType?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.dependent={...Ih},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Uh=(0,r.Z)(Lh,[["render",Bh]]);var Ah=Uh;const Ph={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function qh(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Ph,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_dependent")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.dependent.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.relationshipType,"onUpdate:modelValue":t[1]||(t[1]=e=>n.dependent.relationshipType=e),type:"select",label:e.$t("pim.relationship"),rules:n.rules.relationshipType,options:n.relationshipOptions,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),r.showRelationship?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.relationship,"onUpdate:modelValue":t[2]||(t[2]=e=>n.dependent.relationship=e),label:e.$t("pim.please_specify"),rules:n.rules.relationship,required:""},null,8,["modelValue","label","rules"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.dependent.dateOfBirth,"onUpdate:modelValue":t[3]||(t[3]=e=>n.dependent.dateOfBirth=e),label:e.$t("pim.date_of_birth"),rules:n.rules.dateOfBirth},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Mh={name:"",relationshipType:null,relationship:"",dateOfBirth:""};var Fh={name:"EditDependent",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,dependent:{...Mh},rules:{name:[jt,zt(100)],relationshipType:[jt],relationship:[jt,zt(100)],dateOfBirth:[Rt(this.userDateFormat)]},relationshipOptions:[{id:"child",label:this.$t("pim.child")},{id:"other",label:this.$t("pim.other")}]}},computed:{showRelationship(){return"other"==this.dependent.relationshipType?.id}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.dependent={...Mh,...t},this.dependent.relationshipType=this.relationshipOptions.find((e=>e.id===t.relationshipType))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.dependent,relationshipType:this.dependent.relationshipType?.id}).then((()=>this.$toast.updateSuccess())).then((()=>{this.dependent={...Mh},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const jh=(0,r.Z)(Fh,[["render",qh]]);var zh=jh,Rh={components:{"profile-action-header":Pp,"edit-employee-layout":Jp,"save-dependent":Ah,"edit-dependent":zh,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},countries:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/dependents`),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>({id:e.id,name:e.name,dateOfBirth:ie(re(e.dateOfBirth),o,{locale:a}),relationship:"other"==e.relationshipType?e.relationship:"Child"}))),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:l,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1}},{name:"relationship",title:this.$t("pim.relationship"),style:{flex:1}},{name:"dateOfBirth",title:this.$t("pim.date_of_birth"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:"0.5"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Oh=(0,r.Z)(Rh,[["render",Eh]]);var Gh=Oh;const Zh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},Qh={class:"orangehrm-employee-picture"};function Hh(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("profile-image-input"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("submit-button"),u=(0,a.resolveComponent)("oxd-form-actions"),p=(0,a.resolveComponent)("oxd-form"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Zh,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.change_profile_picture")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Qh,[(0,a.createVNode)(d,{modelValue:n.empPicture,"onUpdate:modelValue":t[0]||(t[0]=e=>n.empPicture=e),rules:n.rules.empPicture,"img-src":r.profilePicUrl},null,8,["modelValue","rules","img-src"])])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])),_:1},8,["employee-id"])}const Wh=`${window.appGlobal.publicPath}/images/default-photo.png`;var Yh={components:{"profile-image-input":su,"edit-employee-layout":Jp},props:{empNumber:{type:String,required:!0},allowedImageTypes:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/picture`);return{http:t}},data(){return{isLoading:!1,empPicture:null,rules:{empPicture:[jt,no(1048576),ro(this.allowedImageTypes)]}}},computed:{profilePicUrl(){if(this.empPicture){const e=this.empPicture.base64,t=this.empPicture.type,o=this.allowedImageTypes.findIndex((e=>e===t));return o>-1?`data:${t};base64,${e}`:Wh}return Wh}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{empPicture:this.empPicture}}).then((()=>this.$toast.updateSuccess())).then((()=>{location.reload()}))}}};const Jh=(0,r.Z)(Yh,[["render",Hh],["__scopeId","data-v-c6fb612a"]]);var Xh=Jh;const Kh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},eg={class:"orangehrm-container"},tg={class:"orangehrm-bottom-container"};function og(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-salary-component"),s=(0,a.resolveComponent)("edit-salary-component"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"salary"},{default:(0,a.withCtx)((()=>[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,paygrades:o.paygrades,"pay-frequencies":o.payFrequencies,currencies:o.currencies,"account-types":o.accountTypes,onClose:r.onSaveModalClose},null,8,["http","paygrades","pay-frequencies","currencies","account-types","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,paygrades:o.paygrades,"pay-frequencies":o.payFrequencies,currencies:o.currencies,"account-types":o.accountTypes,onClose:r.onEditModalClose},null,8,["http","data","paygrades","pay-frequencies","currencies","account-types","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Kh,[(0,a.createVNode)(d,{"action-button-shown":e.$can.update("salary_details"),onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_salary_components")),1)])),_:1},8,["action-button-shown","onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",eg,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:r.tableHeaders,items:l.items?.data,selectable:e.$can.delete("salary_details"),disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","disabled","loading"])]),(0,a.createElementVNode)("div",tg,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])),_:1},8,["employee-id"])}const ag={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function lg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-switch-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",ag,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" Add Salary Component ")])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.salaryComponent.name=e),label:e.$t("pim.salary_component"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.payGradeId,"onUpdate:modelValue":t[1]||(t[1]=e=>n.salaryComponent.payGradeId=e),type:"select",label:e.$t("general.pay_grade"),options:o.paygrades},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.payFrequencyId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.salaryComponent.payFrequencyId=e),type:"select",label:e.$t("pim.pay_frequency"),options:o.payFrequencies},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(d,{key:r.currenciesOpts,modelValue:n.salaryComponent.currencyId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.salaryComponent.currencyId=e),type:"select",label:e.$t("general.currency"),options:r.currenciesOpts,rules:n.rules.currencyId,required:""},null,8,["modelValue","label","options","rules"]))])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.salaryAmount,"onUpdate:modelValue":t[4]||(t[4]=e=>n.salaryComponent.salaryAmount=e),label:e.$t("pim.amount"),rules:n.rules.salaryAmount,required:""},null,8,["modelValue","label","rules"]),void 0!==r.minAmount||void 0!==r.maxAmount?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" Min: "+(0,a.toDisplayString)(r.minAmount??0)+" - Max: "+(0,a.toDisplayString)(r.maxAmount??0),1)])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.comment,"onUpdate:modelValue":t[5]||(t[5]=e=>n.salaryComponent.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,{class:"directdeposit-form-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"directdeposit-form-header-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.include_direct_deposit_details")),1)])),_:1}),(0,a.createVNode)(p,{modelValue:n.includeDirectDeposit,"onUpdate:modelValue":t[6]||(t[6]=e=>n.includeDirectDeposit=e)},null,8,["modelValue"])])),_:1}),n.includeDirectDeposit?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAccount,"onUpdate:modelValue":t[7]||(t[7]=e=>n.directDeposit.directDepositAccount=e),label:e.$t("pim.account_number"),rules:n.rules.directDepositAccount,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAccountType,"onUpdate:modelValue":t[8]||(t[8]=e=>n.directDeposit.directDepositAccountType=e),type:"select",label:e.$t("pim.account_type"),rules:n.rules.directDepositAccountType,options:o.accountTypes,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),r.showOptionalAccountType?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.accountType,"onUpdate:modelValue":t[9]||(t[9]=e=>n.accountType=e),label:e.$t("pim.please_specify"),rules:n.rules.accountType,required:""},null,8,["modelValue","label","rules"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositRoutingNumber,"onUpdate:modelValue":t[10]||(t[10]=e=>n.directDeposit.directDepositRoutingNumber=e),label:e.$t("pim.routing_number"),rules:n.rules.directDepositRoutingNumber,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAmount,"onUpdate:modelValue":t[11]||(t[11]=e=>n.directDeposit.directDepositAmount=e),label:e.$t("pim.amount"),rules:n.rules.directDepositAmount,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const ng={name:"",salaryAmount:"",comment:"",payGradeId:null,payFrequencyId:null,currencyId:null},rg={directDepositAccount:"",directDepositAccountType:null,directDepositRoutingNumber:"",directDepositAmount:""};var ig={name:"SaveSalaryComponent",components:{"oxd-switch-input":q.OxdSwitchInput},props:{http:{type:Object,required:!0},paygrades:{type:Array,default:()=>[]},payFrequencies:{type:Array,default:()=>[]},currencies:{type:Array,default:()=>[]},accountTypes:{type:Array,default:()=>[]}},emits:["close"],data(){return{isLoading:!1,includeDirectDeposit:!1,salaryComponent:{...ng},directDeposit:{...rg},accountType:"",usableCurrencies:[],rules:{name:[jt,zt(100)],salaryAmount:[jt,Wt,mo(1e9)],comment:[zt(250)],currencyId:[jt],directDepositAccount:[jt,zt(100)],directDepositAccountType:[jt],accountType:[jt,zt(20)],directDepositRoutingNumber:[jt,zt(9),Wt],directDepositAmount:[jt,Wt,mo(1e9)]}}},computed:{showOptionalAccountType(){return"OTHER"==this.directDeposit.directDepositAccountType?.id},minAmount(){return this.currencyInfo?.minAmount},maxAmount(){return this.currencyInfo?.maxAmount},currenciesOpts(){const e=this.salaryComponent.payGradeId?.id;return e?e&&this.usableCurrencies.length>0?this.currencies.filter((e=>this.usableCurrencies.findIndex((t=>t.id===e.id))>-1)):[]:this.currencies},currencyInfo(){return this.usableCurrencies.find((e=>e.id===this.salaryComponent.currencyId?.id))}},watch:{"salaryComponent.payGradeId":function(e){e?.id?(this.isLoading=!0,this.http.request({url:`/api/v2/admin/pay-grades/${e.id}/currencies`,method:"GET",params:{limit:0}}).then((e=>{const{data:t}=e.data;this.usableCurrencies=t.map((e=>({id:e.currencyType.id,name:e.currencyType.name,minAmount:e.minSalary,maxAmount:e.maxSalary})));const o=this.salaryComponent.currencyId,a=this.usableCurrencies.findIndex((e=>e.id===o?.id));this.salaryComponent.currencyId=-1===a?null:this.salaryComponent.currencyId})).then((()=>{this.isLoading=!1}))):this.usableCurrencies=[]}},mounted(){this.$nextTick((()=>{this.rules.salaryAmount.push((e=>{const t=this.minAmount?this.minAmount:0;return e>=t||this.$t("pim.should_be_within_min_max_values")})),this.rules.salaryAmount.push((e=>{const t=this.maxAmount?this.maxAmount:999999999;return e<=t||this.$t("pim.should_be_within_min_max_values")}))}))},methods:{onSave(){this.isLoading=!0;const e=this.showOptionalAccountType?this.accountType:this.directDeposit.directDepositAccountType?.id;this.http.create({salaryComponent:this.salaryComponent.name,salaryAmount:this.salaryComponent.salaryAmount,payGradeId:this.salaryComponent.payGradeId?.id,currencyId:this.salaryComponent.currencyId?.id,payFrequencyId:this.salaryComponent.payFrequencyId?.id,comment:this.salaryComponent.comment?this.salaryComponent.comment:null,addDirectDeposit:this.includeDirectDeposit,directDepositAccount:this.includeDirectDeposit?this.directDeposit.directDepositAccount:void 0,directDepositAccountType:this.includeDirectDeposit?e:void 0,directDepositAmount:this.includeDirectDeposit?this.directDeposit.directDepositAmount:void 0,directDepositRoutingNumber:this.includeDirectDeposit?this.directDeposit.directDepositRoutingNumber:void 0}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const sg=(0,r.Z)(ig,[["render",lg],["__scopeId","data-v-6c600350"]]);var dg=sg;const cg={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function mg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-switch-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",cg,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_salary_component")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.salaryComponent.name=e),label:e.$t("pim.salary_component"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.payGradeId,"onUpdate:modelValue":t[1]||(t[1]=e=>n.salaryComponent.payGradeId=e),type:"select",label:e.$t("general.pay_grade"),options:o.paygrades},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.payFrequencyId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.salaryComponent.payFrequencyId=e),type:"select",label:e.$t("pim.pay_frequency"),options:o.payFrequencies},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(d,{key:r.currenciesOpts,modelValue:n.salaryComponent.currencyId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.salaryComponent.currencyId=e),type:"select",label:e.$t("general.currency"),options:r.currenciesOpts,rules:n.rules.currencyId,required:""},null,8,["modelValue","label","options","rules"]))])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.salaryAmount,"onUpdate:modelValue":t[4]||(t[4]=e=>n.salaryComponent.salaryAmount=e),label:e.$t("pim.amount"),rules:n.rules.salaryAmount,required:""},null,8,["modelValue","label","rules"]),void 0!==r.minAmount||void 0!==r.maxAmount?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" Min: "+(0,a.toDisplayString)(r.minAmount??0)+" - Max: "+(0,a.toDisplayString)(r.maxAmount??0),1)])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.comment,"onUpdate:modelValue":t[5]||(t[5]=e=>n.salaryComponent.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,{class:"directdeposit-form-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"directdeposit-form-header-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.include_direct_deposit_details")),1)])),_:1}),(0,a.createVNode)(p,{modelValue:n.includeDirectDeposit,"onUpdate:modelValue":t[6]||(t[6]=e=>n.includeDirectDeposit=e)},null,8,["modelValue"])])),_:1}),n.includeDirectDeposit?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAccount,"onUpdate:modelValue":t[7]||(t[7]=e=>n.directDeposit.directDepositAccount=e),label:e.$t("pim.account_number"),rules:n.rules.directDepositAccount,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAccountType,"onUpdate:modelValue":t[8]||(t[8]=e=>n.directDeposit.directDepositAccountType=e),type:"select",label:e.$t("pim.account_type"),rules:n.rules.directDepositAccountType,options:o.accountTypes,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),r.showOptionalAccountType?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.accountType,"onUpdate:modelValue":t[9]||(t[9]=e=>n.accountType=e),label:e.$t("pim.please_specify"),rules:n.rules.accountType,required:""},null,8,["modelValue","label","rules"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositRoutingNumber,"onUpdate:modelValue":t[10]||(t[10]=e=>n.directDeposit.directDepositRoutingNumber=e),label:e.$t("pim.routing_number"),rules:n.rules.directDepositRoutingNumber,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAmount,"onUpdate:modelValue":t[11]||(t[11]=e=>n.directDeposit.directDepositAmount=e),label:e.$t("pim.amount"),rules:n.rules.directDepositAmount,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const ug={name:"",salaryAmount:"",comment:"",payGradeId:null,payFrequencyId:null,currencyId:null},pg={directDepositAccount:"",directDepositAccountType:null,directDepositRoutingNumber:"",directDepositAmount:""};var hg={name:"EditSalaryComponent",components:{"oxd-switch-input":q.OxdSwitchInput},props:{http:{type:Object,required:!0},data:{type:Object,required:!0},paygrades:{type:Array,default:()=>[]},payFrequencies:{type:Array,default:()=>[]},currencies:{type:Array,default:()=>[]},accountTypes:{type:Array,default:()=>[]}},emits:["close"],data(){return{isLoading:!1,includeDirectDeposit:!1,salaryComponent:{...ug},directDeposit:{...pg},accountType:"",usableCurrencies:[],rules:{name:[jt,zt(100)],salaryAmount:[jt,Wt,mo(1e9)],comment:[zt(250)],currencyId:[jt],directDepositAccount:[jt,zt(100)],directDepositAccountType:[jt],accountType:[jt,zt(20)],directDepositRoutingNumber:[jt,zt(9),Wt],directDepositAmount:[jt,Wt,mo(1e9)]}}},computed:{showOptionalAccountType(){return"OTHER"==this.directDeposit.directDepositAccountType?.id},minAmount(){return this.currencyInfo?.minAmount},maxAmount(){return this.currencyInfo?.maxAmount},currenciesOpts(){const e=this.salaryComponent.payGradeId?.id;return e?e&&this.usableCurrencies.length>0?this.currencies.filter((e=>this.usableCurrencies.findIndex((t=>t.id===e.id))>-1)):[]:this.currencies},currencyInfo(){return this.usableCurrencies.find((e=>e.id===this.salaryComponent.currencyId?.id))}},watch:{"salaryComponent.payGradeId":function(e){e?.id?(this.isLoading=!0,this.http.request({url:`/api/v2/admin/pay-grades/${e.id}/currencies`,method:"GET",params:{limit:0}}).then((e=>{const{data:t}=e.data;this.usableCurrencies=t.map((e=>({id:e.currencyType.id,name:e.currencyType.name,minAmount:e.minSalary,maxAmount:e.maxSalary})));const o=this.salaryComponent.currencyId,a=this.usableCurrencies.findIndex((e=>e.id===o?.id));this.salaryComponent.currencyId=-1===a?[]:this.salaryComponent.currencyId})).then((()=>{this.isLoading=!1}))):this.usableCurrencies=[]}},mounted(){this.$nextTick((()=>{this.rules.salaryAmount.push((e=>{const t=this.minAmount?this.minAmount:0;return e>=t||this.$t("pim.should_be_within_min_max_values")})),this.rules.salaryAmount.push((e=>{const t=this.maxAmount?this.maxAmount:999999999;return e<=t||this.$t("pim.should_be_within_min_max_values")}))}))},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;if(this.salaryComponent.name=t.salaryName,this.salaryComponent.salaryAmount=t.amount,this.salaryComponent.comment=t.comment?t.comment:"",this.salaryComponent.payGradeId=this.paygrades.find((e=>e.id===t.payGrade?.id)),this.salaryComponent.payFrequencyId=this.payFrequencies.find((e=>e.id===t.payPeriod?.id)),this.salaryComponent.currencyId=this.currencies.find((e=>e.id===t.currencyType?.id)),null!==t.directDebit.id){this.includeDirectDeposit=!0,this.directDeposit.directDepositAccount=t.directDebit.account;const e=this.accountTypes.find((e=>e.id===t.directDebit.accountType));this.directDeposit.directDepositAccountType=e||{id:"OTHER",label:this.$t("pim.other")},this.accountType=0===e.length?t.directDebit.accountType:"",this.directDeposit.directDepositRoutingNumber=t.directDebit.routingNumber,this.directDeposit.directDepositAmount=t.directDebit.amount}})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e=this.showOptionalAccountType?this.accountType:this.directDeposit.directDepositAccountType?.id;this.http.update(this.data.id,{salaryComponent:this.salaryComponent.name,salaryAmount:this.salaryComponent.salaryAmount,payGradeId:this.salaryComponent.payGradeId?.id,currencyId:this.salaryComponent.currencyId?.id,payFrequencyId:this.salaryComponent.payFrequencyId?.id,comment:this.salaryComponent.comment?this.salaryComponent.comment:null,addDirectDeposit:this.includeDirectDeposit,directDepositAccount:this.includeDirectDeposit?this.directDeposit.directDepositAccount:void 0,directDepositAccountType:this.includeDirectDeposit?e:void 0,directDepositAmount:this.includeDirectDeposit?this.directDeposit.directDepositAmount:void 0,directDepositRoutingNumber:this.includeDirectDeposit?this.directDeposit.directDepositRoutingNumber:void 0}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const gg=(0,r.Z)(hg,[["render",mg],["__scopeId","data-v-e3ac8428"]]);var vg=gg;const fg=e=>e.map((e=>({id:e.id,name:e.salaryName,amount:e.amount,currency:e.currencyType?.name,frequency:e.payPeriod?.name,depositAmount:e.directDebit?.amount})));var yg={components:{"profile-action-header":Pp,"edit-employee-layout":Jp,"save-salary-component":dg,"edit-salary-component":vg,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},paygrades:{type:Array,default:()=>[]},payFrequencies:{type:Array,default:()=>[]},currencies:{type:Array,default:()=>[]},accountTypes:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/salary-components`),{showPaginator:o,currentPage:a,total:l,pages:n,pageSize:r,response:i,isLoading:s,execQuery:d}=wt(t,{normalizer:fg,toastNoRecords:!1});return{http:t,showPaginator:o,currentPage:a,isLoading:s,total:l,pages:n,pageSize:r,execQuery:d,items:i}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("pim.salary_component"),style:{flex:1}},{name:"amount",title:this.$t("pim.amount"),style:{flex:1}},{name:"currency",title:this.$t("general.currency"),style:{flex:1}},{name:"frequency",title:this.$t("pim.pay_frequency"),style:{flex:1}},{name:"depositAmount",title:this.$t("pim.direct_deposit_amount"),style:{flex:1}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal},tableHeaders(){const e={name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.delete("salary_details")&&(e.cellConfig.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),this.$can.update("salary_details")&&(e.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),Object.keys(e.cellConfig).length>0?this.headers.concat([e]):this.headers}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Cg=(0,r.Z)(yg,[["render",og]]);var bg=Cg;const Vg={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},xg={key:1,class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function wg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("date-input"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("job-spec-download"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("oxd-switch-input"),v=(0,a.resolveComponent)("file-upload-input"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form"),b=(0,a.resolveComponent)("profile-action-header"),V=(0,a.resolveComponent)("terminate-modal"),x=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(x,{screen:"job","employee-id":o.empNumber,"max-file-size":o.maxFileSize,"allowed-file-types":o.allowedFileTypes},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Vg,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.job_details")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.job.joinedDate,"onUpdate:modelValue":t[0]||(t[0]=e=>n.job.joinedDate=e),label:e.$t("general.joined_date"),rules:n.rules.joinedDate,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.job.jobTitleId,"onUpdate:modelValue":t[1]||(t[1]=e=>n.job.jobTitleId=e),type:"select",label:e.$t("general.job_title"),options:r.normalizedJobTitles,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(u,{key:`jobspec-${r.selectedJobTitleId}`,"resource-id":r.selectedJobTitleId},null,8,["resource-id"]))])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.job.jobCategoryId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.job.jobCategoryId=e),type:"select",label:e.$t("general.job_category"),options:o.jobCategories,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.job.subunitId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.job.subunitId=e),type:"select",label:e.$t("general.sub_unit"),options:o.subunits,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.job.locationId,"onUpdate:modelValue":t[4]||(t[4]=e=>n.job.locationId=e),type:"select",label:e.$t("general.location"),options:o.locations,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.job.empStatusId,"onUpdate:modelValue":t[5]||(t[5]=e=>n.job.empStatusId=e),type:"select",label:e.$t("general.employment_status"),options:o.employmentStatuses,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","options","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{class:"user-form-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"user-form-header-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.include_employment_contract_details")),1)])),_:1}),(0,a.createVNode)(g,{modelValue:n.showContractDetails,"onUpdate:modelValue":t[6]||(t[6]=e=>n.showContractDetails=e)},null,8,["modelValue"])])),_:1}),n.showContractDetails?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contract.startDate,"onUpdate:modelValue":t[7]||(t[7]=e=>n.contract.startDate=e),label:e.$t("pim.contract_start_date"),rules:n.rules.startDate,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contract.endDate,"onUpdate:modelValue":t[8]||(t[8]=e=>n.contract.endDate=e),label:e.$t("pim.contract_end_date"),rules:n.rules.endDate,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{newFile:n.contract.newAttachment,"onUpdate:newFile":t[9]||(t[9]=e=>n.contract.newAttachment=e),method:n.contract.method,"onUpdate:method":t[10]||(t[10]=e=>n.contract.method=e),label:e.$t("pim.contract_details"),"button-label":e.$t("general.browse"),file:n.contract.oldAttachment,rules:n.rules.contractAttachment,url:`pim/viewAttachment/empNumber/${o.empNumber}/attachId`,hint:"Accepts up to 1MB",disabled:!r.hasUpdatePermissions},null,8,["newFile","method","label","button-label","file","rules","url","disabled"])])),_:1})])),_:1})])),_:1})],64)):(0,a.createCommentVNode)("",!0),r.hasUpdatePermissions?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f)])),_:1})],64)):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","onSubmitValid"])]),r.hasUpdatePermissions&&!n.isLoading?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0})):(0,a.createCommentVNode)("",!0),r.hasUpdatePermissions&&!n.isLoading?((0,a.openBlock)(),(0,a.createElementBlock)("div",xg,[(0,a.createVNode)(b,{"icon-name":"","display-type":r.terminationActionType,label:r.terminationActionLabel,title:r.terminationActionLabel,class:"--termination-button",onClick:r.onClickTerminate},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.employee_termination_activation"))+" ",1),n.termination&&n.termination.id?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,tag:"p",class:"orangehrm-terminate-date",onClick:r.openTerminateModal},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.terminated_on"))+": "+(0,a.toDisplayString)(r.terminationDate),1)])),_:1},8,["onClick"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["display-type","label","title","onClick"])])):(0,a.createCommentVNode)("",!0),n.showTerminateModal?((0,a.openBlock)(),(0,a.createBlock)(V,{key:2,"employee-id":o.empNumber,"termination-reasons":o.terminationReasons,"termination-id":n.termination.id,onClose:r.closeTerminateModal},null,8,["employee-id","termination-reasons","termination-id","onClose"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["employee-id","max-file-size","allowed-file-types"])}function Ng(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon-button"),d=(0,a.resolveComponent)("oxd-loading-spinner"),c=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createBlock)(c,{label:e.$t("general.job_specification")},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)({"input-container":!0,"--disabled":!e.file.id})},[(0,a.createVNode)(i,{class:"input-container-filename",tag:"p",title:e.file.filename,onClick:l.downloadFile},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.file.id?e.file.filename:"Not Defined"),1)])),_:1},8,["title","onClick"]),!e.isLoading&&e.file.id?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"input-container-icon",name:"download",onClick:l.downloadFile},null,8,["onClick"])):(0,a.createCommentVNode)("",!0),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,class:"input-container-loader","with-container":!1})):(0,a.createCommentVNode)("",!0)],2)])),_:1},8,["label"])}var _g={name:"JobSpecDownload",components:{"oxd-loading-spinner":q.OxdSpinner},props:{resourceId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/job-titles/${e.resourceId}/specification`),o=(0,a.reactive)({isLoading:!1,file:{id:"",filename:"",fileType:"",fileSize:0}}),l=async()=>{o.isLoading=!0,t.request({method:"GET",validateStatus:e=>e>=200&&e<300||404==e}).then((({data:e})=>{o.file={...e.data}})).finally((()=>{o.isLoading=!1}))},n=()=>{if(!o.file.id)return;const e=`${window.appGlobal.baseUrl}/admin/viewJobSpecification/attachId/${o.file.id}`;window.open(e,"_blank")};return e.resourceId&&(0,a.onBeforeMount)(l),{...(0,a.toRefs)(o),downloadFile:n}}};const kg=(0,r.Z)(_g,[["render",Ng],["__scopeId","data-v-6dc7b054"]]);var Sg=kg;const Dg={class:"orangehrm-modal-header"};function $g(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("date-input"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(f,{class:"orangehrm-dialog-modal","onUpdate:show":t[4]||(t[4]=e=>r.onCancel(!1))},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Dg,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.terminate_employment")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.termination.date,"onUpdate:modelValue":t[0]||(t[0]=e=>n.termination.date=e),label:e.$t("pim.termination_date"),rules:n.rules.date,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.termination.terminationReason,"onUpdate:modelValue":t[1]||(t[1]=e=>n.termination.terminationReason=e),type:"select",label:e.$t("pim.termination_reason"),rules:n.rules.terminationReason,options:o.terminationReasons,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.termination.note,"onUpdate:modelValue":t[2]||(t[2]=e=>n.termination.note=e),type:"textarea",label:e.$t("general.note"),placeholder:e.$t("general.type_here"),rules:n.rules.note},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:t[3]||(t[3]=e=>r.onCancel(!1))},null,8,["label"]),(0,a.createVNode)(h)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1})}const Eg={terminationReason:null,date:"",note:null};var Tg={name:"TerminateModal",components:{"oxd-dialog":q.OxdDialog},props:{employeeId:{type:String,required:!0},terminationReasons:{type:Array,required:!0},terminationId:{type:Number,required:!1,default:null}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/terminations`),{userDateFormat:o}=R();return{http:t,userDateFormat:o}},data(){return{isLoading:!1,termination:{...Eg},rules:{terminationReason:[jt],date:[jt,Rt(this.userDateFormat)],note:[zt(250)]}}},beforeMount(){this.terminationId&&(this.isLoading=!0,this.http.get(this.terminationId).then((e=>{const{data:t}=e.data;this.termination.terminationReason=this.terminationReasons.find((e=>e.id===t.terminationReason?.id)),this.termination.date=t.date,this.termination.note=t.note})).finally((()=>{this.isLoading=!1})))},methods:{onSave(){this.isLoading=!0;const e={date:this.termination.date,note:this.termination.note,terminationReasonId:this.termination.terminationReason?.id};this.submitData(e,this.terminationId).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel(!0)}))},async submitData(e,t){return t?this.http.update(t,e):this.http.create(e)},onCancel(e){this.$emit("close",e)}}};const Bg=(0,r.Z)(Tg,[["render",$g]]);var Ig=Bg;const Lg={joinedDate:"",jobTitleId:[],empStatusId:[],jobCategoryId:[],subunitId:[],locationId:[]},Ug={startDate:"",endDate:"",oldAttachment:null,newAttachment:null,method:"keepCurrent"};var Ag={components:{"edit-employee-layout":Jp,"oxd-switch-input":q.OxdSwitchInput,"job-spec-download":Sg,"file-upload-input":To,"profile-action-header":Pp,"terminate-modal":Ig},props:{empNumber:{type:String,required:!0},locations:{type:Array,default:()=>[]},jobTitles:{type:Array,default:()=>[]},jobCategories:{type:Array,default:()=>[]},subunits:{type:Array,default:()=>[]},employmentStatuses:{type:Array,default:()=>[]},terminationReasons:{type:Array,default:()=>[]},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/job-details`),{jsDateFormat:o,userDateFormat:a}=R(),{locale:l}=De();return{http:t,locale:l,jsDateFormat:o,userDateFormat:a}},data(){return{isLoading:!1,showContractDetails:!1,job:{...Lg},contract:{...Ug},termination:null,showTerminateModal:!1,rules:{joinedDate:[Rt(this.userDateFormat)],startDate:[Rt(this.userDateFormat)],endDate:[Rt(this.userDateFormat),eo((()=>this.contract.startDate))],contractAttachment:[e=>"replaceCurrent"!=this.contract.method||jt(e),ro(this.allowedFileTypes),no(this.maxFileSize)]}}},computed:{selectedJobTitleId(){const e=this.job.jobTitleId?.id;return e||0},terminationActionLabel(){return this.termination?.id?this.$t("pim.activate_employment"):this.$t("pim.terminate_employment")},terminationActionType(){return this.termination?.id?"ghost-success":"label-danger"},hasUpdatePermissions(){return this.$can.update("job_details")},normalizedJobTitles(){return this.jobTitles.map((e=>({id:e.id,label:e?.deleted?e.label+this.$t("general.deleted"):e.label})))},terminationDate(){return this.termination?.date?ie(re(this.termination.date),this.jsDateFormat,{locale:this.locale}):null}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{this.updateJobModel(e)})).then((()=>this.http.request({method:"GET",url:`/api/v2/pim/employees/${this.empNumber}/employment-contract`}))).then((e=>{this.updateContractModel(e)})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{...this.job,jobTitleId:this.job.jobTitleId?.id,jobCategoryId:this.job.jobCategoryId?.id,subunitId:this.job.subunitId?.id,empStatusId:this.job.empStatusId?.id,locationId:this.job.locationId?.id}}).then((e=>(this.updateJobModel(e),this.http.request({method:"PUT",url:`/api/v2/pim/employees/${this.empNumber}/employment-contract`,data:{startDate:this.contract.startDate,endDate:this.contract.endDate,currentContractAttachment:this.contract.oldAttachment?this.contract.method:void 0,contractAttachment:this.contract.newAttachment?this.contract.newAttachment:void 0}})))).then((e=>(e&&this.updateContractModel(e),this.$toast.updateSuccess()))).then((()=>{this.isLoading=!1}))},onClickTerminate(){this.termination?.id?(this.isLoading=!0,this.http.request({method:"DELETE",url:`/api/v2/pim/employees/${this.empNumber}/terminations`}).then((()=>this.$toast.updateSuccess())).then((()=>{location.reload()}))):this.openTerminateModal()},openTerminateModal(){this.showTerminateModal=!0},closeTerminateModal(e){this.showTerminateModal=!1,e&&location.reload()},updateContractModel(e){const{data:t}=e.data;this.contract.startDate=t.startDate,this.contract.endDate=t.endDate,this.contract.oldAttachment=t.contractAttachment?.id?t.contractAttachment:null,this.contract.newAttachment=null,this.contract.method="keepCurrent",t.startDate||t.endDate||t.contractAttachment?.id?this.showContractDetails=!0:this.showContractDetails=!1},updateJobModel(e){const{data:t}=e.data;this.job.joinedDate=t.joinedDate,this.job.jobTitleId=this.normalizedJobTitles.find((e=>e.id===t.jobTitle?.id)),this.job.jobCategoryId=this.jobCategories.find((e=>e.id===t.jobCategory?.id)),this.job.subunitId=this.subunits.find((e=>e.id===t.subunit?.id)),this.job.empStatusId=this.employmentStatuses.find((e=>e.id===t.empStatus?.id)),this.job.locationId=this.locations.find((e=>e.id===t.location?.id)),this.termination=t.employeeTerminationRecord}}};const Pg=(0,r.Z)(Ag,[["render",wg],["__scopeId","data-v-1dfb2fdc"]]);var qg=Pg;const Mg={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function Fg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-work-experience"),c=(0,a.resolveComponent)("employee-education"),m=(0,a.resolveComponent)("employee-skills"),u=(0,a.resolveComponent)("employee-languages"),p=(0,a.resolveComponent)("employee-license"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"qualifications"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Mg,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.qualifications")),1)])),_:1}),(0,a.createVNode)(s)]),(0,a.createVNode)(d,{"employee-id":o.empNumber},null,8,["employee-id"]),(0,a.createVNode)(c,{"employee-id":o.empNumber},null,8,["employee-id"]),(0,a.createVNode)(m,{"employee-id":o.empNumber},null,8,["employee-id"]),(0,a.createVNode)(u,{"employee-id":o.empNumber,fluencies:o.fluencies,competencies:o.competencies},null,8,["employee-id","fluencies","competencies"]),(0,a.createVNode)(p,{"employee-id":o.empNumber},null,8,["employee-id"])])),_:1},8,["employee-id"])}const jg={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},zg={class:"orangehrm-container"},Rg={key:2,class:"orangehrm-bottom-container"};function Og(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-skill"),s=(0,a.resolveComponent)("edit-skill"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,api:l.skillsEndpoint,onClose:r.onSaveModalClose},null,8,["http","api","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",jg,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.skills")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",zg,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,disabled:r.isDisabled,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading","disabled"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Rg,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const Gg={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function Zg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("qualification-dropdown"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Gg,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_skill")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.skillId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.skill.skillId=e),label:e.$t("pim.skill"),rules:n.rules.skillId,api:o.api,required:""},null,8,["modelValue","label","rules","api"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.skill.yearsOfExperience,"onUpdate:modelValue":t[1]||(t[1]=e=>n.skill.yearsOfExperience=e),label:e.$t("pim.years_of_experience"),rules:n.rules.yearsOfExperience},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.skill.comments,"onUpdate:modelValue":t[2]||(t[2]=e=>n.skill.comments=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comments},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}function Qg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",options:l.options},null,8,["options"])}var Hg={name:"QualificationDropdown",props:{api:{type:String,required:!0}},setup(e){const t=(0,a.ref)([]),o=new P(window.appGlobal.baseUrl,e.api);return(0,a.onBeforeMount)((()=>{o.getAll({limit:0}).then((({data:e})=>{t.value=e.data.map((e=>({id:e.id,label:e.name})))}))})),{options:t}}};const Wg=(0,r.Z)(Hg,[["render",Qg]]);var Yg=Wg;const Jg={yearsOfExperience:"",comments:"",skillId:null};var Xg={name:"SaveSkill",components:{"qualification-dropdown":Yg},props:{http:{type:Object,required:!0},api:{type:String,required:!0}},emits:["close"],data(){return{isLoading:!1,skill:{...Jg},rules:{skillId:[jt],yearsOfExperience:[Qt,Zt(100)],comments:[zt(100)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({skillId:this.skill.skillId?.id,yearsOfExperience:parseInt(this.skill.yearsOfExperience),comments:""!==this.skill.comments?this.skill.comments:" "}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Kg=(0,r.Z)(Xg,[["render",Zg]]);var ev=Kg;const tv={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function ov(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",tv,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_skill")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.skill.name=e),label:e.$t("pim.skill"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.yearsOfExperience,"onUpdate:modelValue":t[1]||(t[1]=e=>n.skill.yearsOfExperience=e),label:e.$t("pim.years_of_experience"),rules:n.rules.yearsOfExperience},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.comments,"onUpdate:modelValue":t[2]||(t[2]=e=>n.skill.comments=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comments},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const av={yearsOfExperience:0,comments:"",name:""};var lv={name:"EditSkill",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],data(){return{isLoading:!1,skill:{...av},rules:{yearsOfExperience:[Qt,Zt(100)],comments:[zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.skill.name=t.skill.name,this.skill.comments=t.comments,this.skill.yearsOfExperience=t.yearsOfExperience})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{yearsOfExperience:parseInt(this.skill.yearsOfExperience),comments:""!==this.skill.comments?this.skill.comments:" "}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const nv=(0,r.Z)(lv,[["render",ov]]);var rv=nv;const iv=e=>e.map((e=>({id:e.skill.id,name:e.skill.name,yearsOfExperience:e.yearsOfExperience,comments:e.comments})));var sv={name:"EmployeeSkills",components:{"profile-action-header":Pp,"save-skill":ev,"edit-skill":rv,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/skills`),o=`/api/v2/pim/employees/${e.employeeId}/skills/allowed`,{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(t,{normalizer:iv,toastNoRecords:!1});return{http:t,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s,skillsEndpoint:o}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("pim.skill"),style:{flex:1}},{name:"yearsOfExperience",title:this.$t("pim.years_of_experience"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-basis":"10em"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const dv=(0,r.Z)(sv,[["render",Og]]);var cv=dv;const mv={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},uv={class:"orangehrm-container"},pv={key:2,class:"orangehrm-bottom-container"};function hv(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-education"),s=(0,a.resolveComponent)("edit-education"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,api:l.educationEndpoint,onClose:r.onSaveModalClose},null,8,["http","api","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",mv,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.education")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",uv,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,disabled:r.isDisabled,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading","disabled"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",pv,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const gv={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function vv(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("qualification-dropdown"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",gv,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_education")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.educationId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.education.educationId=e),label:e.$t("general.level"),rules:n.rules.educationId,api:o.api,required:""},null,8,["modelValue","label","rules","api"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.education.institute,"onUpdate:modelValue":t[1]||(t[1]=e=>n.education.institute=e),label:e.$t("pim.institute"),rules:n.rules.institute},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.education.major,"onUpdate:modelValue":t[2]||(t[2]=e=>n.education.major=e),label:e.$t("pim.major_specialization"),rules:n.rules.major},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.education.year,"onUpdate:modelValue":t[3]||(t[3]=e=>n.education.year=e),label:e.$t("general.year"),rules:n.rules.year},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.education.score,"onUpdate:modelValue":t[4]||(t[4]=e=>n.education.score=e),label:e.$t("pim.gpa_score"),rules:n.rules.score},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.education.startDate,"onUpdate:modelValue":t[5]||(t[5]=e=>n.education.startDate=e),label:e.$t("general.start_date"),rules:n.rules.startDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.education.endDate,"onUpdate:modelValue":t[6]||(t[6]=e=>n.education.endDate=e),label:e.$t("general.end_date"),rules:n.rules.endDate},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const fv={educationId:null,institute:"",major:"",year:"",score:"",startDate:"",endDate:""};var yv={name:"SaveEducation",components:{"qualification-dropdown":Yg},props:{http:{type:Object,required:!0},api:{type:String,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,education:{...fv},rules:{educationId:[jt],institute:[zt(100)],major:[zt(100)],score:[zt(25)],year:[zt(4),Qt],startDate:[Rt(this.userDateFormat)],endDate:[Rt(this.userDateFormat),eo((()=>this.education.startDate))]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.education,educationId:this.education.educationId?.id,year:parseInt(this.education.year)}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Cv=(0,r.Z)(yv,[["render",vv]]);var bv=Cv;const Vv={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function xv(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Vv,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_education")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.education.name=e),label:e.$t("general.level"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.institute,"onUpdate:modelValue":t[1]||(t[1]=e=>n.education.institute=e),label:e.$t("pim.institute"),rules:n.rules.institute},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.major,"onUpdate:modelValue":t[2]||(t[2]=e=>n.education.major=e),label:e.$t("pim.major_specialization"),rules:n.rules.major},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.year,"onUpdate:modelValue":t[3]||(t[3]=e=>n.education.year=e),label:e.$t("general.year"),rules:n.rules.year},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.score,"onUpdate:modelValue":t[4]||(t[4]=e=>n.education.score=e),label:e.$t("pim.gpa_score"),rules:n.rules.score},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.education.startDate,"onUpdate:modelValue":t[5]||(t[5]=e=>n.education.startDate=e),label:e.$t("general.start_date"),rules:n.rules.startDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.education.endDate,"onUpdate:modelValue":t[6]||(t[6]=e=>n.education.endDate=e),label:e.$t("general.end_date"),rules:n.rules.endDate},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const wv={name:"",institute:"",major:"",year:"",score:"",startDate:"",endDate:""};var Nv={name:"EditEducation",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,education:{...wv},rules:{institute:[zt(100)],major:[zt(100)],score:[zt(25)],year:[zt(4),Qt],startDate:[Rt(this.userDateFormat)],endDate:[Rt(this.userDateFormat),eo((()=>this.education.startDate))]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.education.name=t.education.name,this.education.institute=t.institute,this.education.major=t.major,this.education.year=t.year?t.year:"",this.education.score=t.score,this.education.startDate=t.startDate?t.startDate:"",this.education.endDate=t.endDate?t.endDate:""})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{institute:this.education.institute,major:this.education.major,year:parseInt(this.education.year),score:this.education.score,startDate:this.education.startDate,endDate:this.education.endDate}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const _v=(0,r.Z)(Nv,[["render",xv]]);var kv=_v;const Sv=e=>e.map((e=>({id:e.id,level:e.education.name,year:e.year,score:e.score})));var Dv={name:"EmployeeEducation",components:{"profile-action-header":Pp,"save-education":bv,"edit-education":kv,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/educations`),o="/api/v2/admin/educations",{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(t,{normalizer:Sv,toastNoRecords:!1});return{http:t,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s,educationEndpoint:o}},data(){return{headers:[{name:"level",slot:"title",title:this.$t("general.level"),style:{flex:1}},{name:"year",title:this.$t("general.year"),style:{flex:1}},{name:"score",title:this.$t("pim.gpa_score"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-basis":"10em"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const $v=(0,r.Z)(Dv,[["render",hv]]);var Ev=$v;const Tv={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},Bv={class:"orangehrm-container"},Iv={key:2,class:"orangehrm-bottom-container"};function Lv(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-language"),s=(0,a.resolveComponent)("edit-language"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,api:l.languagesEndpoint,fluencies:o.fluencies,competencies:o.competencies,onClose:r.onSaveModalClose},null,8,["http","api","fluencies","competencies","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,"employee-id":o.employeeId,competencies:o.competencies,onClose:r.onEditModalClose},null,8,["http","data","employee-id","competencies","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Tv,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.languages")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Bv,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,disabled:r.isDisabled,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","disabled","loading"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Iv,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const Uv={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function Av(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Uv,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_language")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(d,{key:r.allowedLanguages,modelValue:n.language.languageId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.language.languageId=e),type:"select",label:e.$t("general.language"),options:r.allowedLanguages,rules:n.rules.languageId,clear:!1,required:""},null,8,["modelValue","label","options","rules"]))])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(d,{key:r.allowedFluencies,modelValue:n.language.fluencyId,"onUpdate:modelValue":t[1]||(t[1]=e=>n.language.fluencyId=e),type:"select",label:e.$t("pim.fluency"),options:r.allowedFluencies,rules:n.rules.fluencyId,clear:!1,required:""},null,8,["modelValue","label","options","rules"]))])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.competencyId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.language.competencyId=e),type:"select",label:e.$t("pim.competency"),options:o.competencies,rules:n.rules.competencyId,clear:!1,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.comment,"onUpdate:modelValue":t[3]||(t[3]=e=>n.language.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const Pv={languageId:null,fluencyId:null,competencyId:null,comment:""};var qv={name:"SaveLanguage",props:{http:{type:Object,required:!0},fluencies:{type:Array,required:!0},competencies:{type:Array,required:!0},api:{type:String,required:!0}},emits:["close"],data(){return{isLoading:!1,language:{...Pv},languages:[],rules:{languageId:[jt],fluencyId:[jt],competencyId:[jt],comment:[zt(100)]}}},computed:{allowedLanguages(){return this.languages},allowedFluencies(){const e=this.languages.findIndex((e=>e.id===this.language.languageId?.id));if(e>-1){const t=this.languages[e];return this.fluencies.filter((e=>t.allowedFluencyIds.includes(e.id)))}return[]}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:this.api,params:{limit:0}}).then((e=>{const{data:t}=e.data;Array.isArray(t)&&(this.languages=t.map((e=>({id:e.id,label:e.name,allowedFluencyIds:e.allowedFluencyIds?e.allowedFluencyIds:[]}))))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({languageId:this.language.languageId?.id,fluencyId:this.language.fluencyId?.id,competencyId:this.language.competencyId?.id,comment:this.language.comment}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Mv=(0,r.Z)(qv,[["render",Av]]);var Fv=Mv;const jv={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function zv(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",jv,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_language")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.language.name=e),label:e.$t("general.language"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.fluency,"onUpdate:modelValue":t[1]||(t[1]=e=>n.language.fluency=e),label:e.$t("pim.fluency"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.competencyId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.language.competencyId=e),type:"select",label:e.$t("pim.competency"),options:o.competencies,rules:n.rules.competencyId,clear:!1,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.comment,"onUpdate:modelValue":t[3]||(t[3]=e=>n.language.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const Rv={name:"",fluency:"",competencyId:null,comment:""};var Ov={name:"EditLanguage",props:{http:{type:Object,required:!0},employeeId:{type:String,required:!0},data:{type:Object,required:!0},competencies:{type:Array,required:!0}},emits:["close"],data(){return{isLoading:!1,language:{...Rv},rules:{competencyId:[jt],comment:[zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:`/api/v2/pim/employees/${this.employeeId}/languages/${this.data.languageId}/fluencies/${this.data.fluencyId}`}).then((e=>{const{data:t}=e.data;this.language.name=t.language.name,this.language.fluency=t.fluency.name,this.language.comment=t.comment?t.comment:"",this.language.competencyId=this.competencies.find((e=>e.id===t.competency?.id))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",url:`/api/v2/pim/employees/${this.employeeId}/languages/${this.data.languageId}/fluencies/${this.data.fluencyId}`,data:{competencyId:this.language.competencyId.id,comment:this.language.comment}}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Gv=(0,r.Z)(Ov,[["render",zv]]);var Zv=Gv;const Qv=e=>e.map((e=>({language:e.language.name,languageId:e.language.id,fluency:e.fluency.name,fluencyId:e.fluency.id,competency:e.competency.name,comments:e.comment})));var Hv={name:"EmployeeLanguages",components:{"profile-action-header":Pp,"save-language":Fv,"edit-language":Zv,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0},fluencies:{type:Array,required:!0},competencies:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/languages`),o=`/api/v2/pim/employees/${e.employeeId}/languages/allowed`,{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(t,{normalizer:Qv,toastNoRecords:!1});return{http:t,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s,languagesEndpoint:o}},data(){return{headers:[{name:"language",slot:"title",title:this.$t("general.language"),style:{flex:1}},{name:"fluency",title:this.$t("pim.fluency"),style:{flex:1}},{name:"competency",title:this.$t("pim.competency"),style:{flex:1}},{name:"comments",title:this.$t("general.comments"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-basis":"10em"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>({languageId:this.items?.data[e].languageId,fluencyId:this.items?.data[e].fluencyId})));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([{languageId:e.languageId,fluencyId:e.fluencyId}])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Wv=(0,r.Z)(Hv,[["render",Lv]]);var Yv=Wv;const Jv={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},Xv={class:"orangehrm-container"},Kv={key:2,class:"orangehrm-bottom-container"};function ef(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-work-experience"),s=(0,a.resolveComponent)("edit-work-experience"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,onClose:r.onSaveModalClose},null,8,["http","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Jv,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.work_experience")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Xv,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,disabled:r.isDisabled,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading","disabled"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Kv,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const tf={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function of(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",tf,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_work_experience")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.company,"onUpdate:modelValue":t[0]||(t[0]=e=>n.workExperience.company=e),label:e.$t("pim.company"),rules:n.rules.company,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.workExperience.jobTitle=e),label:e.$t("general.job_title"),rules:n.rules.jobTitle,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workExperience.fromDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.workExperience.fromDate=e),label:e.$t("general.from"),rules:n.rules.fromDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workExperience.toDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.workExperience.toDate=e),label:e.$t("general.to"),rules:n.rules.toDate},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.comment,"onUpdate:modelValue":t[4]||(t[4]=e=>n.workExperience.comment=e),type:"textarea",label:e.$t("general.comment"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const af={company:"",jobTitle:"",fromDate:"",toDate:"",comment:""};var lf={name:"SaveWorkExperience",props:{http:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,workExperience:{...af},rules:{company:[jt,zt(100)],jobTitle:[jt,zt(100)],fromDate:[Rt(this.userDateFormat)],toDate:[Rt(this.userDateFormat),eo((()=>this.workExperience.fromDate),this.$t("general.to_date_should_be_after_from_date"))],comment:[zt(200)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.workExperience}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const nf=(0,r.Z)(lf,[["render",of]]);var rf=nf;const sf={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function df(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",sf,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" Edit Work Experience ")])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.company,"onUpdate:modelValue":t[0]||(t[0]=e=>n.workExperience.company=e),label:e.$t("pim.company"),rules:n.rules.company,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.workExperience.jobTitle=e),label:e.$t("general.job_title"),rules:n.rules.jobTitle,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workExperience.fromDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.workExperience.fromDate=e),label:e.$t("general.from"),rules:n.rules.fromDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workExperience.toDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.workExperience.toDate=e),label:e.$t("general.to"),rules:n.rules.toDate},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.comment,"onUpdate:modelValue":t[4]||(t[4]=e=>n.workExperience.comment=e),type:"textarea",label:e.$t("general.comment"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const cf={company:"",jobTitle:"",fromDate:"",toDate:"",comment:""};var mf={name:"EditWorkExperience",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,workExperience:{...cf},rules:{company:[jt,zt(100)],jobTitle:[jt,zt(100)],fromDate:[Rt(this.userDateFormat)],toDate:[Rt(this.userDateFormat),eo((()=>this.workExperience.fromDate),this.$t("general.to_date_should_be_after_from_date"))],comment:[zt(200)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.workExperience={...t}})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.workExperience}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const uf=(0,r.Z)(mf,[["render",df]]);var pf=uf,hf={name:"EmployeeWorkExperience",components:{"profile-action-header":Pp,"save-work-experience":rf,"edit-work-experience":pf,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/work-experiences`),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>({...e,fromDate:ie(re(e.fromDate),o,{locale:a}),toDate:ie(re(e.toDate),o,{locale:a})}))),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{toastNoRecords:!1,normalizer:l});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"company",slot:"title",title:this.$t("pim.company"),style:{flex:1}},{name:"jobTitle",title:this.$t("general.job_title"),style:{flex:1}},{name:"fromDate",title:this.$t("general.from"),style:{flex:1}},{name:"toDate",title:this.$t("general.to"),style:{flex:1}},{name:"comment",title:this.$t("general.comment"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-basis":"10em"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const gf=(0,r.Z)(hf,[["render",ef]]);var vf=gf;const ff={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},yf={class:"orangehrm-container"},Cf={key:2,class:"orangehrm-bottom-container"};function bf(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-license"),s=(0,a.resolveComponent)("edit-license"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,api:l.licenceEndpoint,onClose:r.onSaveModalClose},null,8,["http","api","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",ff,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.license")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",yf,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,disabled:r.isDisabled,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading","disabled"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Cf,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const Vf={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function xf(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("qualification-dropdown"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Vf,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_license")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.license.licenseId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.license.licenseId=e),label:e.$t("pim.license_type"),rules:n.rules.licenseId,api:o.api,required:""},null,8,["modelValue","label","rules","api"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.license.licenseNo,"onUpdate:modelValue":t[1]||(t[1]=e=>n.license.licenseNo=e),label:e.$t("pim.license_number"),rules:n.rules.licenseNo},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.license.issuedDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.license.issuedDate=e),label:e.$t("pim.issued_date"),rules:n.rules.issuedDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.license.expiryDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.license.expiryDate=e),label:e.$t("general.expiry_date"),rules:n.rules.expiryDate,years:n.yearArray},null,8,["modelValue","label","rules","years"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const wf=function(e=100,t=(new Date).getFullYear()){const o=new Array(e);for(let a=0;athis.license.issuedDate),this.$t("pim.expiry_date_should_be_after_issued_date"))]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.license,licenseId:this.license.licenseId?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const kf=(0,r.Z)(_f,[["render",xf]]);var Sf=kf;const Df={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function $f(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Df,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_license")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.license.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.license.name=e),label:e.$t("pim.license_type"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.license.licenseNo,"onUpdate:modelValue":t[1]||(t[1]=e=>n.license.licenseNo=e),label:e.$t("pim.license_number"),rules:n.rules.licenseNo},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.license.issuedDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.license.issuedDate=e),label:e.$t("pim.issued_date"),rules:n.rules.issuedDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.license.expiryDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.license.expiryDate=e),label:e.$t("general.expiry_date"),rules:n.rules.expiryDate,years:n.yearArray},null,8,["modelValue","label","rules","years"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const Ef={name:"",licenseNo:"",issuedDate:"",expiryDate:""};var Tf={name:"EditLicense",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,license:{...Ef},yearArray:[...wf()],rules:{licenseNo:[zt(50)],issuedDate:[Rt(this.userDateFormat)],expiryDate:[Rt(this.userDateFormat),eo((()=>this.license.issuedDate),this.$t("pim.expiry_date_should_be_after_issued_date"))]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.license.name=t.license.name,this.license.licenseNo=t.licenseNo?t.licenseNo:"",this.license.issuedDate=t.issuedDate,this.license.expiryDate=t.expiryDate})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{licenseNo:this.license.licenseNo,issuedDate:this.license.issuedDate,expiryDate:this.license.expiryDate}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Bf=(0,r.Z)(Tf,[["render",$f]]);var If=Bf,Lf={name:"EmployeeLicense",components:{"profile-action-header":Pp,"save-license":Sf,"edit-license":If,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/licenses`),{jsDateFormat:o}=R(),{locale:a}=De(),l=`/api/v2/pim/employees/${e.employeeId}/licenses/allowed`,n=e=>e.map((e=>({id:e.license.id,type:e.license.name,licenseNo:e.licenseNo,issuedDate:ie(re(e.issuedDate),o,{locale:a}),expiryDate:ie(re(e.expiryDate),o,{locale:a})}))),{showPaginator:r,currentPage:i,total:s,pages:d,pageSize:c,response:m,isLoading:u,execQuery:p}=wt(t,{normalizer:n,toastNoRecords:!1});return{http:t,showPaginator:r,currentPage:i,isLoading:u,total:s,pages:d,pageSize:c,execQuery:p,items:m,licenceEndpoint:l}},data(){return{headers:[{name:"type",slot:"title",title:this.$t("pim.license_type"),style:{flex:1}},{name:"issuedDate",title:this.$t("pim.issued_date"),style:{flex:1}},{name:"expiryDate",title:this.$t("general.expiry_date"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-basis":"10em"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Uf=(0,r.Z)(Lf,[["render",bf]]);var Af=Uf,Pf={components:{"edit-employee-layout":Jp,"employee-skills":cv,"employee-education":Ev,"employee-languages":Yv,"employee-work-experience":vf,"employee-license":Af},props:{empNumber:{type:String,required:!0},fluencies:{type:Array,required:!0},competencies:{type:Array,required:!0}}};const qf=(0,r.Z)(Pf,[["render",Fg]]);var Mf=qf;const Ff={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},jf={class:"orangehrm-container"},zf={class:"orangehrm-bottom-container"};function Rf(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-immigration"),s=(0,a.resolveComponent)("edit-immigration"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"immigration"},{default:(0,a.withCtx)((()=>[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,countries:o.countries,onClose:r.onSaveModalClose},null,8,["http","countries","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,countries:o.countries,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","countries","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Ff,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_immigration_records")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",jf,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","disabled","loading"])]),(0,a.createElementVNode)("div",zf,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])),_:1},8,["employee-id"])}const Of={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Gf(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-input-group"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Of,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_immigration")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{label:e.$t("pim.document"),classes:{wrapper:"--gender-grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.type,"onUpdate:modelValue":t[0]||(t[0]=e=>n.immigration.type=e),type:"radio","option-label":e.$t("pim.passport"),value:"1"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.immigration.type,"onUpdate:modelValue":t[1]||(t[1]=e=>n.immigration.type=e),type:"radio","option-label":e.$t("pim.visa"),value:"2"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.number,"onUpdate:modelValue":t[2]||(t[2]=e=>n.immigration.number=e),label:e.$t("pim.number"),rules:n.rules.number,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.issuedDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.immigration.issuedDate=e),label:e.$t("pim.issued_date"),rules:n.rules.issuedDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.expiryDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.immigration.expiryDate=e),label:e.$t("general.expiry_date"),years:n.yearArray,rules:n.rules.expiryDate},null,8,["modelValue","label","years","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.status,"onUpdate:modelValue":t[5]||(t[5]=e=>n.immigration.status=e),label:e.$t("pim.eligible_status"),rules:n.rules.status},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.countryCode,"onUpdate:modelValue":t[6]||(t[6]=e=>n.immigration.countryCode=e),type:"select",label:e.$t("pim.issued_by"),options:o.countries},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.reviewDate,"onUpdate:modelValue":t[7]||(t[7]=e=>n.immigration.reviewDate=e),label:e.$t("pim.eligible_review_date"),rules:n.rules.reviewDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.comment,"onUpdate:modelValue":t[8]||(t[8]=e=>n.immigration.comment=e),type:"textarea",label:e.$t("general.comments"),placeholder:e.$t("general.type_comments_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Zf={number:"",issuedDate:"",expiryDate:"",type:1,status:"",reviewDate:"",countryCode:null,comment:""};var Qf={name:"SaveImmigration",props:{http:{type:Object,required:!0},countries:{type:Array,default:()=>[]}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,immigration:{...Zf},yearArray:[...wf()],rules:{number:[jt,zt(30)],expiryDate:[Rt(this.userDateFormat),eo((()=>this.immigration.issuedDate),this.$t("pim.expiry_date_should_be_after_issued_date"))],status:[zt(30)],issuedDate:[Rt(this.userDateFormat)],reviewDate:[Rt(this.userDateFormat)],comment:[zt(250)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.immigration,countryCode:this.immigration.countryCode?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.immigration={...Zf},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Hf=(0,r.Z)(Qf,[["render",Gf]]);var Wf=Hf;const Yf={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Jf(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-input-group"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Yf,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_immigration")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{label:"Document",classes:n.immigrationTypeClasses},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.type,"onUpdate:modelValue":t[0]||(t[0]=e=>n.immigration.type=e),type:"radio","option-label":e.$t("pim.passport"),value:"1"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.immigration.type,"onUpdate:modelValue":t[1]||(t[1]=e=>n.immigration.type=e),type:"radio","option-label":e.$t("pim.visa"),value:"2"},null,8,["modelValue","option-label"])])),_:1},8,["classes"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.number,"onUpdate:modelValue":t[2]||(t[2]=e=>n.immigration.number=e),label:e.$t("pim.number"),rules:n.rules.number,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.issuedDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.immigration.issuedDate=e),label:e.$t("pim.issued_date"),rules:n.rules.issuedDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.expiryDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.immigration.expiryDate=e),label:e.$t("general.expiry_date"),years:n.yearArray,rules:n.rules.expiryDate},null,8,["modelValue","label","years","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.status,"onUpdate:modelValue":t[5]||(t[5]=e=>n.immigration.status=e),label:e.$t("pim.eligible_status"),rules:n.rules.status},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.countryCode,"onUpdate:modelValue":t[6]||(t[6]=e=>n.immigration.countryCode=e),type:"select",label:e.$t("pim.issued_by"),options:o.countries},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.reviewDate,"onUpdate:modelValue":t[7]||(t[7]=e=>n.immigration.reviewDate=e),label:e.$t("pim.eligible_review_date"),rules:n.rules.reviewDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.comment,"onUpdate:modelValue":t[8]||(t[8]=e=>n.immigration.comment=e),type:"textarea",label:e.$t("general.comments"),placeholder:e.$t("general.type_comments_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Xf={number:"",issuedDate:"",expiryDate:"",type:1,status:"",reviewDate:"",countryCode:null,comment:""};var Kf={name:"EditImmigration",props:{http:{type:Object,required:!0},data:{type:Object,required:!0},countries:{type:Array,default:()=>[]}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,immigration:{...Xf},yearArray:[...wf()],rules:{number:[jt,zt(30)],expiryDate:[Rt(this.userDateFormat),eo((()=>this.immigration.issuedDate),this.$t("pim.expiry_date_should_be_after_issued_date"))],status:[zt(30)],issuedDate:[Rt(this.userDateFormat)],reviewDate:[Rt(this.userDateFormat)],comment:[zt(250)]},immigrationTypeClasses:{wrapper:"--gender-grouped-field",label:{"oxd-input-field-required":!0}}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.immigration={...Xf,...t},this.immigration.countryCode=this.countries.find((e=>e.id===t.country?.code))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{number:this.immigration.number,issuedDate:this.immigration.issuedDate,expiryDate:this.immigration.expiryDate,type:this.immigration.type,status:this.immigration.status,reviewDate:this.immigration.reviewDate,comment:this.immigration.comment,countryCode:this.immigration.countryCode?.id}).then((()=>this.$toast.updateSuccess())).then((()=>{this.immigration={...Xf},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const ey=(0,r.Z)(Kf,[["render",Jf]]);var ty=ey,oy={components:{"profile-action-header":Pp,"edit-employee-layout":Jp,"save-immigration":Wf,"edit-immigration":ty,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},countries:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/immigrations`),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>({id:e.id,type:1==e.type?"Passport":"VISA",number:e.number,countryCode:e.country.code,countryName:e.country.name,issuedDate:ie(re(e.issuedDate),o,{locale:a}),expiryDate:ie(re(e.expiryDate),o,{locale:a})}))),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:l,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"type",slot:"title",title:this.$t("pim.document"),style:{flex:1}},{name:"number",title:this.$t("pim.number"),style:{flex:1}},{name:"countryName",title:this.$t("pim.issued_by"),style:{flex:1}},{name:"issuedDate",title:this.$t("pim.issued_date"),style:{flex:1}},{name:"expiryDate",title:this.$t("general.expiry_date"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const ay=(0,r.Z)(oy,[["render",Rf],["__scopeId","data-v-1f0dcd51"]]);var ly=ay;const ny={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function ry(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-supervisors"),c=(0,a.resolveComponent)("employee-subordinates"),m=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(m,{"employee-id":o.empNumber,screen:"report-to"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",ny,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.report_to")),1)])),_:1}),(0,a.createVNode)(s)]),(0,a.createVNode)(d,{"emp-number":o.empNumber,"reporting-methods":o.reportingMethods},null,8,["emp-number","reporting-methods"]),(0,a.createVNode)(c,{"emp-number":o.empNumber,"reporting-methods":o.reportingMethods},null,8,["emp-number","reporting-methods"])])),_:1},8,["employee-id"])}const iy={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},sy={class:"orangehrm-container"},dy={key:2,class:"orangehrm-bottom-container"};function cy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-employee-report-to"),s=(0,a.resolveComponent)("edit-employee-report-to"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,"reporting-methods":o.reportingMethods,type:"Supervisor","emp-number":o.empNumber,onClose:r.onSaveModalClose},null,8,["http","reporting-methods","emp-number","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,"emp-number":o.empNumber,data:n.editModalState,type:"Supervisor",api:l.supervisorEndpoint,"reporting-methods":o.reportingMethods,onClose:r.onEditModalClose},null,8,["http","emp-number","data","api","reporting-methods","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",iy,[(0,a.createVNode)(d,{"action-button-shown":e.$can.create("supervisor"),onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_supervisors")),1)])),_:1},8,["action-button-shown","onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",sy,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:r.tableHeaders,items:l.items?.data,selectable:e.$can.delete("supervisor"),disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","disabled","loading"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",dy,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const my={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function uy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("report-to-employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",my,["Supervisor"===o.type?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_supervisor")),1)])),_:1})):(0,a.createCommentVNode)("",!0),"Subordinate"===o.type?((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_subordinate")),1)])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.reportTo.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.reportTo.employee=e),rules:n.rules.employee,api:l.api,required:""},null,8,["modelValue","rules","api"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.reportTo.reportingMethod,"onUpdate:modelValue":t[1]||(t[1]=e=>n.reportTo.reportingMethod=e),type:"select",label:e.$t("pim.reporting_method"),rules:n.rules.reportingMethod,options:o.reportingMethods,required:""},null,8,["modelValue","label","rules","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:"Cancel",onClick:r.onCancel},null,8,["onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const py={key:0,class:"past-employee-tag"};function hy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",label:e.$t("general.name"),clear:!1,"create-options":r.loadEmployees},{afterSelected:(0,a.withCtx)((({data:t})=>[t.isPastEmployee?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.past_employee")),1)],64)):(0,a.createCommentVNode)("",!0)])),option:(0,a.withCtx)((({data:t})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(t.label),1),t.isPastEmployee?((0,a.openBlock)(),(0,a.createElementBlock)("div",py,(0,a.toDisplayString)(e.$t("general.past_employee")),1)):(0,a.createCommentVNode)("",!0)])),_:1},8,["label","create-options"])}var gy={name:"ReportToEmployeeAutocomplete",props:{api:{type:String,required:!0},params:{type:Object,default:()=>({})}},setup(e){const t=new P(window.appGlobal.baseUrl,e.api);return{http:t}},methods:{async loadEmployees(e){return new Promise((t=>{e.trim()?this.http.getAll({nameOrId:e.trim(),...this.params}).then((({data:e})=>{t(e.data.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId}))))})):t([])}))}}};const vy=(0,r.Z)(gy,[["render",hy]]);var fy=vy;const yy={employee:null,reportingMethod:null};var Cy={name:"SaveEmployeeReportTo",components:{"report-to-employee-autocomplete":fy},props:{http:{type:Object,required:!0},reportingMethods:{type:Array,required:!0},type:{type:String,required:!0},empNumber:{type:String,required:!0}},emits:["close"],setup(e){const t=`/api/v2/pim/employees/${e.empNumber}/report-to/allowed`;return{api:t}},data(){return{isLoading:!1,reportTo:{...yy},rules:{employee:[jt,xo],reportingMethod:[jt]}}},methods:{onSave(){this.isLoading=!0,this.http.create({empNumber:this.reportTo.employee?.id,reportingMethodId:this.reportTo.reportingMethod?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const by=(0,r.Z)(Cy,[["render",uy]]);var Vy=by;const xy={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function wy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("report-to-employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xy,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit"))+" "+(0,a.toDisplayString)(o.type),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.reportTo.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.reportTo.employee=e),required:"",disabled:"",api:l.allowedEmployeesApi,rules:n.rules.employee,clear:!1},null,8,["modelValue","api","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.reportTo.reportingMethod,"onUpdate:modelValue":t[1]||(t[1]=e=>n.reportTo.reportingMethod=e),type:"select",label:e.$t("pim.reporting_method"),rules:n.rules.reportingMethod,options:o.reportingMethods,required:""},null,8,["modelValue","label","rules","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const Ny={employee:null,reportingMethod:null};var _y={name:"EditEmployeeReportTo",components:{"report-to-employee-autocomplete":fy},props:{http:{type:Object,required:!0},data:{type:Object,required:!0},reportingMethods:{type:Array,required:!0},type:{type:String,required:!0},empNumber:{type:String,required:!0},api:{type:String,required:!0}},emits:["close"],setup(e){const t=`/api/v2/pim/employees/${e.empNumber}/report-to/allowed`;return{allowedEmployeesApi:t}},data(){return{isLoading:!1,reportTo:{...Ny},rules:{employee:[jt,xo],reportingMethod:[jt]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:"Supervisor"===this.type?`${this.api}${this.data.supervisorEmpNumber}`:`${this.api}${this.data.subordinateEmpNumber}`}).then((e=>{const{data:t}=e.data;this.reportTo.employee={id:"Supervisor"===this.type?t.supervisor.empNumber:t.subordinate.empNumber,label:"Supervisor"===this.type?`${t.supervisor.firstName} ${t.supervisor.middleName} ${t.supervisor.lastName}`:`${t.subordinate.firstName} ${t.subordinate.middleName} ${t.subordinate.lastName}`,isPastEmployee:"Supervisor"===this.type?t.supervisor.terminationId:t.subordinate.terminationId},this.reportTo.reportingMethod=this.reportingMethods.find((e=>e.id===t.reportingMethod.id))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e="Supervisor"===this.type?this.data.supervisorEmpNumber:this.data.subordinateEmpNumber;this.http.update(e,{reportingMethodId:this.reportTo.reportingMethod?.id}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const ky=(0,r.Z)(_y,[["render",wy]]);var Sy=ky,Dy={name:"EmployeeSupervisors",components:{"edit-employee-report-to":Sy,"profile-action-header":Pp,"save-employee-report-to":Vy,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},reportingMethods:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/supervisors`),{$t:o}=Se(),a=e=>e.map((e=>({name:`${e.supervisor?.firstName} ${e.supervisor?.lastName} ${e.supervisor.terminationId?o("general.past_employee"):""}`,reportingMethod:e.reportingMethod.name,supervisorEmpNumber:e.supervisor.empNumber}))),l=`/api/v2/pim/employees/${e.empNumber}/supervisors/`,{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:a,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c,supervisorEndpoint:l}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1}},{name:"reportingMethod",title:this.$t("pim.reporting_method"),style:{flex:1}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal},tableHeaders(){const e={name:"actions",slot:"action",title:"Actions",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.delete("supervisor")&&(e.cellConfig.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),this.$can.update("supervisor")&&(e.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),Object.keys(e.cellConfig).length>0?this.headers.concat([e]):this.headers}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].supervisorEmpNumber));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.supervisorEmpNumber])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const $y=(0,r.Z)(Dy,[["render",cy]]);var Ey=$y;const Ty={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},By={class:"orangehrm-container"},Iy={key:2,class:"orangehrm-bottom-container"};function Ly(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-employee-report-to"),s=(0,a.resolveComponent)("edit-employee-report-to"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,type:"Subordinate","emp-number":o.empNumber,"reporting-methods":o.reportingMethods,onClose:r.onSaveModalClose},null,8,["http","emp-number","reporting-methods","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,"emp-number":o.empNumber,data:n.editModalState,type:"Subordinate",api:l.subordinateEndpoint,"reporting-methods":o.reportingMethods,onClose:r.onEditModalClose},null,8,["http","emp-number","data","api","reporting-methods","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Ty,[(0,a.createVNode)(d,{"action-button-shown":e.$can.create("subordinates"),onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_subordinates")),1)])),_:1},8,["action-button-shown","onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",By,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:r.tableHeaders,items:l.items?.data,selectable:e.$can.delete("subordinates"),disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","disabled","loading"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Iy,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}var Uy={name:"EmployeeSubordinates",components:{"edit-employee-report-to":Sy,"save-employee-report-to":Vy,"profile-action-header":Pp,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},reportingMethods:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/subordinates`),{$t:o}=Se(),a=e=>e.map((e=>({name:`${e.subordinate?.firstName} ${e.subordinate?.lastName} ${e.subordinate.terminationId?o("general.past_employee"):""}`,reportingMethod:e.reportingMethod.name,subordinateEmpNumber:e.subordinate.empNumber}))),l=`/api/v2/pim/employees/${e.empNumber}/subordinates/`,{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:a,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c,subordinateEndpoint:l}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1}},{name:"reportingMethod",title:this.$t("pim.reporting_method"),style:{flex:1}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal},tableHeaders(){const e={name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.delete("subordinates")&&(e.cellConfig.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),this.$can.update("subordinates")&&(e.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),Object.keys(e.cellConfig).length>0?this.headers.concat([e]):this.headers}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].subordinateEmpNumber));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.subordinateEmpNumber])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Ay=(0,r.Z)(Uy,[["render",Ly]]);var Py=Ay,qy={components:{"edit-employee-layout":Jp,"employee-supervisors":Ey,"employee-subordinates":Py},props:{empNumber:{type:String,required:!0},reportingMethods:{type:Array,required:!0}}};const My=(0,r.Z)(qy,[["render",ry]]);var Fy=My;const jy={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},zy={class:"orangehrm-container"},Ry={class:"orangehrm-bottom-container"};function Oy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-membership"),s=(0,a.resolveComponent)("edit-membership"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"membership"},{default:(0,a.withCtx)((()=>[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,currencies:o.currencies,"paid-by":o.paidBy,memberships:o.memberships,onClose:r.onSaveModalClose},null,8,["http","currencies","paid-by","memberships","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,currencies:o.currencies,"paid-by":o.paidBy,memberships:o.memberships,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","currencies","paid-by","memberships","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",jy,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_memberships")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",zy,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","disabled","loading"])]),(0,a.createElementVNode)("div",Ry,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])),_:1},8,["employee-id"])}const Gy={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Zy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Gy,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_membership")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.membership,"onUpdate:modelValue":t[0]||(t[0]=e=>n.membership.membership=e),type:"select",label:e.$t("pim.membership"),options:o.memberships,rules:n.rules.membership,required:""},null,8,["modelValue","label","options","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.subscriptionPaidBy,"onUpdate:modelValue":t[1]||(t[1]=e=>n.membership.subscriptionPaidBy=e),type:"select",label:e.$t("pim.subscription_paid_by"),options:o.paidBy},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.subscriptionFee,"onUpdate:modelValue":t[2]||(t[2]=e=>n.membership.subscriptionFee=e),label:e.$t("pim.subscription_amount"),rules:n.rules.subscriptionFee},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.currencyType,"onUpdate:modelValue":t[3]||(t[3]=e=>n.membership.currencyType=e),type:"select",label:e.$t("general.currency"),options:o.currencies},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.membership.subscriptionCommenceDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.membership.subscriptionCommenceDate=e),label:e.$t("pim.subscription_commence_date"),rules:n.rules.subscriptionCommenceDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.membership.subscriptionRenewalDate,"onUpdate:modelValue":t[5]||(t[5]=e=>n.membership.subscriptionRenewalDate=e),label:e.$t("pim.subscription_renewal_date"),years:n.yearArray,rules:n.rules.subscriptionRenewalDate},null,8,["modelValue","label","years","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Qy={membershipId:[],subscriptionFee:"",subscriptionPaidBy:null,currencyTypeId:[],subscriptionCommenceDate:"",subscriptionRenewalDate:""};var Hy={name:"SaveMembership",props:{http:{type:Object,required:!0},currencies:{type:Array,default:()=>[]},paidBy:{type:Array,default:()=>[]},memberships:{type:Array,default:()=>[]}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,membership:{...Qy},yearArray:[...wf()],rules:{membership:[jt],subscriptionCommenceDate:[Rt(this.userDateFormat)],subscriptionRenewalDate:[Rt(this.userDateFormat),eo((()=>this.membership.subscriptionCommenceDate),this.$t("pim.renewal_date_should_be_after_the_commencing_date"))],subscriptionFee:[Wt,mo(1e9)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({subscriptionFee:this.membership.subscriptionFee,subscriptionCommenceDate:this.membership.subscriptionCommenceDate,subscriptionRenewalDate:this.membership.subscriptionRenewalDate,membershipId:this.membership.membership.id,subscriptionPaidBy:this.membership.subscriptionPaidBy?.id,currencyTypeId:this.membership.currencyType?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.membership={...Qy},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Wy=(0,r.Z)(Hy,[["render",Zy]]);var Yy=Wy;const Jy={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Xy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Jy,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_membership")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.membership,"onUpdate:modelValue":t[0]||(t[0]=e=>n.membership.membership=e),type:"select",label:e.$t("pim.membership"),options:o.memberships,rules:n.rules.membership,required:""},null,8,["modelValue","label","options","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.subscriptionPaidBy,"onUpdate:modelValue":t[1]||(t[1]=e=>n.membership.subscriptionPaidBy=e),type:"select",label:e.$t("pim.subscription_paid_by"),options:o.paidBy},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.subscriptionFee,"onUpdate:modelValue":t[2]||(t[2]=e=>n.membership.subscriptionFee=e),label:e.$t("pim.subscription_amount"),rules:n.rules.subscriptionFee},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.currencyType,"onUpdate:modelValue":t[3]||(t[3]=e=>n.membership.currencyType=e),type:"select",label:e.$t("general.currency"),options:o.currencies},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.membership.subscriptionCommenceDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.membership.subscriptionCommenceDate=e),label:e.$t("pim.subscription_commence_date"),rules:n.rules.subscriptionCommenceDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.membership.subscriptionRenewalDate,"onUpdate:modelValue":t[5]||(t[5]=e=>n.membership.subscriptionRenewalDate=e),label:e.$t("pim.subscription_renewal_date"),years:n.yearArray,rules:n.rules.subscriptionRenewalDate},null,8,["modelValue","label","years","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Ky={membership:[],subscriptionFee:"",subscriptionPaidBy:null,currencyType:[],subscriptionCommenceDate:"",subscriptionRenewalDate:""};var eC={name:"EditMembership",props:{http:{type:Object,required:!0},data:{type:Object,required:!0},currencies:{type:Array,default:()=>[]},paidBy:{type:Array,default:()=>[]},memberships:{type:Array,default:()=>[]}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,membership:{...Ky},yearArray:[...wf()],rules:{membership:[jt],subscriptionCommenceDate:[Rt(this.userDateFormat)],subscriptionRenewalDate:[Rt(this.userDateFormat),eo((()=>this.membership.subscriptionCommenceDate),this.$t("pim.renewal_date_should_be_after_the_commencing_date"))],subscriptionFee:[Wt,mo(1e9)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.membership.subscriptionFee=t.subscriptionFee,this.membership.subscriptionCommenceDate=t.subscriptionCommenceDate,this.membership.subscriptionRenewalDate=t.subscriptionRenewalDate,this.membership.membership=this.memberships.find((e=>e.id===t.membership.id)),this.membership.subscriptionPaidBy=this.paidBy.find((e=>e.id===t.subscriptionPaidBy)),this.membership.currencyType=this.currencies.find((e=>e.id===t.currencyType?.id))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{subscriptionFee:this.membership.subscriptionFee,subscriptionCommenceDate:this.membership.subscriptionCommenceDate,subscriptionRenewalDate:this.membership.subscriptionRenewalDate,membershipId:this.membership.membership.id,subscriptionPaidBy:this.membership.subscriptionPaidBy?.id,currencyTypeId:this.membership.currencyType?.id}).then((()=>this.$toast.updateSuccess())).then((()=>{this.membership={...Ky},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const tC=(0,r.Z)(eC,[["render",Xy]]);var oC=tC,aC={components:{"profile-action-header":Pp,"edit-employee-layout":Jp,"save-membership":Yy,"edit-membership":oC,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},currencies:{type:Array,default:()=>[]},paidBy:{type:Array,default:()=>[]},memberships:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/memberships`),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>({id:e.id,membershipId:e.membership.id,membershipName:e.membership.name,subscriptionPaidBy:e.subscriptionPaidBy,subscriptionFee:e.subscriptionFee,subscriptionTypeId:e.currencyType.id,subscriptionCurrencyName:e.currencyType.name,subscriptionCommenceDate:ie(re(e.subscriptionCommenceDate),o,{locale:a}),subscriptionRenewalDate:ie(re(e.subscriptionRenewalDate),o,{locale:a})}))),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:l,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"membershipName",slot:"title",title:this.$t("pim.membership"),style:{flex:1}},{name:"subscriptionPaidBy",title:this.$t("pim.subscription_paid_by"),style:{flex:1}},{name:"subscriptionFee",title:this.$t("pim.subscription_amount"),style:{flex:1}},{name:"subscriptionCurrencyName",title:this.$t("general.currency"),style:{flex:1}},{name:"subscriptionCommenceDate",title:this.$t("pim.subscription_commence_date"),style:{flex:1}},{name:"subscriptionRenewalDate",title:this.$t("pim.subscription_renewal_date"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const lC=(0,r.Z)(aC,[["render",Oy],["__scopeId","data-v-3b144a72"]]);var nC=lC;const rC={class:"orangehrm-background-container"},iC={class:"orangehrm-paper-container"},sC={class:"orangehrm-header-container"},dC={class:"orangehrm-container"},cC={class:"orangehrm-bottom-container"};function mC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rC,[(0,a.createElementVNode)("div",iC,[(0,a.createElementVNode)("div",sC,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.termination_reasons")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",dC,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",cC,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var uC={components:{"delete-confirmation":Et},props:{unselectableIds:{type:Array,default:()=>[]}},setup(e){const t=t=>t.map((t=>{const o=e.unselectableIds.findIndex((e=>e==t.id));return{id:t.id,name:t.name,isSelectable:-1===o}})),o=new P(window.appGlobal.baseUrl,"/api/v2/pim/termination-reasons"),{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(o,{normalizer:t});return{http:o,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/pim/saveTerminationReasons")},onClickEdit(e){U("/pim/saveTerminationReasons/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("pim.termination_reasons_in_use")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const pC=(0,r.Z)(uC,[["render",mC]]);var hC=pC;const gC={class:"orangehrm-background-container"},vC={class:"orangehrm-card-container"};function fC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",gC,[(0,a.createElementVNode)("div",vC,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_termination_reason")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.termination.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.termination.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var yC={props:{terminationReasonId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/termination-reasons");return{http:e}},data(){return{isLoading:!1,termination:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.get(this.terminationReasonId).then((e=>{const{data:t}=e.data;return this.termination.id=t.id,this.termination.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name===e));if(o>-1){const{id:e}=t[o];return e===this.termination.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.terminationReasonId,{name:this.termination.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/viewTerminationReasons")}}};const CC=(0,r.Z)(yC,[["render",fC]]);var bC=CC;const VC={class:"orangehrm-background-container"},xC={class:"orangehrm-card-container"};function wC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",VC,[(0,a.createElementVNode)("div",xC,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_termination_reason")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.termination.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.termination.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var NC={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/termination-reasons");return{http:e}},data(){return{isLoading:!1,termination:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name===e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.termination.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/viewTerminationReasons")}}};const _C=(0,r.Z)(NC,[["render",wC]]);var kC=_C;const SC={class:"orangehrm-background-container"},DC={class:"orangehrm-paper-container"},$C={class:"orangehrm-header-container"},EC={class:"orangehrm-container"},TC={class:"orangehrm-bottom-container"};function BC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",SC,[(0,a.createElementVNode)("div",DC,[(0,a.createElementVNode)("div",$C,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.reporting_methods")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",EC,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",TC,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var IC={components:{"delete-confirmation":Et},props:{unselectableIds:{type:Array,default:()=>[]}},setup(e){const t=t=>t.map((t=>{const o=e.unselectableIds.findIndex((e=>e==t.id));return{id:t.id,name:t.name,isSelectable:-1===o}})),o=new P(window.appGlobal.baseUrl,"/api/v2/pim/reporting-methods"),{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(o,{normalizer:t});return{http:o,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/pim/saveReportingMethod")},onClickEdit(e){U("/pim/saveReportingMethod/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("pim.reporting_methods_in_use")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const LC=(0,r.Z)(IC,[["render",BC]]);var UC=LC;const AC={class:"orangehrm-background-container"},PC={class:"orangehrm-card-container"};function qC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",AC,[(0,a.createElementVNode)("div",PC,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_reporting_method")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.reportingMethod.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.reportingMethod.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var MC={props:{reportingMethodId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/reporting-methods");return{http:e}},data(){return{isLoading:!1,reportingMethod:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.get(this.reportingMethodId).then((e=>{const{data:t}=e.data;return this.reportingMethod.id=t.id,this.reportingMethod.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name===e));if(o>-1){const{id:e}=t[o];return e===this.reportingMethod.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.reportingMethodId,{name:this.reportingMethod.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/viewReportingMethods")}}};const FC=(0,r.Z)(MC,[["render",qC]]);var jC=FC;const zC={class:"orangehrm-background-container"},RC={class:"orangehrm-card-container"};function OC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",zC,[(0,a.createElementVNode)("div",RC,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_reporting_method")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.reportingMethod.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.reportingMethod.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var GC={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/reporting-methods");return{http:e}},data(){return{isLoading:!1,reportingMethod:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name===e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.reportingMethod.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/viewReportingMethods")}}};const ZC=(0,r.Z)(GC,[["render",OC]]);var QC=ZC;const HC={class:"orangehrm-background-container"},WC={class:"orangehrm-paper-container"},YC={class:"orangehrm-header-container"},JC={class:"orangehrm-custom-field-title"},XC={class:"orangehrm-container"},KC={class:"orangehrm-bottom-container"};function eb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",HC,[(0,a.createElementVNode)("div",WC,[(0,a.createElementVNode)("div",YC,[(0,a.createElementVNode)("div",JC,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.custom_fields")),1)])),_:1}),l.isLoading?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[r.remainingFields>0?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,class:"--infotext",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.remaining_no_of_custom_fields"))+" "+(0,a.toDisplayString)(r.remainingFields),1)])),_:1})):((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,class:"--infotext",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.all_custom_fields_in_use")),1)])),_:1}))],64))]),r.remainingFields>0?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",XC,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",KC,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var tb={components:{"delete-confirmation":Et},props:{customFieldLimit:{type:Number,required:!0},screenList:{type:Array,required:!0},fieldTypeList:{type:Array,required:!0},unselectableIds:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/pim/custom-fields"),o=t=>t.map((t=>{const o=e.unselectableIds.findIndex((e=>e==t.id));return{id:t.id,fieldName:t.fieldName,screen:e.screenList.filter((e=>t.screen===e.id))[0].label,fieldType:e.fieldTypeList.filter((e=>t.fieldType===e.id))[0].label,extraData:t.extraData,isSelectable:-1===o}})),{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(t,{normalizer:o});return{http:t,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s}},data(){return{screenWidth:screen.width,headers:[{name:"fieldName",slot:"title",title:this.$t("pim.custom_field_name"),style:{flex:2}},{name:"screen",title:this.$t("pim.screen"),style:{flex:2}},{name:"fieldType",title:this.$t("pim.field_type"),style:{flex:2}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},computed:{isLoaded(){return!this.isLoading},remainingFields(){return this.customFieldLimit-this.items?.data?.length}},methods:{onClickAdd(){U("/pim/saveCustomFields")},onClickEdit(e){U("/pim/saveCustomFields/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("pim.custom_fields_in_use")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const ob=(0,r.Z)(tb,[["render",eb],["__scopeId","data-v-5c47f79e"]]);var ab=ob;const lb={class:"orangehrm-background-container"},nb={class:"orangehrm-card-container"};function rb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",lb,[(0,a.createElementVNode)("div",nb,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_custom_field")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.fieldName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.customField.fieldName=e),label:e.$t("pim.field_name"),rules:n.rules.fieldName,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.screen,"onUpdate:modelValue":t[1]||(t[1]=e=>n.customField.screen=e),type:"select",label:e.$t("pim.screen"),rules:n.rules.screen,options:o.screenList,required:""},null,8,["modelValue","label","rules","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.fieldType,"onUpdate:modelValue":t[2]||(t[2]=e=>n.customField.fieldType=e),type:"select",label:e.$t("general.type"),rules:n.rules.fieldType,options:o.fieldTypeList,required:"",disabled:o.fieldInUse},null,8,["modelValue","label","rules","options","disabled"])])),_:1}),r.isDropDownField?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.extraData,"onUpdate:modelValue":t[3]||(t[3]=e=>n.customField.extraData=e),label:e.$t("pim.select_options"),rules:n.rules.extraData,required:r.isDropDownField},null,8,["modelValue","label","rules","required"]),(0,a.createVNode)(i,{tag:"p",class:"select-options-hint"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.enter_allowed_options_separated_by_commas")),1)])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const ib={id:null,fieldName:"",screen:"",fieldType:"",extraData:""};var sb={props:{customFieldId:{type:Number,required:!0},screenList:{type:Array,required:!0},fieldTypeList:{type:Array,required:!0},fieldInUse:{type:Boolean,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/custom-fields");return{http:e}},data(){return{isLoading:!1,customField:{...ib},rules:{fieldName:[jt,zt(250)],screen:[jt,zt(100)],fieldType:[jt,zt(15)],extraData:[jt,zt(250)]}}},computed:{isDropDownField(){return 1===this.customField.fieldType?.id}},created(){this.isLoading=!0,this.http.get(this.customFieldId).then((e=>{const{data:t}=e.data;return this.customField.fieldName=t.fieldName,""!==t.screen&&null!==t.screen&&(this.customField.screen=this.screenList.find((e=>e.id===t.screen))),""!==t.fieldType&&null!==t.fieldType&&(this.customField.fieldType=this.fieldTypeList.find((e=>e.id===t.fieldType))),this.customField.extraData=t.extraData,this.http.getAll()})).then((e=>{const{data:t}=e.data;this.rules.fieldName.push((e=>{const o=t.findIndex((t=>t.fieldName===e));if(o>-1){const e=t[o].id;return e==this.customFieldId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.customFieldId,{fieldName:this.customField.fieldName,screen:this.customField.screen.id,fieldType:this.customField.fieldType.id,extraData:this.customField.extraData}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/listCustomFields")}}};const db=(0,r.Z)(sb,[["render",rb],["__scopeId","data-v-9f2c1100"]]);var cb=db;const mb={class:"orangehrm-background-container"},ub={class:"orangehrm-card-container"};function pb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",mb,[(0,a.createElementVNode)("div",ub,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_custom_field")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.fieldName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.customField.fieldName=e),label:e.$t("pim.field_name"),rules:n.rules.fieldName,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.screen,"onUpdate:modelValue":t[1]||(t[1]=e=>n.customField.screen=e),type:"select",label:e.$t("pim.screen"),rules:n.rules.screen,options:o.screenList,required:""},null,8,["modelValue","label","rules","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.fieldType,"onUpdate:modelValue":t[2]||(t[2]=e=>n.customField.fieldType=e),type:"select",label:e.$t("general.type"),rules:n.rules.fieldType,options:o.fieldTypeList,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),r.isDropDownField?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.extraData,"onUpdate:modelValue":t[3]||(t[3]=e=>n.customField.extraData=e),label:e.$t("pim.select_options"),rules:n.rules.extraData,required:r.isDropDownField},null,8,["modelValue","label","rules","required"]),(0,a.createVNode)(i,{tag:"p",class:"select-options-hint"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.enter_allowed_options_separated_by_commas")),1)])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const hb={fieldName:"",screen:"",fieldType:"",extraData:""};var gb={props:{screenList:{type:Array,required:!0},fieldTypeList:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/custom-fields");return{http:e}},data(){return{isLoading:!1,customField:{...hb},rules:{fieldName:[jt,zt(250)],screen:[jt,zt(100)],fieldType:[jt,zt(15)],extraData:[jt,zt(250)]}}},computed:{isDropDownField(){return 1===this.customField.fieldType?.id}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.rules.fieldName.push((e=>{const o=t.findIndex((t=>t.fieldName==e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e=this.customField.fieldType.id;this.http.create({fieldName:this.customField.fieldName,screen:this.customField.screen.id,fieldType:e,extraData:1===e?this.customField.extraData:null}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/listCustomFields")}}};const vb=(0,r.Z)(gb,[["render",pb],["__scopeId","data-v-2b25acf8"]]);var fb=vb;const yb={class:"orangehrm-background-container"},Cb={class:"orangehrm-card-container"},bb={class:"orangehrm-optional-field-row"},Vb={class:"orangehrm-optional-field-row"},xb={class:"orangehrm-optional-field-row"},wb={class:"orangehrm-optional-field-row"};function Nb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-switch-input"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("submit-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",yb,[(0,a.createElementVNode)("div",Cb,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.optional_fields")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.show_deprecated_fields")),1)])),_:1}),(0,a.createVNode)(c,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",bb,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.show_nick_name_smoker_and_military_service_in_personal_details")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.optionalField.pimShowDeprecatedFields,"onUpdate:modelValue":t[0]||(t[0]=e=>n.optionalField.pimShowDeprecatedFields=e)},null,8,["modelValue"])])])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.country_specific_information")),1)])),_:1}),(0,a.createVNode)(c,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Vb,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.show_ssn_field_in_personal_details")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.optionalField.showSSN,"onUpdate:modelValue":t[1]||(t[1]=e=>n.optionalField.showSSN=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",xb,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.show_sin_field_in_personal_details")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.optionalField.showSIN,"onUpdate:modelValue":t[2]||(t[2]=e=>n.optionalField.showSIN=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",wb,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.show_us_tax_exemptions_menu")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.optionalField.showTaxExemptions,"onUpdate:modelValue":t[3]||(t[3]=e=>n.optionalField.showTaxExemptions=e)},null,8,["modelValue"])])])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const _b={pimShowDeprecatedFields:!1,showSSN:!1,showSIN:!1,showTaxExemptions:!1};var kb={components:{"oxd-switch-input":q.OxdSwitchInput},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/optional-field");return{http:e}},data(){return{isLoading:!1,optionalField:{..._b}}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.optionalField={...t}})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{...this.optionalField}}).then((e=>{const{data:t}=e.data;this.optionalField={...t},this.$toast.saveSuccess(),this.isLoading=!1}))}}};const Sb=(0,r.Z)(kb,[["render",Nb],["__scopeId","data-v-6f084a70"]]);var Db=Sb;const $b={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Eb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(v,{"employee-id":o.empNumber,screen:"tax"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",$b,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.tax_exemptions")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.federal_income_tax")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.federalStatus,"onUpdate:modelValue":t[0]||(t[0]=e=>n.taxExemption.federalStatus=e),type:"select",label:e.$t("general.status"),options:o.statuses,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.federalExemptions,"onUpdate:modelValue":t[1]||(t[1]=e=>n.taxExemption.federalExemptions=e),label:e.$t("pim.exemptions"),rules:n.rules.federalExemptions,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.state_income_tax")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.taxState,"onUpdate:modelValue":t[2]||(t[2]=e=>n.taxExemption.taxState=e),type:"select",label:e.$t("general.state"),options:o.provinces,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.stateStatus,"onUpdate:modelValue":t[3]||(t[3]=e=>n.taxExemption.stateStatus=e),type:"select",label:e.$t("general.status"),options:o.statuses,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.stateExemptions,"onUpdate:modelValue":t[4]||(t[4]=e=>n.taxExemption.stateExemptions=e),label:e.$t("pim.exemptions"),rules:n.rules.stateExemptions,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.unemploymentState,"onUpdate:modelValue":t[5]||(t[5]=e=>n.taxExemption.unemploymentState=e),type:"select",label:e.$t("pim.unemployment_state"),options:o.provinces,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.workState,"onUpdate:modelValue":t[6]||(t[6]=e=>n.taxExemption.workState=e),type:"select",label:e.$t("pim.work_state"),options:o.provinces,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","options","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[e.$can.update("tax_exemptions")?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])),_:1},8,["employee-id"])}const Tb={federalStatus:null,federalExemptions:null,taxStateCode:[],stateStatus:null,stateExemptions:null,unemploymentStateCode:[],workStateCode:[]};var Bb={components:{"edit-employee-layout":Jp},props:{empNumber:{type:String,required:!0},provinces:{type:Array,default:()=>[]},statuses:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/tax-exemption`);return{http:t}},data(){return{isLoading:!1,taxExemption:{...Tb},rules:{federalExemptions:[e=>null!==e.match(/^\d*\.?\d*$/)||this.$t("general.should_be_a_positive_number"),zt(2)],stateExemptions:[e=>null!==e.match(/^\d*\.?\d*$/)||this.$t("general.should_be_a_positive_number"),zt(2)]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{this.updateModel(e)})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{federalStatus:this.taxExemption.federalStatus?.id,federalExemptions:this.taxExemption.federalExemptions,taxStateCode:this.taxExemption.taxState?.id,stateStatus:this.taxExemption.stateStatus?.id,stateExemptions:this.taxExemption.stateExemptions,unemploymentStateCode:this.taxExemption.unemploymentState?.id,workStateCode:this.taxExemption.workState?.id}}).then((e=>(this.updateModel(e),this.$toast.updateSuccess()))).then((()=>{this.isLoading=!1}))},updateModel(e){const{data:t}=e.data;this.taxExemption.federalExemptions=t.federalExemptions,this.taxExemption.stateExemptions=t.stateExemptions,this.taxExemption.taxState=this.provinces.find((e=>e.id===t.taxState.code)),this.taxExemption.unemploymentState=this.provinces.find((e=>e.id===t.unemploymentState.code)),this.taxExemption.workState=this.provinces.find((e=>e.id===t.workState.code)),this.taxExemption.federalStatus=this.statuses.find((e=>e.id===t.federalStatus)),this.taxExemption.stateStatus=this.statuses.find((e=>e.id===t.stateStatus))}}};const Ib=(0,r.Z)(Bb,[["render",Eb]]);var Lb=Ib;const Ub=e=>((0,a.pushScopeId)("data-v-ad061e70"),e=e(),(0,a.popScopeId)(),e),Ab={class:"orangehrm-background-container"},Pb={class:"orangehrm-card-container"},qb={class:"orangehrm-information-card-container"},Mb=Ub((()=>(0,a.createElementVNode)("br",null,null,-1)));function Fb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("employee-data-import-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ab,[(0,a.createElementVNode)("div",Pb,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.data_import")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",qb,[(0,a.createVNode)(i,{class:"orangehrm-sub-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.note"))+": ",1)])),_:1}),(0,a.createElementVNode)("ul",null,[(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.column_order_should_not_be_changed")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.first_name_and_last_name_are_compulsory")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.all_date_fields_should_be_in_yyyy_mm_dd_format")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.gender_specified_value_should_be_either_m_or_f")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.each_import_file_should_be_configured_for_100_records_or_less")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.multiple_import_files_may_be_required")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.sample_csv_file"))+" : ",1),(0,a.createElementVNode)("a",{href:"#",class:"download-link",onClick:t[0]||(t[0]=(0,a.withModifiers)(((...e)=>r.onClickDownload&&r.onClickDownload(...e)),["prevent"]))},(0,a.toDisplayString)(e.$t("general.download")),1)])),_:1})])])]),Mb,(0,a.createVNode)(v,{ref:"formRef",loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.attachment.attachment,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attachment.attachment=e),type:"file",rules:n.rules.attachment,label:e.$t("general.select_file"),"button-label":e.$t("general.browse"),placeholder:e.$t("general.no_file_selected"),required:""},null,8,["modelValue","rules","label","button-label","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{label:e.$t("general.upload")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])]),n.importModalState?((0,a.openBlock)(),(0,a.createBlock)(f,{key:0,data:n.importModalState,onClose:r.onImportModalClose},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0)])}const jb={class:"orangehrm-modal-header"},zb={class:"orangehrm-text-center-align"},Rb={class:"orangehrm-modal-footer"};function Ob(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(d,{class:"orangehrm-dialog-popup","onUpdate:show":r.onClose},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",jb,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.import_details")),1)])),_:1})]),(0,a.createElementVNode)("div",zb,[(0,a.createVNode)(i,{type:"card-body",class:(0,a.normalizeClass)({"orangehrm-success-message":o.data.success>0})},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.n_records_successfully_imported",{count:o.data.success})),1)])),_:1},8,["class"]),o.data.failed>0?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(i,{type:"card-body",class:"orangehrm-error-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.n_records_failed_to_import",{count:o.data.failed})),1)])),_:1}),(0,a.createVNode)(i,{type:"card-body",class:"orangehrm-error-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.failed_rows")),1)])),_:1}),(0,a.createVNode)(i,{type:"card-body",class:"orangehrm-error-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.data.failedRows.toString()),1)])),_:1})],64)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",Rb,[(0,a.createVNode)(s,{"display-type":"text",label:e.$t("general.ok"),onClick:r.onClose},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])}var Gb={name:"EmployeeDataImportModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,required:!0}},emits:["close"],methods:{onClose(){this.$emit("close",!0)}}};const Zb=(0,r.Z)(Gb,[["render",Ob],["__scopeId","data-v-b8d15eb4"]]);var Qb=Zb;const Hb={attachment:null};var Wb={components:{"employee-data-import-modal":Qb},props:{allowedFileTypes:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/csv-import"),{formRef:t,reset:o}=$c();return{http:e,reset:o,formRef:t}},data(){return{isLoading:!1,attachment:{...Hb},rules:{attachment:[jt,no(1048576),ro(this.allowedFileTypes)]},importModalState:null}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.attachment}).then((e=>{const{meta:t}=e.data;this.importModalState=t})).finally((()=>{this.reset(),this.isLoading=!1}))},onClickDownload(){const e=`${window.appGlobal.baseUrl}/pim/sampleCsvDownload`;window.open(e,"_blank")},onImportModalClose(){this.importModalState=null}}};const Yb=(0,r.Z)(Wb,[["render",Fb],["__scopeId","data-v-ad061e70"]]);var Jb=Yb;const Xb={class:"orangehrm-background-container"},Kb=(0,a.createElementVNode)("br",null,null,-1),eV={class:"orangehrm-paper-container"},tV={class:"orangehrm-header-container"},oV={class:"orangehrm-container"},aV={class:"orangehrm-bottom-container"};function lV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("report-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-table-filter"),v=(0,a.resolveComponent)("table-header"),f=(0,a.resolveComponent)("oxd-card-table"),y=(0,a.resolveComponent)("oxd-pagination"),C=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Xb,[(0,a.createVNode)(g,{"filter-title":e.$t("general.employee_reports")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.report,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.report=e),rules:n.rules.report},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(u,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),Kb,(0,a.createElementVNode)("div",eV,[(0,a.createElementVNode)("div",tV,[(0,a.createVNode)(u,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(v,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",oV,[(0,a.createVNode)(f,{selected:n.checkedItems,"onUpdate:selected":t[1]||(t[1]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[2]||(t[2]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",aV,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(C,{ref:"deleteDialog"},null,512)])}function nV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",label:e.$t("general.report_name"),clear:!1,"create-options":r.loadReports},{option:(0,a.withCtx)((({data:e})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.label),1)])),_:1},8,["label","create-options"])}var rV={name:"ReportAutocomplete",setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/reports/defined");return{http:e}},methods:{async loadReports(e){return new Promise((t=>{e.trim()?this.http.getAll({name:e}).then((({data:e})=>{t(e.data.map((e=>({id:e.id,label:e.name}))))})):t([])}))}}};const iV=(0,r.Z)(rV,[["render",nV]]);var sV=iV;const dV={report:null},cV={"report.name":"ASC"};var mV={components:{"delete-confirmation":Et,"report-autocomplete":sV},setup(){const{sortDefinition:e,sortField:t,sortOrder:o,onSort:l}=Tt({sortDefinition:cV}),n=(0,a.ref)({...dV}),r=(0,a.computed)((()=>({reportId:n.value.report?.id,sortField:t.value,sortOrder:o.value}))),i=new P(window.appGlobal.baseUrl,"/api/v2/pim/reports/defined"),{showPaginator:s,currentPage:d,total:c,pages:m,pageSize:u,response:p,isLoading:h,execQuery:g}=wt(i,{query:r});return l(g),{http:i,showPaginator:s,currentPage:d,isLoading:h,total:c,pages:m,pageSize:u,execQuery:g,items:p,filters:n,sortDefinition:e}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:"85%"},sortField:"report.name"},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:"15%"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}},view:{onClick:this.onClickView,props:{name:"file-text-fill"}}}}],checkedItems:[],rules:{report:[xo]}}},methods:{onClickAdd(){U("/pim/definePredefinedReport")},onClickEdit(e){U("/pim/definePredefinedReport/{id}",{id:e.id})},onClickView(e){U("/pim/displayPredefinedReport/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onClickReset(){this.filters={...dV},this.filterItems()}}};const uV=(0,r.Z)(mV,[["render",lV]]);var pV=uV;const hV={class:"orangehrm-background-container"},gV={class:"orangehrm-card-container"};function vV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-icon-button"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("report-criterion"),v=(0,a.resolveComponent)("report-display-field"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",hV,[(0,a.createElementVNode)("div",gV,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_report")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.name,"onUpdate:modelValue":t[0]||(t[0]=e=>l.report.name=e),label:e.$t("general.report_name"),placeholder:e.$t("general.type_here_message"),rules:n.rules.name,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.selection_criteria")),1)])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-report-criteria --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.criterion,"onUpdate:modelValue":t[1]||(t[1]=e=>l.report.criterion=e),type:"select",label:e.$t("pim.selection_criteria"),options:l.availableCriteria},null,8,["modelValue","label","options"]),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-report-icon",name:"plus",onClick:l.addCriterion},null,8,["onClick"])])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.includeEmployees,"onUpdate:modelValue":t[2]||(t[2]=e=>l.report.includeEmployees=e),type:"select",label:e.$t("pim.include"),options:n.includeOpts,"show-empty-selector":!1},null,8,["modelValue","label","options"])])),_:1}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.report.criteriaSelected,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(g,{key:e,operator:l.report.criteriaFieldValues[e.id].operator,"onUpdate:operator":t=>l.report.criteriaFieldValues[e.id].operator=t,valueX:l.report.criteriaFieldValues[e.id].valueX,"onUpdate:valueX":t=>l.report.criteriaFieldValues[e.id].valueX=t,valueY:l.report.criteriaFieldValues[e.id].valueY,"onUpdate:valueY":t=>l.report.criteriaFieldValues[e.id].valueY=t,criterion:e,onDelete:e=>l.removeCriterion(t)},null,8,["operator","onUpdate:operator","valueX","onUpdate:valueX","valueY","onUpdate:valueY","criterion","onDelete"])))),128))])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.display_fields")),1)])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.fieldGroup,"onUpdate:modelValue":t[3]||(t[3]=e=>l.report.fieldGroup=e),type:"select",label:e.$t("pim.select_display_field_group"),options:l.availableFieldGroups},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,{class:"orangehrm-report-criteria --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.displayField,"onUpdate:modelValue":t[4]||(t[4]=e=>l.report.displayField=e),type:"select",label:e.$t("pim.select_display_field"),options:l.availableDisplyFields},null,8,["modelValue","label","options"]),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-report-icon",name:"plus",onClick:l.addDisplayField},null,8,["onClick"])])),_:1})])),_:1}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.report.fieldGroupSelected,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(v,{key:e,includeHeader:l.report.displayFieldSelected[e.id].includeHeader,"onUpdate:includeHeader":t=>l.report.displayFieldSelected[e.id].includeHeader=t,"field-group":e,"selected-fields":l.report.displayFieldSelected[e.id].fields,onDelete:e=>l.removeDisplayFieldGroup(t),onDeleteChip:e=>l.removeDisplayField(e,t)},null,8,["includeHeader","onUpdate:includeHeader","field-group","selected-fields","onDelete","onDeleteChip"])))),128))])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(C)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}function fV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-grid-item");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(d,{class:"orangehrm-report-criteria --offset-column-1"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{name:"trash-fill",onClick:l.onClickDelete},null,8,["onClick"]),(0,a.createVNode)(s,{class:"orangehrm-report-criteria-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.criterion.label),1)])),_:1})])),_:1}),((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(l.field.component),(0,a.mergeProps)(e.$attrs,{api:l.field.api,label:l.field.name,options:l.field.options}),null,16,["api","label","options"]))],64)}function yV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item");return(0,a.openBlock)(),(0,a.createBlock)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,(0,a.mergeProps)(e.$attrs,{params:{includeEmployees:"currentAndPast"},rules:l.rules,"model-value":o.valueX,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:valueX",t))}),null,16,["rules","model-value"])])),_:1})}var CV={name:"ReportCriterionAutocomplete",components:{"employee-autocomplete":Va},inheritAttrs:!1,props:{operator:{type:Object,required:!1,default:()=>null},valueX:{type:Object,required:!1,default:()=>null}},emits:["update:valueX","update:operator"],setup(e,t){const o=[jt,xo];return t.emit("update:operator",{id:"eq",label:"Equal"}),{rules:o}}};const bV=(0,r.Z)(CV,[["render",yV],["__scopeId","data-v-36b7c266"]]);var VV=bV;function xV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item");return(0,a.openBlock)(),(0,a.createBlock)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,(0,a.mergeProps)(e.$attrs,{type:"select",rules:l.rules,options:l.opts,"model-value":o.valueX,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:valueX",t))}),null,16,["rules","options","model-value"])])),_:1})}var wV={name:"ReportCriterionSelect",inheritAttrs:!1,props:{api:{type:String,required:!1,default:null},options:{type:Array,default:()=>[]},valueX:{type:Object,required:!1,default:()=>null}},emits:["update:valueX","update:operator"],setup(e,t){const o=(0,a.ref)(e.options),l=[jt];if(e.api){const t=new P(window.appGlobal.baseUrl,e.api);(0,a.onBeforeMount)((()=>{t.getAll({..."/api/v2/admin/subunits"!==e.api&&{limit:0}}).then((({data:e})=>{o.value=e.data.map((e=>({id:e.id,label:e.name?e.name:e.title,_indent:e.level?e.level+1:1})))}))}))}return"/api/v2/admin/locations"===e.api||"/api/v2/admin/subunits"===e.api?t.emit("update:operator",{id:"in",label:"Equal"}):t.emit("update:operator",{id:"eq",label:"Equal"}),{opts:o,rules:l}}};const NV=(0,r.Z)(wV,[["render",xV],["__scopeId","data-v-20f3e4a9"]]);var _V=NV;function kV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"select",rules:l.rules.operator,options:l.operators,"model-value":o.operator,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:operator",t))},null,8,["rules","options","model-value"])])),_:1}),o.operator&&"between"===o.operator.id?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"orangehrm-report-range"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{rules:l.rules.valueX,"model-value":o.valueX,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:valueX",t))},null,8,["rules","model-value"]),(0,a.createVNode)(d,{class:"orangehrm-report-range-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("to")])),_:1}),(0,a.createVNode)(i,{rules:l.rules.valueY,"model-value":o.valueY,"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update:valueY",t))},null,8,["rules","model-value"])])),_:1})):o.operator?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{rules:l.rules.valueXOnly,"model-value":o.valueX,"onUpdate:modelValue":t[3]||(t[3]=t=>e.$emit("update:valueX",t))},null,8,["rules","model-value"])])),_:1})):(0,a.createCommentVNode)("",!0)],64)}var SV={name:"ReportCriterionRange",inheritAttrs:!1,props:{operator:{type:Object,required:!1,default:()=>null},valueX:{type:String,required:!1,default:null},valueY:{type:String,required:!1,default:null}},emits:["update:valueX","update:valueY","update:operator"],setup(e){const{$t:t}=Se(),o=(0,a.ref)([{id:"lt",label:t("general.less_than")},{id:"gt",label:t("general.greater_than")},{id:"between",label:t("general.range")}]),l={operator:[jt],valueXOnly:[jt,Qt,Zt(100)],valueX:[jt,Qt,Zt(100),o=>!parseInt(e.valueY)||(parseInt(o)!parseInt(e.valueX)||(parseInt(o)>parseInt(e.valueX)||t("general.should_be_greater_than_lower_bound"))]};return{rules:l,operators:o}}};const DV=(0,r.Z)(SV,[["render",kV],["__scopeId","data-v-d3b88ca8"]]);var $V=DV;function EV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"select",rules:l.rules.operator,options:l.operators,"model-value":o.operator,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:operator",t))},null,8,["rules","options","model-value"])])),_:1}),o.operator&&"between"===o.operator.id?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"orangehrm-report-daterange --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"date",rules:l.rules.valueX,"model-value":o.valueX,placeholder:l.userDateFormat,"display-format":l.jsDateFormat,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:valueX",t))},null,8,["rules","model-value","placeholder","display-format"]),(0,a.createVNode)(d,{class:"orangehrm-report-range-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("to")])),_:1}),(0,a.createVNode)(i,{type:"date",rules:l.rules.valueY,"model-value":o.valueY,placeholder:l.userDateFormat,"display-format":l.jsDateFormat,"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update:valueY",t))},null,8,["rules","model-value","placeholder","display-format"])])),_:1})):o.operator?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"date",rules:l.rules.valueXOnly,"model-value":o.valueX,placeholder:l.userDateFormat,"display-format":l.jsDateFormat,"onUpdate:modelValue":t[3]||(t[3]=t=>e.$emit("update:valueX",t))},null,8,["rules","model-value","placeholder","display-format"])])),_:1})):(0,a.createCommentVNode)("",!0)],64)}var TV={name:"ReportCriterionDateRange",inheritAttrs:!1,props:{operator:{type:Object,required:!1,default:()=>null},valueX:{type:String,required:!1,default:null},valueY:{type:String,required:!1,default:null}},emits:["update:valueX","update:valueY","update:operator"],setup(e){const{$t:t}=Se(),{jsDateFormat:o,userDateFormat:l}=R(),n=(0,a.ref)([{id:"lt",label:"Joined before"},{id:"gt",label:"Joined after"},{id:"between",label:"Joined in between"}]),r={operator:[jt],valueXOnly:[jt,Rt(l)],valueX:[jt,Rt(l),co((()=>e.valueY),t("general.from_date_should_be_before_to_date"))],valueY:[jt,Rt(l),eo((()=>e.valueX),t("general.to_date_should_be_after_from_date"))]};return{rules:r,operators:n,jsDateFormat:o,userDateFormat:l}}};const BV=(0,r.Z)(TV,[["render",EV],["__scopeId","data-v-2ea02c55"]]);var IV=BV,LV={name:"ReportCriterion",components:{"report-criterion-autocomplete":VV,"report-criterion-select":_V,"report-criterion-range":$V,"report-criterion-date-range":IV},inheritAttrs:!1,props:{criterion:{type:Object,required:!0}},emits:["delete"],setup(e,t){const o=(0,a.ref)(null);switch(e.criterion.key){case"employee_name":o.value={name:e.criterion.label,component:"report-criterion-autocomplete",api:null,options:[]};break;case"pay_grade":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/pay-grades",options:[]};break;case"education":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/educations",options:[]};break;case"employment_status":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/employment-statuses",options:[]};break;case"service_period":o.value={name:e.criterion.label,component:"report-criterion-range",api:null,options:[]};break;case"joined_date":o.value={name:e.criterion.label,component:"report-criterion-date-range",api:null,options:[]};break;case"job_title":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/job-titles",options:[]};break;case"language":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/languages",options:[]};break;case"skill":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/skills",options:[]};break;case"age_group":o.value={name:e.criterion.label,component:"report-criterion-range",api:null,options:[]};break;case"sub_unit":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/subunits",options:[]};break;case"location":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/locations",options:[]};break;default:o.value={name:e.criterion.label,component:"report-criterion-select",api:null,options:[{id:1,label:"Male"},{id:2,label:"Female"}]}}const l=e=>{t.emit("delete",e)};return{field:o,onClickDelete:l}}};const UV=(0,r.Z)(LV,[["render",fV],["__scopeId","data-v-b010db64"]]);var AV=UV;function PV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-multiselect-chips"),m=(0,a.resolveComponent)("oxd-switch-input");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(d,{class:"orangehrm-report-field --offset-column-1"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{name:"trash-fill",onClick:l.onClickDelete},null,8,["onClick"]),(0,a.createVNode)(s,{class:"orangehrm-report-field-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.fieldGroup.label),1)])),_:1})])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{selected:o.selectedFields,onChipRemoved:l.onRemoveSelected},null,8,["selected","onChipRemoved"])])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-report-field"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-report-field-header",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.include_header")),1)])),_:1}),(0,a.createVNode)(m,{"model-value":o.includeHeader,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:includeHeader",t))},null,8,["model-value"])])),_:1})],64)}var qV={name:"ReportDisplayField",components:{"oxd-switch-input":q.OxdSwitchInput,"oxd-multiselect-chips":q.OxdMultiSelectChips},props:{fieldGroup:{type:Object,required:!0},selectedFields:{type:Array,default:()=>[]},includeHeader:{type:Boolean,required:!0}},emits:["delete","deleteChip","update:includeHeader"],setup(e,t){const o=e=>{t.emit("delete",e)},a=e=>{t.emit("deleteChip",e)};return{onClickDelete:o,onRemoveSelected:a}}};const MV=(0,r.Z)(qV,[["render",PV],["__scopeId","data-v-3c97086a"]]);var FV=MV;const jV={name:"",includeEmployees:{id:1,key:"onlyCurrent",label:"仅当前人员"},criterion:null,criteriaSelected:[],criteriaFieldValues:{},fieldGroup:null,fieldGroupSelected:[],displayField:null,displayFieldSelected:{}};function zV(e,t,o){const l=(0,a.reactive)({report:{...jV}}),n=e=>{const o=t.find((t=>t.field_group_id===e));return o?o.fields:[]},r=e=>{const t=l.report.displayFieldSelected[e],o=t?t.fields:[];return n(e).filter((e=>!o.find((t=>t.id===e.id))))},i=()=>{const e=l.report.criterion;e&&(l.report.criteriaSelected.push(e),l.report.criteriaFieldValues[e.id]={valueX:null,valueY:null,operator:null},l.report.criterion=null)},s=e=>{const t=l.report.criteriaSelected.splice(e,1);delete l.report.criteriaFieldValues[t[0].id]},d=()=>{const e=l.report.fieldGroup,t=l.report.displayField;if(e){const o=l.report.fieldGroupSelected.findIndex((t=>t.id===e.id));-1===o&&(l.report.fieldGroupSelected.push(e),l.report.displayFieldSelected[e.id]={fields:[],includeHeader:!1}),t?(l.report.displayFieldSelected[e.id].fields.push(t),l.report.displayField=null):r(e.id).forEach((t=>{l.report.displayFieldSelected[e.id].fields.push(t)})),0===r(e.id).length&&(l.report.fieldGroup=null)}},c=e=>{const t=l.report.fieldGroupSelected[e];l.report.fieldGroupSelected.splice(e,1),delete l.report.displayFieldSelected[t.id]},m=(e,t)=>{const o=l.report.fieldGroupSelected[t],a=l.report.displayFieldSelected[o.id].fields;l.report.displayFieldSelected[o.id].fields=a.filter((t=>t.id!==e.id)),0===l.report.displayFieldSelected[o.id].fields.length&&c(t)},u=e=>{const t={name:e.name,include:e.includeEmployees.key,criteria:{},fieldGroup:{}};return e.fieldGroupSelected.forEach((o=>{const a=e.displayFieldSelected[o.id].fields,l=e.displayFieldSelected[o.id].includeHeader;t.fieldGroup[o.id]={fields:a.map((e=>e.id)),includeHeader:l}})),e.criteriaSelected.forEach((o=>{const a=e.criteriaFieldValues[o.id];t.criteria[o.id]={operator:a.operator?a.operator.id:"",x:"object"===typeof a.valueX?String(a.valueX?.id):a.valueX,y:"object"===typeof a.valueY?String(a.valueY?.id):a.valueY}})),t},p=(0,a.computed)((()=>e.filter((e=>!l.report.criteriaSelected.find((t=>t.id===e.id)))))),h=(0,a.computed)((()=>o.filter((e=>0!==r(e.id).length)))),g=(0,a.computed)((()=>{const e=l.report.fieldGroup?.id;return e?r(e):[]}));return{...(0,a.toRefs)(l),addCriterion:i,serializeBody:u,addDisplayField:d,removeCriterion:s,removeDisplayField:m,removeDisplayFieldGroup:c,availableCriteria:p,availableFieldGroups:h,availableDisplyFields:g}}var RV={components:{"report-criterion":AV,"report-display-field":FV},props:{selectionCriteria:{type:Array,required:!0},displayFieldGroups:{type:Array,required:!0},displayFields:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/pim/reports/defined"),{report:o,addCriterion:a,serializeBody:l,addDisplayField:n,removeCriterion:r,removeDisplayField:i,removeDisplayFieldGroup:s,availableCriteria:d,availableFieldGroups:c,availableDisplyFields:m}=zV(e.selectionCriteria,e.displayFields,e.displayFieldGroups);return{http:t,report:o,addCriterion:a,serializeBody:l,addDisplayField:n,removeCriterion:r,removeDisplayField:i,removeDisplayFieldGroup:s,availableCriteria:d,availableFieldGroups:c,availableDisplyFields:m}},data(){return{isLoading:!1,rules:{name:[jt,zt(250)],includeEmployees:[jt]},includeOpts:[{id:1,key:"onlyCurrent",label:this.$t("general.current_employees_only")},{id:2,key:"currentAndPast",label:this.$t("general.current_and_past_employees")},{id:3,key:"onlyPast",label:this.$t("general.past_employees_only")}]}},beforeMount(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/pim/viewDefinedPredefinedReports")},onSave(){if(0===Object.keys(this.report.displayFieldSelected).length)return this.$toast.warn({title:this.$t("general.warning"),message:this.$t("pim.at_least_one_display_field_should_be_added")});this.isLoading=!0;let e=null;const t=this.serializeBody(this.report);this.http.create(t).then((t=>{const{data:o}=t.data;return e=o.id,this.$toast.saveSuccess()})).then((()=>{e&&U("/pim/displayPredefinedReport/{id}",{id:e})}))}}};const OV=(0,r.Z)(RV,[["render",vV],["__scopeId","data-v-f66184da"]]);var GV=OV;const ZV={class:"orangehrm-card-container"},QV=(0,a.createElementVNode)("br",null,null,-1);function HV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(s,{module:"pim",name:"pim_defined",prefetch:!0,filters:l.filters},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",ZV,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.reportName),1)])),_:1})]),QV])),_:1},8,["filters"])}const WV={class:"orangehrm-background-container"},YV={key:0,class:"orangehrm-paper-container"};function JV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-pagination"),d=(0,a.resolveComponent)("oxd-report-table");return(0,a.openBlock)(),(0,a.createElementBlock)("div",WV,[(0,a.renderSlot)(e.$slots,"default",{generateReport:l.generateReport},void 0,!0),0!==l.headers.length?((0,a.openBlock)(),(0,a.createElementBlock)("div",YV,[(0,a.createVNode)(d,{items:l.items,headers:l.headers,loading:l.isLoading,"column-count":l.colCount},{pagination:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"oxd-text--count",tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_found",{count:l.total})),1)])),_:1}),l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])),footer:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"oxd-text--footer",tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.renderSlot)(e.$slots,"footer",{data:l.response},void 0,!0)])),_:3})])),_:3},8,["items","headers","loading","column-count"])])):(0,a.createCommentVNode)("",!0)])}var XV={name:"ReportsTable",components:{"oxd-report-table":q.OxdReportTable},props:{name:{type:String,required:!0},module:{type:String,required:!0},prefetch:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},columnCount:{type:Number,default:null,required:!1}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/${e.module}/reports/data`),o=(0,a.ref)([]),l=(0,a.ref)(e.columnCount?e.columnCount:0),n=(0,a.computed)((()=>({...e.filters,name:e.name,_dateFormattingEnabled:!0}))),{total:r,pages:i,response:s,isLoading:d,currentPage:c,showPaginator:m,execQuery:u}=wt(t,{query:n,prefetch:!1}),p=(0,a.computed)((()=>{const e=Array.isArray(s.value.data)?s.value.data:[];return e.map((e=>{let t=0;for(const o in e){const a=e[o];Array.isArray(a)&&a.length>t&&(t=a.length)}return{...e,_rows:t}}))})),h=e=>{delete e["size"];const{type:t,...o}=e.cellProperties??{},a=function({prop:e,model:t}){const a=t?._url?t?._url[e]:void 0;return{...o,onClick:a?()=>U(a):void 0}};return{...e,cellProperties:a,cellTemplate:"list"===t?(0,q.CellAdapter)(q.OxdMultilineCell):void 0}},g=async()=>{d.value=!0,t.request({method:"GET",url:`/api/v2/${e.module}/reports`,params:{name:n.value.name,reportId:n.value?.reportId}}).then((e=>{const{data:t,meta:a}=e.data;o.value=t.headers.map((e=>e?.children&&Array.isArray(e.children)?(e.children=e.children.map((e=>h(e))),e):h(e))),a.headers?.columnCount&&(l.value=a.headers.columnCount),d.value=!1}))},v=async()=>{0===o.value.length&&await g(),await u()};return(0,a.watch)((()=>e.name),(()=>{o.value=[]})),e.prefetch&&(0,a.onBeforeMount)((()=>v())),{total:r,pages:i,items:p,headers:o,colCount:l,response:s,isLoading:d,currentPage:c,showPaginator:m,generateReport:v}}};const KV=(0,r.Z)(XV,[["render",JV],["__scopeId","data-v-32e798aa"]]);var ex=KV,tx={components:{"reports-table":ex},props:{reportId:{type:String,required:!0},reportName:{type:String,required:!0}},setup(e){const t=(0,a.ref)({reportId:e.reportId});return{filters:t}}};const ox=(0,r.Z)(tx,[["render",HV]]);var ax=ox;const lx={class:"orangehrm-background-container"},nx={class:"orangehrm-card-container"};function rx(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-icon-button"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("report-criterion"),v=(0,a.resolveComponent)("report-display-field"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",lx,[(0,a.createElementVNode)("div",nx,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_report")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.name,"onUpdate:modelValue":t[0]||(t[0]=e=>l.report.name=e),label:e.$t("general.report_name"),placeholder:e.$t("general.type_here_message"),rules:n.rules.name,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.selection_criteria")),1)])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-report-criteria --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.criterion,"onUpdate:modelValue":t[1]||(t[1]=e=>l.report.criterion=e),type:"select",label:e.$t("pim.selection_criteria"),options:l.availableCriteria},null,8,["modelValue","label","options"]),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-report-icon",name:"plus",onClick:l.addCriterion},null,8,["onClick"])])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.includeEmployees,"onUpdate:modelValue":t[2]||(t[2]=e=>l.report.includeEmployees=e),type:"select",label:e.$t("pim.include"),options:n.includeOpts,"show-empty-selector":!1},null,8,["modelValue","label","options"])])),_:1}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.report.criteriaSelected,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(g,{key:e,operator:l.report.criteriaFieldValues[e.id].operator,"onUpdate:operator":t=>l.report.criteriaFieldValues[e.id].operator=t,valueX:l.report.criteriaFieldValues[e.id].valueX,"onUpdate:valueX":t=>l.report.criteriaFieldValues[e.id].valueX=t,valueY:l.report.criteriaFieldValues[e.id].valueY,"onUpdate:valueY":t=>l.report.criteriaFieldValues[e.id].valueY=t,criterion:e,onDelete:e=>l.removeCriterion(t)},null,8,["operator","onUpdate:operator","valueX","onUpdate:valueX","valueY","onUpdate:valueY","criterion","onDelete"])))),128))])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.display_fields")),1)])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.fieldGroup,"onUpdate:modelValue":t[3]||(t[3]=e=>l.report.fieldGroup=e),type:"select",label:e.$t("pim.select_display_field_group"),options:l.availableFieldGroups},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,{class:"orangehrm-report-criteria --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.displayField,"onUpdate:modelValue":t[4]||(t[4]=e=>l.report.displayField=e),type:"select",label:e.$t("pim.select_display_field"),options:l.availableDisplyFields},null,8,["modelValue","label","options"]),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-report-icon",name:"plus",onClick:l.addDisplayField},null,8,["onClick"])])),_:1})])),_:1}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.report.fieldGroupSelected,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(v,{key:e,includeHeader:l.report.displayFieldSelected[e.id].includeHeader,"onUpdate:includeHeader":t=>l.report.displayFieldSelected[e.id].includeHeader=t,"field-group":e,"selected-fields":l.report.displayFieldSelected[e.id].fields,onDelete:e=>l.removeDisplayFieldGroup(t),onDeleteChip:e=>l.removeDisplayField(e,t)},null,8,["includeHeader","onUpdate:includeHeader","field-group","selected-fields","onDelete","onDeleteChip"])))),128))])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(C)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var ix={components:{"report-criterion":AV,"report-display-field":FV},props:{selectionCriteria:{type:Array,required:!0},displayFieldGroups:{type:Array,required:!0},displayFields:{type:Array,required:!0},reportId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/pim/reports/defined"),{report:o,addCriterion:a,serializeBody:l,addDisplayField:n,removeCriterion:r,removeDisplayField:i,removeDisplayFieldGroup:s,availableCriteria:d,availableFieldGroups:c,availableDisplyFields:m}=zV(e.selectionCriteria,e.displayFields,e.displayFieldGroups);return{http:t,report:o,addCriterion:a,serializeBody:l,addDisplayField:n,removeCriterion:r,removeDisplayField:i,removeDisplayFieldGroup:s,availableCriteria:d,availableFieldGroups:c,availableDisplyFields:m}},data(){return{isLoading:!1,rules:{name:[jt,zt(250)],includeEmployees:[jt]},includeOpts:[{id:1,key:"onlyCurrent",label:this.$t("general.current_employees_only")},{id:2,key:"currentAndPast",label:this.$t("general.current_and_past_employees")},{id:3,key:"onlyPast",label:this.$t("general.past_employees_only")}]}},beforeMount(){this.isLoading=!0,this.http.get(this.reportId).then((e=>{const{data:t}=e.data;this.report.name=t.name,this.report.includeEmployees=this.includeOpts.find((e=>e.key===t.include));const o=[{id:"eq",label:"Equal"},{id:"lt",label:"Less Than"},{id:"gt",label:"Greater Than"},{id:"between",label:"Range"}];for(const a in t.fieldGroup){const e=this.displayFields.find((e=>e.field_group_id==a));this.report.fieldGroupSelected.push(this.displayFieldGroups.find((e=>e.id==a))),this.report.displayFieldSelected[a]={fields:t.fieldGroup[a].fields.map((t=>e.fields.find((e=>e.id===t)))),includeHeader:t.fieldGroup[a].includeHeader}}for(const a in t.criteria){const e=this.selectionCriteria.find((e=>e.id==a));this.report.criteriaSelected.push(e),this.report.criteriaFieldValues[a]={valueX:t.criteria[a].x,valueY:"undefined"===t.criteria[a].y?null:t.criteria[a].y,operator:o.find((e=>e.id===t.criteria[a].operator))}}return this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e));if(o>-1){const{id:e}=t[o];return e==this.reportId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/pim/viewDefinedPredefinedReports")},onSave(){if(0===Object.keys(this.report.displayFieldSelected).length)return this.$toast.warn({title:this.$t("general.warning"),message:this.$t("pim.at_least_one_display_field_should_be_added")});this.isLoading=!0;const e=this.serializeBody(this.report);this.http.update(this.reportId,e).then((()=>this.$toast.updateSuccess())).then((()=>{U("/pim/displayPredefinedReport/{id}",{id:this.reportId})}))}}};const sx=(0,r.Z)(ix,[["render",rx],["__scopeId","data-v-0b4140eb"]]);var dx=sx;const cx={class:"orangehrm-background-container"},mx={class:"orangehrm-card-container"};function ux(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("password-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",cx,[(0,a.createElementVNode)("div",mx,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.update_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{ref:"formRef",loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.username")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-user-name",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.userName),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.user.currentPassword,"onUpdate:modelValue":t[0]||(t[0]=e=>n.user.currentPassword=e),type:"password",label:e.$t("pim.current_password"),rules:n.rules.currentPassword,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,{password:n.user.password,"onUpdate:password":t[1]||(t[1]=e=>n.user.password=e),passwordConfirm:n.user.passwordConfirm,"onUpdate:passwordConfirm":t[2]||(t[2]=e=>n.user.passwordConfirm=e)},null,8,["password","passwordConfirm"]),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const px={currentPassword:"",password:"",passwordConfirm:""};var hx={components:{"password-input":Ma},props:{userName:{type:String,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/core/update-password"),{formRef:t,reset:o}=$c();return{http:e,formRef:t,reset:o}},data(){return{isLoading:!1,user:{...px},rules:{currentPassword:[jt,zt(64)]}}},methods:{onCancel(){window.history.back()},onSave(){this.isLoading=!0,this.http.request({method:"PUT",url:"/api/v2/pim/update-password",data:{newPassword:this.user.password,currentPassword:this.user.currentPassword},validateStatus:e=>e>=200&&e<300||422===e}).then((e=>200===e.status?(this.reset(),this.$toast.saveSuccess()):this.$toast.error({title:this.$t("general.error"),message:this.$t("pim.current_password_is_incorrect")}))).finally((()=>this.isLoading=!1))}}};const gx=(0,r.Z)(hx,[["render",ux],["__scopeId","data-v-1cb899de"]]);var vx=gx,fx={"employee-save":yu,"employee-list":Zu,"employee-personal-details":th,"employee-contact-details":ih,"employee-emergency-contacts":kh,"employee-dependents":Gh,"employee-profile-picture":Xh,"employee-salary":bg,"employee-job":qg,"employee-qualifications":Mf,"employee-immigration":ly,"employee-membership":nC,"termination-reason-list":hC,"termination-reason-edit":bC,"termination-reason-save":kC,"reporting-method-list":UC,"reporting-method-edit":jC,"reporting-method-save":QC,"employee-report-to":Fy,"custom-field-list":ab,"custom-field-edit":cb,"custom-field-save":fb,"optional-field-list":Db,"employee-tax-exemption":Lb,"employee-data-import":Jb,"employee-report-list":pV,"employee-report-save":GV,"employee-report-view":ax,"employee-report-edit":dx,"update-password":vx};const yx=e=>((0,a.pushScopeId)("data-v-510cfbbc"),e=e(),(0,a.popScopeId)(),e),Cx={class:"orangehrm-background-container"},bx={class:"orangehrm-card-container"},Vx=yx((()=>(0,a.createElementVNode)("br",null,null,-1))),xx={class:"orangehrm-support"},wx=["src"],Nx=yx((()=>(0,a.createElementVNode)("a",{class:"orangehrm-support-link",href:"mailto:ossupport@jingweiht.com"}," ossupport@jingweiht.com ",-1)));function _x(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-grid");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Cx,[(0,a.createElementVNode)("div",bx,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("help.getting_started_with_orangehrm")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-support-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("help.getting_started_with_orangehrm_message_1")),1)])),_:1}),Vx,(0,a.createVNode)(i,{tag:"p",class:"orangehrm-support-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("help.getting_started_with_orangehrm_message_2")),1)])),_:1}),(0,a.createElementVNode)("div",xx,[(0,a.createVNode)(c,{cols:2,class:"orangehrm-support-channel --mail"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("img",{src:n.helpImgSrc,alt:"help image"},null,8,wx)])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("help.customer_support")),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-support-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("help.contact_us_on_message"))+" ",1),Nx,(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("help.we_will_be_delighted_to_help")),1)])),_:1})])),_:1})])),_:1})])])])}var kx={data(){return{helpImgSrc:`${window.appGlobal.publicPath}/images/help.png`}}};const Sx=(0,r.Z)(kx,[["render",_x],["__scopeId","data-v-510cfbbc"]]);var Dx=Sx,$x={"view-support":Dx};const Ex={class:"orangehrm-background-container"},Tx={class:"orangehrm-card-container"};function Bx(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ex,[(0,a.createElementVNode)("div",Tx,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.timesheet_period_config")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.timeSheetPeriod.startDay,"onUpdate:modelValue":t[0]||(t[0]=e=>n.timeSheetPeriod.startDay=e),type:"select",label:e.$t("time.add_timesheet_period_config"),options:r.days,rules:n.rules.startDay,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Ix={startDay:null};var Lx={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/time-sheet-period"),{locale:t}=De();return{http:e,locale:t}},data(){return{isLoading:!1,timeSheetPeriod:{...Ix},rules:{startDay:[jt]}}},computed:{days(){return Array(7).fill("").map(((...[,e])=>({id:0===e?7:e,label:this.locale.localize.day(e,{width:"wide"})})))}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET"}).then((e=>{const{data:t}=e.data;this.updateTimeSheetPeriodModel(parseInt(t.startDay))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{startDay:this.timeSheetPeriod.startDay?.id}}).then((()=>this.$toast.saveSuccess())).then((()=>{U("/time/viewEmployeeTimesheet")}))},updateTimeSheetPeriodModel(e){this.timeSheetPeriod.startDay=this.days.find((t=>t.id===e))}}};const Ux=(0,r.Z)(Lx,[["render",Bx]]);var Ax=Ux;const Px={class:"orangehrm-background-container"},qx={class:"orangehrm-paper-container"},Mx={class:"orangehrm-header-container"},Fx={class:"orangehrm-container"},jx={class:"orangehrm-bottom-container"};function zx(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Px,[(0,a.createElementVNode)("div",qx,[(0,a.createElementVNode)("div",Mx,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.customers")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Fx,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[1]||(t[1]=e=>l.sortDefinition=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","loading","headers","items"])]),(0,a.createElementVNode)("div",jx,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[2]||(t[2]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}const Rx={"customer.name":"ASC"};var Ox={components:{"delete-confirmation":Et},props:{unselectableIds:{type:Array,default:()=>[]}},setup(e){const t=t=>t.map((t=>{const o=e.unselectableIds.findIndex((e=>e==t.id));return{id:t.id,name:t.name,description:t.description,isSelectable:-1===o}})),{sortDefinition:o,sortField:l,sortOrder:n,onSort:r}=Tt({sortDefinition:Rx}),i=(0,a.computed)((()=>({sortField:l.value,sortOrder:n.value}))),s=new P(window.appGlobal.baseUrl,"/api/v2/time/customers"),{showPaginator:d,currentPage:c,total:m,pages:u,pageSize:p,response:h,isLoading:g,execQuery:v}=wt(s,{query:i,normalizer:t});return r(v),{http:s,showPaginator:d,currentPage:c,isLoading:g,total:m,pages:u,pageSize:p,execQuery:v,items:h,sortDefinition:o}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),sortField:"customer.name",style:{flex:2}},{name:"description",title:this.$t("general.description"),style:{flex:4}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/time/addCustomer")},onClickEdit(e){U("/time/addCustomer/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("time.not_allowed_to_delete_customer_who_have_time_logged_against")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Gx=(0,r.Z)(Ox,[["render",zx]]);var Zx=Gx;const Qx={class:"orangehrm-background-container"},Hx={class:"orangehrm-card-container"};function Wx(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Qx,[(0,a.createElementVNode)("div",Hx,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.add_customer")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.customer.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.customer.description=e),type:"textarea",label:e.$t("general.description"),placeholder:"Type description here",rules:n.rules.description},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Yx={id:"",name:"",description:""};var Jx={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/customers");return e.setIgnorePath("/api/v2/time/validation/customer-name"),{http:e}},data(){return{isLoading:!1,customer:{...Yx},rules:{name:[jt,zt(50),(0,q.promiseDebounce)(this.validateCustomerName,500)],description:[zt(255)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.customer.name,description:this.customer.description}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/time/viewCustomers")},validateCustomerName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/time/validation/customer-name",params:{customerName:this.customer.name.trim()}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const Xx=(0,r.Z)(Jx,[["render",Wx]]);var Kx=Xx;const ew={class:"orangehrm-background-container"},tw={class:"orangehrm-card-container"};function ow(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ew,[(0,a.createElementVNode)("div",tw,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.edit_customer")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.customer.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.customer.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const aw={id:"",name:"",description:""};var lw={props:{customerId:{type:String,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/customers");return e.setIgnorePath("/api/v2/time/validation/customer-name"),{http:e}},data(){return{isLoading:!1,customer:{...aw},rules:{name:[jt,zt(50),(0,q.promiseDebounce)(this.validateCustomerName,500)],description:[zt(255)]}}},created(){this.isLoading=!0,this.http.get(this.customerId).then((e=>{const{data:t}=e.data;this.customer.id=t.id,this.customer.name=t.name,this.customer.description=t.description})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.customerId,{name:this.customer.name,description:this.customer.description}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/time/viewCustomers")},validateCustomerName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/time/validation/customer-name",params:{customerName:this.customer.name.trim(),customerId:this.customerId}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const nw=(0,r.Z)(lw,[["render",ow]]);var rw=nw;const iw={class:"orangehrm-background-container"},sw=(0,a.createElementVNode)("br",null,null,-1);function dw(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("timesheet-period"),d=(0,a.resolveComponent)("oxd-button"),c=(0,a.resolveComponent)("timesheet"),m=(0,a.resolveComponent)("timesheet-actions");return(0,a.openBlock)(),(0,a.createElementBlock)("div",iw,[(0,a.createVNode)(c,{loading:e.isLoading,columns:e.timesheetColumns,records:e.timesheetRecords,"timesheet-id":e.timesheetId,subtotal:e.timesheetSubtotal},{"header-title":(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.my_timesheet")),1)])),_:1})])),"header-options":(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:e.date,"onUpdate:modelValue":t[0]||(t[0]=t=>e.date=t),value:l.timesheetPeriod,onPrevious:l.onClickPrevious,onNext:l.onClickNext},null,8,["modelValue","value","onPrevious","onNext"])])),"footer-title":(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.status"))+": "+(0,a.toDisplayString)(r.myTimesheetStatus),1)])),_:1},512),[[a.vShow,e.timesheetStatus]])])),"footer-options":(0,a.withCtx)((()=>[l.showCreateTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"display-type":"secondary",disabled:l.canCreateTimesheet,label:e.$t("time.create_timesheet"),onClick:l.onClickCreateTimesheet},null,8,["disabled","label","onClick"])):(0,a.createCommentVNode)("",!0),l.canEditTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,"display-type":"ghost",label:e.$t("general.edit"),onClick:l.onClickEdit},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),l.canSubmitTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:2,"display-type":"secondary",label:e.$t("general.submit"),onClick:l.onClickSubmit},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","columns","records","timesheet-id","subtotal"]),sw,e.timesheetId?((0,a.openBlock)(),(0,a.createBlock)(m,{key:e.timesheetId,"timesheet-id":e.timesheetId},null,8,["timesheet-id"])):(0,a.createCommentVNode)("",!0)])}const cw=e=>((0,a.pushScopeId)("data-v-425cbc6c"),e=e(),(0,a.popScopeId)(),e),mw={class:"orangehrm-timesheet-header"},uw={class:"orangehrm-timesheet-header--title"},pw={class:"orangehrm-timesheet-header--options"},hw={key:0,class:"orangehrm-timesheet-loader"},gw={key:1,class:"orangehrm-timesheet-body-message"},vw={key:2,class:"orangehrm-timesheet-body"},fw={class:"orangehrm-timesheet-table-header"},yw={class:"orangehrm-timesheet-table-header-row"},Cw={class:"orangehrm-timesheet-table-header-cell"},bw={class:"--day"},Vw={key:0,class:"orangehrm-timesheet-table-header-cell --center --freeze-right"},xw={class:"orangehrm-timesheet-table-body"},ww={key:1},Nw={class:"orangehrm-timesheet-table-body-cell"},_w={key:1},kw={key:1},Sw={key:0,class:"orangehrm-timesheet-table-body-cell --center --freeze-right --highlight"},Dw={key:1,class:"orangehrm-timesheet-table-body-cell --flex"},$w={key:0,class:"orangehrm-timesheet-table-body-row --total"},Ew={class:"orangehrm-timesheet-table-body-cell --freeze-left --highlight"},Tw=cw((()=>(0,a.createElementVNode)("td",null,null,-1))),Bw={class:"orangehrm-timesheet-table-body-cell --center --freeze-right --highlight-2"},Iw={key:1,class:"orangehrm-timesheet-table-body-row"},Lw={class:"orangehrm-timesheet-table-body-cell --flex"},Uw={key:2,class:"orangehrm-timesheet-table-body-row"},Aw={colspan:"9",class:"orangehrm-timesheet-table-body-cell"},Pw={class:"orangehrm-timesheet-footer"},qw={class:"orangehrm-timesheet-footer--title"},Mw={class:"orangehrm-timesheet-footer--options"};function Fw(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-loading-spinner"),s=(0,a.resolveComponent)("oxd-alert"),d=(0,a.resolveComponent)("project-autocomplete"),c=(0,a.resolveComponent)("activity-dropdown"),m=(0,a.resolveComponent)("oxd-icon-button"),u=(0,a.resolveComponent)("oxd-input-field"),p=(0,a.resolveComponent)("oxd-text"),h=(0,a.resolveComponent)("timesheet-comment-modal"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createBlock)(g,{class:"orangehrm-paper-container"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",mw,[(0,a.createElementVNode)("div",uw,[(0,a.renderSlot)(e.$slots,"header-title",{},void 0,!0)]),(0,a.createElementVNode)("div",pw,[(0,a.renderSlot)(e.$slots,"header-options",{},void 0,!0)])]),o.loading?((0,a.openBlock)(),(0,a.createElementBlock)("div",hw,[(0,a.createVNode)(i)])):o.loading||o.columns?((0,a.openBlock)(),(0,a.createElementBlock)("div",vw,[(0,a.createElementVNode)("table",{class:(0,a.normalizeClass)(r.tableClasses)},[(0,a.createElementVNode)("thead",fw,[(0,a.createElementVNode)("tr",yw,[(0,a.createElementVNode)("th",{class:(0,a.normalizeClass)(r.fixedColumnClasses)},(0,a.toDisplayString)(e.$t("time.project")),3),(0,a.createElementVNode)("th",Cw,(0,a.toDisplayString)(e.$t("time.activity")),1),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.daysOfWeek,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("th",{key:e.id,class:"orangehrm-timesheet-table-header-cell --center"},[(0,a.createElementVNode)("span",bw,(0,a.toDisplayString)(e.day),1),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.title),1)])))),128)),o.editable?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("th",Vw,(0,a.toDisplayString)(e.$t("general.total")),1))])]),(0,a.createElementVNode)("tbody",xw,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.records,((e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("tr",{key:e,class:"orangehrm-timesheet-table-body-row"},[(0,a.createElementVNode)("td",{class:(0,a.normalizeClass)(r.fixedCellClasses)},[o.editable?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"only-allowed":!1,rules:n.rules.project,"model-value":r.getProject(e),"onUpdate:modelValue":e=>r.updateProject(e,t)},null,8,["rules","model-value","onUpdate:modelValue"])):((0,a.openBlock)(),(0,a.createElementBlock)("span",ww,(0,a.toDisplayString)(e.project?`${e.customer.name} - ${e.project.name}`:""),1))],2),(0,a.createElementVNode)("td",Nw,[o.editable?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,rules:n.rules.activity,"project-id":e.project&&e.project.id,"model-value":r.getActivity(e.activity),"onUpdate:modelValue":e=>r.updateActivity(e,t)},null,8,["rules","project-id","model-value","onUpdate:modelValue"])):((0,a.openBlock)(),(0,a.createElementBlock)("span",_w,(0,a.toDisplayString)(e.activity&&e.activity.name),1))]),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.columns,((l,n)=>((0,a.openBlock)(),(0,a.createElementBlock)("td",{key:`${e.project}_${e.activity}_${n}`,class:(0,a.normalizeClass)({"orangehrm-timesheet-table-body-cell":!0,"--center":!0,"--duration-input":o.editable,"--highlight-3":!o.editable&&l.workday})},[(0,a.withDirectives)((0,a.createVNode)(m,{"display-type":"secondary",class:"orangehrm-timesheet-icon-comment",name:r.getCommentIcon(e.dates[n]),onMousedown:o=>r.viewComment(e,e.dates[n],t,n)},null,8,["name","onMousedown"]),[[a.vShow,r.isCommentVisible(e.dates[n],t,n)]]),o.editable?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,autocomplete:"off",rules:r.validateDuration(n),"model-value":r.getDuration(e.dates[n]),onBlur:r.onDurationBlur,onFocus:e=>r.onDurationFocus(t,n),"onUpdate:modelValue":e=>r.updateTime(e,t,n)},null,8,["rules","model-value","onBlur","onFocus","onUpdate:modelValue"])):((0,a.openBlock)(),(0,a.createElementBlock)("span",kw,(0,a.toDisplayString)(r.getDuration(e.dates[n])??"00:00"),1))],2)))),128)),o.editable?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("td",Sw,(0,a.toDisplayString)(e.total.label),1)),o.editable?((0,a.openBlock)(),(0,a.createElementBlock)("td",Dw,[(0,a.createVNode)(m,{name:"trash",class:"orangehrm-timesheet-icon",onClick:e=>r.deleteRow(t)},null,8,["onClick"])])):(0,a.createCommentVNode)("",!0)])))),128)),!o.editable&&o.records.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("tr",$w,[(0,a.createElementVNode)("td",Ew,(0,a.toDisplayString)(e.$t("general.total")),1),Tw,((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.columns,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("td",{key:`total-${e}`,class:"orangehrm-timesheet-table-body-cell --center"},(0,a.toDisplayString)(e.total.label),1)))),128)),(0,a.createElementVNode)("td",Bw,(0,a.toDisplayString)(o.subtotal),1)])):(0,a.createCommentVNode)("",!0),o.editable?((0,a.openBlock)(),(0,a.createElementBlock)("tr",Iw,[(0,a.createElementVNode)("td",Lw,[(0,a.createVNode)(m,{name:"plus",class:"orangehrm-timesheet-icon",onClick:r.addRow},null,8,["onClick"]),(0,a.createVNode)(p,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.add_row")),1)])),_:1})])])):(0,a.createCommentVNode)("",!0),0===o.records.length?((0,a.openBlock)(),(0,a.createElementBlock)("tr",Uw,[(0,a.createElementVNode)("td",Aw,(0,a.toDisplayString)(e.$t("general.no_records_found")),1)])):(0,a.createCommentVNode)("",!0)])],2)])):((0,a.openBlock)(),(0,a.createElementBlock)("div",gw,[(0,a.createVNode)(s,{type:"warn",show:!0,message:e.$t("time.no_timesheets_found")},null,8,["message"])])),(0,a.createElementVNode)("div",Pw,[(0,a.createElementVNode)("div",qw,[(0,a.renderSlot)(e.$slots,"footer-title",{},void 0,!0)]),(0,a.createElementVNode)("div",Mw,[(0,a.renderSlot)(e.$slots,"footer-options",{},void 0,!0)])]),n.showCommentModal?((0,a.openBlock)(),(0,a.createBlock)(h,{key:3,editable:o.editable,data:n.commentModalState,"timesheet-id":o.timesheetId,onClose:r.onCommentModalClose},null,8,["editable","data","timesheet-id","onClose"])):(0,a.createCommentVNode)("",!0)])),_:3})}function jw(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",options:l.options},null,8,["options"])}var zw={name:"ActivityDropdown",props:{projectId:{type:Number,required:!1,default:null}},setup(e){const t=(0,a.ref)([]),o=new P(window.appGlobal.baseUrl,"");return(0,a.watchEffect)((async()=>{e.projectId?o.request({method:"GET",url:`/api/v2/time/project/${e.projectId}/activities`,params:{limit:0}}).then((({data:e})=>{t.value=e.data.map((e=>({id:e.id,label:e.name,isDeleted:e.deleted})))})):t.value=[]})),{options:t}}};const Rw=(0,r.Z)(zw,[["render",jw],["__scopeId","data-v-51ddd696"]]);var Ow=Rw;function Gw(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",clear:!1,label:e.$t("time.project"),"create-options":r.loadProjects},{option:(0,a.withCtx)((({data:e})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.label),1)])),_:1},8,["label","create-options"])}var Zw={name:"ProjectAutocomplete",props:{onlyAllowed:{type:Boolean,required:!1,default:!0},excludeProjectIds:{type:Array,required:!1,default:()=>[]},excludeCustomerName:{type:Boolean,default:!1}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/projects");return{http:e}},methods:{async loadProjects(e){return new Promise((t=>{if(e.trim()){const o={name:this.excludeCustomerName?e.trim():void 0,onlyAllowed:this.onlyAllowed,model:"detailed",excludeProjectIds:this.excludeProjectIds.length>0?this.excludeProjectIds:void 0,customerOrProjectName:this.excludeCustomerName?void 0:e.trim()};this.http.getAll(o).then((({data:e})=>{t(e.data.map((e=>({id:e.id,label:this.excludeCustomerName?e.name:`${e.customer?.name} - ${e.name}`,_customer:e.customer}))))}))}else t([])}))}}};const Qw=(0,r.Z)(Zw,[["render",Gw],["__scopeId","data-v-35991936"]]);var Hw=Qw;const Ww={class:"orangehrm-modal-header"};function Yw(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{style:{width:"90%",maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Ww,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.comment")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:2,class:"orangehrm-timesheet-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.project"))+": ",1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.projectName),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.activity"))+": ",1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.data.activity.name),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.date"))+": ",1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.commentDate),1)])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.comment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.comment=e),type:"textarea",placeholder:e.$t("general.comment_here"),rules:n.rules.comment,disabled:!o.editable},null,8,["modelValue","placeholder","rules","disabled"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.withDirectives)((0,a.createVNode)(p,null,null,512),[[a.vShow,o.editable]])])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}var Jw={name:"TimesheetCommentModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,required:!0},editable:{type:Boolean,required:!0},timesheetId:{type:Number,required:!0}},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/timesheets"),{locale:t}=De(),{jsDateFormat:o}=R();return{http:e,locale:t,jsDateFormat:o}},data(){return{isLoading:!1,comment:null,rules:{comment:[zt(2e3)]}}},computed:{projectName(){const{project:e,customer:t}=this.data;return e?.label?e.label:`${t?.name} - ${e?.name}`},commentDate(){const{date:e}=this.data;return e?ie(re(e),this.jsDateFormat,{locale:this.locale}):null}},beforeMount(){this.data?.id&&(this.isLoading=!0,this.http.request({method:"GET",url:`/api/v2/time/timesheets/${this.timesheetId}/entries/${this.data.id}/comment`}).then((e=>{const{data:t}=e.data;this.comment=t?.comment})).finally((()=>{this.isLoading=!1})))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",url:`/api/v2/time/timesheets/${this.timesheetId}/entries/comment`,data:{date:this.data.date,comment:this.comment,projectId:this.data.project.id,activityId:this.data.activity.id}}).then((e=>{const{data:t}=e.data;this.$toast.saveSuccess(),this.$emit("close",t)}))},onCancel(){this.comment=null,this.$emit("close")}}};const Xw=(0,r.Z)(Jw,[["render",Yw],["__scopeId","data-v-4867abf0"]]);var Kw=Xw,eN={name:"Timesheet",components:{"oxd-alert":q.OxdAlert,"oxd-loading-spinner":q.OxdSpinner,"activity-dropdown":Ow,"project-autocomplete":Hw,"timesheet-comment-modal":Kw},props:{records:{type:Array,default:()=>[]},columns:{type:Object,required:!1,default:()=>null},subtotal:{type:String,required:!1,default:null},editable:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},timesheetId:{type:Number,default:null}},emits:["update:records"],data(){return{focusedField:null,showCommentModal:!1,commentModalState:null,rules:{project:[xo,e=>null!==e||this.$t("time.select_a_project")],activity:[e=>null!==e||this.$t("time.select_an_activity"),e=>this.records.filter((t=>t.activity?.id===e?.id)).length<2||this.$t("time.duplicate_record")]}}},computed:{days(){return this.columns?Object.keys(this.columns):[]},dailyTotals(){const e={};for(const t in this.columns)e[t]=this.records.reduce(((e,o)=>{const a=fe(o.dates[t]?.duration);return a>0?e+a:e}),0);return e},daysOfWeek(){const e=[this.$t("general.sun"),this.$t("general.mon"),this.$t("general.tue"),this.$t("general.wed"),this.$t("general.thu"),this.$t("general.fri"),this.$t("general.sat")];return this.days.map((t=>{const o=re(t,"yyyy-MM-dd");return{id:o.valueOf(),day:o.getDate(),title:e[o.getDay()]}}))},tableClasses(){return{"orangehrm-timesheet-table":!0,"--editable":this.editable}},fixedColumnClasses(){return{"orangehrm-timesheet-table-header-cell":!0,"--freeze-left":!this.editable}},fixedCellClasses(){return{"orangehrm-timesheet-table-body-cell":!0,"--freeze-left":!this.editable}}},methods:{deleteRow(e){const t=this.records.filter(((t,o)=>o!==e));this.syncRecords(t),this.$nextTick().then((()=>{0===t.length&&this.addRow()}))},addRow(){const e=[...this.records,{project:null,activity:null,dates:{}}];this.syncRecords(e)},updateTime(e,t,o){const a=this.records.map(((a,l)=>{if(l===t){const t={[o]:{date:o,duration:e,id:a.dates[o]?.id,comment:a.dates[o]?.comment}};a.dates={...a.dates,...t}}return a}));this.syncRecords(a)},updateComment(e,t,o,a){const l=this.records.map(((l,n)=>{if(n===o){const o={[a]:{id:e,date:a,comment:t,duration:l.dates[a]?.duration}};l.dates={...l.dates,...o}}return l}));this.syncRecords(l)},updateProject(e,t){const o=this.records.map(((o,a)=>(a===t&&(o.project=e||null,o.customer=e?._customer?e._customer:null),o)));this.updateActivity(null,t),this.syncRecords(o)},updateActivity(e,t){const o=this.records.map(((o,a)=>(a===t&&(o.activity=e?{id:e.id,name:e.label}:null),o)));this.syncRecords(o)},syncRecords(e){this.editable&&this.$emit("update:records",e)},viewComment(e,t,o,a){e.project?.id&&e.activity?.id?(this.commentModalState={date:a,index:o,id:t?.id,project:e.project,activity:e.activity,customer:e.customer},this.showCommentModal=!0):this.$toast.warn({title:this.$t("general.warning"),message:this.$t("time.select_a_project_and_an_activity")})},onCommentModalClose(e){if(e){const{id:t,comment:o}=e,{index:a,date:l}=this.commentModalState;this.updateComment(t,o,a,l)}this.showCommentModal=!1,this.commentModalState=null},getProject(e){const{project:t,customer:o}=e;return t&&t.label?t:t&&o?{id:t.id,label:`${o.name} - ${t.name}`}:null},getActivity(e){return e?{id:e.id,label:e.name}:null},getDuration(e){return e?.duration?e.duration:null},getCommentIcon(e){return e?.comment?"chat-dots-fill":"chat-dots"},isCommentVisible(e,t,o){return!!e?.comment||!!this.editable&&(this.focusedField&&this.focusedField.index===t&&this.focusedField.date===o)},onDurationFocus(e,t){this.focusedField={index:e,date:t}},onDurationBlur(){this.focusedField=null},validateDuration(e){const t=e=>""===e||null===e||fe(e)>=0||this.$t("time.should_be_less_than_24_and_in_hh_mm_or_decimal_format"),o=()=>!(this.dailyTotals[e]>86400)||this.$t("time.total_should_be_less_than_24_hours");return[t,o]}}};const tN=(0,r.Z)(eN,[["render",Fw],["__scopeId","data-v-425cbc6c"]]);var oN=tN;function aN(e){const t=(0,a.reactive)({isLoading:!1,employee:null,timesheet:null,timesheetId:null,timesheetRecords:[],timesheetStatus:null,timesheetColumns:null,timesheetSubtotal:null,timesheetAllowedActions:[],date:null}),o=(t,o)=>e.request({method:"GET",url:"/api/v2/time/timesheets/default",params:{date:t,empNumber:o}}),l=(t,o,a,l)=>e.request({method:"PUT",url:l?`/api/v2/time/employees/${l}/timesheets/${t}`:`/api/v2/time/timesheets/${t}`,data:{action:o,comment:a||void 0}}),n=(t,o)=>new Promise((a=>{e.request({method:"GET",url:o?`/api/v2/time/employees/timesheets/${t}/entries`:`/api/v2/time/timesheets/${t}/entries`}).then((e=>{const{data:t,meta:o}=e.data,{timesheet:l,allowedActions:n}=o;a({data:t,meta:o,timesheet:l,allowedActions:n})}))})),r=(t,o,a)=>e.request({method:"PUT",url:a?`/api/v2/time/employees/timesheets/${t}/entries`:`/api/v2/time/timesheets/${t}/entries`,data:{...o}});return{state:t,fetchTimesheet:o,updateTimesheet:l,fetchTimesheetEntries:n,updateTimesheetEntries:r}}function lN(e,t,o){const{state:l,fetchTimesheet:n,updateTimesheet:r,fetchTimesheetEntries:i}=aN(e),{noRecordsFound:s,success:d}=yt(),{$t:c}=Se(),{jsDateFormat:m}=R(),{locale:u}=De();l.date=t||ie(ne(),"yyyy-MM-dd");const p=e=>{e&&null===re(e)||(l.isLoading=!0,n(e,o).then((e=>{const{data:t}=e.data;return l.timesheet=t,l.timesheetId=t.id,t.id?i(t.id,void 0!==o):null})).then((e=>{if(null!==e){const{data:t,meta:o,timesheet:a,allowedActions:n}=e;l.timesheetRecords=t,l.employee=o.employee,l.timesheetColumns=o.columns,l.timesheetSubtotal=o.sum.label,l.timesheetStatus=a.status.name,l.timesheetAllowedActions=n,0===t.length&&s()}else l.employee=null,l.timesheetRecords=[],l.timesheetColumns=null,l.timesheetStatus=null,l.timesheetSubtotal=null,l.timesheetAllowedActions=[]})).finally((()=>{l.isLoading=!1})))};(0,a.watchEffect)((async()=>l.date&&p(l.date)));const h=()=>{const e=re(String(l.date),"yyyy-MM-dd")??ne();e.setDate(e.getDate()-7),l.date=ie(e,"yyyy-MM-dd")},g=()=>{const e=re(String(l.date),"yyyy-MM-dd")??ne();e.setDate(e.getDate()+7),l.date=ie(e,"yyyy-MM-dd")},v=()=>{l.timesheetId&&U("/time/editTimesheet/{id}",{id:l.timesheetId})},f=()=>{l.timesheetId&&(l.isLoading=!0,r(l.timesheetId,"SUBMIT",null,o).then((()=>{d({title:c("general.success"),message:c("time.timesheet_submitted")}),l.timesheetId=null,p(l.date)})))},y=()=>{l.timesheetId&&(l.isLoading=!0,r(l.timesheetId,"RESET",null,o).then((()=>{d({title:c("general.success"),message:c("time.timesheet_reset")}),l.timesheetId=null,p(l.date)})))},C=e=>{l.timesheetId&&(l.isLoading=!0,r(l.timesheetId,"APPROVE",e,o).then((()=>{d({title:c("general.success"),message:c("time.timesheet_approved")}),l.timesheetId=null,p(l.date)})))},b=e=>{l.timesheetId&&(l.isLoading=!0,r(l.timesheetId,"REJECT",e,o).then((()=>{d({title:c("general.success"),message:c("time.timesheet_rejected")}),l.timesheetId=null,p(l.date)})))},V=()=>{l.isLoading=!0,e.request({method:"POST",url:o?`/api/v2/time/employees/${o}/timesheets`:"/api/v2/time/timesheets",data:{date:l.date}}).then((()=>{d({title:c("general.success"),message:c("time.timesheet_successfully_created")}),p(l.date)}))},x=(0,a.computed)((()=>!l.isLoading&&!l.timesheetId)),w=(0,a.computed)((()=>l.timesheetAllowedActions.find((e=>"SUBMIT"===e.action)))),N=(0,a.computed)((()=>l.timesheetAllowedActions.find((e=>"APPROVE"===e.action)))),_=(0,a.computed)((()=>l.timesheetAllowedActions.find((e=>"REJECT"===e.action)))),k=(0,a.computed)((()=>l.timesheetAllowedActions.find((e=>"RESET"===e.action)))),S=(0,a.computed)((()=>l.timesheetAllowedActions.find((e=>"MODIFY"===e.action)))),D=(0,a.computed)((()=>{const e=re(String(l.date),"yyyy-MM-dd")??ne();return e>ne()})),$=(0,a.computed)((()=>{const e=re(l.timesheet?.startDate||""),t=re(l.timesheet?.endDate||"");return e&&t?`${ie(e,m,{locale:u})} ${c("general.to").toLowerCase()} ${ie(t,m,{locale:u})}`:null}));return{state:l,onClickEdit:v,onClickNext:g,onClickReset:y,onClickSubmit:f,onClickReject:b,onClickApprove:C,onClickPrevious:h,timesheetPeriod:$,canEditTimesheet:S,canResetTimesheet:k,canSubmitTimesheet:w,canRejectTimesheet:_,canCreateTimesheet:D,canApproveTimesheet:N,showCreateTimesheet:x,onClickCreateTimesheet:V}}const nN={class:"orangehrm-timeperiod-picker"};function rN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon-button"),d=(0,a.resolveComponent)("date-input");return(0,a.openBlock)(),(0,a.createElementBlock)("div",nN,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timeperiod-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.timesheet_period")),1)])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-timeperiod-icon --prev",name:"chevron-left",onClick:t[0]||(t[0]=t=>e.$emit("previous",t))}),(0,a.createVNode)(d,(0,a.normalizeProps)((0,a.guardReactiveProps)(e.$attrs)),null,16),(0,a.createVNode)(s,{class:"orangehrm-timeperiod-icon --next",name:"chevron-right",onClick:t[1]||(t[1]=t=>e.$emit("next",t))})])}var iN={name:"TimesheetPeriod",inheritAttrs:!1,emits:["previous","next"]};const sN=(0,r.Z)(iN,[["render",rN],["__scopeId","data-v-e0a5176c"]]);var dN=sN;const cN={key:0,class:"orangehrm-paper-container"},mN={class:"orangehrm-header-container"},uN={class:"orangehrm-container"},pN={class:"orangehrm-bottom-container"},hN={key:1};function gN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-card-table"),d=(0,a.resolveComponent)("oxd-pagination");return l.total>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",cN,[(0,a.createElementVNode)("div",mN,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.actions_performed_on_the_timesheet")),1)])),_:1})]),(0,a.createElementVNode)("div",uN,[(0,a.createVNode)(s,{headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items","loading"])]),(0,a.createElementVNode)("div",pN,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])):((0,a.openBlock)(),(0,a.createElementBlock)("div",hN))}var vN={name:"TimesheetActions",props:{timesheetId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/time/timesheets/${e.timesheetId}/action-logs`),{$t:o}=Se(),{jsDateFormat:a}=R(),{locale:l}=De(),n=e=>e.map((e=>{let t,n=e.action?.label;const r=e.performedEmployee?.firstName,i=e.performedEmployee?.lastName;switch(n){case"Submitted":n=o("time.submitted");break;case"Rejected":n=o("leave.rejected");break;case"Not Submitted":n=o("time.not_submitted");break;case"Approved":n=o("time.approved");break}return t=r&&i?`${r} ${i}`:o("general.purged_employee"),e.performedEmployee?.terminationId&&(t+=` (${o("general.past_employee")})`),{id:e.id,action:n,date:ie(re(e.date),a,{locale:l}),comment:e.comment,performedBy:t}})),{showPaginator:r,currentPage:i,total:s,pages:d,pageSize:c,response:m,isLoading:u,execQuery:p}=wt(t,{toastNoRecords:!1,normalizer:n});return{http:t,showPaginator:r,currentPage:i,isLoading:u,total:s,pages:d,pageSize:c,execQuery:p,items:m}},data(){return{headers:[{name:"action",slot:"title",title:this.$t("general.actions"),style:{flex:1}},{name:"performedBy",title:this.$t("general.performed_by"),style:{flex:1}},{name:"date",title:this.$t("general.date"),style:{flex:1}},{name:"comment",cellType:"oxd-table-cell-truncate",title:this.$t("general.comment"),style:{flex:1}}]}}};const fN=(0,r.Z)(vN,[["render",gN]]);var yN=fN,CN={components:{timesheet:oN,"timesheet-period":dN,"timesheet-actions":yN},props:{startDate:{type:String,required:!1,default:null}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/time/timesheets"),{state:o,onClickEdit:l,onClickNext:n,onClickSubmit:r,onClickPrevious:i,timesheetPeriod:s,canEditTimesheet:d,canSubmitTimesheet:c,canCreateTimesheet:m,showCreateTimesheet:u,onClickCreateTimesheet:p}=lN(t,e.startDate);return{onClickEdit:l,onClickNext:n,onClickSubmit:r,onClickPrevious:i,...(0,a.toRefs)(o),timesheetPeriod:s,canEditTimesheet:d,canSubmitTimesheet:c,canCreateTimesheet:m,showCreateTimesheet:u,onClickCreateTimesheet:p}},data(){return{statuses:[{id:1,label:this.$t("time.submitted"),name:"Submitted"},{id:2,label:this.$t("leave.rejected"),name:"Rejected"},{id:3,label:this.$t("time.not_submitted"),name:"Not Submitted"},{id:4,label:this.$t("time.approved"),name:"Approved"}]}},computed:{myTimesheetStatus(){return this.statuses.find((e=>e.name===this.timesheetStatus))?.label||null}}};const bN=(0,r.Z)(CN,[["render",dw]]);var VN=bN;const xN={class:"orangehrm-background-container"};function wN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("timesheet");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xN,[(0,a.createVNode)(d,{records:e.timesheetRecords,"onUpdate:records":t[0]||(t[0]=t=>e.timesheetRecords=t),editable:!0,loading:e.isLoading,"timesheet-id":o.timesheetId,columns:e.timesheetColumns,onSubmitValid:l.onSave},{"header-title":(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.title),1)])),_:1})])),"header-options":(0,a.withCtx)((()=>[r.timesheetDateRange?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,tag:"p",class:"orangehrm-timeperiod-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.timesheet_period")),1)])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.timesheetDateRange),1)])),_:1})])),"footer-options":(0,a.withCtx)((()=>[(0,a.createVNode)(s,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:l.onClickCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{"display-type":"ghost",label:e.$t("general.reset"),onClick:l.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(s,{type:"submit","display-type":"secondary",label:e.$t("general.save")},null,8,["label"])])),_:1},8,["records","loading","timesheet-id","columns","onSubmitValid"])])}var NN={components:{timesheet:oN},props:{myTimesheet:{type:Boolean,default:!1},timesheetId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/time/timesheets");t.setIgnorePath("/api/v2/time/timesheets/[0-9]+/entries");let o=[];const{saveSuccess:l}=yt(),{state:n,fetchTimesheetEntries:r,updateTimesheetEntries:i}=aN(t),{jsDateFormat:s}=R(),{locale:d}=De(),{$tEmpName:c}=xa(),m=()=>{n.isLoading=!0,o=[],n.timesheetRecords=[],r(e.timesheetId,!e.myTimesheet).then((e=>{const{data:t,meta:a,timesheet:l,allowedActions:r}=e;n.timesheet=l,n.employee=a.employee,n.timesheetColumns=a.columns,n.timesheetSubtotal=a.sum.label,n.timesheetStatus=l.status.name,n.timesheetAllowedActions=r,t.length>0?(n.timesheetRecords=t,o=JSON.parse(JSON.stringify(t))):(n.timesheetRecords.push({project:null,activity:null,dates:{}}),o.push({project:null,activity:null,dates:{}})),n.isLoading=!1}))},u=()=>m(),p=()=>{e.myTimesheet?U("/time/viewMyTimesheet",{},{startDate:n.timesheet.startDate}):U("/time/viewTimesheet/employeeId/{id}",{id:n.employee?.empNumber},{startDate:n.timesheet.startDate})},h=()=>{n.isLoading=!0;const t={entries:n.timesheetRecords.map((e=>{const t={};for(const o in e.dates){const a=fe(e.dates[o].duration);t[o]={duration:a>0?ve(a):"00:00"}}return{projectId:e.project.id,activityId:e.activity.id,dates:t}})),deletedEntries:o.filter((e=>!!e.project&&n.timesheetRecords.findIndex((t=>t.project.id===e.project.id&&t.activity.id===e.activity.id))<0)).map((e=>({projectId:e.project.id,activityId:e.activity.id})))};i(e.timesheetId,t,!e.myTimesheet).then((()=>l())).catch((()=>l())).then((()=>{p()}))};return(0,a.onBeforeMount)((()=>m())),{onSave:h,onClickReset:u,onClickCancel:p,...(0,a.toRefs)(n),jsDateFormat:s,locale:d,translateEmpName:c}},computed:{title(){if(this.myTimesheet)return this.$t("time.edit_timesheet");if(this.employee){const e=this.translateEmpName(this.employee,{includeMiddle:!1,excludePastEmpTag:!1});return`${this.$t("time.edit_timesheet_for")} ${e}`}return""},timesheetDateRange(){if(!this.timesheet)return"";const e=ie(re(this.timesheet.startDate),this.jsDateFormat,{locale:this.locale}),t=ie(re(this.timesheet.endDate),this.jsDateFormat,{locale:this.locale});return`${e} - ${t}`}}};const _N=(0,r.Z)(NN,[["render",wN],["__scopeId","data-v-54f42850"]]);var kN=_N;const SN={class:"orangehrm-background-container"},DN=(0,a.createElementVNode)("br",null,null,-1),$N={class:"orangehrm-paper-container"},EN={key:0,class:"orangehrm-header-container"},TN={class:"orangehrm-container"},BN={class:"orangehrm-bottom-container"};function IN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("customer-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("project-autocomplete"),c=(0,a.resolveComponent)("project-admin-autocomplete"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-divider"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("oxd-table-filter"),C=(0,a.resolveComponent)("table-header"),b=(0,a.resolveComponent)("oxd-card-table"),V=(0,a.resolveComponent)("oxd-pagination"),x=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",SN,[(0,a.createVNode)(y,{"filter-title":e.$t("general.projects")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{onSubmitValid:r.filterItems,onReset:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.customer,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.customer=e),rules:n.rules.customer},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.project,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.project=e),"exclude-customer-name":!0,rules:n.rules.project},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.projectAdmin,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.projectAdmin=e),"show-delete":!1,rules:n.rules.projectAdmin},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{type:"reset","display-type":"ghost",label:e.$t("general.reset")},null,8,["label"]),(0,a.createVNode)(g,{label:e.$t("general.search")},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),DN,(0,a.createElementVNode)("div",$N,[e.$can.create("time_projects")?((0,a.openBlock)(),(0,a.createElementBlock)("div",EN,[(0,a.createVNode)(h,{"icon-name":"plus","display-type":"secondary",label:e.$t("general.add"),onClick:r.onClickAdd},null,8,["label","onClick"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(C,{selected:n.checkedItems.length,loading:l.isLoading,total:l.total,"show-divider":e.$can.create("time_projects"),onDelete:r.onClickDeleteSelected},null,8,["selected","loading","total","show-divider","onDelete"]),(0,a.createElementVNode)("div",TN,[(0,a.createVNode)(b,{selected:n.checkedItems,"onUpdate:selected":t[3]||(t[3]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[4]||(t[4]=e=>l.sortDefinition=e),headers:r.headers,items:l.items?.data,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card",selectable:e.$can.delete("time_projects")},null,8,["selected","order","headers","items","loading","selectable"])]),(0,a.createElementVNode)("div",BN,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,current:l.currentPage,"onUpdate:current":t[5]||(t[5]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(x,{ref:"deleteDialog"},null,512)])}function LN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",clear:!1,label:e.$t("time.customer_name"),"create-options":r.loadCustomers},{option:(0,a.withCtx)((({data:e})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.label),1)])),_:1},8,["label","create-options"])}var UN={name:"CustomerAutocomplete",setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/customers");return{http:e}},methods:{async loadCustomers(e){return new Promise((t=>{e.trim()?this.http.getAll({name:e.trim()}).then((({data:e})=>{t(e.data.map((e=>({id:e.id,label:e.name}))))})):t([])}))}}};const AN=(0,r.Z)(UN,[["render",LN]]);var PN=AN;const qN={class:"orangehrm-project-admin-input"};function MN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-icon-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",qN,[(0,a.createVNode)(i,(0,a.mergeProps)({label:o.showDelete?null:e.$t("time.project_admin"),"api-path":"/api/v2/time/project-admins",params:{includeEmployees:o.includeEmployees}},e.$attrs),null,16,["label","params"]),o.showDelete?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,name:"trash-fill",class:"orangehrm-project-delete-icon","with-container":!1,onClick:r.remove},null,8,["onClick"])):(0,a.createCommentVNode)("",!0)])}var FN={name:"ProjectAdminAutocomplete",components:{"employee-autocomplete":Va},inheritAttrs:!1,props:{showDelete:{type:Boolean,required:!0},includeEmployees:{type:String,default:"currentAndPast"}},emits:["remove"],methods:{remove(){this.$emit("remove")}}};const jN=(0,r.Z)(FN,[["render",MN],["__scopeId","data-v-78aa890e"]]);var zN=jN;const RN={customer:null,project:null,projectAdmin:null},ON={"project.name":"ASC","customer.name":"DEFAULT","employee.lastName":"DEFAULT"};var GN={components:{"project-autocomplete":Hw,"customer-autocomplete":PN,"delete-confirmation":Et,"project-admin-autocomplete":zN},props:{unselectableIds:{type:Array,default:()=>[]}},setup(e){const{$t:t}=Se(),{$tEmpName:o}=xa(),l=a=>a.map((a=>{const l=e.unselectableIds.findIndex((e=>e==a.id));return{id:a.id,project:a.name,customer:a.customer?.deleted?a.customer?.name+t("general.deleted"):a.customer?.name,projectAdmins:a.projectAdmins?.map((e=>o(e))).join(", "),isSelectable:-1===l}})),n=(0,a.ref)({...RN}),{sortDefinition:r,sortField:i,sortOrder:s,onSort:d}=Tt({sortDefinition:ON}),c=(0,a.computed)((()=>({customerId:n.value.customer?.id,projectId:n.value.project?.id,empNumber:n.value.projectAdmin?.id,sortField:i.value,sortOrder:s.value,model:"detailed"}))),m=new P(window.appGlobal.baseUrl,"/api/v2/time/projects"),{showPaginator:u,currentPage:p,total:h,pages:g,pageSize:v,response:f,isLoading:y,execQuery:C}=wt(m,{query:c,normalizer:l});return d(C),{http:m,showPaginator:u,currentPage:p,isLoading:y,total:h,pages:g,pageSize:v,execQuery:C,items:f,filters:n,sortDefinition:r}},data(){return{checkedItems:[],rules:{project:[xo],customer:[xo],projectAdmin:[xo]}}},computed:{headers(){const e=[{name:"customer",title:this.$t("time.customer_name"),sortField:"customer.name",style:{flex:"15%"}},{name:"project",slot:"title",title:this.$t("time.project"),sortField:"project.name",style:{flex:"15%"}},{name:"projectAdmins",title:this.$t("time.project_admins"),style:{flex:"20%"}}],t={name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.delete("time_projects")&&(t.cellConfig.delete={onClick:this.onClickDelete,props:{name:"trash"}}),this.$can.update("time_project_activities")&&(t.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),Object.keys(t.cellConfig).length>0&&e.push(t),e}},methods:{onClickAdd(){U("/time/saveProject")},onClickEdit(e){U("/time/saveProject/{id}",{id:e.id})},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("time.not_allowed_to_delete_projects_which_have_time_logged")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData([e.id])}))},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData(e)}))},async deleteData(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()}}};const ZN=(0,r.Z)(GN,[["render",IN]]);var QN=ZN;const HN={class:"orangehrm-background-container"},WN={class:"orangehrm-card-container"},YN=(0,a.createElementVNode)("br",null,null,-1);function JN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("customer-autocomplete"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("project-admin-autocomplete"),g=(0,a.resolveComponent)("oxd-form-row"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form"),b=(0,a.resolveComponent)("add-customer-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",HN,[(0,a.createElementVNode)("div",WN,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.add_project")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.project.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.project.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(m,{key:n.project.customer,modelValue:n.project.customer,"onUpdate:modelValue":t[1]||(t[1]=e=>n.project.customer=e),rules:n.rules.customer,label:e.$t("time.customer_name"),required:""},null,8,["modelValue","rules","label"])),(0,a.createVNode)(u,{"icon-name":"plus","display-type":"text",class:"orangehrm-input-field-bottom-space",label:e.$t("time.add_customer"),onClick:r.onClickAddCustomer},null,8,["label","onClick"])])),_:1})])),_:1}),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.project.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.project.description=e),type:"textarea",label:e.$t("general.description"),rules:n.rules.description,placeholder:e.$t("general.type_description_here")},null,8,["modelValue","label","rules","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.projectAdmins,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(h,{key:t,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,"show-delete":t>0,rules:n.rules.projectAdmin,"include-employees":"onlyCurrent",onRemove:e=>r.onRemoveAdmin(t)},null,8,["modelValue","onUpdate:modelValue","show-delete","rules","onRemove"])))),128)),n.projectAdmins.length<5?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"icon-name":"plus","display-type":"text",label:e.$t("general.add_another"),onClick:r.onAddAnother},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})])),_:1}),YN,(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),n.showCustomerModal?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0,onClose:r.onCustomerModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)])}const XN={class:"orangehrm-modal-header"};function KN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(g,{style:{width:"90%",maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",XN,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.add_customer")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(h,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.customer.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.customer.description=e),type:"textarea",label:e.$t("general.description"),placeholder:"Type description here",rules:n.rules.description},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,{class:"orangehrm-form-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(u,{"display-type":"secondary",label:e.$t("general.save"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const e_={id:"",name:"",description:""};var t_={name:"AddCustomerModal",components:{"oxd-dialog":q.OxdDialog},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/customers");return e.setIgnorePath("/api/v2/time/validation/customer-name"),{http:e}},data(){return{isLoading:!1,customer:{...e_},rules:{name:[jt,zt(50),(0,q.promiseDebounce)(this.validateCustomerName,500)],description:[zt(255)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.customer.name,description:this.customer.description}).then((e=>{const{data:t}=e.data;this.$toast.saveSuccess(),this.$emit("close",t)}))},onCancel(){this.$emit("close")},validateCustomerName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/time/validation/customer-name",params:{customerName:this.customer.name.trim()}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const o_=(0,r.Z)(t_,[["render",KN]]);var a_=o_;const l_={name:null,customer:null,description:null,projectAdminEmpNumbers:[]};var n_={name:"ProjectSave",components:{"add-customer-modal":a_,"customer-autocomplete":PN,"project-admin-autocomplete":zN},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/projects");return e.setIgnorePath("/api/v2/time/validation/project-name"),{http:e}},data(){return{isLoading:!1,showCustomerModal:!1,projectAdmins:[{value:null}],project:{...l_},projectId:null,rules:{name:[jt,zt(50),(0,q.promiseDebounce)(this.validateProjectName,500)],description:[zt(255)],customer:[jt,xo],projectAdmin:[xo,e=>this.projectAdmins.filter((({value:t})=>t&&t.id===e?.id)).length<2||this.$t("general.already_exists")]}}},methods:{onClickAddCustomer(){this.showCustomerModal=!0},onCustomerModalClose(e){if(void 0!==e){const{id:t,name:o}=e;this.project.customer={id:t,label:o}}this.showCustomerModal=!1},onAddAnother(){this.projectAdmins.length<5&&this.projectAdmins.push({value:null})},onRemoveAdmin(e){this.projectAdmins.splice(e,1)},onCancel(){U("/time/viewProjects")},onSave(){this.isLoading=!0,this.http.create({name:this.project.name,description:this.project.description,customerId:this.project.customer.id,projectAdminsEmpNumbers:this.projectAdmins.map((({value:e})=>e&&e.id)).filter(Number)}).then((e=>(this.projectId=e.data?.data.id,this.$toast.saveSuccess()))).then((()=>{U("/time/saveProject/{id}",{id:this.projectId})}))},validateProjectName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/time/validation/project-name",params:{projectName:this.project.name.trim(),customerId:this.project.customer?.id}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const r_=(0,r.Z)(n_,[["render",JN]]);var i_=r_;const s_={class:"orangehrm-background-container"},d_={class:"orangehrm-card-container"},c_=(0,a.createElementVNode)("br",null,null,-1),m_=(0,a.createElementVNode)("br",null,null,-1);function u_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("customer-autocomplete"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("project-admin-autocomplete"),g=(0,a.resolveComponent)("oxd-form-row"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form"),b=(0,a.resolveComponent)("activities"),V=(0,a.resolveComponent)("add-customer-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",s_,[(0,a.createElementVNode)("div",d_,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.edit_project")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.project.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.project.name=e),label:e.$t("general.name"),rules:n.rules.name,disabled:!e.$can.update("time_projects"),required:""},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(m,{key:n.project.customer,modelValue:n.project.customer,"onUpdate:modelValue":t[1]||(t[1]=e=>n.project.customer=e),label:e.$t("time.customer_name"),rules:n.rules.customer,disabled:!e.$can.update("time_projects"),required:""},null,8,["modelValue","label","rules","disabled"])),e.$can.update("time_projects")?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"icon-name":"plus","display-type":"text",class:"orangehrm-input-field-bottom-space",label:e.$t("time.add_customer"),onClick:r.onClickAddCustomer},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.project.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.project.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),disabled:!e.$can.update("time_projects"),rules:n.rules.description},null,8,["modelValue","label","placeholder","disabled","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.projectAdmins,((t,o)=>((0,a.openBlock)(),(0,a.createBlock)(h,{key:o,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,rules:n.rules.projectAdmin,"show-delete":o>0&&e.$can.update("time_projects"),disabled:!e.$can.update("time_projects"),"include-employees":"onlyCurrent",onRemove:e=>r.onRemoveAdmin(o)},null,8,["modelValue","onUpdate:modelValue","rules","show-delete","disabled","onRemove"])))),128)),n.projectAdmins.length<5&&e.$can.update("time_projects")?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"icon-name":"plus","display-type":"text",label:e.$t("general.add_another"),onClick:r.onAddAnother},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})])),_:1}),c_,(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),e.$can.update("time_projects")?((0,a.openBlock)(),(0,a.createBlock)(f,{key:0})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),m_,(0,a.createVNode)(b,{"project-id":o.projectId,"unselectable-ids":o.unselectableIds},null,8,["project-id","unselectable-ids"]),n.showCustomerModal?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,onClose:r.onCustomerModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)])}const p_={class:"orangehrm-paper-container"},h_={class:"orangehrm-header-container"},g_={class:"orangehrm-main-actions"},v_={class:"orangehrm-container"},f_={class:"orangehrm-bottom-container"};function y_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation"),p=(0,a.resolveComponent)("copy-activity-modal"),h=(0,a.resolveComponent)("save-activity-modal"),g=(0,a.resolveComponent)("edit-activity-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",p_,[(0,a.createElementVNode)("div",h_,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.activities")),1)])),_:1}),(0,a.createElementVNode)("div",g_,[(0,a.createVNode)(s,{label:e.$t("time.copy_from"),"display-type":"ghost",onClick:r.onClickCopyFrom},null,8,["label","onClick"]),(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{total:l.total,loading:l.isLoading,selected:n.checkedItems.length,onDelete:r.onClickDeleteSelected},null,8,["total","loading","selected","onDelete"]),(0,a.createElementVNode)("div",v_,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",f_,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512),n.showCopyFromModal?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,"project-id":o.projectId,onClose:r.onCloseModal},null,8,["project-id","onClose"])):(0,a.createCommentVNode)("",!0),n.showSaveActivityModal?((0,a.openBlock)(),(0,a.createBlock)(h,{key:1,"project-id":o.projectId,onClose:r.onCloseModal},null,8,["project-id","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditActivityModal?((0,a.openBlock)(),(0,a.createBlock)(g,{key:2,"project-id":o.projectId,"activity-id":n.editActivityModalState,onClose:r.onCloseModal},null,8,["project-id","activity-id","onClose"])):(0,a.createCommentVNode)("",!0)])}const C_={class:"orangehrm-modal-header"};function b_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("project-autocomplete"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid-item"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(C,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",C_,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.copy_activity")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.project,"onUpdate:modelValue":t[0]||(t[0]=e=>n.project=e),rules:n.rules.project,"only-allowed":!1,label:e.$t("time.project_name"),"exclude-project-ids":[o.projectId],required:""},null,8,["modelValue","rules","label","exclude-project-ids"])])),_:1}),n.activities&&n.activities.length>0?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(s),(0,a.createVNode)(p,{cols:2,class:"orangehrm-activites-container"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.activities,(e=>((0,a.openBlock)(),(0,a.createBlock)(u,{key:e.id},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.selectedActivities,"onUpdate:modelValue":t[1]||(t[1]=e=>n.selectedActivities=e),type:"checkbox",value:e.id,disabled:!e.unique,"option-label":e.name},null,8,["modelValue","value","disabled","option-label"])])),_:2},1024)))),128))])),_:1})],64)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}var V_={name:"CopyActivityModal",components:{"oxd-dialog":q.OxdDialog,"project-autocomplete":Hw},props:{projectId:{type:Number,required:!0}},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"");return{http:e}},data(){return{isLoading:!1,project:null,activities:null,selectedActivities:[],rules:{project:[jt,xo,()=>{if(null!==this.activities&&0===this.activities.length)return this.$t("time.no_assigned_activities");if(Array.isArray(this.activities)&&0===this.selectedActivities.length){const e=this.activities.find((e=>!0===e.unique));return e?this.$t("time.no_activities_selected"):this.$t("general.already_exists")}return!0}]}}},watch:{project(e){this.activities=null,this.selectedActivities=[],e&&(this.isLoading=!0,this.http.request({method:"GET",url:`/api/v2/time/projects/${this.projectId}/activities/copy/${e.id}`,params:{limit:0}}).then((e=>{const{data:t}=e.data;this.activities=t,this.selectedActivities=Array.isArray(t)?t.filter((e=>!0===e.unique)).map((e=>e.id)):[],this.isLoading=!1})))}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"POST",url:`/api/v2/time/projects/${this.projectId}/activities/copy/${this.project.id}`,data:{activityIds:this.selectedActivities}}).then((()=>{this.$toast.updateSuccess(),this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const x_=(0,r.Z)(V_,[["render",b_],["__scopeId","data-v-789130a9"]]);var w_=x_;const N_={class:"orangehrm-modal-header"};function __(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",N_,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.add_project_activity")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}var k_={name:"SaveActivityModal",components:{"oxd-dialog":q.OxdDialog},props:{projectId:{type:Number,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/time/project/${e.projectId}/activities`);return{http:t}},data(){return{isLoading:!1,name:"",rules:{name:[jt,zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;t&&this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return!(o>-1)||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.name}).then((()=>{this.$toast.saveSuccess(),this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const S_=(0,r.Z)(k_,[["render",__]]);var D_=S_;const $_={class:"orangehrm-modal-header"};function E_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",$_,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.edit_project_activity")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}var T_={name:"SaveActivityModal",components:{"oxd-dialog":q.OxdDialog},props:{projectId:{type:Number,required:!0},activityId:{type:Number,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/time/project/${e.projectId}/activities`);return{http:t}},data(){return{isLoading:!1,name:"",rules:{name:[jt,zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.activityId).then((e=>{const{data:t}=e.data;return this.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.activityId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.activityId,{name:this.name}).then((()=>{this.$toast.updateSuccess(),this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const B_=(0,r.Z)(T_,[["render",E_]]);var I_=B_,L_={name:"Activities",components:{"copy-activity-modal":w_,"save-activity-modal":D_,"edit-activity-modal":I_,"delete-confirmation":Et},props:{projectId:{type:Number,required:!0},unselectableIds:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/time/project/${e.projectId}/activities`),o=t=>t.map((t=>{const o=e.unselectableIds.findIndex((e=>e==t.id));return{...t,isSelectable:-1===o}})),{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(t,{normalizer:o});return{http:t,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("time.activity_name"),style:{"flex-basis":"80%"}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showCopyFromModal:!1,showSaveActivityModal:!1,showEditActivityModal:!1,editActivityModalState:null}},methods:{onClickAdd(){this.showSaveActivityModal=!0},onClickEdit(e){this.editActivityModalState=e.id,this.showEditActivityModal=!0},onClickCopyFrom(){this.showCopyFromModal=!0},onCloseModal(){this.showCopyFromModal=!1,this.showSaveActivityModal=!1,this.showEditActivityModal=!1,this.resetDataTable()},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("time.not_allowed_to_delete_project_activities_which_have_time_logged_against")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>{this.$toast.deleteSuccess(),this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const U_=(0,r.Z)(L_,[["render",y_],["__scopeId","data-v-78f3e421"]]);var A_=U_;const P_={name:null,customer:{id:null,label:null},description:null,projectAdminEmpNumbers:[]};var q_={name:"ProjectEdit",components:{activities:A_,"add-customer-modal":a_,"customer-autocomplete":PN,"project-admin-autocomplete":zN},props:{projectId:{type:Number,required:!0},unselectableIds:{type:Array,default:()=>[]}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/projects");return e.setIgnorePath("/api/v2/time/validation/project-name"),{http:e}},data(){return{isLoading:!1,projectAdmins:[{value:null}],project:{...P_},showCustomerModal:!1,rules:{name:[jt,zt(50)],description:[zt(255)],customer:[jt,xo],projectAdmin:[xo,e=>this.projectAdmins.filter((({value:t})=>t&&t.id===e?.id)).length<2||this.$t("general.already_exists")]}}},beforeMount(){this.isLoading=!0;const{$tEmpName:e}=xa();this.http.get(this.projectId,{model:"detailed"}).then((t=>{const{data:o}=t.data;this.project.name=o.name,this.project.description=o.description,this.project.customer={id:o.customer.id,label:o.customer.name},Array.isArray(o.projectAdmins)&&o.projectAdmins.length>0&&(this.projectAdmins=o.projectAdmins.map((t=>({value:{id:t.empNumber,label:e(t,{includeMiddle:!0,excludePastEmpTag:!0}),isPastEmployee:!!t.terminationId}}))))})).finally((()=>{this.rules.name.push((0,q.promiseDebounce)(this.validateProjectName,500)),this.isLoading=!1}))},methods:{onClickAddCustomer(){this.showCustomerModal=!0},onCustomerModalClose(e){if(void 0!==e){const{id:t,name:o}=e;this.project.customer={id:t,label:o}}this.showCustomerModal=!1},onAddAnother(){this.projectAdmins.length<5&&this.projectAdmins.push({value:null})},onRemoveAdmin(e){this.projectAdmins.splice(e,1)},onCancel(){U("/time/viewProjects")},onSave(){this.isLoading=!0,this.http.update(this.projectId,{name:this.project.name,description:this.project.description,customerId:this.project.customer.id,projectAdminsEmpNumbers:this.projectAdmins.map((({value:e})=>e&&e.id)).filter(Number)}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},validateProjectName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/time/validation/project-name",params:{projectId:this.projectId,projectName:this.project.name.trim(),customerId:this.project.customer?.id}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const M_=(0,r.Z)(q_,[["render",u_]]);var F_=M_;const j_={class:"orangehrm-background-container"},z_={class:"orangehrm-card-container"},R_=(0,a.createElementVNode)("br",null,null,-1);function O_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("timesheet-pending-actions");return(0,a.openBlock)(),(0,a.createElementBlock)("div",j_,[(0,a.createElementVNode)("div",z_,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.select_employee")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{onSubmitValid:r.viewTimesheet},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employee=e),rules:n.rules.employee,params:{includeEmployees:"currentAndPast"},required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{label:e.$t("general.view")},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])]),R_,(0,a.createVNode)(f)])}const G_={class:"orangehrm-paper-container"},Z_={class:"orangehrm-header-container"},Q_={class:"orangehrm-container"},H_={class:"orangehrm-bottom-container"};function W_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table"),c=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",G_,[(0,a.createElementVNode)("div",Z_,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.timesheets_pending_action")),1)])),_:1})]),(0,a.createVNode)(s,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",Q_,[(0,a.createVNode)(d,{headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items","loading"])]),(0,a.createElementVNode)("div",H_,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])}var Y_={name:"TimesheetPendingActions",setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/employees/timesheets/list"),{$t:t}=Se(),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>{const l=ie(re(e.startDate),o,{locale:a}),n=ie(re(e.endDate),o,{locale:a}),r=`${e.employee?.firstName} ${e.employee?.middleName} ${e.employee?.lastName}`;return e.employee?.terminationId&&t("general.past_employee"),{id:e.id,startDate:e.startDate,empNumber:e.employee.empNumber,period:`${l} - ${n}`,employee:r}})),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(e,{normalizer:l});return{http:e,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"employee",slot:"title",title:this.$t("general.employee_name"),style:{flex:"40%"}},{name:"period",title:this.$t("time.timesheet_period"),style:{flex:"40%"}},{name:"actions",slot:"footer",title:this.$t("general.actions"),style:{flex:"20%"},cellType:"oxd-table-cell-actions",cellConfig:{view:{onClick:this.onClickView,component:"oxd-button",props:{label:this.$t("general.view"),displayType:"text",size:"medium"}}}}]}},methods:{onClickView(e){U("/time/viewTimesheet/employeeId/{empNumber}",{empNumber:e.empNumber},{startDate:e.startDate})}}};const J_=(0,r.Z)(Y_,[["render",W_],["__scopeId","data-v-1a8cbf98"]]);var X_=J_,K_={components:{"employee-autocomplete":Va,"timesheet-pending-actions":X_},data(){return{employee:null,rules:{employee:[jt,xo]}}},methods:{viewTimesheet(){U("/time/viewTimesheet/employeeId/{id}",{id:this.employee?.id})}}};const ek=(0,r.Z)(K_,[["render",O_]]);var tk=ek;const ok={class:"orangehrm-background-container"},ak=(0,a.createElementVNode)("br",null,null,-1),lk=(0,a.createElementVNode)("br",null,null,-1);function nk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("timesheet-period"),d=(0,a.resolveComponent)("oxd-button"),c=(0,a.resolveComponent)("timesheet"),m=(0,a.resolveComponent)("save-timesheet-action"),u=(0,a.resolveComponent)("timesheet-actions");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ok,[(0,a.createVNode)(c,{loading:e.isLoading,columns:e.timesheetColumns,records:e.timesheetRecords,"timesheet-id":e.timesheetId,subtotal:e.timesheetSubtotal},{"header-title":(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.title),1)])),_:1})])),"header-options":(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:e.date,"onUpdate:modelValue":t[0]||(t[0]=t=>e.date=t),value:l.timesheetPeriod,onNext:l.onClickNext,onPrevious:l.onClickPrevious},null,8,["modelValue","value","onNext","onPrevious"])])),"footer-title":(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.status"))+": "+(0,a.toDisplayString)(r.employeeTimesheetStatus),1)])),_:1},512),[[a.vShow,e.timesheetStatus]])])),"footer-options":(0,a.withCtx)((()=>[l.showCreateTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"display-type":"secondary",disabled:l.canCreateTimesheet,label:e.$t("time.create_timesheet"),onClick:l.onClickCreateTimesheet},null,8,["disabled","label","onClick"])):(0,a.createCommentVNode)("",!0),l.canEditTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,"display-type":"ghost",label:e.$t("general.edit"),onClick:l.onClickEdit},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),l.canResetTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:2,"display-type":"ghost",label:e.$t("general.reset"),onClick:l.onClickReset},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),l.canSubmitTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:3,"display-type":"secondary",label:e.$t("general.submit"),onClick:l.onClickSubmit},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","columns","records","timesheet-id","subtotal"]),ak,e.timesheetId&&(l.canRejectTimesheet||l.canApproveTimesheet)?((0,a.openBlock)(),(0,a.createBlock)(m,{key:e.timesheetId,"is-loading":e.isLoading,"reject-timesheet":l.onClickReject,"approve-timesheet":l.onClickApprove,"can-reject-timesheet":!!l.canRejectTimesheet,"can-approve-timesheet":!!l.canApproveTimesheet},null,8,["is-loading","reject-timesheet","approve-timesheet","can-reject-timesheet","can-approve-timesheet"])):(0,a.createCommentVNode)("",!0),lk,e.timesheetId?((0,a.openBlock)(),(0,a.createBlock)(u,{key:e.timesheetId,"timesheet-id":e.timesheetId},null,8,["timesheet-id"])):(0,a.createCommentVNode)("",!0)])}const rk={class:"orangehrm-card-container"};function ik(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rk,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.timesheet_action")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{ref:"formRef",loading:o.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.comment,"onUpdate:modelValue":t[0]||(t[0]=e=>l.comment=e),type:"textarea",placeholder:e.$t("general.type_here_message"),rules:l.rules.comment,label:e.$t("general.comment")},null,8,["modelValue","placeholder","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[o.canRejectTimesheet?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,label:e.$t("general.reject"),"display-type":"danger",onClick:l.onClickReject},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),o.canApproveTimesheet?((0,a.openBlock)(),(0,a.createBlock)(p,{key:1,label:e.$t("general.approve"),"display-type":"success",class:"orangehrm-left-space",onClick:l.onClickApprove},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading"])])}var sk={name:"SaveTimesheetAction",props:{isLoading:{type:Boolean,required:!0},rejectTimesheet:{type:Function,required:!0},approveTimesheet:{type:Function,required:!0},canRejectTimesheet:{type:Boolean,required:!0},canApproveTimesheet:{type:Boolean,required:!0}},setup(e){const{formRef:t,invalid:o,validate:l}=$c(),n=(0,a.ref)(""),r={comment:[zt(250)]},i=()=>{l().then((()=>!1===o.value&&e.approveTimesheet(n.value)))},s=()=>{l().then((()=>!1===o.value&&e.rejectTimesheet(n.value)))};return{rules:r,comment:n,formRef:t,onClickReject:s,onClickApprove:i}}};const dk=(0,r.Z)(sk,[["render",ik]]);var ck=dk,mk={components:{timesheet:oN,"timesheet-period":dN,"timesheet-actions":yN,"save-timesheet-action":ck},props:{employee:{type:Object,required:!0},startDate:{type:String,required:!1,default:null}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/time/timesheets"),{state:o,onClickEdit:l,onClickNext:n,onClickReset:r,onClickSubmit:i,onClickReject:s,onClickApprove:d,onClickPrevious:c,timesheetPeriod:m,canEditTimesheet:u,canResetTimesheet:p,canSubmitTimesheet:h,canRejectTimesheet:g,canCreateTimesheet:v,canApproveTimesheet:f,showCreateTimesheet:y,onClickCreateTimesheet:C}=lN(t,e.startDate,e.employee.empNumber),{employee:b,...V}=(0,a.toRefs)(o),{$tEmpName:x}=xa();return{...V,onClickEdit:l,onClickNext:n,onClickReset:r,onClickSubmit:i,onClickReject:s,onClickApprove:d,onClickPrevious:c,timesheetPeriod:m,canEditTimesheet:u,canResetTimesheet:p,canSubmitTimesheet:h,canRejectTimesheet:g,canCreateTimesheet:v,canApproveTimesheet:f,showCreateTimesheet:y,onClickCreateTimesheet:C,translateEmpName:x}},data(){return{statuses:[{id:1,label:this.$t("time.submitted"),name:"Submitted"},{id:2,label:this.$t("leave.rejected"),name:"Rejected"},{id:3,label:this.$t("time.not_submitted"),name:"Not Submitted"},{id:4,label:this.$t("time.approved"),name:"Approved"}]}},computed:{title(){const e=this.translateEmpName(this.employee,{includeMiddle:!1,excludePastEmpTag:!1});return`${this.$t("time.timesheet_for")} ${e}`},employeeTimesheetStatus(){return this.statuses.find((e=>e.name===this.timesheetStatus))?.label||null}}};const uk=(0,r.Z)(mk,[["render",nk]]);var pk=uk;const hk=e=>((0,a.pushScopeId)("data-v-17d6a43f"),e=e(),(0,a.popScopeId)(),e),gk=hk((()=>(0,a.createElementVNode)("br",null,null,-1)));function vk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("project-autocomplete"),u=(0,a.resolveComponent)("activity-dropdown"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("oxd-text"),g=(0,a.resolveComponent)("oxd-switch-input"),v=(0,a.resolveComponent)("oxd-divider"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("oxd-table-filter"),x=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(x,{module:"time",name:"employee",filters:l.serializedFilters,"column-count":3},{default:(0,a.withCtx)((({generateReport:o})=>[(0,a.createVNode)(V,{"filter-title":e.$t("time.employee_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(b,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:l.rules.employee,params:{includeEmployees:"currentAndPast"},required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.project,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.project=e),rules:l.rules.project,label:e.$t("time.project_name"),"only-allowed":!1},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.activity,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.activity=e),label:e.$t("time.activity_name"),"project-id":l.filters.project&&l.filters.project.id},null,8,["modelValue","label","project-id"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.fromDate=e),placeholder:e.$t("general.from"),rules:l.rules.fromDate,label:e.$t("time.project_date_range")},null,8,["modelValue","placeholder","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.toDate=e),label:" ",placeholder:e.$t("general.to"),rules:l.rules.toDate},null,8,["modelValue","placeholder","rules"])])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-switch-filter --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{class:"orangehrm-switch-filter-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.only_include_approved_timesheets")),1)])),_:1}),(0,a.createVNode)(g,{modelValue:l.filters.timesheetState,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.timesheetState=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{type:"submit","display-type":"secondary",label:e.$t("general.view")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),gk])),footer:(0,a.withCtx)((({data:t})=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(t.meta?t.meta.sum.label:"0.00"),1)])),_:1},8,["filters"])}const fk={employee:null,project:null,activity:null,fromDate:null,toDate:null,timesheetState:!1};var yk={components:{"reports-table":ex,"oxd-switch-input":q.OxdSwitchInput,"activity-dropdown":Ow,"project-autocomplete":Hw,"employee-autocomplete":Va},setup(){const e=(0,a.ref)({...fk}),{$t:t}=Se(),{userDateFormat:o}=R(),l={project:[xo],employee:[jt,xo],fromDate:[Rt(o),co((()=>e.value.toDate),t("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(o),eo((()=>e.value.fromDate),t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]},n=(0,a.computed)((()=>({empNumber:e.value.employee?.id,projectId:e.value.project?.id,activityId:e.value.activity?.id,fromDate:e.value.fromDate,toDate:e.value.toDate,timesheetState:e.value.timesheetState?"onlyApproved":"all"})));return{rules:l,filters:e,serializedFilters:n}}};const Ck=(0,r.Z)(yk,[["render",vk],["__scopeId","data-v-17d6a43f"]]);var bk=Ck;const Vk=e=>((0,a.pushScopeId)("data-v-e0465754"),e=e(),(0,a.popScopeId)(),e),xk=Vk((()=>(0,a.createElementVNode)("br",null,null,-1)));function wk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("project-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("oxd-text"),p=(0,a.resolveComponent)("oxd-switch-input"),h=(0,a.resolveComponent)("oxd-divider"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("oxd-table-filter"),b=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(b,{module:"time",name:"project",prefetch:null!==o.project,filters:l.serializedFilters,"column-count":2},{default:(0,a.withCtx)((({generateReport:o})=>[(0,a.createVNode)(C,{"filter-title":e.$t("time.project_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.project,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.project=e),rules:l.rules.project,label:e.$t("time.project_name"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.fromDate=e),placeholder:e.$t("general.from"),rules:l.rules.fromDate,label:e.$t("time.project_date_range")},null,8,["modelValue","placeholder","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.toDate=e),label:" ",placeholder:e.$t("general.to"),rules:l.rules.toDate},null,8,["modelValue","placeholder","rules"])])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-switch-filter --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{class:"orangehrm-switch-filter-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.only_include_approved_timesheets")),1)])),_:1}),(0,a.createVNode)(p,{modelValue:l.filters.includeTimesheet,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.includeTimesheet=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"submit","display-type":"secondary",label:e.$t("general.view")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),xk])),footer:(0,a.withCtx)((({data:t})=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(t.meta?t.meta.sum.label:"0.00"),1)])),_:1},8,["prefetch","filters"])}const Nk={project:null,fromDate:null,toDate:null,includeTimesheet:!1};var _k={components:{"reports-table":ex,"oxd-switch-input":q.OxdSwitchInput,"project-autocomplete":Hw},props:{project:{type:Object,required:!1,default:null},fromDate:{type:String,required:!1,default:null},toDate:{type:String,required:!1,default:null},includeTimesheet:{type:Boolean,default:!1}},setup(e){const t=(0,a.ref)({...Nk,fromDate:e.fromDate,toDate:e.toDate,includeTimesheet:e.includeTimesheet,...e.project&&{project:e.project}}),{$t:o}=Se(),{userDateFormat:l}=R(),n={project:[jt,xo],fromDate:[Rt(l),co((()=>t.value.toDate),o("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(l),eo((()=>t.value.fromDate),o("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]},r=(0,a.computed)((()=>({projectId:t.value.project?.id,fromDate:t.value.fromDate,toDate:t.value.toDate,includeTimesheet:t.value.includeTimesheet?"onlyApproved":"all"})));return{rules:n,filters:t,serializedFilters:r}}};const kk=(0,r.Z)(_k,[["render",wk],["__scopeId","data-v-e0465754"]]);var Sk=kk;const Dk=e=>((0,a.pushScopeId)("data-v-b9b0d77c"),e=e(),(0,a.popScopeId)(),e),$k=Dk((()=>(0,a.createElementVNode)("br",null,null,-1)));function Ek(e,t,o,l,n,r){const i=(0,a.resolveComponent)("project-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("activity-dropdown"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("date-input"),p=(0,a.resolveComponent)("oxd-text"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("oxd-table-filter"),x=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(x,{module:"time",name:"activity_detailed",prefetch:!0,filters:l.serializedFilters,"column-count":2},{default:(0,a.withCtx)((({generateReport:o})=>[(0,a.createVNode)(V,{"filter-title":e.$t("time.project_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(b,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.project,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.project=e),rules:l.rules.project,label:e.$t("time.project_name"),required:"",disabled:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.activity,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.activity=e),rules:l.rules.activity,label:e.$t("time.activity_name"),"project-id":l.filters.project&&l.filters.project.id,required:""},null,8,["modelValue","rules","label","project-id"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.fromDate=e),placeholder:e.$t("general.from"),rules:l.rules.fromDate,label:e.$t("time.project_date_range"),disabled:""},null,8,["modelValue","placeholder","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.toDate=e),label:" ",placeholder:e.$t("general.to"),rules:l.rules.toDate,disabled:""},null,8,["modelValue","placeholder","rules"])])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-switch-filter --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-switch-filter-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.only_include_approved_timesheets")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:l.filters.includeTimesheet,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.includeTimesheet=e),disabled:""},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.back"),onClick:l.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(y,{label:e.$t("general.view")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),$k])),footer:(0,a.withCtx)((({data:t})=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(t.meta?t.meta.sum.label:"0.00"),1)])),_:1},8,["filters"])}const Tk={project:null,activity:null,fromDate:null,toDate:null,includeTimesheet:!1};var Bk={components:{"reports-table":ex,"oxd-switch-input":q.OxdSwitchInput,"activity-dropdown":Ow,"project-autocomplete":Hw},props:{project:{type:Object,required:!0},activity:{type:Object,required:!0},fromDate:{type:String,required:!1,default:null},toDate:{type:String,required:!1,default:null},includeTimesheet:{type:Boolean,default:!1}},setup(e){const{$t:t}=Se(),o=(0,a.ref)({...Tk,fromDate:e.fromDate,toDate:e.toDate,includeTimesheet:e.includeTimesheet,...e.project&&{project:e.project},...e.activity&&{activity:e.activity}}),{userDateFormat:l}=R(),n={project:[jt],activity:[jt,xo],fromDate:[Rt(l),co((()=>o.value.toDate),t("attendance.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(l),eo((()=>o.value.fromDate),t("attendance.to_date_should_be_after_from_date"),{allowSameDate:!0})]},r=(0,a.computed)((()=>({projectId:o.value.project?.id,activityId:o.value.activity?.id,fromDate:o.value.fromDate,toDate:o.value.toDate,includeTimesheet:o.value.includeTimesheet?"onlyApproved":"all"}))),i=()=>{U("/time/displayProjectReportCriteria",void 0,{projectId:e.project.id,fromDate:e.fromDate,toDate:e.fromDate,includeTimesheet:e.includeTimesheet?"onlyApproved":"all"})};return{rules:n,filters:o,onClickBack:i,serializedFilters:r}}};const Ik=(0,r.Z)(Bk,[["render",Ek],["__scopeId","data-v-b9b0d77c"]]);var Lk=Ik,Uk={"time-sheet-period":Ax,"customer-list":Zx,"customer-save":Kx,"customer-edit":rw,"my-timesheet":VN,"edit-timesheet":kN,"project-list":QN,"project-save":i_,"project-edit":F_,"employee-timesheet":tk,"view-employee-timesheet":pk,"employee-time-report":bk,"project-activity-report":Sk,"activity-details-report":Lk};const Ak={class:"orangehrm-background-container"},Pk={class:"orangehrm-card-container"};function qk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-input-group"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ak,[(0,a.createElementVNode)("div",Pk,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.leave_period")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leavePeriod.startMonth,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leavePeriod.startMonth=e),type:"select",options:r.months,rules:n.rules.startMonth,label:e.$t("leave.start_month"),required:""},null,8,["modelValue","options","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leavePeriod.startDay,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leavePeriod.startDay=e),type:"select",options:r.dates,rules:n.rules.startDay,label:e.$t("general.start_date"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{label:e.$t("general.end_date")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2",class:"orangehrm-leave-period"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.endDay),1)])),_:1})])),_:1},8,["label"])])),_:1}),n.leavePeriod.currentPeriod?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{label:e.$t("leave.current_leave_period")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2",class:"orangehrm-leave-period"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.leavePeriod.currentPeriod),1)])),_:1})])),_:1},8,["label"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Mk={startMonth:null,startDay:null,currentPeriod:null};var Fk={props:{monthDates:{type:Object,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-period"),{jsDateFormat:t}=R(),{locale:o}=De();return{http:e,jsDateFormat:t,locale:o}},data(){return{isLoading:!1,leavePeriod:{...Mk},leavePeriodDefined:!0,rules:{startMonth:[jt],startDay:[jt]}}},computed:{months(){return Array(12).fill("").map(((...[,e])=>({id:e+1,label:this.locale.localize.month(e,{width:"wide"})})))},dates(){return(this.monthDates[this.leavePeriod.startMonth?.id]??[]).map((e=>({id:e,label:String(e).padStart(2,"0")})))},endDay(){const e=this.leavePeriod.startMonth?.id,t=this.leavePeriod.startDay?.id,o=(new Date).getFullYear();if(e&&t){const a=(0,oe.Z)(new Date(o,e-1,t),364),l=a.getFullYear()>o;return ie(a,"LLLL dd",{locale:this.locale})+(l?` (${this.$t("leave.following_year")})`:"")}return"-"}},watch:{"leavePeriod.startMonth":function(){this.leavePeriod.startDay=this.dates.length>0?this.dates[0]:null}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET"}).then((e=>{const{data:t,meta:o}=e.data;this.updateLeavePeriodModel(t),this.defineLeavePeriod(o),this.resetLeavePeriod()})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{startMonth:this.leavePeriod.startMonth?.id,startDay:this.leavePeriod.startDay?.id}}).then((e=>{const{data:t,meta:o}=e.data;return this.updateLeavePeriodModel(t),this.defineLeavePeriod(o),this.resetLeavePeriod(),this.$toast.saveSuccess()})).then((()=>{this.isLoading=!1,this.leavePeriodDefined||A()}))},onClickReset(){this.resetLeavePeriod()},resetLeavePeriod(){this.leavePeriod.startMonth=Mk.startMonth,this.$nextTick((()=>{this.leavePeriod.startDay=Mk.startDay}))},updateLeavePeriodModel(e){Mk.startMonth=this.months.find((t=>t.id===e.startMonth)),this.$nextTick((()=>{Mk.startDay=this.dates.find((t=>t.id===e.startDay))}))},defineLeavePeriod(e){if(!0===e.leavePeriodDefined){this.leavePeriodDefined=e.leavePeriodDefined;const t=ie(re(e.currentLeavePeriod.startDate),this.jsDateFormat,{locale:this.locale}),o=ie(re(e.currentLeavePeriod.endDate),this.jsDateFormat,{locale:this.locale});this.leavePeriod.currentPeriod=`${t} ${this.$t("general.to").toLowerCase()} ${o}`}else this.leavePeriodDefined=!1}}};const jk=(0,r.Z)(Fk,[["render",qk],["__scopeId","data-v-36501732"]]);var zk=jk;const Rk={class:"orangehrm-background-container"},Ok={class:"orangehrm-card-container"};function Gk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("leave-conflict"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("leave-balance"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("date-input"),v=(0,a.resolveComponent)("leave-duration-input"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Rk,[n.showLeaveConflict?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,"workshift-exceeded":n.isWorkShiftExceeded,data:n.leaveConflictData},null,8,["workshift-exceeded","data"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Ok,[(0,a.createVNode)(s,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.apply_leave")),1)])),_:1}),(0,a.createVNode)(d),n.isLoading||0!==n.leaveTypes.length?((0,a.openBlock)(),(0,a.createBlock)(b,{key:1,ref:"formRef",loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.leave.type,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leave.type=e),type:"select",rules:n.rules.type,options:n.leaveTypes,label:e.$t("leave.leave_type"),required:""},null,8,["modelValue","rules","options","label"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"leave-data":n.leave},null,8,["leave-data"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.leave.fromDate,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leave.fromDate=e),label:e.$t("general.from_date"),rules:n.rules.fromDate,years:n.yearsArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.leave.toDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leave.toDate=e),label:e.$t("general.to_date"),rules:n.rules.toDate,years:n.yearsArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1})])),_:1})])),_:1}),1==r.appliedLeaveDuration?((0,a.openBlock)(),(0,a.createBlock)(h,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{duration:n.leave.duration.type,"onUpdate:duration":t[3]||(t[3]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[4]||(t[4]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[5]||(t[5]=e=>n.leave.duration.toTime=e),label:e.$t("general.duration"),"work-shift":o.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),r.appliedLeaveDuration>1?((0,a.openBlock)(),(0,a.createBlock)(h,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.leave.partialOptions,"onUpdate:modelValue":t[6]||(t[6]=e=>n.leave.partialOptions=e),type:"select",label:e.$t("leave.partial_days"),options:n.partialOptions},null,8,["modelValue","label","options"])])),_:1}),r.showDuration?((0,a.openBlock)(),(0,a.createBlock)(v,{key:0,duration:n.leave.duration.type,"onUpdate:duration":t[7]||(t[7]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[8]||(t[8]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[9]||(t[9]=e=>n.leave.duration.toTime=e),partial:!0,label:e.$t("general.duration"),"work-shift":o.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0),r.showStartDay?((0,a.openBlock)(),(0,a.createBlock)(v,{key:1,duration:n.leave.duration.type,"onUpdate:duration":t[10]||(t[10]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[11]||(t[11]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[12]||(t[12]=e=>n.leave.duration.toTime=e),partial:!0,label:e.$t("leave.start_day"),"work-shift":o.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0),r.showEndDay?((0,a.openBlock)(),(0,a.createBlock)(v,{key:2,duration:n.leave.endDuration.type,"onUpdate:duration":t[13]||(t[13]=e=>n.leave.endDuration.type=e),fromTime:n.leave.endDuration.fromTime,"onUpdate:fromTime":t[14]||(t[14]=e=>n.leave.endDuration.fromTime=e),toTime:n.leave.endDuration.toTime,"onUpdate:toTime":t[15]||(t[15]=e=>n.leave.endDuration.toTime=e),partial:!0,label:e.$t("leave.end_day"),"work-shift":o.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.leave.comment,"onUpdate:modelValue":t[16]||(t[16]=e=>n.leave.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{label:e.$t("general.apply")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])):((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.no_leave_types_with_leave_balance")),1)])),_:1}))])])}function Zk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("time-range"),c=(0,a.resolveComponent)("oxd-text"),m=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,{style:{"grid-column-start":"1"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,(0,a.mergeProps)({type:"select"},e.$attrs,{options:r.options,"model-value":o.duration,rules:n.rules.duration,"show-empty-selector":o.partial,required:o.partial,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:duration",t))}),null,16,["options","model-value","rules","show-empty-selector","required"])])),_:1}),o.duration&&4===o.duration.id?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(d,{rules:n.rules,"from-time":o.fromTime,"to-time":o.toTime,"work-shift":o.workShift,"onUpdate:fromTime":t[1]||(t[1]=t=>e.$emit("update:fromTime",t)),"onUpdate:toTime":t[2]||(t[2]=t=>e.$emit("update:toTime",t))},null,8,["rules","from-time","to-time","work-shift"]),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{label:e.$t("general.duration")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-leave-duration",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.selectedTimeDuration),1)])),_:1})])),_:1},8,["label"])])),_:1})],64)):(0,a.createCommentVNode)("",!0)],64)}function Qk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("time-input"),s=(0,a.resolveComponent)("oxd-grid-item");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:e.$t("general.from"),"model-value":o.fromTime,rules:o.rules.fromTime,required:"","onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:fromTime",t))},null,8,["label","model-value","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:e.$t("general.to"),"model-value":o.toTime,rules:o.rules.toTime,required:"","onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:toTime",t))},null,8,["label","model-value","rules"])])),_:1})],64)}var Hk={name:"TimeRange",inheritAttrs:!1,props:{fromTime:{type:String,required:!1,default:null},toTime:{type:String,required:!1,default:null},rules:{type:Object,required:!0,default:()=>({})},workShift:{type:Object,required:!0,default:()=>({})}},emits:["update:fromTime","update:toTime"],mounted(){this.workShift?.startTime&&this.$emit("update:fromTime",this.workShift.startTime),this.workShift?.endTime&&this.$emit("update:toTime",this.workShift.endTime)}};const Wk=(0,r.Z)(Hk,[["render",Qk]]);var Yk=Wk,Jk={name:"LeaveDurationInput",components:{"time-range":Yk},inheritAttrs:!1,props:{duration:{type:Object,required:!1,default:()=>null},fromTime:{type:String,required:!1,default:null},toTime:{type:String,required:!1,default:null},partial:{type:Boolean,default:!1},workShift:{type:Object,required:!0,default:()=>({})}},emits:["update:fromTime","update:toTime","update:duration"],data(){return{rules:{duration:[jt],fromTime:[jt,Gt,uo((()=>this.toTime),this.$t("general.from_time_should_be_before_to_time"))],toTime:[jt,Gt,lo((()=>this.fromTime),this.$t("general.to_time_should_be_after_from_time")),e=>{if(e){const t=ge(this.workShift.startTime,this.workShift.endTime),o=ge(this.fromTime,e);if(o>t)return this.$t("leave.duration_should_be_less_than_work_shift_length")}return!0}]}}},computed:{selectedTimeDuration(){const e=ge(this.fromTime,this.toTime);return(e/3600).toFixed(2)},options(){const e=[{id:1,label:this.$t("leave.full_day"),key:"full_day"},{id:2,label:this.$t("leave.half_day_morning"),key:"half_day_morning"},{id:3,label:this.$t("leave.half_day_evening"),key:"half_day_afternoon"},{id:4,label:this.$t("leave.specify_time"),key:"specify_time"}];return this.partial?e.filter((e=>1!=e.id)):e}}};const Xk=(0,r.Z)(Jk,[["render",Zk],["__scopeId","data-v-75ca43d6"]]);var Kk=Xk;const eS={class:"orangehrm-leave-balance"};function tS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-label"),s=(0,a.resolveComponent)("oxd-icon-button"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(c,null,{label:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",eS,[(0,a.createVNode)(i,{label:e.$t("leave.leave_balance")},null,8,["label"]),o.leaveData.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"--help",name:"question-circle","with-container":!1,onClick:l.onModalOpen},null,8,["onClick"])):(0,a.createCommentVNode)("",!0)])])),default:(0,a.withCtx)((()=>[e.balance>=0?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.leaveBalance),1)])),_:1})):((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,class:"orangehrm-leave-balance-text --error",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.balance_not_sufficient")),1)])),_:1}))])),_:1}),e.showModal?((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(l.leaveBalanceModal),{key:0,data:e.data,meta:e.meta,onClose:l.onModalClose},null,40,["data","meta","onClose"])):(0,a.createCommentVNode)("",!0)],64)}const oS={class:"orangehrm-dialog-header-container"},aS={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},lS={class:"orangehrm-container"},nS={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function rS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-card-table"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(g,{gutters:!1,class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",oS,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.leave_balance_details")),1)])),_:1}),(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.as_of_date"))+" - "+(0,a.toDisplayString)(r.asAtDate),1)])),_:1})]),(0,a.createVNode)(s,{class:"orangehrm-dialog-horizontal-margin orangehrm-clear-margins"}),(0,a.createElementVNode)("div",aS,[(0,a.createVNode)(m,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.employee_name")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.employeeName),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{class:"--offset-column-1",label:e.$t("leave.leave_type")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.leaveType),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("leave.total_entitlement")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.totalEntitlement),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("leave.balance")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.leaveBalance),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})]),(0,a.createElementVNode)("div",lS,[(0,a.createVNode)(u,{headers:n.headers,items:r.items,clickable:!1,class:"orangehrm-horizontal-padding","row-decorator":"oxd-table-decorator-card"},null,8,["headers","items"])]),(0,a.createElementVNode)("div",nS,[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{type:"submit","display-type":"secondary",label:e.$t("general.ok"),onClick:r.onCancel},null,8,["label","onClick"])])),_:1})])])),_:1},8,["onUpdate:show"])}var iS={name:"LeaveBalanceModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>null},meta:{type:Object,default:()=>null}},emits:["close"],setup(){const{jsDateFormat:e}=R(),{locale:t}=De();return{locale:t,jsDateFormat:e}},data(){return{headers:[{title:this.$t("leave.leave_status"),name:"status",slot:"left",style:{flex:1}},{title:this.$t("leave.days"),name:"days",slot:"right",style:{flex:1,textAlign:"right",justifyContent:"flex-end"}}]}},computed:{items(){if(this.data){const{taken:e,scheduled:t,pending:o}=this.data;return[{status:this.$t("leave.taken"),days:e.toFixed(2)},{status:this.$t("leave.scheduled"),days:t.toFixed(2)},{status:this.$t("leave.pending_approval"),days:o.toFixed(2)}]}return[]},asAtDate(){return ie(re(this.data?.asAtDate),this.jsDateFormat,{locale:this.locale})},leaveType(){return this.meta?.leaveType?.name},employeeName(){const e=this.meta?.employee;return e?`${e.firstName} ${e.lastName}\n ${e.terminationId?this.$t("general.past_employee"):""}`:""},totalEntitlement(){return this.data?.entitled?`${parseFloat(this.data.entitled).toFixed(2)} Day(s)`:"0.00 Day(s)"},leaveBalance(){return this.data?.balance?`${parseFloat(this.data.balance).toFixed(2)} Day(s)`:"0.00 Day(s)"}},methods:{onCancel(){this.$emit("close",!0)}}};const sS=(0,r.Z)(iS,[["render",rS],["__scopeId","data-v-a21fbcb8"]]);var dS=sS;const cS={class:"orangehrm-dialog-header-container"},mS={class:"orangehrm-dialog-horizontal-padding orangehrm-dialog-vertical-padding"},uS={class:"orangehrm-container"},pS={class:"orangehrm-dialog-horizontal-padding orangehrm-dialog-vertical-padding"};function hS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-card-table"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(g,{gutters:!1,class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",cS,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.insufficient_leave_balance")),1)])),_:1})]),(0,a.createVNode)(s,{class:"orangehrm-dialog-horizontal-margin orangehrm-clear-margins"}),(0,a.createElementVNode)("div",mS,[(0,a.createVNode)(m,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.employee_name")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.employeeName),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("leave.leave_type")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.leaveType),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("leave.balance")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.leaveBalance),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})]),(0,a.createElementVNode)("div",uS,[(0,a.createVNode)(u,{headers:n.headers,items:r.items,clickable:!1,class:"orangehrm-horizontal-padding","row-decorator":"oxd-table-decorator-card"},null,8,["headers","items"])]),(0,a.createElementVNode)("div",pS,[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{type:"submit","display-type":"secondary",label:e.$t("general.ok"),onClick:r.onCancel},null,8,["label","onClick"])])),_:1})])])),_:1},8,["onUpdate:show"])}var gS={name:"LeaveBalanceInsufficientModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Array,required:!0},meta:{type:Object,default:()=>null}},emits:["close"],setup(){const{jsDateFormat:e}=R(),{locale:t}=De();return{locale:t,jsDateFormat:e}},data(){return{headers:[{title:this.$t("leave.leave_period"),name:"period",style:{flex:1}},{title:this.$t("general.date"),name:"date",style:{flex:1}},{title:this.$t("leave.available_balance"),name:"balance",style:{flex:1}}]}},computed:{items(){if(this.data.length>0){const e=this.data.map((e=>e.period));return e.flatMap(((e,t)=>this.data[t].leaves.map((t=>{const o=ie(re(e.startDate),this.jsDateFormat,{locale:this.locale}),a=ie(re(e.endDate),this.jsDateFormat,{locale:this.locale}),l=ie(re(t.date),this.jsDateFormat,{locale:this.locale});return{period:`${o} - ${a}`,date:l,balance:t.status?.name||t.balance.toFixed(2)}}))))}return[]},leaveType(){return this.meta?.leaveType?.name},employeeName(){const e=this.meta?.employee;return e?`${e.firstName} ${e.lastName}\n ${e.terminationId?this.$t("general.past_employee"):""}`:""},leaveBalance(){return this.data[0]?.balance?`${parseFloat(this.data[0].balance.balance).toFixed(2)} Day(s)`:"0.00 Day(s)"}},methods:{onCancel(){this.$emit("close",!0)}}};const vS=(0,r.Z)(gS,[["render",hS],["__scopeId","data-v-94b8006c"]]);var fS=vS;function yS(e){const t=e=>{const t={leaveTypeId:e.type?e.type.id:1,fromDate:e.fromDate?e.fromDate:"",toDate:e.toDate?e.toDate:"",comment:""===e.comment?null:e.comment,empNumber:e.employee?e.employee.id:void 0};if(e.duration.type){const o={type:e.duration.type?.key};"specify_time"===o.type&&(e.duration.fromTime&&(o.fromTime=e.duration.fromTime),e.duration.toTime&&(o.toTime=e.duration.toTime)),t.duration=o}const o=he(t.fromDate,t.toDate);if(o>1&&e.partialOptions&&(t.partialOption=e.partialOptions.key,e.endDuration.type)){const o={type:e.endDuration.type.key};e.endDuration.fromTime&&(o.fromTime=e.endDuration.fromTime),e.endDuration.toTime&&(o.toTime=e.endDuration.toTime),"start_end"===t.partialOption?t.endDuration=o:"end"===t.partialOption&&(t.duration=o)}return"specify_time"!==t.duration?.type&&(t.duration?.fromTime||t.duration?.toTime)&&(t.duration.fromTime=void 0,t.duration.toTime=void 0),"specify_time"!==t.endDuration?.type&&(t.endDuration?.fromTime||t.endDuration?.toTime)&&(t.endDuration.fromTime=void 0,t.endDuration.toTime=void 0),t},o=e=>{const t={fromDate:void 0,toDate:void 0,partialOption:void 0,empNumber:e.employee?.id};if(e.duration.type&&(t["duration[type]"]=e.duration.type.key,"specify_time"===t["duration[type]"]&&(e.duration.fromTime&&(t["duration[fromTime]"]=e.duration.fromTime),e.duration.toTime&&(t["duration[toTime]"]=e.duration.toTime))),e.fromDate&&e.toDate){t.fromDate=e.fromDate,t.toDate=e.toDate;const o=he(e.fromDate,e.toDate);o>1&&e.partialOptions&&(t.partialOption=e.partialOptions.key,e.endDuration.type&&("start_end"===t.partialOption?(t["endDuration[type]"]=e.endDuration.type.key,e.endDuration.fromTime&&(t["endDuration[fromTime]"]=e.endDuration.fromTime),e.endDuration.toTime&&(t["endDuration[toTime]"]=e.endDuration.toTime)):"end"===t.partialOption&&(t["duration[type]"]=e.endDuration.type.key,e.endDuration.fromTime&&(t["duration[fromTime]"]=e.endDuration.fromTime),e.endDuration.toTime&&(t["duration[toTime]"]=e.endDuration.toTime))))}return"specify_time"!==t["duration[type]"]&&(t["duration[fromTime]"]||t["duration[toTime]"])&&(t["duration[fromTime]"]=void 0,t["duration[toTime]"]=void 0),"specify_time"!==t["endDuration[type]"]&&(t["endDuration[fromTime]"]||t["endDuration[toTime]"])&&(t["endDuration[fromTime]"]=void 0,t["endDuration[toTime]"]=void 0),t},a=t=>new Promise(((a,l)=>{e.request({method:"GET",url:"/api/v2/leave/overlap-leaves",params:o(t)}).then((e=>{const{data:t,meta:o}=e.data;Array.isArray(t)&&t.length>0?a({isConflict:!0,isOverWorkshift:!0===o.isWorkShiftLengthExceeded,data:t}):a({isConflict:!1,isOverWorkshift:!1,data:[]})})).catch((e=>{l(e)}))})),l=t=>new Promise(((a,l)=>{e.request({method:"GET",url:`/api/v2/leave/leave-balance/leave-type/${t.type?.id}`,params:o(t)}).then((e=>{let t=0,o=null,l=null;if(200===e.status){const{data:a,meta:n}=e.data;l=n,a.balance?(o=a.balance,t=a.balance?.balance):a.breakdown&&!1===a.negative?(o=a.breakdown[0].balance,t=a.breakdown[0].balance?.balance):a.breakdown&&!0===a.negative?(o=a.breakdown,t=-1):(o=null,t=0)}a({balance:t,breakdown:o,metaData:l})})).catch((e=>{l(e)}))}));return{serializeBody:t,serializeParams:o,validateLeaveBalance:l,validateOverlapLeaves:a}}var CS={name:"LeaveBalance",components:{"oxd-label":q.OxdLabel,"leave-balance-modal":dS,"leave-balance-insufficient-modal":fS},inheritAttrs:!1,props:{leaveData:{type:Object,default:()=>({})}},setup(e){const t=(0,a.reactive)({data:null,meta:null,balance:0,showModal:!1}),o=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-balance/leave-type");o.setIgnorePath("/api/v2/leave/leave-balance/leave-type");const{validateLeaveBalance:l}=yS(o),n=(0,a.computed)((()=>e.leaveData.type?.id?`${t.balance.toFixed(2)} Day(s)`:"0.00 Day(s)")),r=()=>{t.showModal=!0},i=()=>{t.showModal=!1},s=(0,a.computed)((()=>Array.isArray(t.data)?"leave-balance-insufficient-modal":"leave-balance-modal"));return(0,a.watchPostEffect)((async()=>{e.leaveData.type?.id&&l(e.leaveData).then((({balance:e,breakdown:o,metaData:a})=>{t.balance=e,o&&(t.data=o),a&&(t.meta=a)})).catch((()=>{t.data=null,t.meta=null,t.balance=0}))})),{...(0,a.toRefs)(t),leaveBalance:n,onModalOpen:r,onModalClose:i,leaveBalanceModal:s}}};const bS=(0,r.Z)(CS,[["render",tS],["__scopeId","data-v-56c2fc4a"]]);var VS=bS;const xS={class:"orangehrm-paper-container"},wS={class:"orangehrm-header-container"},NS={class:"orangehrm-container"},_S=(0,a.createElementVNode)("div",{class:"orangehrm-bottom-container"},null,-1),kS=(0,a.createElementVNode)("br",null,null,-1);function SS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",xS,[(0,a.createElementVNode)("div",wS,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.header),1)])),_:1})]),(0,a.createVNode)(s,{loading:!1,selected:0,total:o.data.length},null,8,["total"]),(0,a.createElementVNode)("div",NS,[(0,a.createVNode)(d,{headers:n.headers,items:r.items,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items"])]),_S]),kS],64)}var DS={name:"LeaveConflict",props:{workshiftExceeded:{type:Boolean,default:!1},data:{type:Array,required:!0}},setup(){const{jsDateFormat:e}=R(),{locale:t}=De();return{locale:t,jsDateFormat:e}},data(){return{headers:[{name:"date",title:this.$t("general.date"),style:{flex:1}},{name:"hours",title:this.$t("leave.no_of_hours"),style:{flex:1}},{name:"type",title:this.$t("leave.leave_type"),style:{flex:1}},{name:"status",title:this.$t("general.status"),style:{flex:1}},{name:"comments",title:this.$t("general.comments"),style:{flex:1}}]}},computed:{header(){return this.workshiftExceeded?this.$t("leave.workshift_length_exceeded_due_to_the_following_leave_request"):this.$t("leave.overlapping_leave_request_found")},items(){return this.data.map((e=>({date:ie(re(e.date),this.jsDateFormat,{locale:this.locale}),hours:parseFloat(e.lengthHours).toFixed(2),type:e.leaveType?.name,status:e.status?.name,comments:e.lastComment?.comment})))}}};const $S=(0,r.Z)(DS,[["render",SS]]);var ES=$S;const TS={type:null,fromDate:null,toDate:null,comment:"",partialOptions:null,duration:{type:null,fromTime:null,toTime:null},endDuration:{type:null,fromTime:null,toTime:null}};var BS={name:"LeaveApply",components:{"leave-duration-input":Kk,"leave-balance":VS,"leave-conflict":ES},props:{workShift:{type:Object,default:()=>({})}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-requests"),{serializeBody:t,validateOverlapLeaves:o}=yS(e),{formRef:a,reset:l}=$c(),{userDateFormat:n}=R();return{http:e,reset:l,formRef:a,serializeBody:t,userDateFormat:n,validateOverlapLeaves:o}},data(){return{isLoading:!1,leave:{...TS},rules:{type:[jt],fromDate:[jt,Rt(this.userDateFormat)],toDate:[jt,Rt(this.userDateFormat),eo((()=>this.leave.fromDate),this.$t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})],comment:[zt(250)]},partialOptions:[{id:1,label:this.$t("leave.all_days"),key:"all"},{id:2,label:this.$t("leave.start_day_only"),key:"start"},{id:3,label:this.$t("leave.end_day_only"),key:"end"},{id:4,label:this.$t("leave.start_and_end_day"),key:"start_end"}],showLeaveConflict:!1,isWorkShiftExceeded:!1,leaveConflictData:null,yearsArray:[...wf()],leaveTypes:[]}},computed:{appliedLeaveDuration(){return he(this.leave.fromDate,this.leave.toDate)},showDuration(){const e=this.leave.partialOptions?.id;return e&&1===e},showStartDay(){const e=this.leave.partialOptions?.id;return e&&(2===e||4===e)},showEndDay(){const e=this.leave.partialOptions?.id;return e&&(3===e||4===e)}},watch:{appliedLeaveDuration:function(e){this.leave.duration.type=1===e?{id:1,label:"Full Day",key:"full_day"}:null},"leave.fromDate":function(e){e&&!this.leave.toDate&&(this.leave.toDate=e)}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:"/api/v2/leave/leave-types/eligible"}).then((e=>{const{data:t}=e.data;this.leaveTypes=t.map((e=>({id:e.id,label:e.name})))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.showLeaveConflict=!1,this.leaveConflictData=null,this.validateOverlapLeaves(this.leave).then((({isConflict:e,isOverWorkshift:t,data:o})=>e?(this.leaveConflictData=o,this.showLeaveConflict=!0,this.isWorkShiftExceeded=t,Promise.reject()):this.http.create(this.serializeBody(this.leave)))).then((()=>{this.$toast.saveSuccess(),this.reset()})).catch((()=>{this.showLeaveConflict&&this.$toast.warn({title:this.$t("general.warning"),message:this.$t("leave.failed_to_submit")})})).finally((()=>{this.isLoading=!1}))}}};const IS=(0,r.Z)(BS,[["render",Gk]]);var LS=IS;const US={class:"orangehrm-background-container"},AS={class:"orangehrm-card-container"};function PS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("leave-conflict"),s=(0,a.resolveComponent)("leave-assign-confirm-modal"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-divider"),m=(0,a.resolveComponent)("employee-autocomplete"),u=(0,a.resolveComponent)("oxd-grid-item"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("leave-type-dropdown"),v=(0,a.resolveComponent)("leave-balance"),f=(0,a.resolveComponent)("date-input"),y=(0,a.resolveComponent)("leave-duration-input"),C=(0,a.resolveComponent)("oxd-input-field"),b=(0,a.resolveComponent)("required-text"),V=(0,a.resolveComponent)("submit-button"),x=(0,a.resolveComponent)("oxd-form-actions"),w=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",US,[n.showLeaveConflict?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,"workshift-exceeded":n.isWorkShiftExceeded,data:n.leaveConflictData},null,8,["workshift-exceeded","data"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s,{ref:"confirmDialog"},null,512),(0,a.createElementVNode)("div",AS,[(0,a.createVNode)(d,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.assign_leave")),1)])),_:1}),(0,a.createVNode)(c),(0,a.createVNode)(w,{ref:"formRef",loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.leave.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leave.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.leave.type,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leave.type=e),rules:n.rules.type,"eligible-only":!1,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{"leave-data":n.leave},null,8,["leave-data"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{modelValue:n.leave.fromDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leave.fromDate=e),label:e.$t("general.from_date"),rules:n.rules.fromDate,years:n.yearsArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{modelValue:n.leave.toDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.leave.toDate=e),label:e.$t("general.to_date"),rules:n.rules.toDate,years:n.yearsArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1})])),_:1})])),_:1}),1==r.appliedLeaveDuration?((0,a.openBlock)(),(0,a.createBlock)(h,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y,{duration:n.leave.duration.type,"onUpdate:duration":t[4]||(t[4]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[5]||(t[5]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[6]||(t[6]=e=>n.leave.duration.toTime=e),label:e.$t("general.duration"),"work-shift":n.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),r.appliedLeaveDuration>1?((0,a.openBlock)(),(0,a.createBlock)(h,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(C,{modelValue:n.leave.partialOptions,"onUpdate:modelValue":t[7]||(t[7]=e=>n.leave.partialOptions=e),type:"select",label:e.$t("leave.partial_days"),options:n.partialOptions},null,8,["modelValue","label","options"])])),_:1}),r.showDuration?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,duration:n.leave.duration.type,"onUpdate:duration":t[8]||(t[8]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[9]||(t[9]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[10]||(t[10]=e=>n.leave.duration.toTime=e),partial:!0,label:e.$t("general.duration"),"work-shift":n.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0),r.showStartDay?((0,a.openBlock)(),(0,a.createBlock)(y,{key:1,duration:n.leave.duration.type,"onUpdate:duration":t[11]||(t[11]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[12]||(t[12]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[13]||(t[13]=e=>n.leave.duration.toTime=e),partial:!0,label:e.$t("leave.start_day"),"work-shift":n.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0),r.showEndDay?((0,a.openBlock)(),(0,a.createBlock)(y,{key:2,duration:n.leave.endDuration.type,"onUpdate:duration":t[14]||(t[14]=e=>n.leave.endDuration.type=e),fromTime:n.leave.endDuration.fromTime,"onUpdate:fromTime":t[15]||(t[15]=e=>n.leave.endDuration.fromTime=e),toTime:n.leave.endDuration.toTime,"onUpdate:toTime":t[16]||(t[16]=e=>n.leave.endDuration.toTime=e),partial:!0,label:e.$t("leave.end_day"),"work-shift":n.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(C,{modelValue:n.leave.comment,"onUpdate:modelValue":t[17]||(t[17]=e=>n.leave.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(c),(0,a.createVNode)(x,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(b),(0,a.createVNode)(V,{label:e.$t("leave.assign")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const qS={key:0,class:"deleted-tag"};function MS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("leave.leave_type"),options:l.options,"show-empty-selector":o.showEmptySelector},{option:(0,a.withCtx)((({data:t})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(t.label),1),t.isDeleted?((0,a.openBlock)(),(0,a.createElementBlock)("div",qS,(0,a.toDisplayString)(e.$t("general.deleted")),1)):(0,a.createCommentVNode)("",!0)])),_:1},8,["label","options","show-empty-selector"])}var FS={name:"LeaveTypeDropdown",props:{eligibleOnly:{type:Boolean,default:!0},employeeId:{type:Number,required:!1,default:null},showEmptySelector:{type:Boolean,default:!0},includeAllocated:{type:Boolean,default:!1}},setup(e,t){const o=(0,a.ref)([]),l=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-types"+(e.eligibleOnly?"/eligible":""));return(0,a.watchEffect)((async()=>{!e.eligibleOnly&&e.includeAllocated&&console.error("`includeAllocated` prop can true only if `eligibleOnly` prop true"),l.getAll({empNumber:e.employeeId,includeAllocated:!(!e.eligibleOnly||!e.includeAllocated)||void 0,...!1===e.eligibleOnly&&{limit:0}}).then((({data:a})=>{o.value=a.data.map((e=>({id:e.id,label:e.name,isDeleted:e.deleted}))),!e.showEmptySelector&&o.value.length>0&&t.emit("update:modelValue",o.value[0])}))})),{options:o}}};const jS=(0,r.Z)(FS,[["render",MS],["__scopeId","data-v-dcd26948"]]);var zS=jS;const RS={class:"orangehrm-modal-header"},OS={class:"orangehrm-text-center-align"},GS={class:"orangehrm-modal-footer"};function ZS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,style:{maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",RS,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.confirm_leave_assignment")),1)])),_:1})]),(0,a.createElementVNode)("div",OS,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.employee_does_not_have_enough_balance_for_leave_request"))+" "+(0,a.toDisplayString)(e.$t("leave.click_ok_to_confirm_leave_assignment")),1)])),_:1})]),(0,a.createElementVNode)("div",GS,[(0,a.createVNode)(s,{"display-type":"ghost",class:"orangehrm-button-margin",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{"display-type":"secondary",class:"orangehrm-button-margin",label:e.$t("general.ok"),onClick:r.onConfirm},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var QS={name:"LeaveAssignConfirmModal",components:{"oxd-dialog":q.OxdDialog},data(){return{show:!1,reject:null,resolve:null}},methods:{showDialog(){return new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const HS=(0,r.Z)(QS,[["render",ZS],["__scopeId","data-v-19c585fa"]]);var WS=HS;const YS={employee:null,type:null,fromDate:null,toDate:null,comment:"",partialOptions:null,duration:{type:null,fromTime:null,toTime:null},endDuration:{type:null,fromTime:null,toTime:null}},JS={startTime:"9:00",endTime:"17:00"};var XS={name:"LeaveAssign",components:{"leave-type-dropdown":zS,"leave-duration-input":Kk,"leave-balance":VS,"employee-autocomplete":Va,"leave-conflict":ES,"leave-assign-confirm-modal":WS},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/employees/leave-requests"),{serializeBody:t,validateLeaveBalance:o,validateOverlapLeaves:a}=yS(e),{formRef:l,reset:n}=$c(),{userDateFormat:r}=R();return{http:e,reset:n,formRef:l,serializeBody:t,userDateFormat:r,validateLeaveBalance:o,validateOverlapLeaves:a}},data(){return{isLoading:!1,leave:{...YS},rules:{type:[jt],fromDate:[jt,Rt(this.userDateFormat)],toDate:[jt,Rt(this.userDateFormat),eo((()=>this.leave.fromDate),this.$t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})],comment:[zt(250)],employee:[jt,xo]},partialOptions:[{id:1,label:this.$t("leave.all_days"),key:"all"},{id:2,label:this.$t("leave.start_day_only"),key:"start"},{id:3,label:this.$t("leave.end_day_only"),key:"end"},{id:4,label:this.$t("leave.start_and_end_day"),key:"start_end"}],showLeaveConflict:!1,isWorkShiftExceeded:!1,leaveConflictData:null,yearsArray:[...wf()],workShift:{...JS}}},computed:{appliedLeaveDuration(){return he(this.leave.fromDate,this.leave.toDate)},showDuration(){const e=this.leave.partialOptions?.id;return e&&1===e},showStartDay(){const e=this.leave.partialOptions?.id;return e&&(2===e||4===e)},showEndDay(){const e=this.leave.partialOptions?.id;return e&&(3===e||4===e)}},watch:{"leave.employee":function(e){e?.id?this.http.request({method:"GET",url:`/api/v2/pim/employees/${e.id}/work-shift`}).then((e=>{const{data:t}=e.data;this.workShift=t})):this.workShift={...JS}},appliedLeaveDuration:function(e){this.leave.duration.type=1===e?{id:1,label:"Full Day",key:"full_day"}:null},"leave.fromDate":function(e){e&&!this.leave.toDate&&(this.leave.toDate=e)}},methods:{onSave(){this.isLoading=!0,this.leaveConflictData=null,this.showLeaveConflict=!1,this.validateLeaveBalance(this.leave).then((async({balance:e})=>{if(e<=0){const e=await this.$refs.confirmDialog.showDialog();if("ok"!==e)return Promise.reject()}return this.validateOverlapLeaves(this.leave)})).then((({isConflict:e,isOverWorkshift:t,data:o})=>e?(this.leaveConflictData=o,this.showLeaveConflict=!0,this.isWorkShiftExceeded=t,Promise.reject()):this.http.create(this.serializeBody(this.leave)))).then((()=>{this.$toast.saveSuccess(),this.reset()})).catch((()=>{this.showLeaveConflict&&this.$toast.warn({title:this.$t("general.warning"),message:this.$t("leave.failed_to_submit")})})).finally((()=>{this.isLoading=!1}))}}};const KS=(0,r.Z)(XS,[["render",PS]]);var eD=KS;const tD={class:"orangehrm-background-container"},oD={class:"orangehrm-paper-container"},aD={class:"orangehrm-header-container"},lD={class:"orangehrm-container"},nD={class:"orangehrm-bottom-container"};function rD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",tD,[(0,a.createElementVNode)("div",oD,[(0,a.createElementVNode)("div",aD,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.leave_types")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",lD,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",nD,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var iD={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-types"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:6}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/leave/defineLeaveType")},onClickEdit(e){U("/leave/defineLeaveType/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const sD=(0,r.Z)(iD,[["render",rD]]);var dD=sD;const cD={class:"orangehrm-background-container"},mD={class:"orangehrm-card-container"},uD={class:"label-is-entitlement-situational"};function pD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-label"),u=(0,a.resolveComponent)("oxd-icon-button"),p=(0,a.resolveComponent)("oxd-input-group"),h=(0,a.resolveComponent)("oxd-grid-item"),g=(0,a.resolveComponent)("oxd-grid"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("entitlement-situational-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",cD,[(0,a.createElementVNode)("div",mD,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.edit_leave_type")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveType.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leaveType.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{classes:{wrapper:"--status-grouped-field"}},{label:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",uD,[(0,a.createVNode)(m,{label:e.$t("leave.is_entitlement_situational")},null,8,["label"]),(0,a.createVNode)(u,{class:"--help",name:"exclamation-circle","with-container":!1,onClick:r.onModalOpen},null,8,["onClick"])])])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveType.situational,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leaveType.situational=e),type:"radio","option-label":e.$t("general.yes"),value:!0},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.leaveType.situational,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leaveType.situational=e),type:"radio","option-label":e.$t("general.no"),value:!1},null,8,["modelValue","option-label"])])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"]),n.showModal?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,onClose:r.onModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)])])}const hD={class:"orangehrm-modal-header"},gD={class:"orangehrm-text-center-align"},vD={class:"orangehrm-modal-footer"};function fD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-form-actions"),c=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(c,{class:"orangehrm-dialog-popup","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",hD,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.situational_leave")),1)])),_:1})]),(0,a.createElementVNode)("div",gD,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.entitlement_situational_description")),1)])),_:1})]),(0,a.createElementVNode)("div",vD,[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{type:"submit","display-type":"secondary",label:e.$t("general.ok"),onClick:r.onCancel},null,8,["label","onClick"])])),_:1})])])),_:1},8,["onUpdate:show"])}var yD={name:"EntitlementSituationalModal",components:{"oxd-dialog":q.OxdDialog},emits:["close"],methods:{onCancel(){this.$emit("close",!0)}}};const CD=(0,r.Z)(yD,[["render",fD],["__scopeId","data-v-68838f5c"]]);var bD=CD;const VD={id:"",name:"",situational:""};var xD={components:{"oxd-label":q.OxdLabel,"entitlement-situational-modal":bD},props:{leaveTypeId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-types");return{http:e}},data(){return{showModal:!1,isLoading:!1,leaveType:{...VD},rules:{name:[jt,zt(50)]}}},created(){this.isLoading=!0,this.http.get(this.leaveTypeId).then((e=>{const{data:t}=e.data;return this.leaveType.id=t.id,this.leaveType.name=t.name,this.leaveType.situational=t.situational,this.http.getAll()})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e));if(o>-1){const{id:e}=t[o];return e==this.leaveTypeId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.leaveTypeId,{name:this.leaveType.name,situational:this.leaveType.situational}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/leave/leaveTypeList")},onModalOpen(){this.showModal=!0},onModalClose(){this.showModal=!1}}};const wD=(0,r.Z)(xD,[["render",pD],["__scopeId","data-v-a7f7cce0"]]);var ND=wD;const _D={class:"orangehrm-background-container"},kD={class:"orangehrm-card-container"},SD={class:"label-is-entitlement-situational"};function DD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-label"),u=(0,a.resolveComponent)("oxd-icon-button"),p=(0,a.resolveComponent)("oxd-input-group"),h=(0,a.resolveComponent)("oxd-grid-item"),g=(0,a.resolveComponent)("oxd-grid"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("entitlement-situational-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",_D,[(0,a.createElementVNode)("div",kD,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.add_leave_type")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveType.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leaveType.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{classes:{wrapper:"--status-grouped-field"}},{label:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",SD,[(0,a.createVNode)(m,{label:e.$t("leave.is_entitlement_situational")},null,8,["label"]),(0,a.createVNode)(u,{class:"--help",name:"exclamation-circle","with-container":!1,onClick:r.onModalOpen},null,8,["onClick"])])])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveType.situational,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leaveType.situational=e),type:"radio","option-label":e.$t("general.yes"),value:!0},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.leaveType.situational,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leaveType.situational=e),type:"radio","option-label":e.$t("general.no"),value:!1},null,8,["modelValue","option-label"])])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"]),n.showModal?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,onClose:r.onModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)])])}const $D={id:"",name:"",situational:!1};var ED={components:{"oxd-label":q.OxdLabel,"entitlement-situational-modal":bD},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-types");return{http:e}},data(){return{showModal:!1,isLoading:!1,leaveType:{...$D},rules:{name:[jt,zt(50)]},errors:[]}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.leaveType.name,situational:this.leaveType.situational}).then((()=>this.$toast.saveSuccess())).then((()=>{this.leaveType={...$D},this.onCancel()}))},onCancel(){U("/leave/leaveTypeList")},onModalOpen(){this.showModal=!0},onModalClose(){this.showModal=!1}}};const TD=(0,r.Z)(ED,[["render",DD],["__scopeId","data-v-3acf3120"]]);var BD=TD;const ID={class:"orangehrm-background-container"},LD={class:"orangehrm-card-container"};function UD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-input-group"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("employee-autocomplete"),g=(0,a.resolveComponent)("leave-type-dropdown"),v=(0,a.resolveComponent)("leave-period-dropdown"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form"),x=(0,a.resolveComponent)("entitlement-update-modal"),w=(0,a.resolveComponent)("entitlement-bulk-update-modal"),N=(0,a.resolveComponent)("entitlement-no-match-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ID,[(0,a.createElementVNode)("div",LD,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.add_leave_entitlement")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{label:e.$t("leave.add_to"),classes:{wrapper:"--grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.bulkAssign,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leaveEntitlement.bulkAssign=e),type:"radio","option-label":e.$t("leave.individual_employee"),value:"0"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.bulkAssign,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leaveEntitlement.bulkAssign=e),type:"radio","option-label":e.$t("leave.multiple_employees"),value:"1"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),0==n.leaveEntitlement.bulkAssign?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.leaveEntitlement.employee,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leaveEntitlement.employee=e),params:{includeEmployees:"currentAndPast"},rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1})):((0,a.openBlock)(),(0,a.createBlock)(p,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.location,"onUpdate:modelValue":t[3]||(t[3]=e=>n.leaveEntitlement.location=e),type:"select",label:e.$t("general.location"),options:o.locations},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.subunit,"onUpdate:modelValue":t[4]||(t[4]=e=>n.leaveEntitlement.subunit=e),type:"select",label:e.$t("general.sub_unit"),options:o.subunits},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-leave-entitled"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-entitled-text",type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.matches_emp_count_employees",{empMatchCount:n.empMatchCount})),1)])),_:1})])),_:1})])),_:1})])),_:1})),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.leaveEntitlement.leaveType,"onUpdate:modelValue":t[5]||(t[5]=e=>n.leaveEntitlement.leaveType=e),"empty-text":e.$t("leave.no_leave_types_defined"),rules:n.rules.leaveType,"eligible-only":!1,required:""},null,8,["modelValue","empty-text","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{modelValue:n.leaveEntitlement.leavePeriod,"onUpdate:modelValue":t[6]||(t[6]=e=>n.leaveEntitlement.leavePeriod=e),rules:n.rules.leavePeriod,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.entitlement,"onUpdate:modelValue":t[7]||(t[7]=e=>n.leaveEntitlement.entitlement=e),rules:n.rules.entitlement,label:e.$t("leave.entitlement"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(C)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(x,{ref:"updateModal",data:n.leaveEntitlement},null,8,["data"]),(0,a.createVNode)(w,{ref:"bulkUpdateModal",data:n.leaveEntitlement},null,8,["data"]),(0,a.createVNode)(N,{ref:"noMatchModal"},null,512)])}function AD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("leave.leave_period"),options:l.options,"model-value":l.selectedPeriod,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t))},null,8,["label","options","model-value"])}var PD={name:"LeavePeriodDropdown",props:{modelValue:{type:Object,default:null}},emits:["update:modelValue"],setup(e){const t=(0,a.ref)([]),o=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-periods"),{jsDateFormat:l}=R(),{locale:n}=De();(0,a.onBeforeMount)((()=>{o.getAll().then((({data:e})=>{t.value=e.data.map((e=>{const t=ie(re(e.startDate),l,{locale:n}),o=ie(re(e.endDate),l,{locale:n});return{id:`${e.startDate}_${e.endDate}`,label:`${t} - ${o}`,startDate:e.startDate,endDate:e.endDate}}))}))}));const r=(0,a.computed)((()=>t.value.find((t=>t.id===e.modelValue?.id))));return{options:t,selectedPeriod:r}}};const qD=(0,r.Z)(PD,[["render",AD]]);var MD=qD;const FD={class:"orangehrm-modal-header"},jD={class:"orangehrm-text-center-align"},zD={class:"orangehrm-modal-footer"};function RD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,style:{maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",FD,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.updating_entitlement")),1)])),_:1})]),(0,a.createElementVNode)("div",jD,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.entitlement_value_confirmation_message",{oldvalue:n.current,newvalue:n.updateAs})),1)])),_:1})]),(0,a.createElementVNode)("div",zD,[(0,a.createVNode)(s,{"display-type":"ghost",class:"orangehrm-button-margin",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{"display-type":"secondary",class:"orangehrm-button-margin",label:e.$t("general.confirm"),onClick:r.onConfirm},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var OD={name:"EntitlementUpdateModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"");return{http:e}},data(){return{show:!1,reject:null,resolve:null,current:"0.00",updateAs:"0.00"}},methods:{showDialog(){return this.http.request({method:"GET",url:`/api/v2/leave/employees/${this.data.employee?.id}/leave-entitlements`,params:{leaveTypeId:this.data.leaveType?.id,fromDate:this.data.leavePeriod?.startDate,toDate:this.data.leavePeriod?.endDate,entitlement:this.data.entitlement}}).then((e=>{const{data:t}=e.data;return this.current=t.entitlement?.current?parseFloat(t.entitlement.current).toFixed(2):"0.00",this.updateAs=t.entitlement?.updateAs?parseFloat(t.entitlement.updateAs).toFixed(2):"0.00",new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))}))},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const GD=(0,r.Z)(OD,[["render",RD],["__scopeId","data-v-e36392b4"]]);var ZD=GD;const QD={class:"orangehrm-dialog-header-container"},HD={class:"orangehrm-dialog-horizontal-padding orangehrm-dialog-vertical-padding"},WD={class:"orangehrm-container"},YD={class:"orangehrm-dialog-horizontal-padding orangehrm-dialog-vertical-padding"};function JD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-card-table"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("submit-button"),u=(0,a.resolveComponent)("oxd-form-actions"),p=(0,a.resolveComponent)("oxd-dialog");return n.show?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,gutters:!1,class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",QD,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.updating_entitlement"))+" - "+(0,a.toDisplayString)(e.$t("leave.matching_employees")),1)])),_:1})]),(0,a.createVNode)(s,{class:"orangehrm-dialog-horizontal-margin orangehrm-clear-margins"}),(0,a.createElementVNode)("div",HD,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.selected_leave_entitlement_applied_to_following_employees")),1)])),_:1})]),(0,a.createElementVNode)("div",WD,[(0,a.createVNode)(d,{headers:n.headers,items:n.items,clickable:!1,class:"orangehrm-horizontal-padding","row-decorator":"oxd-table-decorator-card"},null,8,["headers","items"])]),(0,a.createElementVNode)("div",YD,[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(m,{label:e.$t("general.confirm"),onClick:r.onConfirm},null,8,["label","onClick"])])),_:1})])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)}var XD={name:"EntitlementBulkUpdateModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/employees/leave-entitlements");return{http:e}},data(){return{show:!1,reject:null,resolve:null,headers:[{title:this.$t("general.employee"),name:"employee",slot:"title",style:{flex:1}},{title:this.$t("leave.old_entitlement"),name:"current",style:{flex:1}},{title:this.$t("leave.new_entitlement"),name:"updateAs",style:{flex:1}}],items:[]}},methods:{showDialog(){return this.http.getAll({leaveTypeId:this.data.leaveType?.id,fromDate:this.data.leavePeriod?.startDate,toDate:this.data.leavePeriod?.endDate,entitlement:this.data.entitlement,locationId:this.data.location?.id,subunitId:this.data.subunit?.id}).then((e=>{const{data:t}=e.data;return this.items=Array.isArray(t)?t.map((e=>({employee:`${e.firstName} ${e.lastName}`,current:e.entitlement?.current?parseFloat(e.entitlement.current).toFixed(2):"0.00",updateAs:e.entitlement?.updateAs?parseFloat(e.entitlement.updateAs).toFixed(2):"0.00"}))):[],new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))}))},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const KD=(0,r.Z)(XD,[["render",JD],["__scopeId","data-v-6f8e0531"]]);var e$=KD;const t$={class:"orangehrm-modal-header"},o$={class:"orangehrm-text-center-align"},a$={class:"orangehrm-modal-footer"};function l$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,style:{maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",t$,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.no_matching_employees")),1)])),_:1})]),(0,a.createElementVNode)("div",o$,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.no_employees_match_filters")),1)])),_:1})]),(0,a.createElementVNode)("div",a$,[(0,a.createVNode)(s,{"display-type":"secondary",label:e.$t("general.ok"),onClick:r.onCancel},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var n$={name:"EntitlementNoMatchModal",components:{"oxd-dialog":q.OxdDialog},data(){return{show:!1}},methods:{showDialog(){this.show=!0},onCancel(){this.show=!1}}};const r$=(0,r.Z)(n$,[["render",l$],["__scopeId","data-v-0233dcca"]]);var i$=r$;const s$={bulkAssign:0,employee:null,leaveType:null,leavePeriod:null,entitlement:"",subunit:null,location:null};var d$={components:{"leave-type-dropdown":zS,"leave-period-dropdown":MD,"employee-autocomplete":Va,"entitlement-update-modal":ZD,"entitlement-bulk-update-modal":e$,"entitlement-no-match-modal":i$},props:{locations:{type:Array,default:()=>[]},subunits:{type:Array,default:()=>[]},leavePeriod:{type:Object,required:!1,default:()=>null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-entitlements");return{http:e}},data(){return{isLoading:!1,leaveEntitlement:{...s$},leavePeriodDefined:!1,rules:{employee:[jt,xo],leaveType:[jt],leavePeriod:[jt],entitlement:[jt,e=>/^\d+(\.\d{1,2})?$/.test(e)||this.$t("leave.should_be_a_number_with_2_decimal_places"),Zt(1e4)]},empMatchCount:0}},watch:{"leaveEntitlement.location":"fetchEmployeeCount","leaveEntitlement.subunit":"fetchEmployeeCount"},beforeMount(){this.fetchEmployeeCount(),this.leavePeriod&&(this.leaveEntitlement.leavePeriod=this.leavePeriod)},methods:{onCancel(){U("/leave/viewLeaveEntitlements")},async onSave(){let e=null;this.isLoading=!0;const t=1==this.leaveEntitlement.bulkAssign;if(t){if(0===this.empMatchCount)return this.isLoading=!1,this.$refs.noMatchModal.showDialog();e=await this.$refs.bulkUpdateModal.showDialog()}else e=await this.$refs.updateModal.showDialog();if("ok"!==e)return void(this.isLoading=!1);const o={empNumber:void 0,bulkAssign:void 0,locationId:void 0,subunitId:void 0,leaveTypeId:this.leaveEntitlement.leaveType?.id,fromDate:this.leaveEntitlement.leavePeriod?.startDate,toDate:this.leaveEntitlement.leavePeriod?.endDate,entitlement:this.leaveEntitlement.entitlement};t?(o.bulkAssign=!0,o.locationId=this.leaveEntitlement.location?.id,o.subunitId=this.leaveEntitlement.subunit?.id):o.empNumber=this.leaveEntitlement.employee?.id,this.http.create(o).then((e=>{let t=null,o=null;const{data:a}=e.data;return Array.isArray(a)?t=this.$toast.success({title:this.$t("general.success"),message:this.$t("leave.entitlement_added_to_n_employees",{count:a.length})}):(o={empNumber:a.employee.empNumber,leaveTypeId:a.leaveType.id,startDate:a.fromDate,endDate:a.toDate},t=this.$toast.saveSuccess()),new Promise((e=>{t.then((()=>{e(o)}))}))})).then((e=>{e?U("/leave/viewLeaveEntitlements",void 0,e):U("/leave/viewLeaveEntitlements")}))},async fetchEmployeeCount(){this.http.request({method:"GET",url:"/api/v2/pim/employees/count",params:{locationId:this.leaveEntitlement.location?.id,subunitId:this.leaveEntitlement.subunit?.id}}).then((e=>{const{data:t}=e.data;this.empMatchCount=parseInt(t.count)}))}}};const c$=(0,r.Z)(d$,[["render",UD],["__scopeId","data-v-7e1993c4"]]);var m$=c$;const u$={class:"orangehrm-background-container"},p$={class:"orangehrm-card-container"};function h$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("leave-type-dropdown"),h=(0,a.resolveComponent)("oxd-input-field"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",u$,[(0,a.createElementVNode)("div",p$,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.edit_leave_entitlement")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leaveEntitlement.employee=e),disabled:"",required:""},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.leaveEntitlement.leaveType,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leaveEntitlement.leaveType=e),"eligible-only":!1,required:"",disabled:""},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.leaveEntitlement.leavePeriod,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leaveEntitlement.leavePeriod=e),type:"select",label:e.$t("leave.leave_period"),options:n.leavePeriods,rules:n.rules.leavePeriod,required:""},null,8,["modelValue","label","options","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.leaveEntitlement.entitlement,"onUpdate:modelValue":t[3]||(t[3]=e=>n.leaveEntitlement.entitlement=e),rules:n.rules.entitlement,label:e.$t("leave.entitlement"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const g$={employee:null,leaveType:null,leavePeriod:null,entitlement:""};var v$={components:{"leave-type-dropdown":zS,"employee-autocomplete":Va},props:{entitlementId:{type:String,required:!0},employee:{type:Object,default:()=>({})}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-entitlements");e.setIgnorePath("/api/v2/leave/leave-entitlements/[0-9]+/validation/entitlements");const{jsDateFormat:t}=R(),{locale:o}=De();return{http:e,jsDateFormat:t,locale:o}},data(){return{isLoading:!1,leaveEntitlement:{...g$},rules:{employee:[jt,xo],leaveType:[jt],leavePeriod:[jt],entitlement:[jt,e=>/^\d+(\.\d{1,2})?$/.test(e)||this.$t("leave.should_be_a_number_with_2_decimal_places"),Zt(1e4),(0,q.promiseDebounce)(this.validateEntitlement,500)]},leavePeriods:[]}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:"/api/v2/leave/leave-periods"}).then((({data:e})=>(this.leavePeriods=e.data.map((e=>{const t=ie(re(e.startDate),this.jsDateFormat,{locale:this.locale}),o=ie(re(e.endDate),this.jsDateFormat,{locale:this.locale});return{id:`${e.startDate}_${e.endDate}`,label:`${t} - ${o}`,startDate:e.startDate,endDate:e.endDate}})),this.http.get(this.entitlementId)))).then((e=>{const{data:t}=e.data;this.leaveEntitlement.employee={id:t.employee.empNumber,label:`${t.employee.firstName} ${t.employee.lastName}`,isPastEmployee:t.employee.terminationId},this.leaveEntitlement.leaveType={id:t.leaveType.id,label:t.leaveType.name},this.leaveEntitlement.leavePeriod=this.leavePeriods.find((e=>e.id===`${t.fromDate}_${t.toDate}`)),this.leaveEntitlement.entitlement=t.entitlement})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/leave/viewLeaveEntitlements",void 0,{empNumber:this.leaveEntitlement.employee?.id,leaveTypeId:this.leaveEntitlement.leaveType?.id,startDate:this.leaveEntitlement.leavePeriod?.startDate,endDate:this.leaveEntitlement.leavePeriod?.endDate})},onSave(){this.isLoading=!0;const e={fromDate:this.leaveEntitlement.leavePeriod?.startDate,toDate:this.leaveEntitlement.leavePeriod?.endDate,entitlement:this.leaveEntitlement.entitlement};this.http.update(this.entitlementId,e).then((()=>{this.$toast.updateSuccess(),this.onCancel()}))},validateEntitlement(e){const t=parseFloat(e);return new Promise((e=>{isNaN(t)?e(!0):this.http.request({method:"GET",url:`/api/v2/leave/leave-entitlements/${this.entitlementId}/validation/entitlements`,params:{entitlement:t}}).then((t=>{const{data:o}=t.data;return!0===o.valid?e(!0):e(this.$t("leave.used_amount_exceeds_the_current_amount"))}))}))}}};const f$=(0,r.Z)(v$,[["render",h$]]);var y$=f$;function C$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("leave-type-dropdown"),c=(0,a.resolveComponent)("leave-period-dropdown"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-divider"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("oxd-table-filter"),C=(0,a.resolveComponent)("leave-entitlement-table");return(0,a.openBlock)(),(0,a.createBlock)(C,{prefetch:!1},{default:(0,a.withCtx)((({filters:t,filterItems:o})=>[(0,a.createVNode)(y,{"filter-title":e.$t("leave.leave_entitlements")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.employee,"onUpdate:modelValue":e=>t.employee=e,rules:n.rules.employee,params:{includeEmployees:"currentAndPast"},required:""},null,8,["modelValue","onUpdate:modelValue","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:t.leaveType,"onUpdate:modelValue":e=>t.leaveType=e,"eligible-only":!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:t.leavePeriod,"onUpdate:modelValue":e=>t.leavePeriod=e,"show-empty-selector":!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(p),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"])])),_:1})}const b$={class:"orangehrm-background-container"},V$=(0,a.createElementVNode)("br",null,null,-1),x$={key:0,class:"orangehrm-paper-container"},w$={class:"orangehrm-header-container"},N$={class:"orangehrm-container"},_$={class:"orangehrm-bottom-container"};function k$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-button"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",b$,[(0,a.renderSlot)(e.$slots,"default",{filters:l.filters,filterItems:r.filterItems}),V$,l.showDatatable?((0,a.openBlock)(),(0,a.createElementBlock)("div",x$,[(0,a.createElementVNode)("div",w$,[(0,a.createElementVNode)("div",null,[e.$can.create("leave_entitlements")?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(s,{tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.totalEntitlements),1)])),_:1})]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",N$,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:r.headers,items:l.items?.data,selectable:e.$can.delete("leave_entitlements"),clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","loading"])]),(0,a.createElementVNode)("div",_$,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var S$={name:"LeaveEntitlementTable",components:{"delete-confirmation":Et},props:{prefetch:{type:Boolean,default:!0},employee:{type:Object,required:!1,default:()=>null},leaveType:{type:Object,required:!1,default:()=>null},leavePeriod:{type:Object,required:!1,default:()=>null}},setup(e){const t=(0,a.ref)({leaveType:e.leaveType?e.leaveType:null,leavePeriod:e.leavePeriod?e.leavePeriod:null,employee:e.employee?{id:e.employee.empNumber,label:`${e.employee.firstName} ${e.employee.middleName} ${e.employee.lastName}`,isPastEmployee:e.employee.terminationId}:null}),o=(0,a.computed)((()=>({empNumber:t.value.employee?.id,leaveTypeId:t.value.leaveType?.id,fromDate:t.value.leavePeriod?.startDate,toDate:t.value.leavePeriod?.endDate}))),l=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-entitlements"),{$t:n}=Se(),{jsDateFormat:r}=R(),{locale:i}=De(),s=e=>e.map((e=>({id:e.id,leaveType:e.leaveType.name+`${e.leaveType.deleted?n("general.deleted"):""}`,entitlementType:e.entitlementType.name,fromDate:ie(re(e.fromDate),r,{locale:i}),toDate:ie(re(e.toDate),r,{locale:i}),days:e.entitlement,isSelectable:e.deletable}))),{showPaginator:d,currentPage:c,total:m,pages:u,pageSize:p,response:h,isLoading:g,execQuery:v}=wt(l,{query:o,normalizer:s,prefetch:e.employee||e.prefetch}),f=(0,a.computed)((()=>{const e=h.value.meta?.sum?h.value.meta.sum:0;return`Total ${parseFloat(e).toFixed(2)} Day(s)`})),y=(0,a.computed)((()=>void 0!==h.value.data));return{http:l,showPaginator:d,currentPage:c,isLoading:g,total:m,pages:u,pageSize:p,execQuery:v,items:h,filters:t,totalEntitlements:f,showDatatable:y}},data(){return{checkedItems:[]}},computed:{headers(){const e=[{name:"leaveType",slot:"title",title:this.$t("leave.leave_type"),style:{flex:1}},{name:"entitlementType",title:this.$t("leave.entitlement_type"),style:{flex:1}},{name:"fromDate",title:this.$t("leave.valid_from"),style:{flex:1}},{name:"toDate",title:this.$t("leave.valid_to"),style:{flex:1}},{name:"days",title:this.$t("leave.days"),style:{flex:1}}],t={name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.delete("leave_entitlements")&&(t.cellConfig.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),this.$can.update("leave_entitlements")&&(t.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),Object.keys(t.cellConfig).length>0?e.concat([t]):e}},methods:{onClickAdd(){U("/leave/addLeaveEntitlement")},onClickEdit(e){U("/leave/editLeaveEntitlement/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){if(!e.isSelectable)return this.$toast.error({title:this.$t("general.error"),message:this.$t("leave.entitlements_will_not_be_deleted_since_already_in_use")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()}}};const D$=(0,r.Z)(S$,[["render",k$]]);var $$=D$,E$={components:{"leave-entitlement-table":$$,"employee-autocomplete":Va,"leave-type-dropdown":zS,"leave-period-dropdown":MD},data(){return{rules:{employee:[jt,xo]}}}};const T$=(0,r.Z)(E$,[["render",C$]]);var B$=T$;function I$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("leave-type-dropdown"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("leave-period-dropdown"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("leave-entitlement-table");return(0,a.openBlock)(),(0,a.createBlock)(f,null,{default:(0,a.withCtx)((({filters:t,filterItems:o})=>[(0,a.createVNode)(v,{"filter-title":e.$t("leave.my_leave_entitlements")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.leaveType,"onUpdate:modelValue":e=>t.leaveType=e},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:t.leavePeriod,"onUpdate:modelValue":e=>t.leavePeriod=e,"show-empty-selector":!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(u),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"])])),_:1})}var L$={components:{"leave-entitlement-table":$$,"leave-type-dropdown":zS,"leave-period-dropdown":MD}};const U$=(0,r.Z)(L$,[["render",I$]]);var A$=U$;const P$={class:"orangehrm-background-container"},q$={class:"orangehrm-card-container"};function M$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",P$,[(0,a.createElementVNode)("div",q$,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.work_week")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.monday,"onUpdate:modelValue":t[0]||(t[0]=e=>n.workWeek.monday=e),type:"select",options:o.dayTypes,rules:n.rules.monday,label:e.$t("general.monday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.tuesday,"onUpdate:modelValue":t[1]||(t[1]=e=>n.workWeek.tuesday=e),type:"select",options:o.dayTypes,rules:n.rules.tuesday,label:e.$t("general.tuesday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.wednesday,"onUpdate:modelValue":t[2]||(t[2]=e=>n.workWeek.wednesday=e),type:"select",options:o.dayTypes,rules:n.rules.wednesday,label:e.$t("general.wednesday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.thursday,"onUpdate:modelValue":t[3]||(t[3]=e=>n.workWeek.thursday=e),type:"select",options:o.dayTypes,rules:n.rules.thursday,label:e.$t("general.thursday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.friday,"onUpdate:modelValue":t[4]||(t[4]=e=>n.workWeek.friday=e),type:"select",options:o.dayTypes,rules:n.rules.friday,label:e.$t("general.friday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.saturday,"onUpdate:modelValue":t[5]||(t[5]=e=>n.workWeek.saturday=e),type:"select",options:o.dayTypes,rules:n.rules.saturday,label:e.$t("general.saturday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.sunday,"onUpdate:modelValue":t[6]||(t[6]=e=>n.workWeek.sunday=e),type:"select",options:o.dayTypes,rules:n.rules.sunday,label:e.$t("general.sunday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const F$={monday:null,tuesday:null,wednesday:null,thursday:null,friday:null,saturday:null,sunday:null};var j$={props:{dayTypes:{type:Array,default:()=>[]}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/workweek");return{http:e}},data(){return{isLoading:!1,workWeek:{...F$},rules:{monday:[jt],tuesday:[jt],wednesday:[jt],thursday:[jt],friday:[jt],saturday:[jt],sunday:[jt]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET"}).then((e=>{const{data:t}=e.data;this.workWeek.monday=this.dayTypes.find((e=>e.id===t.monday)),this.workWeek.tuesday=this.dayTypes.find((e=>e.id===t.tuesday)),this.workWeek.wednesday=this.dayTypes.find((e=>e.id===t.wednesday)),this.workWeek.thursday=this.dayTypes.find((e=>e.id===t.thursday)),this.workWeek.friday=this.dayTypes.find((e=>e.id===t.friday)),this.workWeek.saturday=this.dayTypes.find((e=>e.id===t.saturday)),this.workWeek.sunday=this.dayTypes.find((e=>e.id===t.sunday))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){const e=Object.values(this.workWeek).find((e=>8!==e.id));if(void 0===e)return this.$toast.warn({title:this.$t("general.warning"),message:this.$t("leave.at_least_one_day_should_be_a_working_day")});this.isLoading=!0,this.http.request({method:"PUT",data:{monday:this.workWeek.monday.id,tuesday:this.workWeek.tuesday.id,wednesday:this.workWeek.wednesday.id,thursday:this.workWeek.thursday.id,friday:this.workWeek.friday.id,saturday:this.workWeek.saturday.id,sunday:this.workWeek.sunday.id}}).then((()=>{this.$toast.saveSuccess(),this.isLoading=!1}))}}};const z$=(0,r.Z)(j$,[["render",M$]]);var R$=z$;const O$={class:"orangehrm-background-container"},G$=(0,a.createElementVNode)("br",null,null,-1),Z$={class:"orangehrm-paper-container"},Q$={class:"orangehrm-header-container"},H$={class:"orangehrm-container"},W$={class:"orangehrm-bottom-container"};function Y$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("date-input"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-table-filter"),v=(0,a.resolveComponent)("table-header"),f=(0,a.resolveComponent)("oxd-card-table"),y=(0,a.resolveComponent)("oxd-pagination"),C=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",O$,[(0,a.createVNode)(g,{"filter-title":e.$t("leave.holidays")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{onSubmitValid:r.filterItems,onReset:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.fromDate=e),label:e.$t("general.from"),rules:n.rules.fromDate,years:n.yearArray},null,8,["modelValue","label","rules","years"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.toDate=e),label:e.$t("general.to"),rules:n.rules.toDate,years:n.yearArray},null,8,["modelValue","label","rules","years"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(u,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),G$,(0,a.createElementVNode)("div",Z$,[(0,a.createElementVNode)("div",Q$,[(0,a.createVNode)(u,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(v,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",H$,[(0,a.createVNode)(f,{selected:n.checkedItems,"onUpdate:selected":t[2]||(t[2]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",W$,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(C,{ref:"deleteDialog"},null,512)])}var J$={components:{"delete-confirmation":Et},props:{leavePeriod:{type:Object,required:!0}},setup(e){const t=(0,a.ref)({fromDate:e.leavePeriod.startDate,toDate:e.leavePeriod.endDate}),o=(0,a.computed)((()=>({fromDate:t.value.fromDate,toDate:t.value.toDate}))),{jsDateFormat:l,userDateFormat:n}=R(),{locale:r}=De(),i=e=>e.map((e=>({id:e.id,name:e.name,date:ie(re(e.date),l,{locale:r}),recurring:e.recurring?"Yes":"No",length:e.lengthName}))),s=new P(window.appGlobal.baseUrl,"/api/v2/leave/holidays"),{showPaginator:d,currentPage:c,total:m,pages:u,pageSize:p,response:h,isLoading:g,execQuery:v}=wt(s,{query:o,normalizer:i});return{http:s,showPaginator:d,currentPage:c,isLoading:g,total:m,pages:u,pageSize:p,execQuery:v,items:h,filters:t,userDateFormat:n}},data(){return{yearArray:[...wf(201)],rules:{fromDate:[jt,Rt(this.userDateFormat)],toDate:[jt,Rt(this.userDateFormat),eo((()=>this.filters.fromDate),this.$t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]},headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:2}},{name:"date",title:this.$t("general.date"),style:{flex:2}},{name:"length",title:this.$t("leave.full_day_half_day"),style:{flex:2}},{name:"recurring",title:this.$t("leave.repeats_annually"),style:{flex:2}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/leave/saveHolidays")},onClickEdit(e){U("/leave/saveHolidays/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()}}};const X$=(0,r.Z)(J$,[["render",Y$]]);var K$=X$;const eE={class:"orangehrm-background-container"},tE={class:"orangehrm-card-container"};function oE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",eE,[(0,a.createElementVNode)("div",tE,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.add_holiday")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.holiday.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.holiday.date,"onUpdate:modelValue":t[1]||(t[1]=e=>n.holiday.date=e),label:e.$t("general.date"),rules:n.rules.date,years:n.yearArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.length,"onUpdate:modelValue":t[2]||(t[2]=e=>n.holiday.length=e),type:"select",label:e.$t("leave.full_day_half_day"),options:o.holidayLengthList,rules:n.rules.length,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{classes:{wrapper:"--status-grouped-field"},label:e.$t("leave.repeats_annually")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.recurring,"onUpdate:modelValue":t[3]||(t[3]=e=>n.holiday.recurring=e),type:"radio","option-label":e.$t("general.yes"),value:!0},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.holiday.recurring,"onUpdate:modelValue":t[4]||(t[4]=e=>n.holiday.recurring=e),type:"radio","option-label":e.$t("general.no"),value:!1},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const aE={name:"",date:"",recurring:!1,length:{id:0,label:"Full Day"}};var lE={props:{holidayLengthList:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/holidays"),{userDateFormat:t}=R();return{http:e,userDateFormat:t}},data(){return{yearArray:[...wf(201)],isLoading:!1,holiday:{...aE},rules:{name:[jt,zt(200)],date:[jt,Rt(this.userDateFormat)],length:[jt]},errors:[]}},created(){this.isLoading=!0;const e=new Date,t=e.getFullYear()-100+"-"+(e.getMonth()+1)+"-"+e.getDate(),o=e.getFullYear()+100+"-"+(e.getMonth()+1)+"-"+e.getDate();this.http.getAll({fromDate:t,toDate:o,limit:0}).then((e=>{const{data:t}=e.data;this.rules.date.push((e=>{const o=t.findIndex((t=>t.date==e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.holiday.name,date:this.holiday.date,recurring:this.holiday.recurring,length:this.holiday.length.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.holiday={...aE},this.onCancel()}))},onCancel(){U("/leave/viewHolidayList")}}};const nE=(0,r.Z)(lE,[["render",oE],["__scopeId","data-v-6485b72f"]]);var rE=nE;const iE={class:"orangehrm-background-container"},sE={class:"orangehrm-card-container"};function dE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",iE,[(0,a.createElementVNode)("div",sE,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.edit_holiday")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.holiday.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.holiday.date,"onUpdate:modelValue":t[1]||(t[1]=e=>n.holiday.date=e),label:e.$t("general.date"),rules:n.rules.date,years:n.yearArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.length,"onUpdate:modelValue":t[2]||(t[2]=e=>n.holiday.length=e),type:"select",label:e.$t("leave.full_day_half_day"),options:o.holidayLengthList,rules:n.rules.length,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{classes:{wrapper:"--status-grouped-field"},label:e.$t("leave.repeats_annually")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.recurring,"onUpdate:modelValue":t[3]||(t[3]=e=>n.holiday.recurring=e),type:"radio","option-label":e.$t("general.yes"),value:!0},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.holiday.recurring,"onUpdate:modelValue":t[4]||(t[4]=e=>n.holiday.recurring=e),type:"radio","option-label":e.$t("general.no"),value:!1},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const cE={id:"",name:"",date:"",recurring:!1,length:0};var mE={props:{holidayId:{type:Number,required:!0},holidayLengthList:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/holidays"),{userDateFormat:t}=R();return{http:e,userDateFormat:t}},data(){return{yearArray:[...wf(201)],isLoading:!1,holiday:{...cE},rules:{name:[jt,zt(200)],date:[jt,Rt(this.userDateFormat)],length:[jt]}}},created(){this.isLoading=!0,this.http.get(this.holidayId).then((e=>{const{data:t}=e.data;this.holiday.id=t.id,this.holiday.name=t.name,this.holiday.date=t.date,this.holiday.recurring=t.recurring,""!==t.length&&null!==t.length&&(this.holiday.length=this.holidayLengthList.find((e=>e.id===t.length)));const o=new Date,a=o.getFullYear()-100+"-"+(o.getMonth()+1)+"-"+o.getDate(),l=o.getFullYear()+100+"-"+(o.getMonth()+1)+"-"+o.getDate();return this.http.getAll({fromDate:a,toDate:l,limit:0})})).then((e=>{const{data:t}=e.data;this.rules.date.push((e=>{const o=t.findIndex((t=>t.date===e));if(o>-1){const e=t[o].id;return e==this.holidayId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.holidayId,{name:this.holiday.name,date:this.holiday.date,recurring:this.holiday.recurring,length:this.holiday.length.id}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/leave/viewHolidayList")}}};const uE=(0,r.Z)(mE,[["render",dE],["__scopeId","data-v-48d79cd0"]]);var pE=uE;function hE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("date-input"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("leave-type-dropdown"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("employee-autocomplete"),h=(0,a.resolveComponent)("oxd-text"),g=(0,a.resolveComponent)("oxd-switch-input"),v=(0,a.resolveComponent)("oxd-divider"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("oxd-table-filter"),x=(0,a.resolveComponent)("leave-list-table");return(0,a.openBlock)(),(0,a.createBlock)(x,{"leave-statuses":o.leaveStatuses},{default:(0,a.withCtx)((({filters:t,filterItems:l,rules:n,onReset:r})=>[(0,a.createVNode)(V,{"filter-title":e.$t("leave.leave_list")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(b,{onSubmitValid:l,onReset:r},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.fromDate,"onUpdate:modelValue":e=>t.fromDate=e,label:e.$t("general.from_date"),rules:n.fromDate},null,8,["modelValue","onUpdate:modelValue","label","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.toDate,"onUpdate:modelValue":e=>t.toDate=e,label:e.$t("general.to_date"),rules:n.toDate},null,8,["modelValue","onUpdate:modelValue","label","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:t.statuses,"onUpdate:modelValue":e=>t.statuses=e,value:"Select",type:"multiselect",label:e.$t("leave.show_leave_with_status"),options:o.leaveStatuses,rules:n.statuses,required:""},null,8,["modelValue","onUpdate:modelValue","label","options","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:t.leaveType,"onUpdate:modelValue":e=>t.leaveType=e,"eligible-only":!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:t.employee,"onUpdate:modelValue":e=>t.employee=e,rules:n.employee,params:{includeEmployees:t.includePastEmps?"currentAndPast":"onlyCurrent"}},null,8,["modelValue","onUpdate:modelValue","rules","params"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:t.subunit,"onUpdate:modelValue":e=>t.subunit=e,type:"select",label:e.$t("general.sub_unit"),options:o.subunits},null,8,["modelValue","onUpdate:modelValue","label","options"])])),_:2},1024),(0,a.createVNode)(s,{class:"orangehrm-leave-filter --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{class:"orangehrm-leave-filter-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.include_past_employees")),1)])),_:1}),(0,a.createVNode)(g,{modelValue:t.includePastEmps,"onUpdate:modelValue":e=>t.includePastEmps=e},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(v),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(y,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid","onReset"])])),_:2},1032,["filter-title"])])),_:1},8,["leave-statuses"])}const gE=e=>((0,a.pushScopeId)("data-v-2e68cbb4"),e=e(),(0,a.popScopeId)(),e),vE={class:"orangehrm-background-container"},fE=gE((()=>(0,a.createElementVNode)("br",null,null,-1))),yE={class:"orangehrm-paper-container"},CE={class:"orangehrm-container"},bE={class:"orangehrm-bottom-container"};function VE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("leave-list-table-header"),s=(0,a.resolveComponent)("oxd-card-table"),d=(0,a.resolveComponent)("oxd-pagination"),c=(0,a.resolveComponent)("leave-comment-modal"),m=(0,a.resolveComponent)("leave-bulk-action-modal");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",vE,[(0,a.renderSlot)(e.$slots,"default",{filters:l.filters,rules:l.rules,filterItems:r.filterItems,onReset:r.onReset},void 0,!0),fE,(0,a.createElementVNode)("div",yE,[(0,a.createVNode)(i,{selected:l.checkedItems.length,total:l.total,loading:l.isLoading,"bulk-actions":l.leaveBulkActions,onOnActionClick:r.onLeaveActionBulk},null,8,["selected","total","loading","bulk-actions","onOnActionClick"]),(0,a.createElementVNode)("div",CE,[(0,a.createVNode)(s,{selected:l.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>l.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",bE,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])]),n.showCommentModal?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,id:n.commentModalState,onClose:r.onCommentModalClose},null,8,["id","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(m,{ref:"bulkActionModal",data:n.bulkActionModalState},null,8,["data"])],64)}const xE=(e,{length:t=50,ellipsis:o="..."}={})=>"string"===typeof e?e.length>t?e.substr(0,t)+o:e:"",wE={component:"oxd-button",props:{label:"Approve",displayType:"label-success",size:"medium",onClick:null}},NE={component:"oxd-button",props:{label:"Reject",displayType:"label-danger",size:"medium",onClick:null}},_E={component:"oxd-button",props:{label:"Cancel",displayType:"label-warn",size:"medium",onClick:null}},kE={component:"oxd-table-dropdown",props:{options:[],style:{"margin-left":"auto"},onClick:null}};function SE(e,{primaryActions:t={approve:wE,reject:NE,cancel:_E,more:kE}}={}){const o=(t,o)=>e.request({method:"PUT",url:`/api/v2/leave/leaves/${t}`,data:{action:o}}),a=(t,o)=>e.request({method:"PUT",url:`/api/v2/leave/employees/leave-requests/${t}`,data:{action:o}}),l=(t,o)=>e.request({method:"PUT",url:"/api/v2/leave/employees/leave-requests/bulk",data:{data:t.map((e=>({leaveRequestId:e,action:o})))}});return{leaveActions:t,processLeaveAction:o,processLeaveRequestAction:a,processLeaveRequestBulkAction:l}}const DE={class:"orangehrm-modal-header"},$E={key:0,class:"orangehrm-modal-content"};function EE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("leave-comment"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",DE,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.leave_request_comments")),1)])),_:1})]),(0,a.createVNode)(s),n.isLoading?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",$E,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.comments,(e=>((0,a.openBlock)(),(0,a.createBlock)(d,{key:e.id,data:e},null,8,["data"])))),128))])),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.comment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.comment=e),type:"textarea",placeholder:e.$t("general.comment_here"),rules:n.rules.comment},null,8,["modelValue","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const TE={class:"orangehrm-comment"},BE={class:"orangehrm-comment-profile"},IE={class:"orangehrm-comment-profile-image-wrapper"},LE=["src"],UE={class:"orangehrm-comment-body"},AE={class:"orangehrm-comment-profile-name"},PE={class:"orangehrm-comment-message"},qE={class:"orangehrm-comment-timestamp"};function ME(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",TE,[(0,a.createElementVNode)("div",BE,[(0,a.createElementVNode)("div",IE,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"orangehrm-comment-profile-image",src:l.imgSrc},null,8,LE)])]),(0,a.createElementVNode)("div",UE,[(0,a.createElementVNode)("div",AE,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.fullName),1)])),_:1})]),(0,a.createElementVNode)("div",PE,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.data.comment),1)])),_:1})]),(0,a.createElementVNode)("div",qE,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.commentDate)+" - "+(0,a.toDisplayString)(o.data.time),1)])),_:1})])])])}const FE=`${window.appGlobal.publicPath}/images/default-photo.png`;var jE={name:"LeaveComment",props:{data:{type:Object,required:!0}},setup(e){const t=(0,a.computed)((()=>{const t=e.data.createdByEmployee;return t?`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${t.empNumber}`:FE})),o=(0,a.computed)((()=>{const t=e.data.createdByEmployee;return t&&`${t.firstName} ${t.lastName}`})),{jsDateFormat:l}=R(),{locale:n}=De(),r=(0,a.computed)((()=>ie(re(e.data?.date),l,{locale:n})));return{imgSrc:t,fullName:o,commentDate:r}}};const zE=(0,r.Z)(jE,[["render",ME],["__scopeId","data-v-222b3933"]]);var RE=zE,OE={name:"LeaveCommentModal",components:{"oxd-dialog":q.OxdDialog,"leave-comment":RE},props:{id:{type:Number,required:!1,default:null},leaveRequest:{type:Boolean,default:!0}},emits:["close"],setup(e){const t=e.leaveRequest?"leave-requests":"leaves",o=new P(window.appGlobal.baseUrl,`/api/v2/leave/${t}/${e.id}/leave-comments`);return{http:o}},data(){return{isLoading:!1,comment:null,rules:{comment:[jt,zt(255)]},comments:[]}},beforeMount(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.comments=t})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({comment:this.comment}).then((()=>{this.$toast.saveSuccess(),this.onCancel()}))},onCancel(){this.comment=null,this.$emit("close",!0)}}};const GE=(0,r.Z)(OE,[["render",EE],["__scopeId","data-v-cbb6349a"]]);var ZE=GE;const QE={class:"orangehrm-modal-header"},HE={class:"orangehrm-text-center-align"},WE={class:"orangehrm-modal-footer"};function YE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-dialog-popup","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",QE,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.leave_action",{action:r.action})),1)])),_:1})]),(0,a.createElementVNode)("div",HE,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.bulk_leave_action_confirm_message_one",{action:r.action,count:r.count}))+" "+(0,a.toDisplayString)(e.$t("leave.bulk_leave_action_confirm_message_two")),1)])),_:1})]),(0,a.createElementVNode)("div",WE,[(0,a.createVNode)(s,{label:e.$t("general.no_cancel"),"display-type":"text",class:"orangehrm-button-margin",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{label:e.$t("leave.yes_confirm"),"display-type":"secondary",onClick:r.onConfirm},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var JE={name:"LeaveBulkActionModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>null}},data(){return{show:!1,reject:null,resolve:null}},computed:{count(){return this.data?.count?this.data.count:0},action(){return this.data?.action}},methods:{showDialog(){return new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")}}};const XE=(0,r.Z)(JE,[["render",YE],["__scopeId","data-v-7823af8c"]]);var KE=XE;const eT={class:"orangehrm-header-container"},tT={key:0,class:"actions"};function oT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",eT,[o.bulkActions&&o.selected>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",tT,[(0,a.createVNode)(i,{tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_selected",{count:o.selected})),1)])),_:1}),o.bulkActions.APPROVE?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,label:e.$t("general.approve"),"display-type":"label-success",onClick:t[0]||(t[0]=t=>e.$emit("onActionClick","APPROVE"))},null,8,["label"])):(0,a.createCommentVNode)("",!0),o.bulkActions.REJECT?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,label:e.$t("general.reject"),"display-type":"label-danger",onClick:t[1]||(t[1]=t=>e.$emit("onActionClick","REJECT"))},null,8,["label"])):(0,a.createCommentVNode)("",!0),o.bulkActions.CANCEL?((0,a.openBlock)(),(0,a.createBlock)(s,{key:2,label:e.$t("general.cancel"),"display-type":"label-warn",onClick:t[2]||(t[2]=t=>e.$emit("onActionClick","CANCEL"))},null,8,["label"])):(0,a.createCommentVNode)("",!0)])):((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_found",{count:o.total})),1)])),_:1}))])}var aT={name:"LeaveListTableHeader",props:{loading:{type:Boolean,required:!0},selected:{type:Number,required:!0},total:{type:Number,required:!0},bulkActions:{type:Object,required:!1,default:()=>({})}},emits:["onActionClick"]};const lT=(0,r.Z)(aT,[["render",oT],["__scopeId","data-v-78ad5c40"]]);var nT=lT;const rT={employee:null,fromDate:null,toDate:null,statuses:[],subunit:null,includePastEmps:!1,leaveType:null};var iT={name:"LeaveListTable",components:{"leave-list-table-header":nT,"leave-comment-modal":ZE,"leave-bulk-action-modal":KE},props:{myLeaveList:{type:Boolean,default:!1},leaveStatuses:{type:Array,default:()=>[]},employee:{type:Object,required:!1,default:()=>null},leaveType:{type:Object,required:!1,default:()=>null},fromDate:{type:String,required:!1,default:null},toDate:{type:String,required:!1,default:null},leaveStatus:{type:Object,required:!1,default:()=>null}},setup(e){const t=(0,a.ref)({...rT,...e.leaveType&&{leaveType:e.leaveType},...e.fromDate&&{fromDate:e.fromDate},...e.toDate&&{toDate:e.toDate},...e.leaveStatus&&{statuses:[e.leaveStatus]},...e.employee&&{employee:{id:e.employee.empNumber,label:`${e.employee.firstName} ${e.employee.middleName} ${e.employee.lastName}`,isPastEmployee:e.employee.terminationId}}}),o=(0,a.ref)([]),{$t:l}=Se(),{locale:n}=De(),{jsDateFormat:r,userDateFormat:i}=R(),s={fromDate:[jt,Rt(i)],toDate:[jt,Rt(i),eo((()=>t.value.fromDate),l("general.to_date_should_be_after_from_date"),{allowSameDate:!0})],statuses:[jt],employee:[xo]},d=(0,a.computed)((()=>{const e=Array.isArray(t.value.statuses)?t.value.statuses:[];return{empNumber:t.value.employee?.id,fromDate:t.value.fromDate,toDate:t.value.toDate,subunitId:t.value.subunit?.id,includeEmployees:t.value.includePastEmps?"currentAndPast":"onlyCurrent",statuses:e.map((e=>e.id)),leaveTypeId:t.value.leaveType?.id}})),c=new P(window.appGlobal.baseUrl,"/api/v2/leave/"+(e.myLeaveList?"leave-requests":"employees/leave-requests")),m=e=>e.map((e=>{let t,o,a="";const i=e.dates.durationType?.type;if(e.dates.fromDate&&(t=ie(re(e.dates.fromDate),r,{locale:n})),e.dates.toDate&&(t+=` to ${ie(re(e.dates.toDate),r,{locale:n})}`),e.dates.startTime&&e.dates.endTime&&(t+=` (${e.dates.startTime} - ${e.dates.endTime})`),"half_day_morning"!==i&&"half_day_afternoon"!==i||(t+=` ${l("leave.half_day")}`),Array.isArray(e.leaveBreakdown)&&(o=e.leaveBreakdown.map((e=>`${e.name} (${parseFloat(e.lengthDays).toFixed(2)})`)).join(", ")),Array.isArray(e.leaveBalances))if(e.leaveBalances.length>1)a=e.leaveBalances.map((({period:e,balance:t})=>{const o=parseFloat(t.balance).toFixed(2),a=ie(re(e.startDate),r,{locale:n}),l=ie(re(e.endDate),r,{locale:n});return`${o} (${a} - ${l})`})).join(", ");else{const t=e.leaveBalances[0]?.balance.balance;a=t?parseFloat(t).toFixed(2):"0.00"}const s=`${e.employee?.firstName} ${e.employee?.middleName} ${e.employee?.lastName}`,d=e.leaveType?.name;return e.employee?.terminationId&&l("general.past_employee"),e.leaveType?.deleted&&l("general.deleted"),{id:e.id,empNumber:e.employee?.empNumber,date:t,employeeName:s,leaveType:d,leaveBalance:a,days:parseFloat(e.noOfDays).toFixed(2),status:o,comment:xE(e.lastComment?.comment),actions:e.allowedActions}})),{leaveActions:u,processLeaveRequestAction:p,processLeaveRequestBulkAction:h}=SE(c),{showPaginator:g,currentPage:v,total:f,pages:y,pageSize:C,response:b,isLoading:V,execQuery:x}=wt(c,{query:d,normalizer:m}),w=(0,a.computed)((()=>{if(o.value.length>0&&b.value.data){const e=o.value.map((e=>b.value.data[e].actions));return{APPROVE:e.reduce(((e,t)=>e&&t.find((e=>"APPROVE"===e.action))),!0),REJECT:e.reduce(((e,t)=>e&&t.find((e=>"REJECT"===e.action))),!0),CANCEL:e.reduce(((e,t)=>e&&t.find((e=>"CANCEL"===e.action))),!0)}}return null}));return{http:c,showPaginator:g,currentPage:v,isLoading:V,total:f,pages:y,pageSize:C,execQuery:x,items:b,rules:s,filters:t,checkedItems:o,leaveActions:u,leaveBulkActions:w,processLeaveRequestAction:p,processLeaveRequestBulkAction:h}},data(){return{headers:[{name:"date",title:this.$t("general.date"),style:{flex:1}},{name:"employeeName",title:this.$t("general.employee_name"),style:{flex:1}},{name:"leaveType",title:this.$t("leave.leave_type"),style:{flex:1}},{name:"leaveBalance",title:this.$t("leave.leave_balance_days"),style:{flex:1}},{name:"days",title:this.$t("leave.number_of_days"),style:{flex:1}},{name:"status",title:this.$t("general.status"),style:{flex:1}},{name:"comment",title:this.$t("general.comments"),style:{flex:"5%"}},{name:"action",slot:"footer",title:this.$t("general.actions"),cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer,style:{flex:this.myLeaveList?"10%":"20%"}}],showCommentModal:!1,commentModalState:null,bulkActionModalState:null}},beforeMount(){this.isLoading=!0,0===this.filters.statuses.length&&(this.filters.statuses=this.myLeaveList?this.leaveStatuses:this.leaveStatuses.filter((e=>1===e.id))),this.http.request({method:"GET",url:"/api/v2/leave/leave-periods"}).then((e=>{const{data:t,meta:o}=e.data;o.leavePeriodDefined?(this.filters.fromDate=this.filters.fromDate??o?.currentLeavePeriod.startDate,this.filters.toDate=this.filters.toDate??o?.currentLeavePeriod.endDate):(this.filters.fromDate=this.filters.fromDate??t[0]?.startDate,this.filters.toDate=this.filters.toDate??t[0]?.endDate)})).finally((()=>{this.isLoading=!1,Object.assign(rT,this.filters)}))},methods:{cellRenderer(...[,,,e]){const t={},{approve:o,reject:a,cancel:l,more:n}=this.leaveActions,r=[{label:this.$t("general.add_comment"),context:"add_comment"},{label:this.$t("leave.view_leave_details"),context:"leave_details"},{label:this.$t("leave.view_pim_info"),context:"pim_details"}];return e.actions.map((n=>{"APPROVE"===n.action&&(o.props.label=this.$t("general.approve"),o.props.onClick=()=>this.onLeaveAction(e.id,"APPROVE"),t.approve=o),"REJECT"===n.action&&(a.props.label=this.$t("general.reject"),a.props.onClick=()=>this.onLeaveAction(e.id,"REJECT"),t.reject=a),"CANCEL"===n.action&&(this.myLeaveList?(l.props.label=this.$t("general.cancel"),l.props.onClick=()=>this.onLeaveAction(e.id,"CANCEL"),t.reject=l):r.push({label:this.$t("leave.cancel_leave"),context:"cancel_leave"}))})),n.props.options=r,n.props.onClick=t=>this.onLeaveDropdownAction(t,e),t.more=n,{props:{header:{cellConfig:t}}}},onLeaveDropdownAction(e,t){switch(e.context){case"add_comment":this.commentModalState=t.id,this.showCommentModal=!0;break;case"cancel_leave":this.onLeaveAction(t.id,"CANCEL");break;case"pim_details":U("/pim/viewPersonalDetails/empNumber/{id}",{id:t.empNumber});break;default:U("/leave/viewLeaveRequest/{id}",{id:t.id},this.myLeaveList&&{mode:"my-leave"})}},onLeaveAction(e,t){this.isLoading=!0,this.processLeaveRequestAction(e,t).then((()=>{this.$toast.updateSuccess()})).finally(this.resetDataTable)},async onLeaveActionBulk(e){this.isLoading=!0,this.bulkActionModalState={count:this.checkedItems.length,action:e};const t=this.checkedItems.map((e=>this.items.data[e].id)),o=await this.$refs.bulkActionModal.showDialog();"ok"===o?this.processLeaveRequestBulkAction(t,e).then((t=>{const{data:o}=t.data;Array.isArray(o)&&this.$toast.success({title:this.$t("general.success"),message:this.$t("leave.leave_requests_action",{action:e,count:o.length})})})).finally((()=>{this.bulkActionModalState=null,this.resetDataTable()})):this.isLoading=!1},onCommentModalClose(){this.commentModalState=null,this.showCommentModal=!1,this.resetDataTable()},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onReset(){this.filters={...rT},this.resetDataTable()}}};const sT=(0,r.Z)(iT,[["render",VE],["__scopeId","data-v-2e68cbb4"]]);var dT=sT,cT={components:{"leave-list-table":dT,"employee-autocomplete":Va,"oxd-switch-input":q.OxdSwitchInput,"leave-type-dropdown":zS},props:{subunits:{type:Array,default:()=>[]},leaveStatuses:{type:Array,default:()=>[]}}};const mT=(0,r.Z)(cT,[["render",hE],["__scopeId","data-v-7abe0f65"]]);var uT=mT;const pT=e=>((0,a.pushScopeId)("data-v-5cf2c6b8"),e=e(),(0,a.popScopeId)(),e),hT={class:"orangehrm-background-container"},gT={class:"orangehrm-paper-container"},vT={class:"orangehrm-header-container"},fT=pT((()=>(0,a.createElementVNode)("br",null,null,-1))),yT={class:"orangehrm-horizontal-padding"},CT=pT((()=>(0,a.createElementVNode)("br",null,null,-1))),bT={class:"orangehrm-container"},VT={class:"orangehrm-bottom-container"};function xT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("table-header"),p=(0,a.resolveComponent)("oxd-card-table"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-pagination"),v=(0,a.resolveComponent)("leave-comment-modal");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",hT,[(0,a.createElementVNode)("div",gT,[(0,a.createElementVNode)("div",vT,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.myLeaveRequest?e.$t("leave.my_leave_request_details"):e.$t("leave.leave_request_details")),1)])),_:1})]),(0,a.createVNode)(s,{class:"orangehrm-horizontal-margin orangehrm-clear-margins"}),fT,(0,a.createElementVNode)("div",yT,[(0,a.createVNode)(m,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.employee_name")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-request-details-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.employeeName),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("leave.requested_for")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-request-details-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.leavePeriod),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})]),CT,(0,a.createVNode)(u,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",bT,[(0,a.createVNode)(p,{headers:n.headers,items:l.response&&l.response.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items","loading"])]),(0,a.createElementVNode)("div",VT,[(0,a.createElementVNode)("span",null,[(0,a.createVNode)(h,{"display-type":"ghost",label:e.$t("general.back"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(h,{class:"orangehrm-left-space","display-type":"secondary","icon-name":"chat-right-text-fill",label:e.$t("general.comments"),onClick:r.onClickComments},null,8,["label","onClick"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(g,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])]),n.showCommentModal?((0,a.openBlock)(),(0,a.createBlock)(v,{key:0,id:n.commentModalState,"leave-request":n.isLeaveRequest,onClose:r.onCommentModalClose},null,8,["id","leave-request","onClose"])):(0,a.createCommentVNode)("",!0)],64)}var wT={name:"LeaveViewRequest",components:{"leave-comment-modal":ZE},props:{leaveRequestId:{type:String,required:!0},myLeaveRequest:{type:Boolean,default:!1}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/leave/leave-requests/${e.leaveRequestId}/leaves`),{leaveActions:o,processLeaveAction:a}=SE(t),{$t:l}=Se(),{jsDateFormat:n}=R(),{locale:r}=De(),{$tEmpName:i}=xa(),s=e=>e.map((e=>{let t="";const o=e.dates.durationType?.type;e.dates.fromDate&&(t=ie(re(e.dates.fromDate),n,{locale:r})),e.dates.startTime&&e.dates.endTime&&(t+=` (${e.dates.startTime} - ${e.dates.endTime})`),"half_day_morning"!==o&&"half_day_afternoon"!==o||(t+=` ${l("leave.half_day")}`);const a=e.leaveType?.name;return e.leaveType?.deleted&&l("general.deleted"),{id:e.id,date:t,leaveType:a,leaveBalance:e.leaveBalance?.balance.balance?parseFloat(e.leaveBalance.balance.balance).toFixed(2):void 0,duration:parseFloat(e.lengthHours).toFixed(2),status:e.leaveStatus?.name,comment:xE(e.lastComment?.comment),actions:e.allowedActions,canComment:!(5===e.leaveStatus?.id||4===e.leaveStatus?.id)}})),{showPaginator:d,currentPage:c,total:m,pages:u,pageSize:p,response:h,isLoading:g,execQuery:v}=wt(t,{normalizer:s});return{http:t,showPaginator:d,currentPage:c,isLoading:g,total:m,pages:u,pageSize:p,execQuery:v,response:h,leaveActions:o,processLeaveAction:a,jsDateFormat:n,locale:r,translateEmpName:i}},data(){return{headers:[{name:"date",title:this.$t("general.date"),style:{flex:1}},{name:"leaveType",title:this.$t("leave.leave_type"),style:{flex:1}},{name:"leaveBalance",title:this.$t("leave.leave_balance_days"),style:{flex:1}},{name:"duration",title:this.$t("attendance.duration_hours"),style:{flex:1}},{name:"status",title:this.$t("general.status"),style:{flex:1}},{name:"comment",title:this.$t("general.comments"),style:{flex:"10%"}},{name:"action",slot:"footer",title:this.$t("general.actions"),cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer,style:{flex:"20%"}}],showCommentModal:!1,commentModalState:null,isLeaveRequest:!1}},computed:{employeeName(){const e=this.response?.meta?.employee;return e?this.translateEmpName(e,{includeMiddle:!0,excludePastEmpTag:!1}):""},leavePeriod(){const e=ie(re(this.response?.meta?.startDate),this.jsDateFormat,{locale:this.locale}),t=ie(re(this.response?.meta?.endDate),this.jsDateFormat,{locale:this.locale});return e===t?e:`${e} - ${t}`}},methods:{cellRenderer(...[,,,e]){const t={},o=[],{approve:a,reject:l,cancel:n,more:r}=this.leaveActions;return e.canComment&&o.push({label:"Add Comment",context:"add_comment"}),e.actions.map((r=>{"APPROVE"===r.action&&(a.props.label=this.$t("general.approve"),a.props.onClick=()=>this.onLeaveAction(e.id,"APPROVE"),t.approve=a),"REJECT"===r.action&&(l.props.label=this.$t("general.reject"),l.props.onClick=()=>this.onLeaveAction(e.id,"REJECT"),t.reject=l),"CANCEL"===r.action&&(this.myLeaveRequest?(n.props.label=this.$t("general.cancel"),n.props.onClick=()=>this.onLeaveAction(e.id,"CANCEL"),t.cancel=n):o.push({label:"Cancel Leave",context:"cancel_leave"}))})),o.length>0&&(r.props.options=o,r.props.onClick=t=>this.onLeaveDropdownAction(t,e),t.more=r),{props:{header:{cellConfig:t}}}},onClickComments(){this.commentModalState=this.leaveRequestId,this.isLeaveRequest=!0,this.showCommentModal=!0},onCommentModalClose(){this.commentModalState=null,this.showCommentModal=!1,this.resetDataTable()},onLeaveDropdownAction(e,t){"cancel_leave"===e.context?this.onLeaveAction(t.id,"CANCEL"):(this.commentModalState=t.id,this.isLeaveRequest=!1,this.showCommentModal=!0)},onLeaveAction(e,t){this.isLoading=!0,this.processLeaveAction(e,t).then((()=>{this.$toast.updateSuccess()})).finally(this.resetDataTable)},onClickBack(){this.myLeaveRequest?U("/leave/viewMyLeaveList"):U("/leave/viewLeaveList")},async resetDataTable(){await this.execQuery()}}};const NT=(0,r.Z)(wT,[["render",xT],["__scopeId","data-v-5cf2c6b8"]]);var _T=NT;function kT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("date-input"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("leave-type-dropdown"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-divider"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("oxd-table-filter"),C=(0,a.resolveComponent)("leave-list-table");return(0,a.openBlock)(),(0,a.createBlock)(C,{"leave-statuses":o.leaveStatuses,"my-leave-list":!0},{default:(0,a.withCtx)((({filters:t,filterItems:l,rules:n,onReset:r})=>[(0,a.createVNode)(y,{"filter-title":e.$t("leave.my_leave_list")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{onSubmitValid:l,onReset:r},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.fromDate,"onUpdate:modelValue":e=>t.fromDate=e,label:e.$t("general.from_date"),rules:n.fromDate},null,8,["modelValue","onUpdate:modelValue","label","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.toDate,"onUpdate:modelValue":e=>t.toDate=e,label:e.$t("general.to_date"),rules:n.toDate},null,8,["modelValue","onUpdate:modelValue","label","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:t.statuses,"onUpdate:modelValue":e=>t.statuses=e,value:"Select",type:"multiselect",label:e.$t("leave.show_leave_with_status"),options:o.leaveStatuses,rules:n.statuses,required:""},null,8,["modelValue","onUpdate:modelValue","label","options","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:t.leaveType,"onUpdate:modelValue":e=>t.leaveType=e,"eligible-only":!0,"include-allocated":!0},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(p),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(g,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid","onReset"])])),_:2},1032,["filter-title"])])),_:1},8,["leave-statuses"])}var ST={components:{"leave-list-table":dT,"leave-type-dropdown":zS},props:{leaveStatuses:{type:Array,default:()=>[]}}};const DT=(0,r.Z)(ST,[["render",kT]]);var $T=DT;const ET=e=>((0,a.pushScopeId)("data-v-6ef58e5d"),e=e(),(0,a.popScopeId)(),e),TT=ET((()=>(0,a.createElementVNode)("br",null,null,-1)));function BT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-input-group"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("leave-type-dropdown"),p=(0,a.resolveComponent)("leave-period-dropdown"),h=(0,a.resolveComponent)("jobtitle-dropdown"),g=(0,a.resolveComponent)("oxd-text"),v=(0,a.resolveComponent)("oxd-switch-input"),f=(0,a.resolveComponent)("employee-autocomplete"),y=(0,a.resolveComponent)("oxd-divider"),C=(0,a.resolveComponent)("required-text"),b=(0,a.resolveComponent)("oxd-button"),V=(0,a.resolveComponent)("oxd-form-actions"),x=(0,a.resolveComponent)("oxd-form"),w=(0,a.resolveComponent)("oxd-table-filter"),N=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(N,{module:"leave",name:l.filters.type,filters:l.serializedFilters,"column-count":6},{default:(0,a.withCtx)((({generateReport:n})=>[(0,a.createVNode)(w,{"filter-title":e.$t("leave.leave_entitlement_and_usage_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(x,{onSubmitValid:n},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{label:e.$t("leave.generate_for"),classes:{wrapper:"--grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.type,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.type=e),type:"radio","option-label":e.$t("leave.leave_type"),value:"leave_type_leave_entitlements_and_usage"},null,8,["modelValue","option-label"]),(0,a.createVNode)(i,{modelValue:l.filters.type,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.type=e),type:"radio","option-label":e.$t("general.employee"),value:"employee_leave_entitlements_and_usage"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),"leave_type_leave_entitlements_and_usage"===l.filters.type?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.leaveType,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.leaveType=e),"empty-text":e.$t("leave.no_leave_types_defined"),"eligible-only":!1,"show-empty-selector":!1,rules:l.rules.leaveType},null,8,["modelValue","empty-text","rules"])])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.leavePeriod,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.leavePeriod=e),rules:l.rules.leavePeriod,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.location,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.location=e),type:"select",label:e.$t("general.location"),options:o.locations},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.subunit,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.subunit=e),type:"select",label:e.$t("general.sub_unit"),options:o.subunits},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:l.filters.jobTitle,"onUpdate:modelValue":t[6]||(t[6]=e=>l.filters.jobTitle=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-leave-filter --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{class:"orangehrm-leave-filter-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.include_past_employees")),1)])),_:1}),(0,a.createVNode)(v,{modelValue:l.filters.includePastEmps,"onUpdate:modelValue":t[7]||(t[7]=e=>l.filters.includePastEmps=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1})):((0,a.openBlock)(),(0,a.createBlock)(m,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{modelValue:l.filters.employee,"onUpdate:modelValue":t[8]||(t[8]=e=>l.filters.employee=e),rules:l.rules.employee,params:{includeEmployees:"currentAndPast"},required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.leavePeriod,"onUpdate:modelValue":t[9]||(t[9]=e=>l.filters.leavePeriod=e),rules:l.rules.leavePeriod,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1})),(0,a.createVNode)(y),(0,a.createVNode)(V,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(C),(0,a.createVNode)(b,{type:"submit","display-type":"secondary",class:"orangehrm-left-space",label:e.$t("general.generate")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),TT])),_:1},8,["name","filters"])}const IT={type:"leave_type_leave_entitlements_and_usage",employee:null,leavePeriod:null,leaveType:null,subunit:null,location:null,jobTitle:null,includePastEmps:!1};var LT={components:{"reports-table":ex,"oxd-switch-input":q.OxdSwitchInput,"jobtitle-dropdown":Eu,"leave-type-dropdown":zS,"leave-period-dropdown":MD,"employee-autocomplete":Va},props:{locations:{type:Array,default:()=>[]},subunits:{type:Array,default:()=>[]},leavePeriod:{type:Object,required:!1,default:()=>null}},setup(e){const t=(0,a.ref)({...IT,...e.leavePeriod&&{leavePeriod:e.leavePeriod}}),o=(0,a.ref)({employee:[jt,xo],leavePeriod:[jt],leaveType:[jt]}),l=(0,a.computed)((()=>"leave_type_leave_entitlements_and_usage"===t.value.type?{name:t.value.type,fromDate:t.value.leavePeriod?.startDate,toDate:t.value.leavePeriod?.endDate,subunitId:t.value.subunit?.id,leaveTypeId:t.value.leaveType?.id,locationId:t.value.location?.id,jobTitleId:t.value.jobTitle?.id,includeEmployees:t.value.includePastEmps?"currentAndPast":"onlyCurrent"}:{name:t.value.type,empNumber:t.value.employee?.id,fromDate:t.value.leavePeriod?.startDate,toDate:t.value.leavePeriod?.endDate}));return{rules:o,filters:t,serializedFilters:l}}};const UT=(0,r.Z)(LT,[["render",BT],["__scopeId","data-v-6ef58e5d"]]);var AT=UT;const PT=(0,a.createElementVNode)("br",null,null,-1);function qT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("leave-period-dropdown"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(f,{module:"leave",name:"my_leave_entitlements_and_usage",prefetch:!0,filters:l.serializedFilters,"column-count":6},{default:(0,a.withCtx)((({generateReport:o})=>[(0,a.createVNode)(v,{"filter-title":e.$t("leave.my_leave_entitlement_and_usage_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.leavePeriod,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.leavePeriod=e),rules:l.rules.leavePeriod,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{type:"submit","display-type":"secondary",class:"orangehrm-left-space",label:e.$t("general.generate")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),PT])),_:1},8,["filters"])}var MT={components:{"reports-table":ex,"leave-period-dropdown":MD},props:{leavePeriod:{type:Object,required:!1,default:()=>({})}},setup(e){const t=(0,a.ref)({leavePeriod:e.leavePeriod?e.leavePeriod:null}),o=(0,a.ref)({leavePeriod:[jt]}),l=(0,a.computed)((()=>({fromDate:t.value.leavePeriod?.startDate,toDate:t.value.leavePeriod?.endDate})));return{rules:o,filters:t,serializedFilters:l}}};const FT=(0,r.Z)(MT,[["render",qT]]);var jT=FT,zT={"leave-period":zk,"leave-apply":LS,"leave-assign":eD,"leave-type-edit":ND,"leave-type-list":dD,"leave-type-save":BD,"leave-add-entitlement":m$,"leave-edit-entitlement":y$,"leave-view-entitlement":B$,"leave-view-my-entitlement":A$,"work-week":R$,"holiday-list":K$,"holiday-save":rE,"holiday-edit":pE,"leave-list":uT,"leave-view-request":_T,"my-leave-list":$T,"leave-entitlement-report":AT,"my-leave-entitlement-report":jT};const RT={class:"orangehrm-background-container"},OT={class:"orangehrm-paper-container"},GT={class:"orangehrm-header-container"},ZT={class:"orangehrm-container"},QT={class:"orangehrm-bottom-container"};function HT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",RT,[(0,a.createElementVNode)("div",OT,[(0,a.createElementVNode)("div",GT,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.oauth_client_list")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",ZT,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",QT,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var WT={components:{"delete-confirmation":Et},props:{unselectableClientIds:{type:Array,default:()=>[]}},setup(e){const{$t:t}=Se(),o=o=>o.map((o=>{const a=e.unselectableClientIds.findIndex((e=>e===o.clientId));return{id:o.id,name:o.name,redirectUri:o.redirectUri,enabled:o.enabled?t("general.enabled"):t("general.disabled"),isSelectable:-1===a,isDisabled:-1!==a}})),a=new P(window.appGlobal.baseUrl,"/api/v2/admin/oauth-clients"),{showPaginator:l,currentPage:n,total:r,pages:i,pageSize:s,response:d,isLoading:c,execQuery:m}=wt(a,{normalizer:o});return{http:a,showPaginator:l,currentPage:n,isLoading:c,total:r,pages:i,pageSize:s,execQuery:m,items:d}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:2}},{name:"redirectUri",title:this.$t("admin.redirect_uri"),style:{flex:3}},{name:"enabled",title:this.$t("general.status"),style:{flex:2}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveOAuthClient")},onClickEdit(e){U("/admin/editOAuthClient",{},{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const YT=(0,r.Z)(WT,[["render",HT]]);var JT=YT;const XT={class:"orangehrm-background-container"},KT={class:"orangehrm-card-container"};function eB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-alert"),u=(0,a.resolveComponent)("oxd-switch-input"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",XT,[(0,a.createElementVNode)("div",KT,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.editMode?e.$t("admin.edit_oauth_client"):e.$t("admin.add_oauth_client")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.oAuthClient.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.oAuthClient.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.oAuthClient.redirectUri,"onUpdate:modelValue":t[1]||(t[1]=e=>n.oAuthClient.redirectUri=e),label:e.$t("admin.redirect_uri"),rules:n.rules.redirectUri,required:""},null,8,["modelValue","label","rules"])])),_:1}),r.editMode?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(c,{class:"--offset-row-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.oAuthClient.clientId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.oAuthClient.clientId=e),label:e.$t("admin.client_id"),disabled:""},null,8,["modelValue","label"])])),_:1}),r.showClientSecret?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,class:"--offset-row-4"},{default:(0,a.withCtx)((()=>[n.isSecretPlain?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,type:"warn",show:!0,message:e.$t("admin.client_secret_warning_message")},null,8,["message"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{modelValue:n.oAuthClient.clientSecret,"onUpdate:modelValue":t[3]||(t[3]=e=>n.oAuthClient.clientSecret=e),label:e.$t("admin.client_secret"),disabled:""},null,8,["modelValue","label"])])),_:1})):(0,a.createCommentVNode)("",!0)],64)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,{class:"--offset-row-5"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-field-row"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.enable_client")),1)])),_:1}),(0,a.createVNode)(u,{modelValue:n.oAuthClient.enabled,"onUpdate:modelValue":t[4]||(t[4]=e=>n.oAuthClient.enabled=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),r.editMode?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(c,{key:1,class:"--offset-row-6"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-field-row"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.confidential_client")),1)])),_:1}),(0,a.createVNode)(u,{modelValue:n.oAuthClient.confidential,"onUpdate:modelValue":t[5]||(t[5]=e=>n.oAuthClient.confidential=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}))])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const tB={id:null,name:"",redirectUri:"",enabled:!0,clientId:null,clientSecret:"********",confidential:!1};var oB={components:{"oxd-switch-input":q.OxdSwitchInput,"oxd-alert":q.OxdAlert},props:{id:{type:Number,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/oauth-clients");return{http:e}},data(){return{isLoading:!1,isSecretPlain:!1,oAuthClient:{...tB},rules:{name:[jt,zt(80)],redirectUri:[jt,zt(2e3)]}}},computed:{editMode(){return null!==this.oAuthClient.clientId},showClientSecret(){return!0===this.oAuthClient.confidential}},created(){this.isLoading=!0,this.getClient().then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name===e));if(o>-1){const{id:e}=t[o];return e===this.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{getClient(){return null!==this.id?this.http.get(this.id).then((e=>{const{data:t}=e.data;return this.setDataFromResponse(t),this.http.getAll({limit:0})})):this.http.getAll({limit:0})},onCancel(){U("/admin/registerOAuthClient")},onSave(){this.isLoading=!0,(this.editMode?this.update():this.create()).finally((()=>{this.isLoading=!1}))},create(){return this.http.create({name:this.oAuthClient.name,redirectUri:this.oAuthClient.redirectUri,enabled:this.oAuthClient.enabled,confidential:this.oAuthClient.confidential}).then((e=>{const{data:t,meta:o}=e.data;return this.setDataFromResponse(t),this.oAuthClient.clientSecret=o.clientSecret,this.isSecretPlain=!0,this.$toast.saveSuccess()}))},update(){return this.http.update(this.oAuthClient.id,{name:this.oAuthClient.name,redirectUri:this.oAuthClient.redirectUri,enabled:this.oAuthClient.enabled,confidential:this.oAuthClient.confidential}).then((e=>{const{data:t,meta:o}=e.data;return this.setDataFromResponse(t),!0===t.confidential&&null!==o.clientSecret&&(this.oAuthClient.clientSecret=o.clientSecret,this.isSecretPlain=!0),this.$toast.updateSuccess()}))},setDataFromResponse(e){this.oAuthClient.id=e.id,this.oAuthClient.name=e.name,this.oAuthClient.redirectUri=e.redirectUri,this.oAuthClient.enabled=e.enabled,this.oAuthClient.clientId=e.clientId,this.oAuthClient.confidential=e.confidential}}};const aB=(0,r.Z)(oB,[["render",eB],["__scopeId","data-v-6ea3f680"]]);var lB=aB;const nB=e=>((0,a.pushScopeId)("data-v-3810ee3c"),e=e(),(0,a.popScopeId)(),e),rB={class:"orangehrm-oauth-container"},iB={class:"orangehrm-card-container"},sB={class:"orangehrm-oauth-list"},dB=nB((()=>(0,a.createElementVNode)("br",null,null,-1))),cB=["value"],mB=["name","value"],uB={class:"orangehrm-oauth-button-container"};function pB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("login-branding"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("oxd-form"),u=(0,a.resolveComponent)("oxd-alert");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rB,[(0,a.createElementVNode)("div",iB,[(0,a.createVNode)(i,{"img-src":o.loginBannerSrc,class:"orangehrm-oauth-branding"},null,8,["img-src"]),(0,a.createVNode)(s),null===o.errorType?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.client_name_would_like_to",{clientName:o.clientName}))+": ",1)])),_:1}),(0,a.createElementVNode)("ul",sB,[(0,a.createElementVNode)("li",null,[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.access_and_manage_your_data")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.perform_actions_on_your_behalf")),1)])),_:1})])]),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.do_you_want_to_allow_access")),1)])),_:1}),dB,(0,a.createVNode)(m,{ref:"authorizeForm",method:"GET",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("input",{name:"authorized",value:n.authorized,type:"hidden"},null,8,cB),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.params,((e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t},[(0,a.createElementVNode)("input",{name:t,value:e,type:"hidden"},null,8,mB)])))),128)),(0,a.createElementVNode)("div",uB,[(0,a.createVNode)(c,{"display-type":"ghost",size:"large",class:"orangehrm-oauth-button",label:e.$t("auth.deny"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(c,{"display-type":"secondary",class:"orangehrm-oauth-button",size:"large",label:e.$t("auth.allow_access"),type:"submit"},null,8,["label"])])])),_:1},8,["action","onSubmitValid"])],64)):"orangehrm_mobile_app"===o.params["client_id"]?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1,show:!0,type:"error",message:e.$t("auth.mobile_client_disabled_error")},null,8,["message"])):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createVNode)(u,{show:!0,type:"error",message:e.$t("auth.this_request_is_invalid")},null,8,["message"]),(0,a.createVNode)(d,{class:"orangehrm-oauth-error"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.error"))+": "+(0,a.toDisplayString)(o.errorType),1)])),_:1})],64))]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}const hB={class:"orangehrm-login-branding"},gB=["src"];function vB(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",hB,[(0,a.createElementVNode)("img",{src:o.imgSrc,alt:"company-branding"},null,8,gB)])}var fB={name:"LoginBranding",props:{imgSrc:{type:String,required:!0}}};const yB=(0,r.Z)(fB,[["render",vB],["__scopeId","data-v-3dda64e6"]]);var CB=yB,bB={name:"OAuthAuthorize",components:{"login-branding":CB,"oxd-alert":q.OxdAlert},props:{params:{type:Object,required:!0},clientName:{type:String,default:null},errorType:{type:String,default:null},loginBannerSrc:{type:String,required:!0}},data(){return{authorized:!0}},computed:{submitUrl(){return L("/oauth2/authorize/consent")}},methods:{onCancel(){this.authorized=!1,this.onSubmit()},onSubmit(){this.$nextTick((()=>{this.$refs.authorizeForm.$el.submit()}))}}};const VB=(0,r.Z)(bB,[["render",pB],["__scopeId","data-v-3810ee3c"]]);var xB=VB,wB={"oauth-client-list":JT,"oauth-client-save":lB,"oauth-authorize":xB};const NB={class:"orangehrm-background-container"},_B={class:"orangehrm-card-container"},kB={class:"orangehrm-paper-container"};function SB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("record-attendance");return(0,a.openBlock)(),(0,a.createElementBlock)("div",NB,[(0,a.createElementVNode)("div",_B,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.punch_in")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",kB,[(0,a.createVNode)(d,(0,a.normalizeProps)((0,a.guardReactiveProps)(e.$attrs)),null,16)])])])}function DB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-input-group"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("date-input"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("timezone-dropdown"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createBlock)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[n.attendanceRecord.previousRecord?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(d,{class:(0,a.normalizeClass)(n.attendanceRecord.previousRecord.note?"":"--span-column-2")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{label:e.$t("attendance.punched_in_time")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.previousAttendanceRecordDate)+" - "+(0,a.toDisplayString)(r.previousAttendanceRecordTime)+" ",1),(0,a.createVNode)(i,{tag:"span",class:"orangehrm-attendance-punchedIn-timezone"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(`(GMT ${n.previousRecordTimezone})`),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["class"]),n.attendanceRecord.previousRecord.note?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{label:e.$t("attendance.punched_in_note")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.attendanceRecord.previousRecord.note),1)])),_:1})])),_:1},8,["label"])])),_:1})):(0,a.createCommentVNode)("",!0)],64)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(c,{key:n.attendanceRecord.time,modelValue:n.attendanceRecord.date,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attendanceRecord.date=e),label:e.$t("general.date"),rules:n.rules.date,disabled:!o.isEditable,required:""},null,8,["modelValue","label","rules","disabled"]))])),_:1}),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendanceRecord.time,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attendanceRecord.time=e),label:e.$t("general.time"),disabled:!o.isEditable,rules:n.rules.time,type:"time",placeholder:e.$t("attendance.hh_mm"),required:""},null,8,["modelValue","label","disabled","rules","placeholder"])])),_:1})])),_:1})])),_:1}),o.isTimezoneEditable?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,cols:2},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.attendanceRecord.timezone,"onUpdate:modelValue":t[2]||(t[2]=e=>n.attendanceRecord.timezone=e),required:""},null,8,["modelValue"])])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendanceRecord.note,"onUpdate:modelValue":t[3]||(t[3]=e=>n.attendanceRecord.note=e),rules:n.rules.note,label:e.$t("general.note"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{label:o.attendanceRecordId?e.$t("attendance.out"):e.$t("attendance.in")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])}function $B(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",options:l.options,label:e.$t("attendance.timezone"),"show-empty-selector":!1},null,8,["options","label"])}var EB={name:"TimezoneDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/attendance/timezones");return(0,a.onBeforeMount)((()=>{t.getAll().then((({data:t})=>{e.value=t.data.map((e=>({id:e.name,label:`(GMT${e.label}) ${e.name}`,_offset:parseFloat(e.offset)})))}))})),{options:e}}};const TB=(0,r.Z)(EB,[["render",$B]]);var BB=TB;const IB={date:null,time:null,note:null,timezone:null,previousRecord:null};var LB={name:"RecordAttendance",components:{"timezone-dropdown":BB},props:{isEditable:{type:Boolean,default:!1},isTimezoneEditable:{type:Boolean,default:!1},attendanceRecordId:{type:Number,default:null},employeeId:{type:Number,default:null},date:{type:String,default:null}},setup(e){const t=e.employeeId?`/api/v2/attendance/employees/${e.employeeId}/records`:"/api/v2/attendance/records",o=new P(window.appGlobal.baseUrl,t),{jsDateFormat:a,userDateFormat:l,timeFormat:n,jsTimeFormat:r}=R(),{locale:i}=De();return{http:o,locale:i,timeFormat:n,jsTimeFormat:r,jsDateFormat:a,userDateFormat:l}},data(){return{isLoading:!1,attendanceRecord:{...IB},rules:{date:[jt,Rt(this.userDateFormat),(0,q.promiseDebounce)(this.validateDate,500)],time:[jt,(0,q.promiseDebounce)(this.validateDate,500)],note:[zt(250)]},previousRecordTimezone:null}},computed:{previousAttendanceRecordDate(){return this.attendanceRecord?.previousRecord?ie(re(this.attendanceRecord.previousRecord.userDate),this.jsDateFormat,{locale:this.locale}):null},previousAttendanceRecordTime(){return this.attendanceRecord?.previousRecord?ue(me(this.attendanceRecord.previousRecord.userTime,this.timeFormat),this.jsTimeFormat):null}},beforeMount(){if(this.isLoading=!0,this.isTimezoneEditable){const e=be();this.attendanceRecord.timezone={id:e.name,label:e.label,_name:e.name,_offset:e.offset}}this.setCurrentDateTime().then((()=>{!this.date&&!this.isEditable&&ye(this.setCurrentDateTime,6e4);let e="/api/v2/attendance/records/latest";return this.employeeId&&(e=`/api/v2/attendance/records/latest?empNumber=${this.employeeId}`),this.attendanceRecordId?this.http.request({method:"GET",url:e}):null})).then((e=>{if(e){const{data:t}=e.data;this.attendanceRecord.previousRecord=t.punchIn}})).then((()=>{this.previousRecordTimezone=Ce(this.attendanceRecord.previousRecord?.offset)})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e=be();this.http.request({method:this.attendanceRecordId?"PUT":"POST",data:{date:this.attendanceRecord.date,time:this.attendanceRecord.time,note:this.attendanceRecord.note,timezoneOffset:this.attendanceRecord.timezone?._offset??e.offset,timezoneName:this.attendanceRecord.timezone?.id??e.name}}).then((()=>this.$toast.saveSuccess())).then((()=>{this.employeeId?U("/attendance/viewAttendanceRecord",void 0,{employeeId:this.employeeId,date:this.date}):A()}))},setCurrentDateTime(){return new Promise(((e,t)=>{this.http.request({method:"GET",url:"/api/v2/attendance/current-datetime"}).then((t=>{const{utcDate:o,utcTime:a}=t.data.data,l=re(`${o} ${a} +00:00`,"yyyy-MM-dd HH:mm xxx");this.attendanceRecord.date=this.date??ie(l,"yyyy-MM-dd"),this.attendanceRecord.time=ie(l,"HH:mm"),e()})).catch((e=>t(e)))}))},validateDate(){if(!this.attendanceRecord.date||!this.attendanceRecord.time)return!0;if(null===re(this.attendanceRecord.date))return!0;const e=(new Date).getTimezoneOffset()/60*-1;return new Promise((t=>{this.http.request({method:"GET",url:`/api/v2/attendance/${this.attendanceRecordId?"punch-out":"punch-in"}/overlaps`,params:{date:this.attendanceRecord.date,time:this.attendanceRecord.time,timezoneOffset:this.attendanceRecord.timezone?._offset??e,empNumber:this.employeeId},validateStatus:e=>e>=200&&e<300||400==e}).then((e=>{const{data:o,error:a}=e.data;return a?t(a.message):!0===o.valid?t(!0):t(this.$t("attendance.overlapping_records_found"))}))}))}}};const UB=(0,r.Z)(LB,[["render",DB],["__scopeId","data-v-3d5e6918"]]);var AB=UB,PB={components:{"record-attendance":AB},inheritAttrs:!1};const qB=(0,r.Z)(PB,[["render",SB]]);var MB=qB;const FB={class:"orangehrm-background-container"},jB={class:"orangehrm-card-container"},zB={class:"orangehrm-paper-container"};function RB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("record-attendance");return(0,a.openBlock)(),(0,a.createElementBlock)("div",FB,[(0,a.createElementVNode)("div",jB,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.punch_out")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",zB,[(0,a.createVNode)(d,(0,a.normalizeProps)((0,a.guardReactiveProps)(e.$attrs)),null,16)])])])}var OB={components:{"record-attendance":AB},inheritAttrs:!1};const GB=(0,r.Z)(OB,[["render",RB]]);var ZB=GB;const QB={class:"orangehrm-background-container"},HB={class:"orangehrm-card-container"},WB={class:"orangehrm-header"},YB={class:"orangehrm-paper-container"};function JB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("date-input"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("timezone-dropdown"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",QB,[(0,a.createElementVNode)("div",HB,[(0,a.createElementVNode)("div",WB,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.edit_attendance_records")),1)])),_:1}),r.totalDuration?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,tag:"span",class:"orangehrm-header-total"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(r.totalDuration),1)])),_:1})):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(s),(0,a.createElementVNode)("div",YB,[(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid no-gap"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.punch_in")),1)])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.attendance.punchIn.userDate,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attendance.punchIn.userDate=e),label:e.$t("general.date"),rules:n.rules.punchIn.userDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendance.punchIn.userTime,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attendance.punchIn.userTime=e),label:e.$t("general.time"),rules:n.rules.punchIn.userTime,type:"time",placeholder:e.$t("attendance.hh_mm"),required:""},null,8,["modelValue","label","rules","placeholder"])])),_:1}),o.isTimezoneEditable?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"--offset-row-3 --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:n.attendance.punchIn.timezone,"onUpdate:modelValue":t[2]||(t[2]=e=>n.attendance.punchIn.timezone=e),required:""},null,8,["modelValue"])])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendance.punchIn.note,"onUpdate:modelValue":t[3]||(t[3]=e=>n.attendance.punchIn.note=e),rules:n.rules.punchIn.note,label:e.$t("general.note"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),n.attendance.punchOut?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-punch-out-record"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.punch_out")),1)])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.attendance.punchOut.userDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.attendance.punchOut.userDate=e),label:e.$t("general.date"),rules:n.rules.punchOut.userDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendance.punchOut.userTime,"onUpdate:modelValue":t[5]||(t[5]=e=>n.attendance.punchOut.userTime=e),label:e.$t("general.time"),rules:n.rules.punchOut.userTime,type:"time",placeholder:e.$t("attendance.hh_mm"),required:""},null,8,["modelValue","label","rules","placeholder"])])),_:1}),o.isTimezoneEditable?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"--offset-row-3 --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:n.attendance.punchOut.timezone,"onUpdate:modelValue":t[6]||(t[6]=e=>n.attendance.punchOut.timezone=e),required:""},null,8,["modelValue"])])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendance.punchOut.note,"onUpdate:modelValue":t[7]||(t[7]=e=>n.attendance.punchOut.note=e),rules:n.rules.punchOut.note,label:e.$t("general.note"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])])}const XB={userDate:null,userTime:null,utcDate:null,utcTime:null,note:null,timezone:null,timezoneOffset:null};var KB={components:{"timezone-dropdown":BB},props:{attendanceId:{type:Number,required:!0},isEmployeeEdit:{type:Boolean,default:!1},isTimezoneEditable:{type:Boolean,default:!1}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/attendance/records"),{userDateFormat:t}=R();return{http:e,userDateFormat:t}},data(){return{isLoading:!1,attendance:{employee:null,punchIn:{...XB},punchOut:{...XB}},rules:{punchIn:{userDate:[jt,Rt(this.userDateFormat),(0,q.promiseDebounce)((()=>this.validateRecord("punch-in-overlaps")),500)],userTime:[jt,(0,q.promiseDebounce)((()=>this.validateRecord("punch-in-overlaps")),500)],note:[zt(250)]},punchOut:{userDate:[jt,Rt(this.userDateFormat),(0,q.promiseDebounce)((()=>this.validateRecord("punch-out-overlaps")),500)],userTime:[jt,(0,q.promiseDebounce)((()=>this.validateRecord("punch-out-overlaps")),500)],note:[zt(250)]}}}},computed:{totalDuration(){if(!this.attendance.punchOut?.userDate)return null;if(null===re(this.attendance.punchIn.userDate)||null===re(this.attendance.punchOut.userDate))return null;const e=`${this.attendance.punchIn.userDate} ${this.attendance.punchIn.userTime}`,t=this.attendance.punchIn.timezone?._offset??parseFloat(this.attendance.punchIn.timezoneOffset),o=(t>0?" +":" -")+ve(3600*Math.abs(t)),a=`${this.attendance.punchOut.userDate} ${this.attendance.punchOut.userTime}`,l=this.attendance.punchOut.timezone?._offset??parseFloat(this.attendance.punchOut.timezoneOffset),n=(l>0?" +":" -")+ve(3600*Math.abs(l));return parseFloat(ge(e+o,a+n,"yyyy-MM-dd HH:mm xxx")/3600).toFixed(2)}},beforeMount(){this.isLoading=!0,this.http.get(this.attendanceId).then((e=>{const{data:t}=e.data;this.attendance.employee=t.employee,this.attendance.punchIn={...t.punchIn,timezone:{id:t.punchIn.timezone.name,label:t.punchIn.timezone.label,_offset:t.punchIn.timezoneOffset}},this.attendance.punchOut=t.punchOut?.userDate?{...t.punchOut,timezone:{id:t.punchOut.timezone.name,label:t.punchOut.timezone.label,_offset:t.punchOut.timezoneOffset}}:null})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){this.isEmployeeEdit?U("/attendance/viewAttendanceRecord",void 0,{employeeId:this.attendance.employee?.empNumber,date:this.attendance.punchIn?.userDate}):U("/attendance/viewMyAttendanceRecord",void 0,{date:this.attendance.punchIn?.userDate})},onSave(){this.isLoading=!0;const e={punchInDate:this.attendance.punchIn.userDate,punchInTime:this.attendance.punchIn.userTime,punchInNote:this.attendance.punchIn.note,...this.isTimezoneEditable&&{punchInOffset:this.attendance.punchIn.timezone?this.attendance.punchIn.timezone._offset:this.attendance.punchIn.timezoneOffset,punchInTimezoneName:this.attendance.punchIn.timezone?this.attendance.punchIn.timezone.id:this.attendance.punchIn.timezone.name}};this.attendance.punchOut&&(e.punchOutDate=this.attendance.punchOut.userDate,e.punchOutTime=this.attendance.punchOut.userTime,e.punchOutNote=this.attendance.punchOut.note,this.isTimezoneEditable&&(e.punchOutOffset=this.attendance.punchOut.timezone?this.attendance.punchOut.timezone._offset:this.attendance.punchOut.timezoneOffset,e.punchOutTimezoneName=this.attendance.punchOut.timezone?this.attendance.punchOut.timezone.id:this.attendance.punchOut.timezone.name)),this.http.update(this.attendanceId,e).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},validateRecord(e){return null===re(this.attendance.punchIn.userDate)||(!(!this.attendance.punchOut||null!==re(this.attendance.punchOut.userDate))||new Promise((t=>{this.http.request({method:"GET",url:`/api/v2/attendance/records/${e}`,params:{recordId:this.attendanceId,punchInTimezoneOffset:this.attendance.punchIn.timezone?this.attendance.punchIn.timezone._offset:this.attendance.punchIn.timezoneOffset,punchInDate:this.attendance.punchIn.userDate,punchInTime:this.attendance.punchIn.userTime,punchOutTimezoneOffset:this.attendance.punchOut?.timezone?this.attendance.punchOut.timezone._offset:this.attendance.punchOut?.timezoneOffset,punchOutDate:this.attendance.punchOut?.userDate,punchOutTime:this.attendance.punchOut?.userTime},validateStatus:e=>e>=200&&e<300||400==e}).then((e=>{const{data:o,error:a}=e.data;return a?t(a.message):!0===o.valid?t(!0):t(this.$t("attendance.overlapping_records_found"))}))})))}}};const eI=(0,r.Z)(KB,[["render",JB],["__scopeId","data-v-40838874"]]);var tI=eI;const oI=e=>((0,a.pushScopeId)("data-v-50a2ff8a"),e=e(),(0,a.popScopeId)(),e),aI=oI((()=>(0,a.createElementVNode)("br",null,null,-1))),lI={class:"orangehrm-paper-container"},nI={class:"orangehrm-header-container"},rI={class:"orangehrm-container"},iI={class:"orangehrm-bottom-container"};function sI(e,t,o,l,n,r){const i=(0,a.resolveComponent)("date-input"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("oxd-text"),y=(0,a.resolveComponent)("table-header"),C=(0,a.resolveComponent)("oxd-card-table"),b=(0,a.resolveComponent)("oxd-pagination"),V=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(v,{"filter-title":e.$t("attendance.my_attendance_records")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.date,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.date=e),rules:l.rules.date,label:e.$t("general.date"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{"display-type":"secondary",label:e.$t("general.view"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),aI,(0,a.createElementVNode)("div",lI,[(0,a.createElementVNode)("div",nI,[(0,a.createVNode)(f,{class:"orangehrm-header-total",tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(l.totalDuration),1)])),_:1})]),(0,a.createVNode)(y,{total:l.total,loading:l.isLoading,selected:n.checkedItems.length,onDelete:r.onClickDeleteSelected},null,8,["total","loading","selected","onDelete"]),(0,a.createElementVNode)("div",rI,[(0,a.createVNode)(C,{selected:n.checkedItems,"onUpdate:selected":t[1]||(t[1]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:o.isEditable,clickable:!1,loading:l.isLoading,class:"orangehrm-my-attendance","row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","loading"])]),(0,a.createElementVNode)("div",iI,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0,current:l.currentPage,"onUpdate:current":t[2]||(t[2]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(V,{ref:"deleteDialog"},null,512)])],64)}const dI={class:"oxd-table-card-cell"},cI={class:"data"};function mI(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("div",dI,[(0,a.withDirectives)((0,a.createElementVNode)("div",{class:"header"},(0,a.toDisplayString)(o.header.title),513),[[a.vShow,r.showHeader]]),(0,a.createElementVNode)("div",cI,[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.date)+" "+(0,a.toDisplayString)(o.time)+" ",1),(0,a.createVNode)(i,{tag:"span",class:"timezone"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" GMT "+(0,a.toDisplayString)(o.offset?o.offset:"00:00"),1)])),_:1})])),_:1})])],512)),[[a.vShow,o.date]])}var uI={name:"RecordCell",props:{header:{type:Object,required:!0},date:{type:String,default:null},time:{type:String,default:null},offset:{type:String,default:null}},setup(){const{screenState:e}=(0,q.useInjectTableProps)();return{screenState:e}},computed:{showHeader(){return!("lg"===this.screenState.screenType||"xl"===this.screenState.screenType)}}};const pI=(0,r.Z)(uI,[["render",mI],["__scopeId","data-v-8f3074ce"]]);var hI=pI,gI={components:{"delete-confirmation":Et},props:{date:{type:String,default:null},isEditable:{type:Boolean,default:!1}},setup(e){const{locale:t}=De(),{jsDateFormat:o,userDateFormat:l,timeFormat:n,jsTimeFormat:r}=R(),i={date:[jt,Rt(l)]},s=(0,a.ref)({date:e.date?e.date:ie(ne(),"yyyy-MM-dd")}),d=(0,a.computed)((()=>({date:s.value.date}))),c=new P(window.appGlobal.baseUrl,"/api/v2/attendance/records"),m=e=>e.map((e=>{const{punchIn:a,punchOut:l}=e,i=ie(re(a?.userDate),o,{locale:t}),s=ue(me(a?.userTime,n),r),d=ie(re(l?.userDate),o,{locale:t}),c=ue(me(l?.userTime,n),r);return{id:e.id,punchIn:{...a,userTime:s,userDate:i},punchOut:{...l,userTime:c,userDate:d},punchInNote:a.note,punchOutNote:l.note,duration:e.duration}})),{total:u,pages:p,pageSize:h,response:g,isLoading:v,execQuery:f,currentPage:y,showPaginator:C}=wt(c,{query:d,normalizer:m}),b=(0,a.computed)((()=>{const e=g.value?.meta;return e?e.sum.label:"0.00"}));return{http:c,rules:i,total:u,pages:p,filters:s,pageSize:h,isLoading:v,execQuery:f,currentPage:y,showPaginator:C,items:g,totalDuration:b}},data(){return{headers:[{name:"punchIn",slot:"title",title:this.$t("attendance.punch_in"),style:{flex:1},cellRenderer:this.cellRenderer},{name:"punchInNote",slot:"title",cellType:"oxd-table-cell-truncate",title:this.$t("attendance.punch_in_note"),style:{flex:1}},{name:"punchOut",slot:"title",title:this.$t("attendance.punch_out"),style:{flex:1},cellRenderer:this.cellRenderer},{name:"punchOutNote",slot:"title",cellType:"oxd-table-cell-truncate",title:this.$t("attendance.punch_out_note"),style:{flex:1}},{name:"duration",slot:"title",title:this.$t("attendance.duration_hours"),style:{flex:1}},{...this.isEditable&&{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}}],checkedItems:[]}},methods:{cellRenderer(...e){const t=e[1];return{component:hI,props:{date:t.userDate,time:t.userTime,offset:Ce(t.offset)}}},onClickEdit(e){U("/attendance/editAttendanceRecord/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()}}};const vI=(0,r.Z)(gI,[["render",sI],["__scopeId","data-v-50a2ff8a"]]);var fI=vI;const yI={class:"orangehrm-background-container"},CI={class:"orangehrm-card-container"},bI={class:"orangehrm-attendance-field-row"},VI={class:"orangehrm-attendance-field-row"},xI={class:"orangehrm-attendance-field-row"};function wI(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-switch-input"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("submit-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",yI,[(0,a.createElementVNode)("div",CI,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.attendance_configuration")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",bI,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.employee_can_change_current_time_when_punching_in_out")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.config.canUserChangeCurrentTime,"onUpdate:modelValue":t[0]||(t[0]=e=>n.config.canUserChangeCurrentTime=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",VI,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.employee_can_edit_delete_own_attendance_records")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.config.canUserModifyAttendance,"onUpdate:modelValue":t[1]||(t[1]=e=>n.config.canUserModifyAttendance=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",xI,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.supervisor_can_add_edit_delete_attendance_records_of_subordinates")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.config.canSupervisorModifyAttendance,"onUpdate:modelValue":t[2]||(t[2]=e=>n.config.canSupervisorModifyAttendance=e)},null,8,["modelValue"])])])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const NI={canUserChangeCurrentTime:!1,canUserModifyAttendance:!1,canSupervisorModifyAttendance:!1};var _I={components:{"oxd-switch-input":q.OxdSwitchInput},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/attendance/configs");return{http:e}},data(){return{config:{...NI},isLoading:!1}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.config={...t}})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{...this.config}}).then((e=>{const{data:t}=e.data;return this.config={...t},this.$toast.saveSuccess()})).finally((()=>{this.isLoading=!1}))}}};const kI=(0,r.Z)(_I,[["render",wI],["__scopeId","data-v-026fb4c8"]]);var SI=kI;const DI=(0,a.createElementVNode)("br",null,null,-1);function $I(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("jobtitle-dropdown"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("employment-status-dropdown"),u=(0,a.resolveComponent)("date-input"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("oxd-table-filter"),b=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(b,{module:"time",name:"attendance",prefetch:!1,filters:l.serializedFilters,"column-count":2},{default:(0,a.withCtx)((({generateReport:n})=>[(0,a.createVNode)(C,{"filter-title":e.$t("attendance.attendance_total_summary_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y,{onSubmitValid:n},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:l.rules.employee,params:{includeEmployees:"currentAndPast"}},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.jobTitle=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.subunit,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.subunit=e),type:"select",label:e.$t("general.sub_unit"),options:o.subunits},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.empStatus,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.empStatus=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.fromDate=e),placeholder:e.$t("general.from"),rules:l.rules.fromDate,label:e.$t("general.date_range")},null,8,["modelValue","placeholder","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.toDate=e),label:" ",placeholder:e.$t("general.to"),rules:l.rules.toDate},null,8,["modelValue","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{type:"submit","display-type":"secondary",label:e.$t("general.view")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),DI])),footer:(0,a.withCtx)((({data:t})=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(t.meta?t.meta.sum.label:"0.00"),1)])),_:1},8,["filters"])}const EI={employee:null,fromDate:null,toDate:null,jobTitle:null,subunit:null,empStatus:null};var TI={components:{"reports-table":ex,"jobtitle-dropdown":Eu,"employee-autocomplete":Va,"employment-status-dropdown":qu},props:{subunits:{type:Array,default:()=>[]}},setup(){const e=(0,a.ref)({...EI}),{$t:t}=Se(),{userDateFormat:o}=R(),l={fromDate:[Rt(o),co((()=>e.value.toDate),t("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(o),eo((()=>e.value.fromDate),t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})],employee:[xo]},n=(0,a.computed)((()=>({empNumber:e.value.employee?.id,fromDate:e.value.fromDate,toDate:e.value.toDate,jobTitleId:e.value.jobTitle?.id,subunitId:e.value.subunit?.id,employmentStatusId:e.value.empStatus?.id})));return{rules:l,filters:e,serializedFilters:n}}};const BI=(0,r.Z)(TI,[["render",$I]]);var II=BI;const LI=e=>((0,a.pushScopeId)("data-v-22f945c4"),e=e(),(0,a.popScopeId)(),e),UI=LI((()=>(0,a.createElementVNode)("br",null,null,-1))),AI={class:"orangehrm-paper-container"},PI={class:"orangehrm-container"},qI={class:"orangehrm-bottom-container"};function MI(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("date-input"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("oxd-table-filter"),y=(0,a.resolveComponent)("table-header"),C=(0,a.resolveComponent)("oxd-card-table"),b=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(f,{"filter-title":e.$t("attendance.employee_attendance_records")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),params:{includeEmployees:"currentAndPast"}},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.date,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.date=e),rules:l.rules.date,years:n.yearArray,label:e.$t("general.date"),required:""},null,8,["modelValue","rules","years","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"secondary",label:e.$t("general.view"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),UI,(0,a.createElementVNode)("div",AI,[(0,a.createVNode)(y,{total:l.total,selected:0,loading:l.isLoading,"show-divider":!1},null,8,["total","loading"]),(0,a.createElementVNode)("div",PI,[(0,a.createVNode)(C,{headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items","loading"])]),(0,a.createElementVNode)("div",qI,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0,current:l.currentPage,"onUpdate:current":t[2]||(t[2]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])],64)}var FI={components:{"employee-autocomplete":Va},props:{date:{type:String,default:null}},setup(e){const{$tEmpName:t}=xa(),{userDateFormat:o}=R(),l={date:[jt,Rt(o)]},n=(0,a.ref)({date:e.date?e.date:ie(ne(),"yyyy-MM-dd"),employee:null}),r=(0,a.computed)((()=>({date:n.value.date,empNumber:n.value.employee?.id}))),i=e=>e.map((e=>({id:e.empNumber,empName:t(e,{includeMiddle:!1,excludePastEmpTag:!1}),duration:e.sum?.label}))),s=new P(window.appGlobal.baseUrl,"/api/v2/attendance/employees/summary"),{total:d,pages:c,response:m,isLoading:u,execQuery:p,currentPage:h,showPaginator:g}=wt(s,{query:r,normalizer:i});return{http:s,rules:l,total:d,pages:c,filters:n,isLoading:u,execQuery:p,currentPage:h,showPaginator:g,items:m}},data(){return{yearArray:[...wf()],headers:[{name:"empName",slot:"title",title:this.$t("general.employee_name"),style:{flex:"40%"}},{name:"duration",title:this.$t("time.total_duration"),style:{flex:"40%"}},{name:"actions",slot:"footer",title:this.$t("general.actions"),style:{flex:"20%"},cellType:"oxd-table-cell-actions",cellConfig:{view:{onClick:this.onClickView,component:"oxd-button",props:{label:this.$t("general.view"),displayType:"text",size:"medium"}}}}]}},methods:{async resetDataTable(){await this.execQuery()},async filterItems(){if(this.filters.employee&&this.filters.date)return U("/attendance/viewAttendanceRecord",void 0,{employeeId:this.filters.employee.id,date:this.filters.date});await this.execQuery()},onClickView(e){U("/attendance/viewAttendanceRecord",void 0,{employeeId:e.id,date:this.filters.date})}}};const jI=(0,r.Z)(FI,[["render",MI],["__scopeId","data-v-22f945c4"]]);var zI=jI;const RI=(0,a.createElementVNode)("br",null,null,-1),OI={class:"orangehrm-paper-container"},GI={key:0,class:"orangehrm-header-container"},ZI={class:"orangehrm-container"},QI={class:"orangehrm-bottom-container"};function HI(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("date-input"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("oxd-table-filter"),y=(0,a.resolveComponent)("oxd-text"),C=(0,a.resolveComponent)("table-header"),b=(0,a.resolveComponent)("oxd-card-table"),V=(0,a.resolveComponent)("oxd-pagination"),x=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(f,{"filter-title":e.$t("attendance.employee_attendance_records")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{onSubmitValid:r.onClickView},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:l.rules.employee,params:{includeEmployees:"currentAndPast"}},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.date,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.date=e),rules:l.rules.date,years:n.yearArray,label:e.$t("general.date"),required:""},null,8,["modelValue","rules","years","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"secondary",label:e.$t("general.view"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),RI,(0,a.createElementVNode)("div",OI,[o.isEditable&&l.filters.employee?((0,a.openBlock)(),(0,a.createElementBlock)("div",GI,[(0,a.createVNode)(h,{"icon-name":"plus","display-type":"secondary",label:e.$t("general.add"),onClick:r.onClickAdd},null,8,["label","onClick"]),(0,a.createVNode)(y,{class:"orangehrm-header-total",tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(l.totalDuration),1)])),_:1})])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(C,{total:l.total,loading:l.isLoading,"show-divider":o.isEditable,selected:n.checkedItems.length,onDelete:r.onClickDeleteSelected},null,8,["total","loading","show-divider","selected","onDelete"]),(0,a.createElementVNode)("div",ZI,[(0,a.createVNode)(b,{selected:n.checkedItems,"onUpdate:selected":t[2]||(t[2]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:o.isEditable,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","loading"])]),(0,a.createElementVNode)("div",QI,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(x,{ref:"deleteDialog"},null,512)])],64)}var WI={components:{"employee-autocomplete":Va,"delete-confirmation":Et},props:{date:{type:String,default:null},employee:{type:Object,required:!0},isEditable:{type:Boolean,default:!1}},setup(e){const t=(0,a.ref)({date:e.date?e.date:ie(ne(),"yyyy-MM-dd"),employee:e.employee?{id:e.employee.empNumber,label:`${e.employee.firstName} ${e.employee.middleName} ${e.employee.lastName}`,isPastEmployee:e.employee.terminationId}:null}),o=(0,a.computed)((()=>({date:t.value.date,empNumber:t.value.employee?.id}))),l=new P(window.appGlobal.baseUrl,`/api/v2/attendance/employees/${e.employee.empNumber}/records`),{locale:n}=De(),{jsDateFormat:r,userDateFormat:i,timeFormat:s,jsTimeFormat:d}=R(),c={date:[jt,Rt(i)],employee:[xo]},m=e=>e.map((e=>{const{punchIn:t,punchOut:o}=e,a=ie(re(t?.userDate),r,{locale:n}),l=ue(me(t?.userTime,s),d),i=ie(re(o?.userDate),r,{locale:n}),c=ue(me(o?.userTime,s),d);return{id:e.id,punchIn:{...t,userTime:l,userDate:a},punchOut:{...o,userTime:c,userDate:i},duration:e.duration,punchInNote:t.note,punchOutNote:o.note}})),{total:u,pages:p,pageSize:h,response:g,isLoading:v,execQuery:f,currentPage:y,showPaginator:C}=wt(l,{query:o,normalizer:m,prefetch:!0}),b=(0,a.computed)((()=>{const e=g.value?.meta;return e?e.sum.label:"0.00"}));return{http:l,rules:c,total:u,pages:p,filters:t,pageSize:h,isLoading:v,execQuery:f,currentPage:y,showPaginator:C,items:g,totalDuration:b}},data(){return{yearArray:[...wf()],headers:[{name:"punchIn",slot:"title",title:this.$t("attendance.punch_in"),style:{flex:1},cellRenderer:this.cellRenderer},{name:"punchInNote",slot:"title",cellType:"oxd-table-cell-truncate",title:this.$t("attendance.punch_in_note"),style:{flex:1}},{name:"punchOut",slot:"title",title:this.$t("attendance.punch_out"),style:{flex:1},cellRenderer:this.cellRenderer},{name:"punchOutNote",slot:"title",cellType:"oxd-table-cell-truncate",title:this.$t("attendance.punch_out_note"),style:{flex:1}},{name:"duration",slot:"title",title:this.$t("attendance.duration_hours"),style:{flex:1}},{...this.isEditable&&{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}}],checkedItems:[]}},methods:{cellRenderer(...e){const t=e[1];return{component:hI,props:{date:t.userDate,time:t.userTime,offset:Ce(t.offset)}}},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickView(){return U("/attendance/viewAttendanceRecord",void 0,{employeeId:this.filters.employee?.id,date:this.filters?.date})},onClickAdd(){return U("/attendance/proxyPunchInPunchOut",void 0,{employeeId:this.filters.employee?.id,date:this.filters?.date})},onClickEdit(e){return U("/attendance/editEmployeeAttendanceRecord/{id}",{id:e.id})}}};const YI=(0,r.Z)(WI,[["render",HI]]);var JI=YI,XI={"attendance-punch-in":MB,"attendance-punch-out":ZB,"edit-attendance":tI,"view-my-attendance":fI,"attendance-configuration":SI,"attendance-summary-report":II,"view-employee-attendance-summary":zI,"view-employee-attendance-detailed":JI};const KI={class:"orangehrm-background-container"},eL=(0,a.createElementVNode)("br",null,null,-1),tL={key:1};function oL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("purge-employee-records"),s=(0,a.resolveComponent)("selected-employee"),d=(0,a.resolveComponent)("maintenance-note"),c=(0,a.resolveComponent)("purge-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",KI,[(0,a.createVNode)(i,{"include-employees-param":"onlyPast","title-label":e.$t("maintenance.purge_employee_records"),"autocomplete-label":e.$t("maintenance.past_employee"),onSearch:r.onClickSearch},null,8,["title-label","autocomplete-label","onSearch"]),eL,n.showPurgeableEmployee?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,loading:n.isLoading,"selected-employee":n.selectedEmployee,"button-label":e.$t("maintenance.purge"),onSubmit:r.onClickPurge},null,8,["loading","selected-employee","button-label","onSubmit"])):(0,a.createCommentVNode)("",!0),n.showPurgeableEmployee?((0,a.openBlock)(),(0,a.createElementBlock)("br",tL)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{"instance-identifier":o.instanceIdentifier},null,8,["instance-identifier"]),(0,a.createVNode)(c,{ref:"purgeDialog",title:e.$t("maintenance.purge_employee"),subtitle:e.$t("maintenance.purge_employee_warning"),"cancel-label":e.$t("general.no_cancel"),"confirm-label":e.$t("maintenance.yes_purge")},null,8,["title","subtitle","cancel-label","confirm-label"])])}const aL={class:"orangehrm-card-container"},lL={class:"orangehrm-selected-employee"},nL={class:"orangehrm-selected-employee-imagesection"},rL={class:"orangehrm-selected-employee-image-wrapper"},iL={class:"orangehrm-selected-employee-image"},sL=["src"],dL={class:"orangehrm-selected-employee-content"};function cL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("full-name-input"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-input-field"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",aL,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("maintenance.selected_employee")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:o.loading,onSubmit:r.emitEmpNumber},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",lL,[(0,a.createElementVNode)("div",nL,[(0,a.createElementVNode)("div",rL,[(0,a.createElementVNode)("div",iL,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:l.imgSrc},null,8,sL)])])]),(0,a.createElementVNode)("div",dL,[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:1,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{"first-name":o.selectedEmployee.firstName,"middle-name":o.selectedEmployee.middleName,"last-name":o.selectedEmployee.lastName,rules:n.rules,"show-middle-name-placeholder":!1,disabled:""},null,8,["first-name","middle-name","last-name","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{"model-value":o.selectedEmployee.employeeId,label:e.$t("general.employee_id"),rules:n.rules.employeeId,disabled:""},null,8,["model-value","label","rules"])])),_:1})])),_:1})])),_:1})])]),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{"display-type":"secondary",label:o.buttonLabel,type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmit"])])}var mL={name:"SelectedEmployee",components:{"full-name-input":uu},props:{selectedEmployee:{type:Object,required:!0},buttonLabel:{type:String,required:!0},loading:{type:Boolean,default:!1}},emits:["submit"],setup(e){const t=(0,a.computed)((()=>`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.selectedEmployee.empNumber}`));return{imgSrc:t}},data(){return{rules:{firstName:[zt(30)],middleName:[zt(30)],lastName:[zt(30)],employeeId:[zt(10)]}}},methods:{emitEmpNumber(){this.$emit("submit",this.selectedEmployee.empNumber)}}};const uL=(0,r.Z)(mL,[["render",cL],["__scopeId","data-v-6ea34be5"]]);var pL=uL;const hL={class:"orangehrm-card-container"};function gL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",hL,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.titleLabel),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{onSubmit:r.emitEmployee},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employee=e),rules:n.rules.employee,params:{includeEmployees:o.includeEmployeesParam},label:o.autocompleteLabel,required:""},null,8,["modelValue","rules","params","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmit"])])}var vL={name:"EmployeeRecords",components:{"required-text":C,"employee-autocomplete":Va},props:{includeEmployeesParam:{type:String,required:!0},titleLabel:{type:String,required:!0},autocompleteLabel:{type:String,required:!0}},emits:["search"],data(){return{employee:null,rules:{employee:[jt,xo]}}},methods:{emitEmployee(){this.$emit("search",this.employee?._employee)}}};const fL=(0,r.Z)(vL,[["render",gL]]);var yL=fL;const CL={class:"orangehrm-modal-header"},bL={class:"orangehrm-text-center-align"},VL={class:"orangehrm-modal-footer"};function xL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-confirmation-dialog orangehrm-dialog-popup","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",CL,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.title),1)])),_:1})]),(0,a.createElementVNode)("div",bL,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.subtitle),1)])),_:1})]),(0,a.createElementVNode)("div",VL,[(0,a.createVNode)(s,{label:o.cancelLabel,"display-type":o.cancelButtonType,class:"orangehrm-button-margin",onClick:r.onCancel},null,8,["label","display-type","onClick"]),(0,a.createVNode)(s,{"icon-name":o.icon,label:o.confirmLabel,"display-type":o.confirmButtonType,class:"orangehrm-button-margin",onClick:r.onConfirm},null,8,["icon-name","label","display-type","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var wL={components:{"oxd-dialog":q.OxdDialog},props:{title:{type:String,required:!0},subtitle:{type:String,required:!0},cancelLabel:{type:String,required:!0},confirmLabel:{type:String,required:!0},icon:{type:String,required:!1,default:""},confirmButtonType:{type:String,required:!1,default:"label-danger"},cancelButtonType:{type:String,required:!1,default:"text"}},data(){return{show:!1,reject:null,resolve:null}},methods:{showDialog(){return new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const NL=(0,r.Z)(wL,[["render",xL],["__scopeId","data-v-2766d99a"]]);var _L=NL;const kL={key:0,class:"orangehrm-maintenance-note"},SL={class:"orangehrm-maintenance-note-header"};function DL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return null!==o.instanceIdentifier?((0,a.openBlock)(),(0,a.createElementBlock)("div",kL,[(0,a.createElementVNode)("div",SL,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.note")),1)])),_:1})]),(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("maintenance.gdpr_note",{instanceIdentifier:o.instanceIdentifier})),1)])),_:1})])):(0,a.createCommentVNode)("",!0)}var $L={name:"MaintenanceNote",props:{instanceIdentifier:{type:String,required:!0}}};const EL=(0,r.Z)($L,[["render",DL],["__scopeId","data-v-23b16e4f"]]);var TL=EL;const BL={firstName:"",middleName:"",lastName:"",employeeId:"",empNumber:""};var IL={name:"PurgeEmployee",components:{"purge-confirmation":_L,"purge-employee-records":yL,"selected-employee":pL,"maintenance-note":TL},props:{instanceIdentifier:{type:String,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/maintenance/purge");return{http:e}},data(){return{isLoading:!1,showPurgeableEmployee:!1,selectedEmployee:{...BL}}},methods:{onClickSearch(e){this.selectedEmployee={...BL},e?(this.selectedEmployee={...e},this.showPurgeableEmployee=!0):this.showPurgeableEmployee=!1},onClickPurge(e){this.$refs.purgeDialog.showDialog().then((t=>{"ok"===t&&this.purgeEmployee(e)}))},purgeEmployee(e){this.isLoading=!0,this.http.deleteAll({empNumber:e}).then((()=>this.$toast.success({title:this.$t("general.success"),message:this.$t("maintenance.purge_success")}))).then((()=>{this.showPurgeableEmployee=!1,this.selectedEmployee={...BL},this.isLoading=!1,U("/maintenance/purgeEmployee")}))}}};const LL=(0,r.Z)(IL,[["render",oL]]);var UL=LL;const AL={class:"orangehrm-background-container"},PL=(0,a.createElementVNode)("br",null,null,-1);function qL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("selected-candidates"),s=(0,a.resolveComponent)("maintenance-note"),d=(0,a.resolveComponent)("purge-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",AL,[(0,a.createVNode)(i,{loading:n.isLoading,onPurge:r.onClickPurge},null,8,["loading","onPurge"]),PL,(0,a.createVNode)(s,{"instance-identifier":o.instanceIdentifier},null,8,["instance-identifier"]),(0,a.createVNode)(d,{ref:"purgeDialog",title:e.$t("maintenance.purge_candidates"),subtitle:e.$t("maintenance.purge_candidates_warning"),"cancel-label":e.$t("general.no_cancel"),"confirm-label":e.$t("maintenance.yes_purge")},null,8,["title","subtitle","cancel-label","confirm-label"])])}const ML={key:0,class:"orangehrm-paper-container"},FL={class:"orangehrm-header-container"},jL={class:"orangehrm-container"},zL={class:"orangehrm-bottom-container"};function RL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("purge-candidate-records"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(i,{onSearch:r.onClickSearch},null,8,["onSearch"]),l.vacancy?((0,a.openBlock)(),(0,a.createElementBlock)("div",ML,[(0,a.withDirectives)((0,a.createElementVNode)("div",FL,[(0,a.createVNode)(s,{label:e.$t("maintenance.purge_all"),"display-type":"secondary",onClick:r.onClickPurge},null,8,["label","onClick"])],512),[[a.vShow,l.total>0]]),(0,a.createVNode)(d,{total:l.total,selected:0,"show-divider":l.total>0,loading:l.isLoading||o.loading},null,8,["total","show-divider","loading"]),(0,a.createElementVNode)("div",jL,[(0,a.createVNode)(c,{headers:n.headers,clickable:!1,selectable:!1,loading:l.isLoading||o.loading,items:l.items.data,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","loading","items"])]),(0,a.createElementVNode)("div",zL,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])):(0,a.createCommentVNode)("",!0)],64)}const OL={class:"orangehrm-card-container"};function GL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("vacancy-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",OL,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("maintenance.purge_candidate_records")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{onSubmitValid:t[1]||(t[1]=t=>e.$emit("search",n.vacancy.id))},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy,"onUpdate:modelValue":t[0]||(t[0]=e=>n.vacancy=e),rules:n.rules.vacancy,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1})])}function ZL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",label:e.$t("recruitment.vacancy"),clear:!1,"create-options":r.loadVacancies},{option:(0,a.withCtx)((({data:e})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.label),1)])),_:1},8,["label","create-options"])}var QL={name:"VacancyAutocomplete",setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancies");return{http:e}},methods:{async loadVacancies(e){return new Promise((t=>{e.trim()?this.http.getAll({name:e.trim()}).then((({data:e})=>{t(e.data.map((e=>({id:e.id,label:e.name}))))})):t([])}))}}};const HL=(0,r.Z)(QL,[["render",ZL]]);var WL=HL,YL={name:"CandidateRecords",components:{"required-text":C,"vacancy-autocomplete":WL},emits:["search"],data(){return{vacancy:null,rules:{vacancy:[jt,xo]}}}};const JL=(0,r.Z)(YL,[["render",GL]]);var XL=JL,KL={name:"SelectedCandidates",components:{"purge-candidate-records":XL},props:{loading:{type:Boolean,default:!1}},emits:["purge"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/maintenance/candidates"),t=(0,a.ref)(null),{locale:o}=De(),{jsDateFormat:l}=R(),{$tEmpName:n}=xa(),r=(0,a.computed)((()=>({vacancyId:t.value}))),i=e=>e.map((e=>({name:n({firstName:e.firstName,middleName:e.middleName,lastName:e.lastName,terminationId:null},{includeMiddle:!0}),date:ie(re(e.dateOfApplication),l,{locale:o}),status:e.status.label}))),{total:s,pages:d,response:c,isLoading:m,currentPage:u,showPaginator:p,execQuery:h}=wt(e,{prefetch:!1,query:r,normalizer:i});return{http:e,total:s,pages:d,vacancy:t,isLoading:m,currentPage:u,showPaginator:p,items:c,execQuery:h}},data(){return{headers:[{name:"name",title:this.$t("recruitment.candidate_name"),style:{flex:"45%"}},{name:"date",title:this.$t("recruitment.date_of_application"),style:{flex:"45%"}},{name:"status",title:this.$t("general.status"),style:{flex:"10%"}}]}},methods:{onClickSearch(e){this.vacancy=e,this.execQuery()},onClickPurge(){this.vacancy&&this.$emit("purge",this.vacancy)}}};const eU=(0,r.Z)(KL,[["render",RL],["__scopeId","data-v-3c1da283"]]);var tU=eU,oU={name:"PurgeCandidate",components:{"maintenance-note":TL,"purge-confirmation":_L,"selected-candidates":tU},props:{instanceIdentifier:{type:String,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/maintenance/candidates/purge");return{http:e}},data(){return{isLoading:!1}},methods:{onClickPurge(e){const t=e;this.$refs.purgeDialog.showDialog().then((e=>{"ok"===e&&this.purgeCandidates(t)}))},purgeCandidates(e){this.isLoading=!0,this.http.deleteAll({vacancyId:e}).then((()=>this.$toast.success({title:this.$t("general.success"),message:this.$t("maintenance.purge_success")}))).then((()=>{A()}))}}};const aU=(0,r.Z)(oU,[["render",qL]]);var lU=aU;const nU={key:0,class:"orangehrm-background-container"},rU={key:1};function iU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-records"),s=(0,a.resolveComponent)("selected-employee"),d=(0,a.resolveComponent)("maintenance-note");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(i,{"title-label":e.$t("maintenance.download_personal_data"),"include-employees-param":"currentAndPast","autocomplete-label":e.$t("general.employee_name"),onSearch:r.search},null,8,["title-label","autocomplete-label","onSearch"]),n.employee?((0,a.openBlock)(),(0,a.createElementBlock)("div",nU,[(0,a.createVNode)(s,{"button-label":e.$t("general.download"),"selected-employee":n.employee,onSubmit:r.downloadEmployeeData},null,8,["button-label","selected-employee","onSubmit"])])):(0,a.createCommentVNode)("",!0),n.employee?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("br",rU)),(0,a.createVNode)(d,{"instance-identifier":o.instanceIdentifier},null,8,["instance-identifier"])],64)}var sU={components:{"employee-records":yL,"selected-employee":pL,"maintenance-note":TL},props:{instanceIdentifier:{type:String,default:null}},data(){return{employee:null}},methods:{search(e){this.employee=e},downloadEmployeeData(e){const t=`${window.appGlobal.baseUrl}/maintenance/accessEmployeeData/${e}`;window.open(t,"_blank")}}};const dU=(0,r.Z)(sU,[["render",iU]]);var cU=dU,mU={"purge-employee":UL,"purge-candidate":lU,"access-employee-search":cU};const uU=e=>((0,a.pushScopeId)("data-v-65c21a19"),e=e(),(0,a.popScopeId)(),e),pU={class:"orangehrm-background-container"},hU=uU((()=>(0,a.createElementVNode)("br",null,null,-1))),gU={class:"orangehrm-paper-container"},vU={class:"orangehrm-header-container"},fU={class:"orangehrm-container"},yU={class:"orangehrm-bottom-container"};function CU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("jobtitle-dropdown"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("vacancy-dropdown"),c=(0,a.resolveComponent)("hiring-manager-dropdown"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-divider"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("oxd-table-filter"),C=(0,a.resolveComponent)("table-header"),b=(0,a.resolveComponent)("oxd-card-table"),V=(0,a.resolveComponent)("oxd-pagination"),x=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",pU,[(0,a.createVNode)(y,{"filter-title":e.$t("general.vacancies")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.jobTitleId,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.jobTitleId=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.vacancyId,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.vacancyId=e),label:e.$t("recruitment.vacancy")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.hiringManagerId,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.hiringManagerId=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.status,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.status=e),type:"select",label:e.$t("general.status"),clear:!1,options:n.statusOptions},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(g,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),hU,(0,a.createElementVNode)("div",gU,[(0,a.createElementVNode)("div",vU,[(0,a.createVNode)(g,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(C,{selected:n.checkedItems.length,loading:l.isLoading,total:l.total,onDelete:r.onClickDeleteSelected},null,8,["selected","loading","total","onDelete"]),(0,a.createElementVNode)("div",fU,[(0,a.createVNode)(b,{selected:n.checkedItems,"onUpdate:selected":t[4]||(t[4]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[5]||(t[5]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card",class:"orangehrm-vacancy-list"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",yU,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,current:l.currentPage,"onUpdate:current":t[6]||(t[6]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(x,{ref:"deleteDialog"},null,512)])}function bU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("recruitment.vacancy"),options:l.options},null,8,["label","options"])}var VU={name:"VacancyDropdown",props:{status:{type:Boolean,required:!1,default:null},excludeInterviewers:{type:Boolean,required:!1,default:!1}},setup(e){const t=(0,a.ref)([]),{$t:o}=Se(),l=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancies");return(0,a.onBeforeMount)((()=>{const a={model:"summary",limit:0};null!==e.status&&(a.status=e.status),a.excludeInterviewers=e.excludeInterviewers,l.getAll(a).then((({data:e})=>{t.value=e.data.map((e=>({id:e.id,label:!1===e.status?`${e.name} (${o("general.closed")})`:e.name})))}))})),{options:t}}};const xU=(0,r.Z)(VU,[["render",bU]]);var wU=xU;function NU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("recruitment.hiring_manager"),options:l.options},null,8,["label","options"])}var _U={name:"HiringManagerDropdown",setup(){const e=(0,a.ref)([]),{$tEmpName:t}=xa(),o=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/hiring-managers");return(0,a.onBeforeMount)((()=>{o.getAll({limit:0}).then((({data:o})=>{e.value=o.data.map((e=>({id:e.empNumber,label:t(e,{includeMiddle:!1,excludePastEmpTag:!1})})))}))})),{options:e}}};const kU=(0,r.Z)(_U,[["render",NU]]);var SU=kU;const DU={jobTitleId:null,hiringManagerId:null,vacancyId:null,status:null},$U={"vacancy.name":"ASC","vacancy.status":"DEFAULT","jobTitle.jobTitleName":"DEFAULT","hiringManager.lastName":"DEFAULT"};var EU={name:"ViewJobVacancy",components:{"delete-confirmation":Et,"jobtitle-dropdown":Eu,"vacancy-dropdown":wU,"hiring-manager-dropdown":SU},setup(){const{$t:e}=Se(),{$tEmpName:t}=xa(),o=(0,a.ref)({...DU}),{sortDefinition:l,sortField:n,sortOrder:r,onSort:i}=Tt({sortDefinition:$U}),s=(0,a.computed)((()=>({vacancyId:o.value.vacancyId?.id,jobTitleId:o.value.jobTitleId?.id,hiringManagerId:o.value.hiringManagerId?.id,status:o.value.status?.id,sortField:n.value,sortOrder:r.value,model:"detailed"}))),d=o=>o.map((o=>({id:o.id,vacancy:o.name,jobTitle:o.jobTitle?.isDeleted?o.jobTitle.title+e("general.deleted"):o.jobTitle?.title,hiringManager:t(o.hiringManager),status:o.status?e("general.active"):e("general.closed")}))),c=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancies"),{showPaginator:m,currentPage:u,total:p,pages:h,pageSize:g,response:v,isLoading:f,execQuery:y}=wt(c,{query:s,normalizer:d});return i(y),{http:c,showPaginator:m,currentPage:u,isLoading:f,total:p,pages:h,pageSize:g,execQuery:y,items:v,filters:o,sortDefinition:l}},data(){return{headers:[{name:"vacancy",slot:"title",title:this.$t("recruitment.vacancy"),sortField:"vacancy.name",style:{flex:3}},{name:"jobTitle",title:this.$t("general.job_title"),sortField:"jobTitle.jobTitleName",style:{flex:3}},{name:"hiringManager",title:this.$t("recruitment.hiring_manager"),sortField:"hiringManager.lastName",style:{flex:3}},{name:"status",title:this.$t("general.status"),sortField:"vacancy.status",style:{flex:2}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:2},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],statusOptions:[{id:!0,param:"active",label:this.$t("general.active")},{id:!1,param:"closed",label:this.$t("general.closed")}],vacancies:[],checkedItems:[]}},methods:{onClickAdd(){U("/recruitment/addJobVacancy")},onClickEdit(e){U("/recruitment/addJobVacancy/{id}",{id:e.id})},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData([e.id])}))},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData(e)}))},async deleteData(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onClickReset(){this.filters={...DU},this.filterItems()}}};const TU=(0,r.Z)(EU,[["render",CU],["__scopeId","data-v-65c21a19"]]);var BU=TU;const IU=e=>((0,a.pushScopeId)("data-v-00048e4c"),e=e(),(0,a.popScopeId)(),e),LU={class:"orangehrm-background-container"},UU={class:"orangehrm-card-container"},AU=IU((()=>(0,a.createElementVNode)("br",null,null,-1))),PU=IU((()=>(0,a.createElementVNode)("br",null,null,-1))),qU={class:"orangehrm-vacancy-links"},MU=IU((()=>(0,a.createElementVNode)("br",null,null,-1)));function FU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("jobtitle-dropdown"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("employee-autocomplete"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("vacancy-link-card"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",LU,[(0,a.createElementVNode)("div",UU,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.add_vacancy")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.vacancy.name=e),label:e.$t("recruitment.vacancy_name"),required:"",rules:n.rules.name},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.vacancy.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.vacancy.jobTitle=e),rules:n.rules.jobTitle,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-grid-item-span-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.vacancy.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.vacancy.hiringManager,"onUpdate:modelValue":t[3]||(t[3]=e=>n.vacancy.hiringManager=e),params:{includeEmployees:"onlyCurrent"},required:"",rules:n.rules.hiringManager,label:e.$t("recruitment.hiring_manager")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.numOfPositions,"onUpdate:modelValue":t[4]||(t[4]=e=>n.vacancy.numOfPositions=e),label:e.$t("recruitment.num_of_positions"),rules:n.rules.numOfPositions},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangerhrm-switch-wrapper"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.active")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.vacancy.status,"onUpdate:modelValue":t[5]||(t[5]=e=>n.vacancy.status=e)},null,8,["modelValue"])])),_:1})])),_:1}),AU,(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangerhrm-switch-wrapper"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.publish_in_rss_feed_and_web_page")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.vacancy.isPublished,"onUpdate:modelValue":t[6]||(t[6]=e=>n.vacancy.isPublished=e)},null,8,["modelValue"])])),_:1})])),_:1}),PU,(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-grid-item-span-2"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",qU,[(0,a.createVNode)(g,{label:e.$t("recruitment.rss_feed_url"),url:n.rssFeedUrl},null,8,["label","url"]),(0,a.createVNode)(g,{label:e.$t("recruitment.web_page_url"),url:n.webUrl},null,8,["label","url"])])])),_:1})])),_:1}),MU,(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const jU={class:"orangehrm-label-link-wrapper"},zU=["href"];function RU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",jU,[(0,a.createVNode)(i,{class:"orangehrm-text-label",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.label)+" : ",1)])),_:1}),(0,a.createElementVNode)("a",{href:o.url,target:"_blank",class:"orangehrm-vacancy-link"},(0,a.toDisplayString)(o.url),9,zU)])}var OU={name:"VacancyLinkCard",props:{label:{type:String,required:!0},url:{type:String,required:!0}}};const GU=(0,r.Z)(OU,[["render",RU],["__scopeId","data-v-7a7e694e"]]);var ZU=GU;const QU={jobTitle:null,name:"",hiringManager:null,numOfPositions:"",description:"",status:!0,isPublished:!0},HU=`${window.location.protocol}//${window.location.host}${window.appGlobal.baseUrl}`;var WU={components:{"oxd-switch-input":q.OxdSwitchInput,"employee-autocomplete":Va,"jobtitle-dropdown":Eu,"vacancy-link-card":ZU},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancies");return{http:e}},data(){return{isLoading:!1,vacancy:{...QU},rules:{jobTitle:[jt],name:[jt,zt(50)],hiringManager:[jt,xo],numOfPositions:[e=>null===e||""===e||("string"===typeof Ht(e)?Ht(e):vo(1,99)(e))],description:[],status:[jt],isPublished:[jt]},rssFeedUrl:`${HU}/recruitmentApply/jobs.rss`,webUrl:`${HU}/recruitmentApply/jobs.html`}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/recruitment/viewJobVacancy")},onSave(){this.isLoading=!0,this.vacancy={name:this.vacancy.name,jobTitleId:this.vacancy.jobTitle.id,employeeId:this.vacancy.hiringManager.id,numOfPositions:this.vacancy.numOfPositions?parseInt(this.vacancy.numOfPositions):null,description:this.vacancy.description,status:this.vacancy.status,isPublished:this.vacancy.isPublished},this.http.create({...this.vacancy}).then((e=>{const{data:t}=e.data;this.$toast.saveSuccess(),U("/recruitment/addJobVacancy/{id}",{id:t.id})}))}}};const YU=(0,r.Z)(WU,[["render",FU],["__scopeId","data-v-00048e4c"]]);var JU=YU;const XU=e=>((0,a.pushScopeId)("data-v-d4ce637a"),e=e(),(0,a.popScopeId)(),e),KU={class:"orangehrm-background-container"},eA={class:"orangehrm-card-container"},tA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),oA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),aA={class:"orangehrm-vacancy-links"},lA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),nA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),rA={key:0,class:"orangehrm-card-container"},iA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),sA={key:1,class:"orangehrm-card-container"},dA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),cA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),mA={class:"orangehrm-paper-container"},uA={class:"orangehrm-header-container orangehrm-attachment-header"},pA={class:"orangehrm-container"},hA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),gA=XU((()=>(0,a.createElementVNode)("br",null,null,-1)));function vA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("jobtitle-dropdown"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("employee-autocomplete"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("vacancy-link-card"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("file-upload-input"),x=(0,a.resolveComponent)("table-header"),w=(0,a.resolveComponent)("oxd-card-table"),N=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",KU,[(0,a.createElementVNode)("div",eA,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.edit_vacancy")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.vacancy.name=e),label:e.$t("recruitment.vacancy_name"),required:"",rules:n.rules.name},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.vacancy.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.vacancy.jobTitle=e),rules:n.rules.jobTitle,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-grid-item-span-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.vacancy.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.vacancy.hiringManager,"onUpdate:modelValue":t[3]||(t[3]=e=>n.vacancy.hiringManager=e),params:{includeEmployees:"onlyCurrent"},required:"",rules:n.rules.hiringManager,label:e.$t("recruitment.hiring_manager")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.numOfPositions,"onUpdate:modelValue":t[4]||(t[4]=e=>n.vacancy.numOfPositions=e),label:e.$t("recruitment.num_of_positions"),rules:n.rules.numOfPositions},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangerhrm-switch-wrapper"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.active")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.vacancy.status,"onUpdate:modelValue":t[5]||(t[5]=e=>n.vacancy.status=e)},null,8,["modelValue"])])),_:1})])),_:1}),tA,(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangerhrm-switch-wrapper"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.publish_in_rss_feed_and_web_page")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.vacancy.isPublished,"onUpdate:modelValue":t[6]||(t[6]=e=>n.vacancy.isPublished=e)},null,8,["modelValue"])])),_:1})])),_:1}),oA,(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-grid-item-span-2"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",aA,[(0,a.createVNode)(g,{label:e.$t("recruitment.rss_feed_url"),url:n.rssFeedUrl},null,8,["label","url"]),(0,a.createVNode)(g,{label:e.$t("recruitment.web_page_url"),url:n.webUrl},null,8,["label","url"])])])),_:1})])),_:1}),lA,(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),nA,n.isAddClicked&&!n.isEditClicked?((0,a.openBlock)(),(0,a.createElementBlock)("div",rA,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title orangehrm-attachment-header__title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoadingAttachment,onSubmitValid:r.onSaveAttachment},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(V,{newFile:n.vacancyAttachment.newAttachment,"onUpdate:newFile":t[7]||(t[7]=e=>n.vacancyAttachment.newAttachment=e),method:n.vacancyAttachment.method,"onUpdate:method":t[8]||(t[8]=e=>n.vacancyAttachment.method=e),label:e.$t("general.select_file"),"button-label":e.$t("general.browse"),file:n.vacancyAttachment.oldAttachment,rules:n.rules.addAttachment,url:"recruitment/vacancyAttachment/attachId",hint:e.$t("general.accepts_up_to_1mb"),required:""},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancyAttachment.comment,"onUpdate:modelValue":t[9]||(t[9]=e=>n.vacancyAttachment.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1}),iA,(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.updateVisibility},null,8,["label","onClick"]),(0,a.createVNode)(y,{label:e.$t("general.save")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])):(0,a.createCommentVNode)("",!0),n.isEditClicked&&!n.isAddClicked?((0,a.openBlock)(),(0,a.createElementBlock)("div",sA,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title orangehrm-attachment-header__title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoadingAttachment,onSubmitValid:r.onUpdateAttachment},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(V,{newFile:n.vacancyAttachment.newAttachment,"onUpdate:newFile":t[10]||(t[10]=e=>n.vacancyAttachment.newAttachment=e),method:n.vacancyAttachment.method,"onUpdate:method":t[11]||(t[11]=e=>n.vacancyAttachment.method=e),label:e.$t("general.select_file"),"button-label":e.$t("general.browse"),file:n.vacancyAttachment.oldAttachment,rules:n.rules.updateAttachment,url:"recruitment/viewVacancyAttachment/attachId",hint:e.$t("general.accepts_up_to_1mb"),deletable:!1,required:""},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancyAttachment.comment,"onUpdate:modelValue":t[12]||(t[12]=e=>n.vacancyAttachment.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1}),dA,(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.updateVisibility},null,8,["label","onClick"]),(0,a.createVNode)(y,{label:e.$t("general.save")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])):(0,a.createCommentVNode)("",!0),cA,(0,a.createElementVNode)("div",mA,[(0,a.createElementVNode)("div",uA,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title orangehrm-attachment-header__title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.attachments")),1)])),_:1}),n.isAddClicked||n.isEditClicked?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(f,{key:0,label:e.$t("general.add"),"icon-name":"plus","display-type":"text",onClick:r.onClickAdd},null,8,["label","onClick"]))]),(0,a.createVNode)(x,{selected:n.checkedItems.length,loading:n.isLoadingTable,total:n.attachments.length,onDelete:r.onClickDeleteSelected},null,8,["selected","loading","total","onDelete"]),(0,a.createElementVNode)("div",pA,[(0,a.createVNode)(w,{selected:n.checkedItems,"onUpdate:selected":t[13]||(t[13]=e=>n.checkedItems=e),headers:n.headers,items:n.attachments,selectable:!0,clickable:!1,loading:n.isLoadingTable,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createVNode)(N,{ref:"deleteDialog"},null,512),hA,gA])])}const fA={jobTitle:null,name:"",hiringManager:null,numOfPositions:"",description:"",status:!1,isPublished:!1},yA={id:null,comment:"",oldAttachment:{},newAttachment:null,method:"keepCurrent"},CA=`${window.location.protocol}//${window.location.host}${window.appGlobal.baseUrl}`,bA=e=>e.map((e=>({id:e.id,vacancyId:e.vacancyId,fileName:e.attachment.fileName,fileSize:+(e.attachment.fileSize/1024).toFixed(2)+" kb",fileType:e.attachment.fileType,comment:e.comment,attachmentType:e.attachmentType})));var VA={components:{"oxd-switch-input":q.OxdSwitchInput,"employee-autocomplete":Va,"jobtitle-dropdown":Eu,"vacancy-link-card":ZU,"delete-confirmation":Et,"file-upload-input":To},props:{vacancyId:{type:String,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancies"),t=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancy/attachments");return{http:e,httpAttachments:t}},data(){return{isLoading:!1,isLoadingAttachment:!1,isLoadingTable:!1,isAddClicked:!1,isEditClicked:!1,currentName:"",vacancy:{...fA},vacancyAttachment:{...yA},rules:{jobTitle:[jt],name:[jt,zt(50)],hiringManager:[jt,xo,e=>!e?.isPastEmployee||this.$t("general.invalid")],numOfPositions:[e=>null===e||""===e||("string"===typeof Ht(e)?Ht(e):vo(1,99)(e))],description:[],status:[jt],isPublished:[jt],addAttachment:[jt,no(this.maxFileSize),ro(this.allowedFileTypes)],updateAttachment:[e=>"replaceCurrent"!=this.vacancyAttachment.method||jt(e),ro(this.allowedFileTypes),no(this.maxFileSize)],comment:[zt(200)]},headers:[{name:"fileName",slot:"title",title:this.$t("general.file_name"),style:{flex:3}},{name:"fileSize",title:this.$t("general.file_size"),style:{flex:2}},{name:"fileType",title:this.$t("general.file_type"),style:{flex:2}},{name:"comment",title:this.$t("general.comment"),style:{flex:4}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:2},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},download:{onClick:this.downloadFile,props:{name:"download"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],attachments:[],checkedItems:[],rssFeedUrl:`${CA}/recruitmentApply/jobs.rss`,webUrl:`${CA}/recruitmentApply/jobs.html`}},created(){this.isLoading=!0,this.isLoadingTable=!0,this.http.get(this.vacancyId).then((e=>{const{data:t}=e.data;return this.currentName=t.name,this.vacancy.name=t.name,this.vacancy.description=t.description,this.vacancy.numOfPositions=t.numOfPositions||"",this.vacancy.status=t.status,this.vacancy.isPublished=t.isPublished,this.vacancy.hiringManager={id:t.hiringManager.id,label:`${t.hiringManager.firstName} ${t.hiringManager.middleName} ${t.hiringManager.lastName}`,isPastEmployee:!!t.hiringManager.terminationId},this.vacancy.jobTitle=t.jobTitle.isDeleted?null:{id:t.jobTitle.id,label:t.jobTitle.title},this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e&&t.name!=this.currentName));return-1===o||this.$t("general.already_exists")}))})).then((()=>{this.httpAttachments.request({method:"GET",url:`/api/v2/recruitment/vacancies/${this.vacancyId}/attachments`}).then((e=>{const{data:t}=e.data;this.attachments=bA(t)}))})).finally((()=>{this.isLoadingTable=!1,this.isLoading=!1}))},methods:{onCancel(){U("/recruitment/viewJobVacancy")},onSave(){this.isLoading=!0,this.vacancy={name:this.vacancy.name,jobTitleId:this.vacancy.jobTitle.id,employeeId:this.vacancy.hiringManager.id,numOfPositions:this.vacancy.numOfPositions?parseInt(this.vacancy.numOfPositions):null,description:this.vacancy.description,status:this.vacancy.status,isPublished:this.vacancy.isPublished},this.http.update(this.vacancyId,{...this.vacancy}).then((()=>this.$toast.saveSuccess())).then((()=>{U("/recruitment/addJobVacancy/{id}",{id:this.vacancyId})}))},onSaveAttachment(){this.isLoadingAttachment=!0,this.isLoadingTable=!0,this.httpAttachments.create({vacancyId:parseInt(this.vacancyId),attachment:this.vacancyAttachment.newAttachment?this.vacancyAttachment.newAttachment:void 0,comment:this.vacancyAttachment.comment,attachmentType:1}).then((()=>this.$toast.saveSuccess())).then((()=>{this.updateVisibility(),this.resetDataTable(),this.isLoadingAttachment=!1,this.isLoadingTable=!1}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData([e.id])}))},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.attachments[e]?.id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData(e)}))},async deleteData(e){e instanceof Array&&(this.isLoadingTable=!0,this.httpAttachments.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.resetDataTable(),this.isLoadingTable=!1})))},resetDataTable(){this.checkedItems=[],this.httpAttachments.request({method:"GET",url:`/api/v2/recruitment/vacancies/${this.vacancyId}/attachments`}).then((e=>{const{data:t}=e.data;this.attachments=bA(t)}))},onClickAdd(){this.isEditClicked=!1,this.isAddClicked=!0},onClickEdit(e){this.vacancyAttachment.id=e.id,this.vacancyAttachment.comment=e.comment,this.vacancyAttachment.oldAttachment={id:e.id,filename:e.fileName,fileType:e.fileType,fileSize:e.filefileSize},this.vacancyAttachment.newAttachment=null,this.vacancyAttachment.method="keepCurrent",this.isAddClicked=!1,this.isEditClicked=!0},onUpdateAttachment(){this.isLoadingAttachment=!0,this.isLoadingTable=!0,this.httpAttachments.request({method:"PUT",url:`/api/v2/recruitment/vacancies/${this.vacancyId}/attachments/${this.vacancyAttachment.id}`,data:{vacancyId:parseInt(this.vacancyId),currentAttachment:this.vacancyAttachment.oldAttachment?this.vacancyAttachment.method:void 0,attachment:this.vacancyAttachment.newAttachment?this.vacancyAttachment.newAttachment:void 0,comment:this.vacancyAttachment.comment,attachmentType:1}}).then((()=>this.$toast.saveSuccess())).then((()=>{this.updateVisibility(),this.resetDataTable(),this.isLoadingAttachment=!1,this.isLoadingTable=!1}))},updateVisibility(){this.isAddClicked=!1,this.isEditClicked=!1,this.vacancyAttachment={...yA}},downloadFile(e){if(!e?.id)return;const t="recruitment/viewVacancyAttachment/attachId",o=`${window.appGlobal.baseUrl}/${t}/${e.id}`;window.open(o,"_blank")}}};const xA=(0,r.Z)(VA,[["render",vA],["__scopeId","data-v-d4ce637a"]]);var wA=xA;const NA={class:"orangehrm-background-container"};function _A(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",NA,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.hire_candidate"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}const kA={class:"orangehrm-card-container"};function SA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",kA,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.title),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,(0,a.mergeProps)({loading:o.loading},e.$attrs),{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.candidate.candidateName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.candidate.candidateName=e),label:e.$t("recruitment.candidate"),readonly:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.candidate.vacancyName,"onUpdate:modelValue":t[1]||(t[1]=e=>n.candidate.vacancyName=e),label:e.$t("recruitment.vacancy"),readonly:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.candidate.hiringManagerName,"onUpdate:modelValue":t[2]||(t[2]=e=>n.candidate.hiringManagerName=e),label:e.$t("recruitment.hiring_manager"),readonly:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:r.recruitmentStatus,"onUpdate:modelValue":t[3]||(t[3]=e=>r.recruitmentStatus=e),label:e.$t("recruitment.current_status"),readonly:""},null,8,["modelValue","label"])])),_:1})])),_:1})])),_:1}),(0,a.renderSlot)(e.$slots,"default")])),_:3},16,["loading"])])}const DA={candidateName:"",vacancyName:"",hiringManagerName:"",status:null};var $A={name:"CandidateActionLayout",inheritAttrs:!1,props:{candidateId:{type:Number,required:!0},title:{type:String,required:!0},loading:{type:Boolean,required:!0}},emits:["update:loading"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates"),{$tEmpName:t}=xa();return{http:e,translateEmpName:t}},data(){return{candidate:{...DA},statuses:[{id:1,label:this.$t("recruitment.application_initiated")},{id:2,label:this.$t("recruitment.shortlisted")},{id:3,label:this.$t("leave.rejected")},{id:4,label:this.$t("recruitment.interview_scheduled")},{id:5,label:this.$t("recruitment.interview_passed")},{id:6,label:this.$t("recruitment.interview_failed")},{id:7,label:this.$t("recruitment.job_offered")},{id:8,label:this.$t("recruitment.offer_declined")},{id:9,label:this.$t("recruitment.hired")}]}},computed:{recruitmentStatus(){return this.statuses.find((e=>e.id===this.candidate.status?.id))?.label||null}},beforeMount(){this.$emit("update:loading",!0),this.http.get(this.candidateId).then((e=>{const{data:t}=e.data;this.candidate.status=t.status,this.candidate.candidateName=`${t?.firstName} ${t?.middleName||""} ${t?.lastName}`,t?.vacancy&&(this.candidate.vacancyName=t?.vacancy.name),t?.vacancy?.hiringManager&&(this.candidate.hiringManagerName=this.translateEmpName(t.vacancy.hiringManager,{includeMiddle:!0,excludePastEmpTag:!1}))})).finally((()=>{this.$emit("update:loading",!1)}))}};const EA=(0,r.Z)($A,[["render",SA]]);var TA=EA,BA={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/hire`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const IA=(0,r.Z)(BA,[["render",_A]]);var LA=IA;const UA={class:"orangehrm-background-container"};function AA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",UA,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.mark_interview_failed"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var PA={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0},interviewId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/interviews/${e.interviewId}/fail`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const qA=(0,r.Z)(PA,[["render",AA]]);var MA=qA;const FA={class:"orangehrm-background-container"};function jA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",FA,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.mark_interview_passed"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var zA={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0},interviewId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/interviews/${e.interviewId}/pass`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const RA=(0,r.Z)(zA,[["render",jA]]);var OA=RA;const GA={class:"orangehrm-background-container"};function ZA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("interviewer-autocomplete"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("time-input"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",GA,[(0,a.createVNode)(C,{loading:n.isLoading,"onUpdate:loading":t[4]||(t[4]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.schedule_interview"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.interview.interviewName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.interview.interviewName=e),rules:n.rules.interviewName,label:e.$t("recruitment.interview_title"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.interviewers,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(d,{key:t,modelValue:n.interviewers[t],"onUpdate:modelValue":e=>n.interviewers[t]=e,"show-delete":t>0,rules:n.rules.interviewerName.filter(((e,o)=>0===t||o>0)),"include-employees":"onlyCurrent",required:"",onRemove:e=>r.onRemoveInterviewer(t)},null,8,["modelValue","onUpdate:modelValue","show-delete","rules","onRemove"])))),128)),n.interviewers.length<5?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,"icon-name":"plus","display-type":"text",class:"orangehrm-input-field-bottom-space",label:e.$t("general.add_another"),onClick:r.onAddAnother},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.interview.interviewDate,"onUpdate:modelValue":t[1]||(t[1]=e=>n.interview.interviewDate=e),rules:n.rules.interviewDate,label:e.$t("general.date"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:n.interview.interviewTime,"onUpdate:modelValue":t[2]||(t[2]=e=>n.interview.interviewTime=e),rules:n.rules.interviewTime,label:e.$t("general.time")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-3 --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.interview.note,"onUpdate:modelValue":t[3]||(t[3]=e=>n.interview.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(v),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}const QA={class:"orangehrm-recruitment-interviewer-input"};function HA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-icon-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",QA,[(0,a.createVNode)(i,(0,a.mergeProps)({label:o.showDelete?null:e.$t("recruitment.interviewer"),disabled:o.disabled},e.$attrs,{"api-path":"/api/v2/recruitment/interviewers"}),null,16,["label","disabled"]),o.showDelete&&!o.disabled?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,name:"trash-fill",class:"orangehrm-recruitment-delete-icon","with-container":!1,onClick:r.remove},null,8,["onClick"])):(0,a.createCommentVNode)("",!0)])}var WA={name:"InterviewerAutocomplete",components:{"employee-autocomplete":Va},inheritAttrs:!1,props:{showDelete:{type:Boolean,required:!0},includeEmployee:{type:String,default:"currentAndPast"},disabled:{type:Boolean,required:!1,default:!1}},emits:["remove"],methods:{remove(){this.$emit("remove")}}};const YA=(0,r.Z)(WA,[["render",HA],["__scopeId","data-v-73842d23"]]);var JA=YA;const XA={interviewName:null,interviewDate:null,interviewTime:null,note:null};var KA={components:{"candidate-action-layout":TA,"interviewer-autocomplete":JA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/shedule-interview`),{userDateFormat:o}=R();return{http:t,userDateFormat:o}},data(){return{isLoading:!1,interview:{...XA},interviewers:[null],rules:{interviewName:[jt,zt(100)],interviewDate:[jt,Rt(this.userDateFormat)],interviewTime:[Gt],interviewerName:[jt,xo,e=>this.interviewers.filter((t=>t&&t.id===e?.id)).length<2||this.$t("general.already_exists")],note:[zt(2e3)]}}},methods:{onAddAnother(){this.interviewers.length<5&&this.interviewers.push(null)},onRemoveInterviewer(e){this.interviewers.splice(e,1)},onSave(){this.isLoading=!0,this.http.create({...this.interview,interviewerEmpNumbers:this.interviewers.map((e=>e?.id)).filter(Number)}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const eP=(0,r.Z)(KA,[["render",ZA]]);var tP=eP;const oP={class:"orangehrm-background-container"};function aP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",oP,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.offer_job"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var lP={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/job/offer`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const nP=(0,r.Z)(lP,[["render",aP]]);var rP=nP;const iP={class:"orangehrm-background-container"};function sP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",iP,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.decline_offer"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var dP={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/job/decline`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const cP=(0,r.Z)(dP,[["render",sP]]);var mP=cP;const uP={class:"orangehrm-background-container"};function pP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",uP,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.reject_candidate"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var hP={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/reject`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const gP=(0,r.Z)(hP,[["render",pP]]);var vP=gP;const fP={class:"orangehrm-background-container"};function yP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",fP,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.shortlist_candidate"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var CP={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/shortlist`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const bP=(0,r.Z)(CP,[["render",yP]]);var VP=bP;const xP={class:"orangehrm-background-container orangehrm-save-candidate-page"},wP={class:"orangehrm-card-container"};function NP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("full-name-input"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("vacancy-dropdown"),h=(0,a.resolveComponent)("oxd-input-field"),g=(0,a.resolveComponent)("file-upload-input"),v=(0,a.resolveComponent)("date-input"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xP,[(0,a.createElementVNode)("div",wP,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.add_candidate")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:1,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{"first-name":n.candidate.firstName,"onUpdate:first-name":t[0]||(t[0]=e=>n.candidate.firstName=e),"middle-name":n.candidate.middleName,"onUpdate:middle-name":t[1]||(t[1]=e=>n.candidate.middleName=e),"last-name":n.candidate.lastName,"onUpdate:last-name":t[2]||(t[2]=e=>n.candidate.lastName=e),label:e.$t("general.full_name"),rules:n.rules,required:""},null,8,["first-name","middle-name","last-name","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.candidate.vacancyId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.candidate.vacancyId=e),"exclude-interviewers":!0,status:!0},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.candidate.email,"onUpdate:modelValue":t[4]||(t[4]=e=>n.candidate.email=e),label:e.$t("general.email"),placeholder:e.$t("general.type_here"),rules:n.rules.email,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.candidate.contactNumber,"onUpdate:modelValue":t[5]||(t[5]=e=>n.candidate.contactNumber=e),label:e.$t("recruitment.contact_number"),placeholder:e.$t("general.type_here"),rules:n.rules.contactNumber},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{newFile:n.resume.newAttachment,"onUpdate:newFile":t[6]||(t[6]=e=>n.resume.newAttachment=e),method:n.resume.method,"onUpdate:method":t[7]||(t[7]=e=>n.resume.method=e),label:e.$t("recruitment.resume"),"button-label":e.$t("general.browse"),file:n.resume.oldAttachment,rules:n.rules.resume,hint:e.$t("general.accept_custom_format_file"),url:"recruitment/candidateAttachment/attachId"},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-save-candidate-page-full-width"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.candidate.keywords,"onUpdate:modelValue":t[8]||(t[8]=e=>n.candidate.keywords=e),label:e.$t("recruitment.keywords"),placeholder:`${e.$t("recruitment.enter_comma_seperated_words")}...`,rules:n.rules.keywords},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{modelValue:n.candidate.dateOfApplication,"onUpdate:modelValue":t[9]||(t[9]=e=>n.candidate.dateOfApplication=e),label:e.$t("recruitment.date_of_application"),rules:n.rules.applyDate},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-save-candidate-page-full-width"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.candidate.comment,"onUpdate:modelValue":t[10]||(t[10]=e=>n.candidate.comment=e),label:e.$t("general.notes"),type:"textarea",placeholder:e.$t("general.type_here"),rules:n.rules.notes},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-save-candidate-page-full-width orangehrm-save-candidate-page-grid-checkbox"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.candidate.consentToKeepData,"onUpdate:modelValue":t[11]||(t[11]=e=>n.candidate.consentToKeepData=e),type:"checkbox",label:e.$t("recruitment.consent_to_keep_data")},null,8,["modelValue","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(C)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var _P={name:"SaveCandidate",components:{"submit-button":s,"full-name-input":uu,"vacancy-dropdown":wU,"file-upload-input":To},props:{maxFileSize:{type:Number,required:!0},allowedFileTypes:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates"),{userDateFormat:t}=R();return{http:e,userDateFormat:t}},data(){return{isLoading:!1,candidate:{firstName:null,middleName:null,lastName:null,email:null,contactNumber:null,keywords:null,comment:null,dateOfApplication:ie(ne(),"yyyy-MM-dd"),consentToKeepData:!1,vacancyId:null},resume:{id:null,oldAttachment:null,newAttachment:null,method:"keepCurrent"},rules:{firstName:[jt,zt(30)],lastName:[jt,zt(30)],middleName:[zt(30)],email:[jt,io,zt(50)],contactNumber:[so,zt(25)],notes:[zt(250)],keywords:[zt(250)],resume:[no(this.maxFileSize),ro(this.allowedFileTypes)],applyDate:[Rt(this.userDateFormat),Ot()]}}},methods:{onSave(){let e;this.isLoading=!0,this.http.create({...this.candidate,vacancyId:this.candidate.vacancyId?.id}).then((({data:{data:t}})=>{if(e=parseInt(t.id),this.resume.newAttachment)return this.http.request({method:"POST",url:"/api/v2/recruitment/candidate/attachments",data:{candidateId:e,attachment:this.resume.newAttachment}})})).then((()=>this.$toast.saveSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:e})}))},onCancel(){U("/recruitment/viewCandidates")}}};const kP=(0,r.Z)(_P,[["render",NP],["__scopeId","data-v-e75f8a7a"]]);var SP=kP;const DP={class:"orangehrm-candidate-page"},$P=(0,a.createElementVNode)("br",null,null,-1),EP={class:"orangehrm-paper-container"},TP={key:0,class:"orangehrm-header-container"},BP={class:"orangehrm-container"},IP={class:"orangehrm-bottom-container"};function LP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("jobtitle-dropdown"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("vacancy-dropdown"),c=(0,a.resolveComponent)("hiring-manager-dropdown"),m=(0,a.resolveComponent)("candidate-status-dropdown"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("candidate-autocomplete"),g=(0,a.resolveComponent)("oxd-input-field"),v=(0,a.resolveComponent)("date-input"),f=(0,a.resolveComponent)("oxd-divider"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form"),x=(0,a.resolveComponent)("oxd-table-filter"),w=(0,a.resolveComponent)("table-header"),N=(0,a.resolveComponent)("oxd-card-table"),_=(0,a.resolveComponent)("oxd-pagination"),k=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",DP,[(0,a.createVNode)(x,{"filter-title":e.$t("general.candidates")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(V,{onSubmitValid:r.filterItems,onReset:r.onReset},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.jobTitle,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.jobTitle=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.vacancy,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.vacancy=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.hiringManager,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.hiringManager=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.status,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.status=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:l.filters.candidate,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.candidate=e),rules:l.rules.candidate},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:l.filters.keywords,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.keywords=e),label:e.$t("recruitment.keywords"),placeholder:`${e.$t("recruitment.enter_comma_seperated_words")}...`},null,8,["modelValue","label","placeholder"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[6]||(t[6]=e=>l.filters.fromDate=e),label:e.$t("recruitment.date_of_application"),placeholder:e.$t("general.from"),rules:l.rules.fromDate},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[7]||(t[7]=e=>l.filters.toDate=e),label:" ",placeholder:e.$t("general.to"),rules:l.rules.toDate},null,8,["modelValue","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:l.filters.methodOfApplication,"onUpdate:modelValue":t[8]||(t[8]=e=>l.filters.methodOfApplication=e),label:e.$t("recruitment.method_of_application"),type:"select",options:n.applications},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y,{type:"reset","display-type":"ghost",label:e.$t("general.reset")},null,8,["label"]),(0,a.createVNode)(C,{label:e.$t("general.search")},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),$P,(0,a.createElementVNode)("div",EP,[e.$can.create("recruitment_candidates")?((0,a.openBlock)(),(0,a.createElementBlock)("div",TP,[(0,a.createVNode)(y,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(w,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,"show-divider":e.$can.create("recruitment_candidates"),onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","show-divider","onDelete"]),(0,a.createElementVNode)("div",BP,[(0,a.createVNode)(N,{selected:n.checkedItems,"onUpdate:selected":t[9]||(t[9]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[10]||(t[10]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",IP,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(_,{key:0,current:l.currentPage,"onUpdate:current":t[11]||(t[11]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(k,{ref:"deleteDialog"},null,512)])}function UP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",label:e.$t("recruitment.candidate_name"),clear:!1,"create-options":r.loadCandidates},{option:(0,a.withCtx)((({data:e})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.label),1)])),_:1},8,["label","create-options"])}var AP={name:"CandidateAutocomplete",props:{params:{type:Object,default:()=>({})}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates");return{http:e}},methods:{async loadCandidates(e){return new Promise((t=>{e.trim()?this.http.getAll({candidateName:e.trim(),...this.params}).then((({data:e})=>{t(e.data.map((e=>({id:e.id,label:`${e.firstName} ${e.middleName||""} ${e.lastName}`,_candidate:e}))))})):t([])}))}}};const PP=(0,r.Z)(AP,[["render",UP],["__scopeId","data-v-5c755293"]]);var qP=PP;function MP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("general.status"),options:l.options},null,8,["label","options"])}var FP={name:"CandidateStatusDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates/statuses");return(0,a.onBeforeMount)((()=>{t.getAll().then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.label})))}))})),{options:e}}};const jP=(0,r.Z)(FP,[["render",MP]]);var zP=jP;const RP={jobTitle:null,vacancy:null,hiringManager:null,status:null,keywords:null,application:null,candidate:null,fromDate:null,toDate:null},OP={"vacancy.name":"DEFAULT","candidate.lastName":"DEFAULT","hiringManager.lastName":"DEFAULT","candidate.dateOfApplication":"DESC","candidateVacancy.status":"DEFAULT"};var GP={components:{"vacancy-dropdown":wU,"jobtitle-dropdown":Eu,"delete-confirmation":Et,"candidate-autocomplete":qP,"hiring-manager-dropdown":SU,"candidate-status-dropdown":zP},props:{status:{type:Object,required:!1,default:null}},setup(e){const{$t:t}=Se(),{locale:o}=De(),{jsDateFormat:l,userDateFormat:n}=R(),{$tEmpName:r}=xa(),i=e=>e.map((e=>({id:e.id,vacancy:!1===e.vacancy?.status?`${e.vacancy?.name} (${t("general.closed")})`:e.vacancy?.name,candidate:`${e.firstName} ${e.middleName||""} ${e.lastName}`,manager:e?.vacancy?.hiringManager?r(e.vacancy.hiringManager,{includeMiddle:!0,excludePastEmpTag:!1}):"",dateOfApplication:ie(re(e.dateOfApplication),l,{locale:o}),status:e.status?.label,resume:e.hasAttachment,isSelectable:e.deletable}))),s=(0,a.ref)({...RP,...e.status&&{status:e.status}}),d={candidate:[xo],fromDate:[Rt(n),co((()=>s.value.toDate),t("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(n),eo((()=>s.value.fromDate),t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]},{sortDefinition:c,sortField:m,sortOrder:u,onSort:p}=Tt({sortDefinition:OP}),h=(0,a.computed)((()=>({jobTitleId:s.value.jobTitle?.id,vacancyId:s.value.vacancy?.id,hiringManagerId:s.value.hiringManager?.id,keywords:s.value.keywords,candidateId:s.value.candidate?.id,fromDate:s.value.fromDate,toDate:s.value.toDate,status:s.value.status?.id,methodOfApplication:s.value.methodOfApplication?.id,model:"list",sortField:m.value,sortOrder:u.value}))),g=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates"),{showPaginator:v,currentPage:f,total:y,pages:C,pageSize:b,response:V,isLoading:x,execQuery:w}=wt(g,{query:h,normalizer:i});return p(w),{http:g,showPaginator:v,currentPage:f,isLoading:x,total:y,pages:C,pageSize:b,execQuery:w,items:V,filters:s,sortDefinition:c,rules:d}},data(){return{checkedItems:[],headers:[{name:"vacancy",title:this.$t("recruitment.vacancy"),sortField:"vacancy.name",style:{flex:1}},{name:"candidate",slot:"title",title:this.$t("recruitment.candidate"),sortField:"candidate.lastName",style:{flex:1}},{name:"manager",title:this.$t("recruitment.hiring_manager"),sortField:"hiringManager.lastName",style:{flex:1}},{name:"dateOfApplication",title:this.$t("recruitment.date_of_application"),sortField:"candidate.dateOfApplication",style:{flex:1}},{name:"status",title:this.$t("general.status"),sortField:"candidateVacancy.status",style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer}],applications:[{id:1,label:this.$t("recruitment.manual")},{id:2,label:this.$t("recruitment.online")}]}},methods:{cellRenderer(...[,,,e]){const t={view:{onClick:this.onClickEdit,props:{name:"eye-fill"}}};return e.isSelectable&&(t.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),e.resume&&(t.download={onClick:this.onDownload,props:{name:"download"}}),{props:{header:{cellConfig:t}}}},onClickAdd(){U("/recruitment/addCandidate")},onClickEdit(e){U("/recruitment/addCandidate/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},onDownload(e){if(!e?.id)return;const t="recruitment/viewCandidateAttachment/candidateId",o=`${window.appGlobal.baseUrl}/${t}/${e.id}`;window.open(o,"_blank")},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})).catch((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onReset(){this.filters={...RP},this.filterItems()}}};const ZP=(0,r.Z)(GP,[["render",LP]]);var QP=ZP;function HP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("recruitment-status"),s=(0,a.resolveComponent)("candidate-profile"),d=(0,a.resolveComponent)("history-table");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[n.candidate?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,candidate:n.candidate},null,8,["candidate"])):(0,a.createCommentVNode)("",!0),n.candidate?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,candidate:n.candidate,"max-file-size":o.maxFileSize,updatable:o.updatable,onUpdate:r.onCandidateUpdate},null,8,["candidate","max-file-size","updatable","onUpdate"])):(0,a.createCommentVNode)("",!0),n.candidate?((0,a.openBlock)(),(0,a.createBlock)(d,{key:2,candidate:n.candidate},null,8,["candidate"])):(0,a.createCommentVNode)("",!0)],64)}const WP={class:"orangehrm-card-container"},YP={class:"orangehrm-recruitment"},JP={key:0,class:"orangehrm-recruitment-status"},XP={class:"orangehrm-recruitment-actions"};function KP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",WP,[(0,a.createVNode)(p,{loading:n.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.application_stage")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.name")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.candidateName),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("recruitment.vacancy")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.vacancyName?r.vacancyName:"N/A"),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("recruitment.hiring_manager")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.hiringManagerName?r.hiringManagerName:"N/A"),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",YP,[r.recruitmentStatus?((0,a.openBlock)(),(0,a.createElementBlock)("div",JP,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.status"))+": "+(0,a.toDisplayString)(r.recruitmentStatus),1)])),_:1})])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",XP,[r.hasWorkflow(3)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,label:e.$t("general.reject"),"display-type":"danger",onClick:t[0]||(t[0]=e=>r.doWorkflow(3))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(8)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1,label:e.$t("recruitment.offer_declined"),"display-type":"danger",onClick:t[1]||(t[1]=e=>r.doWorkflow(8))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(6)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:2,label:e.$t("recruitment.mark_interview_failed"),"display-type":"danger",onClick:t[2]||(t[2]=e=>r.doWorkflow(6))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(2)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:3,label:e.$t("recruitment.shortlist"),"display-type":"success",onClick:t[3]||(t[3]=e=>r.doWorkflow(2))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(4)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:4,label:e.$t("recruitment.schedule_interview"),"display-type":"success",onClick:t[4]||(t[4]=e=>r.doWorkflow(4))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(5)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:5,label:e.$t("recruitment.mark_interview_passed"),"display-type":"success",onClick:t[5]||(t[5]=e=>r.doWorkflow(5))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(7)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:6,label:e.$t("recruitment.offer_job"),"display-type":"success",onClick:t[6]||(t[6]=e=>r.doWorkflow(7))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(9)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:7,label:e.$t("recruitment.hire"),"display-type":"success",onClick:t[7]||(t[7]=e=>r.doWorkflow(9))},null,8,["label"])):(0,a.createCommentVNode)("",!0)])])])),_:1},8,["loading"])])}var eq={name:"RecruitmentStatus",props:{candidate:{type:Object,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates"),{$tEmpName:t}=xa();return{http:e,translateEmpName:t}},data(){return{isLoading:!1,statuses:[{id:1,label:this.$t("recruitment.application_initiated")},{id:2,label:this.$t("recruitment.shortlisted")},{id:3,label:this.$t("leave.rejected")},{id:4,label:this.$t("recruitment.interview_scheduled")},{id:5,label:this.$t("recruitment.interview_passed")},{id:6,label:this.$t("recruitment.interview_failed")},{id:7,label:this.$t("recruitment.job_offered")},{id:8,label:this.$t("recruitment.offer_declined")},{id:9,label:this.$t("recruitment.hired")}],actions:[]}},computed:{recruitmentStatus(){return this.statuses.find((e=>e.id===this.candidate.status?.id))?.label||null},candidateName(){return`${this.candidate.firstName} ${this.candidate?.middleName||""} ${this.candidate.lastName}`},vacancyName(){const{vacancy:e}=this.candidate;return e?!1===e.status?e.name+` (${this.$t("general.closed")})`:e.name:null},hiringManagerName(){return this.candidate.vacancy?.hiringManager?this.translateEmpName(this.candidate.vacancy.hiringManager,{includeMiddle:!0,excludePastEmpTag:!1}):void 0}},watch:{candidate(){this.getAllowedActions()}},beforeMount(){this.getAllowedActions()},methods:{hasWorkflow(e){return this.actions.findIndex((t=>t.id==e))>-1},doWorkflow(e){U("/recruitment/changeCandidateVacancyStatus",{},{candidateId:this.candidate?.id,selectedAction:e})},getAllowedActions(){this.isLoading=!0,this.http.request({method:"GET",url:`/api/v2/recruitment/candidates/${this.candidate?.id}/actions/allowed`}).then((e=>{const{data:t}=e.data;this.actions=[...t]})).finally((()=>{this.isLoading=!1}))}}};const tq=(0,r.Z)(eq,[["render",KP],["__scopeId","data-v-2d6dc297"]]);var oq=tq;const aq={class:"orangehrm-background-container"},lq={class:"orangehrm-card-container"},nq={class:"orangehrm-header-container"};function rq(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-switch-input"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("full-name-input"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("vacancy-dropdown"),g=(0,a.resolveComponent)("oxd-input-field"),v=(0,a.resolveComponent)("file-upload-input"),f=(0,a.resolveComponent)("date-input"),y=(0,a.resolveComponent)("required-text"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form"),x=(0,a.resolveComponent)("confirmation-dialog");return(0,a.openBlock)(),(0,a.createElementBlock)("div",aq,[(0,a.createElementVNode)("div",lq,[(0,a.createElementVNode)("div",nq,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.candidate_profile")),1)])),_:1}),!n.isLoading&&o.updatable?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,modelValue:n.editable,"onUpdate:modelValue":t[0]||(t[0]=e=>n.editable=e),"option-label":e.$t("general.edit"),"label-position":"left"},null,8,["modelValue","option-label"])):(0,a.createCommentVNode)("",!0)]),(0,a.withDirectives)((0,a.createVNode)(d,null,null,512),[[a.vShow,!n.isLoading]]),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:1,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{"first-name":n.profile.firstName,"onUpdate:first-name":t[1]||(t[1]=e=>n.profile.firstName=e),"middle-name":n.profile.middleName,"onUpdate:middle-name":t[2]||(t[2]=e=>n.profile.middleName=e),"last-name":n.profile.lastName,"onUpdate:last-name":t[3]||(t[3]=e=>n.profile.lastName=e),rules:n.rules,label:e.$t("general.full_name"),disabled:!n.editable,required:""},null,8,["first-name","middle-name","last-name","rules","label","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.vacancy,"onUpdate:modelValue":t[4]||(t[4]=e=>n.vacancy=e),label:e.$t("recruitment.job_vacancy"),readonly:!n.editable,"exclude-interviewers":!0,status:!0},null,8,["modelValue","label","readonly"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.profile.email,"onUpdate:modelValue":t[5]||(t[5]=e=>n.profile.email=e),label:e.$t("general.email"),placeholder:e.$t("general.type_here"),rules:n.rules.email,disabled:!n.editable,required:""},null,8,["modelValue","label","placeholder","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.profile.contactNumber,"onUpdate:modelValue":t[6]||(t[6]=e=>n.profile.contactNumber=e),label:e.$t("recruitment.contact_number"),placeholder:e.$t("general.type_here"),rules:n.rules.contactNumber,disabled:!n.editable},null,8,["modelValue","label","placeholder","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{newFile:n.attachment.newAttachment,"onUpdate:newFile":t[7]||(t[7]=e=>n.attachment.newAttachment=e),method:n.attachment.method,"onUpdate:method":t[8]||(t[8]=e=>n.attachment.method=e),label:e.$t("recruitment.resume"),"button-label":e.$t("general.browse"),file:n.attachment.oldAttachment,rules:n.rules.resume,hint:e.$t("general.accept_custom_format_file"),disabled:!n.editable,url:r.getResumeUrl},null,8,["newFile","method","label","button-label","file","rules","hint","disabled","url"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-save-candidate-page --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.profile.keywords,"onUpdate:modelValue":t[9]||(t[9]=e=>n.profile.keywords=e),label:e.$t("recruitment.keywords"),placeholder:`${e.$t("recruitment.enter_comma_seperated_words")}...`,rules:n.rules.keywords,disabled:!n.editable},null,8,["modelValue","label","placeholder","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{modelValue:n.profile.dateOfApplication,"onUpdate:modelValue":t[10]||(t[10]=e=>n.profile.dateOfApplication=e),label:e.$t("recruitment.date_of_application"),rules:n.rules.applicationDate,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-save-candidate-page --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.profile.comment,"onUpdate:modelValue":t[11]||(t[11]=e=>n.profile.comment=e),label:e.$t("general.notes"),type:"textarea",placeholder:e.$t("general.type_here"),disabled:!n.editable},null,8,["modelValue","label","placeholder","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-candidate-grid-checkbox"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.profile.consentToKeepData,"onUpdate:modelValue":t[12]||(t[12]=e=>n.profile.consentToKeepData=e),type:"checkbox",label:e.$t("recruitment.consent_to_keep_data"),disabled:!n.editable},null,8,["modelValue","label","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.withDirectives)((0,a.createVNode)(d,null,null,512),[[a.vShow,n.editable]]),n.editable?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y),(0,a.createVNode)(C,{label:e.$t("general.save")},null,8,["label"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(x,{ref:"confirmDialog",title:e.$t("general.confirmation_required"),subtitle:e.$t("recruitment.candidate_vacancy_change_message"),"cancel-label":e.$t("general.no_cancel"),"confirm-label":e.$t("leave.yes_confirm"),"confirm-button-type":"secondary"},null,8,["title","subtitle","cancel-label","confirm-label"])])}const iq={firstName:"",middleName:"",lastName:"",email:"",contactNumber:"",comment:"",keywords:"",dateOfApplication:null,consentToKeepData:!1},sq={id:null,oldAttachment:{},newAttachment:null,method:"replaceCurrent"},dq={id:null,label:""};var cq={name:"CandidateProfile",components:{DateInput:Te,"oxd-switch-input":q.OxdSwitchInput,"full-name-input":uu,"vacancy-dropdown":wU,"file-upload-input":To,"confirmation-dialog":_L},props:{candidate:{type:Object,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0},updatable:{type:Boolean,required:!1,default:!0}},emits:["update"],setup(){const e=new P(window.appGlobal.baseUrl,"/"),{userDateFormat:t}=R();return{http:e,userDateFormat:t}},data(){return{editable:!1,isLoading:!1,profile:{...iq},vacancy:{...dq},attachment:{...sq},rules:{firstName:[jt,zt(30)],lastName:[jt,zt(30)],middleName:[zt(30)],email:[jt,io,zt(50)],contactNumber:[so,zt(25)],keywords:[zt(250)],applicationDate:[Rt(this.userDateFormat)],resume:[no(this.maxFileSize),ro(this.allowedFileTypes)]}}},watch:{candidate(){this.fetchCandidate()}},beforeMount(){this.fetchCandidate()},methods:{onSave(){this.candidate.vacancy?.id&&this.candidate.vacancy?.id!==this.vacancy?.id?this.$refs.confirmDialog.showDialog().then((e=>{"ok"===e&&this.updateCandidate()})):this.updateCandidate()},updateCandidate(){this.isLoading=!0,this.http.request({method:"PUT",url:`/api/v2/recruitment/candidates/${this.candidate.id}`,data:{...this.profile,vacancyId:this.vacancy?.id}}).then((()=>!this.attachment.newAttachment&&!this.candidate.hasAttachment||this.http.request({method:"PUT",url:`/api/v2/recruitment/candidate/${this.candidate.id}/attachment`,data:{currentAttachment:this.attachment.oldAttachment?this.attachment.method:void 0,attachment:this.attachment.newAttachment?this.attachment.newAttachment:void 0}}))).then((()=>this.$toast.updateSuccess())).then((()=>{this.$emit("update"),this.isLoading=!1,this.editable=!1}))},getResumeUrl(){return L("/recruitment/viewCandidateAttachment/candidateId/{candidateId}",{candidateId:this.candidate.id})},fetchCandidate(){this.isLoading=!0,this.profile.firstName=this.candidate.firstName,this.profile.middleName=this.candidate.middleName,this.profile.lastName=this.candidate.lastName,this.profile.email=this.candidate.email,this.profile.contactNumber=this.candidate.contactNumber,this.profile.keywords=this.candidate.keywords,this.profile.dateOfApplication=this.candidate.dateOfApplication,this.profile.comment=this.candidate.comment,this.profile.consentToKeepData=this.candidate.consentToKeepData;const{vacancy:e}=this.candidate;e&&(this.vacancy={id:e.id,label:!1===e.status?e.name+` (${this.$t("general.closed")})`:e.name}),this.candidate.hasAttachment?this.http.request({method:"GET",url:`/api/v2/recruitment/candidate/${this.candidate.id}/attachment`}).then((({data:{data:e}})=>{this.attachment.id=e.id,this.attachment.newAttachment=null,this.attachment.oldAttachment={id:e.id,filename:e.attachment.fileName,fileType:e.attachment.fileType,fileSize:e.attachment.fileSize},this.attachment.method="keepCurrent"})):this.attachment={...sq},this.isLoading=!1}}};const mq=(0,r.Z)(cq,[["render",rq],["__scopeId","data-v-fa8534b2"]]);var uq=mq;const pq={class:"orangehrm-paper-container"},hq={class:"orangehrm-header-container"},gq={class:"orangehrm-container"},vq={class:"orangehrm-bottom-container"};function fq(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table"),c=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",pq,[(0,a.createElementVNode)("div",hq,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.candidate_history")),1)])),_:1})]),(0,a.createVNode)(s,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",gq,[(0,a.createVNode)(d,{headers:n.headers,items:l.items?.data,clickable:!1,selectable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items","loading"])]),(0,a.createElementVNode)("div",vq,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])}const yq=1,Cq=2,bq=3,Vq=4,xq=5,wq=6,Nq=7,_q=8,kq=9,Sq=15,Dq=16,$q=17;var Eq={name:"HistoryTable",props:{candidate:{type:Object,required:!0}},setup(e){const{$t:t}=Se(),{locale:o}=De(),{jsDateFormat:a}=R(),{$tEmpName:l}=xa(),n=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidate?.id}/history`),r=n=>{const r=`${e.candidate?.firstName} ${e.candidate?.middleName||""} ${e.candidate?.lastName}`;return n.map((e=>{let n=null;const i={name:"",data:"",interviewers:""},s=l(e.performedBy,{includeMiddle:!0,excludePastEmpTag:!1});if(e.interview){i.name=e.interview.name,i.date=e.interview.date;const t=e.interview.interviewers.map((e=>l(e,{includeMiddle:!0,excludePastEmpTag:!1})));i.interviewers=t.join(", ")}switch(e?.action.id){case $q:n=t("recruitment.candidate_applied_for_the_vacancy",{candidate:r,vacancy:e.vacancyName});break;case Dq:n=t("recruitment.employee_added_candidate",{employee:s,candidate:r});break;case yq:n=t("recruitment.employee_assigned_vacancy_to_candidate",{employee:s,vacancy:e.vacancyName});break;case Cq:n=t("recruitment.candidate_shortlisted_for_vacancy_by_employee",{vacancy:e.vacancyName,employee:s});break;case bq:n=t("recruitment.employee_rejected_the_candidate",{employee:s,candidate:r,vacancy:e.vacancyName});break;case Vq:n=t("recruitment.employee_schedule_interview_with_interviewers",{employee:s,interview:i.name,interviewDate:i.date,interviewers:i.interviewers,vacancy:e.vacancyName});break;case xq:n=t("recruitment.employee_marked_interveiw_passed",{employee:s,interview:i.name,vacancy:e.vacancyName});break;case wq:n=t("recruitment.employee_marked_interveiw_failed",{employee:s,interview:i.name,vacancy:e.vacancyName});break;case Nq:n=t("recruitment.employee_offered_the_job",{employee:s,vacancy:e.vacancyName});break;case _q:n=t("recruitment.employee_marked_the_offer_declined",{employee:s,vacancy:e.vacancyName});break;case kq:n=t("recruitment.employee_hired_the_candidate",{employee:s,candidate:r,vacancy:e.vacancyName});break;case Sq:n=t("recruitment.employee_removed_candidate_from_vacancy",{employee:s,candidate:r,vacancy:e.vacancyName});break}return{...e,description:n,performedDate:ie(re(e.performedDate),a,{locale:o})}}))},{showPaginator:i,currentPage:s,total:d,pages:c,pageSize:m,response:u,isLoading:p,execQuery:h}=wt(n,{normalizer:r});return{http:n,showPaginator:i,currentPage:s,isLoading:p,total:d,pages:c,pageSize:m,execQuery:h,items:u}},data(){return{headers:[{name:"performedDate",slot:"title",title:this.$t("recruitment.performed_date"),style:{flex:"20%"}},{name:"description",title:this.$t("general.description"),style:{flex:"65%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:"15%"},cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer}]}},watch:{candidate(){this.execQuery()}},methods:{cellRenderer(...[,,,e]){const t={};return e.action?.id!=yq&&e.action?.id!=Dq&&e.action?.id!=Sq&&e.action?.id!=$q&&e.editable&&(t.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),e.action?.id!==Vq&&e.action?.id!==xq&&e.action?.id!==wq||!e.editable||(t.attachment={onClick:this.onClickAttachment,props:{name:"paperclip"}}),{props:{header:{cellConfig:t}}}},onClickEdit(e){U("/recruitment/candidateHistory/{candidateId}/{historyId}",{candidateId:this.candidate.id,historyId:e.id})},onClickAttachment(e){U("/recruitment/interviewAttachments/{interviewId}",{interviewId:e.interview?.id})}}};const Tq=(0,r.Z)(Eq,[["render",fq],["__scopeId","data-v-5829e84c"]]);var Bq=Tq,Iq={components:{"history-table":Bq,"candidate-profile":uq,"recruitment-status":oq},props:{candidateId:{type:Number,required:!0},maxFileSize:{type:Number,required:!0},allowedFileTypes:{type:Array,required:!0},updatable:{type:Boolean,required:!1,default:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates");return{http:e}},data(){return{candidate:null}},beforeMount(){this.onCandidateUpdate()},methods:{onCandidateUpdate(){this.http.get(this.candidateId).then((({data:{data:e}})=>{this.candidate=e}))}}};const Lq=(0,r.Z)(Iq,[["render",HP]]);var Uq=Lq;const Aq={class:"orangehrm-background-container"};function Pq(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("interviewer-autocomplete"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("time-input"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Aq,[(0,a.createVNode)(y,{loading:n.isLoading,"candidate-id":o.candidateId,title:e.$t("recruitment.view_action_history"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:e.$t("recruitment.performed_action"),value:r.performedAction,readonly:""},null,8,["label","value"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:e.$t("general.performed_by"),value:r.performedBy,readonly:""},null,8,["label","value"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:e.$t("recruitment.performed_date"),value:r.performedDate,readonly:""},null,8,["label","value"])])),_:1})])),_:1})])),_:1}),r.isScheduleInterview?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.interview.interviewName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.interview.interviewName=e),rules:n.rules.interviewName,label:e.$t("recruitment.interview_title"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.interviewers,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(m,{key:t,modelValue:n.interviewers[t],"onUpdate:modelValue":e=>n.interviewers[t]=e,"show-delete":t>0,rules:n.rules.interviewerName.filter(((e,o)=>0===t||o>0)),"include-employees":"onlyCurrent",required:"",disabled:!o.editable,onRemove:e=>r.onRemoveInterviewer(t)},null,8,["modelValue","onUpdate:modelValue","show-delete","rules","disabled","onRemove"])))),128)),n.interviewers.length<5&&o.editable?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"icon-name":"plus","display-type":"text",class:"orangehrm-input-field-bottom-space",label:e.$t("general.add_another"),onClick:r.onAddAnother},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.interview.interviewDate,"onUpdate:modelValue":t[1]||(t[1]=e=>n.interview.interviewDate=e),rules:n.rules.interviewDate,label:e.$t("general.date"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.interview.interviewTime,"onUpdate:modelValue":t[2]||(t[2]=e=>n.interview.interviewTime=e),rules:n.rules.interviewTime,label:e.$t("general.time")},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.history.note,"onUpdate:modelValue":t[3]||(t[3]=e=>n.history.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea",disabled:n.disabled},null,8,["modelValue","rules","label","placeholder","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.back"),onClick:r.onClickBack},null,8,["label","onClick"]),n.disabled?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(v,{key:0,label:e.$t("general.save")},null,8,["label"]))])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}const qq={id:null,action:{id:null,label:null},performedBy:{empNumber:null,lastName:null,firstName:null,middleName:null,terminationId:null},interview:{id:null},performedDate:null,note:null},Mq={interviewName:null,interviewDate:null,interviewTime:null};var Fq={components:{"candidate-action-layout":TA,"interviewer-autocomplete":JA},props:{candidateId:{type:Number,required:!0},historyId:{type:Number,required:!0},editable:{type:Boolean,required:!1,default:!0}},setup(e){const{locale:t}=De(),{jsDateFormat:o,userDateFormat:a}=R(),{$tEmpName:l}=xa(),n=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/history`);return{http:n,locale:t,jsDateFormat:o,userDateFormat:a,translateEmpName:l}},data(){return{isLoading:!1,history:{...qq},interview:{...Mq},interviewers:[],rules:{interviewName:[jt,zt(100)],interviewDate:[jt,Rt(this.userDateFormat)],interviewTime:[Gt],interviewerName:[jt,xo,e=>this.interviewers.filter((t=>t&&t.id===e?.id)).length<2||this.$t("general.already_exists")],note:[zt(2e3)]},statuses:[{id:1,label:this.$t("recruitment.application_initiated")},{id:2,label:this.$t("recruitment.shortlist")},{id:3,label:this.$t("general.reject")},{id:4,label:this.$t("recruitment.schedule_interview")},{id:5,label:this.$t("recruitment.mark_interview_passed")},{id:6,label:this.$t("recruitment.mark_interview_failed")},{id:7,label:this.$t("recruitment.offer_job")},{id:8,label:this.$t("recruitment.decline_offer")},{id:9,label:this.$t("recruitment.hire")}],disabled:!1}},computed:{performedBy(){return this.translateEmpName(this.history.performedBy,{includeMiddle:!0,excludePastEmpTag:!1})},performedDate(){return ie(re(this.history.performedDate),this.jsDateFormat,{locale:this.locale})},performedAction(){return this.statuses.find((e=>e.id===this.history.action.id))?.label||null},isScheduleInterview(){return this.history.interview?.id&&4===this.history.action?.id}},beforeMount(){this.isLoading=!0,this.http.get(this.historyId).then((e=>{const{data:t,meta:o}=e.data;return this.history={...t},this.disabled=o.disabled,this.isScheduleInterview?this.http.request({method:"GET",url:`/api/v2/recruitment/candidates/${this.candidateId}/interviews/${this.history.interview.id}`}):null})).then((e=>{if(e){const{data:t}=e.data;this.interview.interviewName=t.name,this.interview.interviewDate=t.interviewDate,this.interview.interviewTime=t.interviewTime,this.history.note=t.note,Array.isArray(t.interviewers)&&(this.interviewers=t.interviewers.map((e=>({id:e.empNumber,label:this.translateEmpName(e,{includeMiddle:!0,excludePastEmpTag:!0}),isPastEmployee:!!e.terminationId}))))}})).finally((()=>{this.isLoading=!1}))},methods:{onAddAnother(){this.interviewers.length<5&&this.interviewers.push(null)},onRemoveInterviewer(e){this.interviewers.splice(e,1)},onSave(){this.loading=!0,this.http.update(this.historyId,{note:this.history.note}).then((()=>this.isScheduleInterview?this.http.request({method:"PUT",url:`/api/v2/recruitment/candidates/${this.candidateId}/interviews/${this.history.interview.id}`,data:{...this.interview,note:this.history.note,interviewerEmpNumbers:this.interviewers.map((e=>e?.id)).filter(Number)}}):null)).then((()=>{this.loading=!1,this.$toast.saveSuccess()}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const jq=(0,r.Z)(Fq,[["render",Pq]]);var zq=jq;const Rq={class:"orangehrm-container"},Oq={key:1,class:"orangehrm-bottom-container"},Gq={class:"orangehrm-paper-container"},Zq=["src"];function Qq(e,t,o,l,n,r){const i=(0,a.resolveComponent)("vacancy-card"),s=(0,a.resolveComponent)("oxd-loading-spinner"),d=(0,a.resolveComponent)("oxd-pagination"),c=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Rq,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.vacancies?.data,(e=>((0,a.openBlock)(),(0,a.createBlock)(i,{key:e,"vacancy-id":e.vacancyId,"vacancy-title":e.vacancyTitle,"vacancy-description":e.vacancyDescription},null,8,["vacancy-id","vacancy-title","vacancy-description"])))),128)),l.isLoading?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"orangehrm-container-loader"})):(0,a.createCommentVNode)("",!0),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Oq,[(0,a.createVNode)(d,{current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",Gq,[(0,a.createVNode)(c,{tag:"p",class:"orangehrm-vacancy-list-poweredby"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.powered_by")),1)])),_:1}),(0,a.createElementVNode)("img",{src:l.defaultPic,alt:"OrangeHRM Picture",class:"orangehrm-container-img"},null,8,Zq),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])],64)}const Hq={class:"orangehrm-card-container"},Wq={class:"orangehrm-vacancy-card-header"},Yq={key:0,class:"orangehrm-vacancy-card-pre-tag"},Jq={key:0,class:"orangehrm-vacancy-card-footer"};function Xq(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-divider");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Hq,[(0,a.createElementVNode)("div",Wq,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.vacancyTitle),1)])),_:1}),(0,a.createVNode)(s,{label:e.$t("general.apply"),"display-type":"secondary",class:"oxd-button",onClick:r.apply},null,8,["label","onClick"])]),(0,a.withDirectives)((0,a.createVNode)(d,null,null,512),[[a.vShow,o.vacancyDescription]]),(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)({"orangehrm-vacancy-card-body":r.isViewDetails})},[(0,a.createVNode)(i,{type:"toast-message"},{default:(0,a.withCtx)((()=>[o.vacancyDescription?((0,a.openBlock)(),(0,a.createElementBlock)("pre",Yq,(0,a.toDisplayString)(o.vacancyDescription),1)):(0,a.createCommentVNode)("",!0)])),_:1})],2),o.vacancyDescription&&o.vacancyDescription.length>r.descriptionLength?((0,a.openBlock)(),(0,a.createElementBlock)("div",Jq,[(0,a.createElementVNode)("a",{onClick:t[0]||(t[0]=(...e)=>r.viewDetails&&r.viewDetails(...e))},[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-vacancy-card-anchor-tag"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.isViewDetails?e.$t("general.show_more"):e.$t("general.show_less")),1)])),_:1})])])):(0,a.createCommentVNode)("",!0)])}var Kq={name:"VacancyCard",props:{vacancyId:{type:Number,required:!0},vacancyTitle:{type:String,required:!0},vacancyDescription:{type:String,required:!0}},setup(){const e=(0,q.useResponsive)();return{...(0,a.toRefs)(e)}},data(){return{viewMore:!1}},computed:{isMobile(){return this.windowWidth<600},isViewDetails(){return!this.viewMore},descriptionLength(){return this.isMobile?150:this.windowWidth<1920?250:400}},methods:{viewDetails(){this.viewMore=!this.viewMore},apply(){U("/recruitmentApply/applyVacancy/id/{id}",{id:this.vacancyId})}}};const eM=(0,r.Z)(Kq,[["render",Xq],["__scopeId","data-v-251847f9"]]);var tM=eM,oM={name:"VacancyList",components:{"vacancy-card":tM,"oxd-loading-spinner":q.OxdSpinner},setup(){const e=`${window.appGlobal.publicPath}/images/ohrm_branding.png`,t=e=>e.map((e=>({vacancyId:e.id,vacancyTitle:e.name,vacancyDescription:e.description}))),o=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/public/vacancies"),{showPaginator:a,currentPage:l,total:n,pages:r,response:i,isLoading:s}=wt(o,{normalizer:t,pageSize:8});return{defaultPic:e,showPaginator:a,currentPage:l,isLoading:s,total:n,pages:r,vacancies:i}}};const aM=(0,r.Z)(oM,[["render",Qq],["__scopeId","data-v-68e0eff5"]]);var lM=aM;const nM={class:"orangehrm-container"},rM={class:"orangehrm-card-container"},iM={class:"orangehrm-card-container-header"},sM=["src"],dM={class:"orangehrm-applicant-card-pre-tag"},cM={key:0,class:"orangehrm-vacancy-card-footer"},mM=["value"],uM=["value"],pM={class:"orangehrm-applicant-container"},hM={class:"orangehrm-paper-container"},gM=["src"];function vM(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("full-name-input"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-input-field"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("success-dialogue");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",nM,[(0,a.createElementVNode)("div",rM,[(0,a.createElementVNode)("div",iM,[(0,a.createVNode)(i,{class:"orangehrm-main-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.apply_for_n_vacancy",{vacancyName:n.vacancyName})),1)])),_:1}),(0,a.createElementVNode)("img",{class:"oxd-brand-banner",src:o.bannerSrc},null,8,sM)]),n.vacancyDescription?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(s),(0,a.createVNode)(i,{class:"orangehrm-vacancy-description",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.description")),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:(0,a.normalizeClass)(r.descriptionClasses)},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("pre",dM,(0,a.toDisplayString)(n.vacancyDescription)+"\n ",1)])),_:1},8,["class"]),n.vacancyDescription.length>r.descriptionLength?((0,a.openBlock)(),(0,a.createElementBlock)("div",cM,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-vacancy-card-anchor-tag",onClick:r.onToggleMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.isViewDetails?e.$t("general.show_less"):e.$t("general.show_more")),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0)],64)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(y,{ref:"applicantForm",method:"post",enctype:"multipart/form-data",loading:n.isLoading,action:r.submitUrl,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,mM),(0,a.createElementVNode)("input",{name:"vacancyId",value:o.vacancyId,type:"hidden"},null,8,uM),(0,a.createElementVNode)("div",pM,[(0,a.createVNode)(u,{class:"orangehrm-applicant-container-row"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:1,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{firstName:l.applicant.firstName,"onUpdate:firstName":t[0]||(t[0]=e=>l.applicant.firstName=e),lastName:l.applicant.lastName,"onUpdate:lastName":t[1]||(t[1]=e=>l.applicant.lastName=e),middleName:l.applicant.middleName,"onUpdate:middleName":t[2]||(t[2]=e=>l.applicant.middleName=e),label:e.$t("general.full_name"),rules:n.rules,required:""},null,8,["firstName","lastName","middleName","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,{class:"orangehrm-applicant-container-row"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-applicant-container-colspan-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.email,"onUpdate:modelValue":t[3]||(t[3]=e=>l.applicant.email=e),name:"email",label:e.$t("general.email"),placeholder:e.$t("general.type_here"),rules:n.rules.email,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.contactNumber,"onUpdate:modelValue":t[4]||(t[4]=e=>l.applicant.contactNumber=e),name:"contactNumber",label:e.$t("recruitment.contact_number"),placeholder:e.$t("general.type_here"),rules:n.rules.contactNumber},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.resume,"onUpdate:modelValue":t[5]||(t[5]=e=>l.applicant.resume=e),name:"resume",type:"file",label:e.$t("recruitment.resume"),"button-label":e.$t("general.browse"),rules:n.rules.resume,required:""},null,8,["modelValue","label","button-label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accept_custom_format_file")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-applicant-container-colspan-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.keywords,"onUpdate:modelValue":t[6]||(t[6]=e=>l.applicant.keywords=e),name:"keywords",label:e.$t("recruitment.keywords"),placeholder:`${e.$t("recruitment.enter_comma_seperated_words")}...`,rules:n.rules.keywords},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-applicant-container-colspan-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.comment,"onUpdate:modelValue":t[7]||(t[7]=e=>l.applicant.comment=e),name:"comment",label:e.$t("general.notes"),type:"textarea",placeholder:e.$t("general.type_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-applicant-container-colspan-2 orangehrm-applicant-container-grid-checkbox"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.consentToKeepData,"onUpdate:modelValue":t[8]||(t[8]=e=>l.applicant.consentToKeepData=e),name:"consentToKeepData",label:e.$t("recruitment.consent_to_keep_data"),type:"checkbox"},null,8,["modelValue","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{label:e.$t("general.back"),"display-type":"ghost",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v,{label:e.$t("general.submit")},null,8,["label"])])),_:1})])])),_:1},8,["loading","action","onSubmitValid"])])]),(0,a.createElementVNode)("div",hM,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-vacancy-list-poweredby"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.powered_by")),1)])),_:1}),(0,a.createElementVNode)("img",{src:l.defaultPic,alt:"OrangeHRM Picture",class:"orangehrm-container-img"},null,8,gM),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)]),(0,a.createVNode)(C,{ref:"showDialogueModal"},null,512)],64)}const fM={class:"orangehrm-modal-header"},yM={class:"orangehrm-text-center-align"},CM={class:"orangehrm-modal-footer"};function bM(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("simple-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"with-close":!1,class:"orangehrm-confirmation-dialog orangehrm-dialog-popup","onUpdate:show":r.onSuccess},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",fM,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.application_received")),1)])),_:1})]),(0,a.createElementVNode)("div",yM,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.your_application_has_been_submitted_successfully")),1)])),_:1})]),(0,a.createElementVNode)("div",CM,[(0,a.createVNode)(s,{label:e.$t("general.ok"),"display-type":"text",class:"orangehrm-button-margin",onClick:r.onSuccess},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var VM={name:"SuccessDialog",components:{"simple-dialog":q.OxdDialog},data(){return{show:!1,resolve:null}},methods:{showSuccessDialog(){return new Promise((e=>{this.resolve=e,this.show=!0}))},onSuccess(){this.show=!1,this.resolve&&this.resolve("ok")}}};const xM=(0,r.Z)(VM,[["render",bM],["__scopeId","data-v-76269556"]]);var wM=xM;const NM={firstName:"",middleName:"",lastName:"",contactNumber:"",email:"",consentToKeepData:!1,resume:null,keywords:null,comment:null};var _M={name:"ApplyJobVacancy",components:{"submit-button":s,"full-name-input":uu,"success-dialogue":wM},props:{allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0},vacancyId:{type:Number,required:!0},success:{type:Boolean,default:!1},bannerSrc:{type:String,required:!0},token:{type:String,required:!0}},setup(){const e=`${window.appGlobal.publicPath}/images/ohrm_branding.png`,t=(0,a.ref)({...NM}),o=(0,q.useResponsive)(),l=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/public/vacancies");return{http:l,applicant:t,defaultPic:e,...(0,a.toRefs)(o)}},data(){return{title:null,subtitle:null,successLabel:null,isLoading:!1,vacancyName:"",vacancyDescription:null,rules:{firstName:[jt,zt(30)],middleName:[zt(30)],lastName:[jt,zt(30)],resume:[jt,no(this.maxFileSize),ro(this.allowedFileTypes)],comment:[zt(250)],keywords:[zt(250)],contactNumber:[zt(25),so],email:[jt,io,zt(50)]},isViewDetails:!0}},computed:{submitUrl(){return L("/recruitment/public/applicants")},descriptionClasses(){return{"orangehrm-vacancy-description":!0,"orangehrm-vacancy-card-body":!this.isViewDetails}},isMobile(){return this.windowWidth<600},descriptionLength(){return this.isMobile?150:this.windowWidth<1920?250:400}},beforeMount(){this.http.get(this.vacancyId).then((e=>{const{data:t}=e.data;this.vacancyName=t?.name??"",this.vacancyDescription=t?.description}))},mounted(){this.success&&this.showDialogue()},methods:{onSave(){this.$refs.applicantForm.$el.submit()},onCancel(){U("/recruitmentApply/jobs.html")},showDialogue(){this.$refs.showDialogueModal.showSuccessDialog().then((e=>{"ok"===e&&U("/recruitmentApply/jobs.html")}))},onToggleMore(){this.isViewDetails=!this.isViewDetails}}};const kM=(0,r.Z)(_M,[["render",vM],["__scopeId","data-v-316ef8c9"]]);var SM=kM;const DM={class:"orangehrm-attachment"},$M={class:"orangehrm-attachment-header"},EM={class:"orangehrm-container"},TM={class:"orangehrm-bottom-container"};function BM(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-interview-attachment"),s=(0,a.resolveComponent)("edit-interview-attachment"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("table-header"),u=(0,a.resolveComponent)("oxd-card-table"),p=(0,a.resolveComponent)("oxd-pagination"),h=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",DM,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,"max-file-size":o.maxFileSize,"allowed-file-types":o.allowedFileTypes,onClose:r.closeModel},null,8,["http","max-file-size","allowed-file-types","onClose"])):n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,"max-file-size":o.maxFileSize,"allowed-file-types":o.allowedFileTypes,onClose:r.closeModel},null,8,["http","data","max-file-size","allowed-file-types","onClose"])):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createElementVNode)("div",$M,[(0,a.createVNode)(d,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.attachments")),1)])),_:1}),(0,a.createVNode)(c,{"icon-name":"plus","display-type":"text",label:e.$t("general.add"),onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(m,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",EM,[(0,a.createVNode)(u,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,clickable:!1,selectable:!0,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",TM,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])],64)),(0,a.createVNode)(h,{ref:"deleteDialog"},null,512)])}const IM={class:"orangehrm-card-container"};function LM(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",IM,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.attachment.attachment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attachment.attachment=e),type:"file",label:e.$t("general.select_file"),"button-label":e.$t("general.browse"),rules:n.rules.attachment,placeholder:e.$t("general.no_file_selected"),required:""},null,8,["modelValue","label","button-label","rules","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.attachment.comment,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attachment.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const UM={attachment:null,comment:""};var AM={name:"SaveInterviewAttachment",props:{http:{type:Object,required:!0},maxFileSize:{type:Number,required:!0},allowedFileTypes:{type:Array,required:!0}},emits:["close"],data(){return{isLoading:!1,attachment:{...UM},rules:{comment:[zt(200)],attachment:[jt,no(this.maxFileSize),ro(this.allowedFileTypes)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.attachment}).then((()=>this.$toast.saveSuccess())).then((()=>{this.attachment={...UM},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const PM=(0,r.Z)(AM,[["render",LM]]);var qM=PM;const MM={class:"orangehrm-card-container"};function FM(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-input-field"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",MM,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.current_file")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.currentFile),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.attachment.attachment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attachment.attachment=e),type:"file",label:e.$t("general.replace_with"),"button-label":e.$t("general.browse"),rules:n.rules.attachment,placeholder:e.$t("general.no_file_selected")},null,8,["modelValue","label","button-label","rules","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.attachment.comment,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attachment.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const jM={attachment:null,comment:""};var zM={name:"EditInterviewAttachment",props:{http:{type:Object,required:!0},data:{type:Object,required:!0},maxFileSize:{type:Number,required:!0},allowedFileTypes:{type:Array,required:!0}},emits:["close"],data(){return{isLoading:!1,currentFile:"",attachment:{...jM},rules:{comment:[zt(200)],attachment:[no(this.maxFileSize),ro(this.allowedFileTypes)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.currentFile=t.attachment.fileName,this.attachment.comment=t.comment})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{comment:this.attachment.comment,currentAttachment:null!==this.attachment.attachment?"replaceCurrent":"keepCurrent",attachment:null!==this.attachment.attachment?this.attachment.attachment:void 0}).then((()=>this.$toast.updateSuccess())).then((()=>{this.attachment={...jM},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const RM=(0,r.Z)(zM,[["render",FM]]);var OM=RM;const GM=e=>e.map((e=>({id:e.id,interviewId:e.interviewId,filename:e.attachment?.fileName,size:bp(e.attachment?.fileSize||0,2),fileType:e.attachment?.fileType,comment:e.comment})));var ZM={components:{"delete-confirmation":Et,"save-interview-attachment":qM,"edit-interview-attachment":OM},props:{interviewId:{type:Number,required:!0},maxFileSize:{type:Number,required:!0},allowedFileTypes:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/interviews/${e.interviewId}/attachments`),{showPaginator:o,currentPage:a,total:l,pages:n,pageSize:r,response:i,isLoading:s,execQuery:d}=wt(t,{normalizer:GM,toastNoRecords:!1});return{http:t,showPaginator:o,currentPage:a,isLoading:s,total:l,pages:n,pageSize:r,execQuery:d,items:i}},data(){return{headers:[{name:"filename",slot:"title",title:this.$t("general.file_name"),style:{flex:1}},{name:"size",title:this.$t("general.size"),style:{flex:1}},{name:"fileType",title:this.$t("general.type"),style:{flex:1}},{name:"comment",title:this.$t("general.comment"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}},delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},download:{onClick:this.onClickDownload,props:{name:"download"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showSaveModal=!0,this.showEditModal=!1},onClickEdit(e){this.showSaveModal=!1,this.showEditModal=!0,this.editModalState=e},closeModel(){this.showSaveModal=!1,this.showEditModal=!1,this.resetDataTable()},onClickDownload(e){const t=`${window.appGlobal.baseUrl}/recruitment/viewInterviewAttachment/interview/${this.interviewId}/attachment/${e.id}`;window.open(t,"_blank")}}};const QM=(0,r.Z)(ZM,[["render",BM],["__scopeId","data-v-451febef"]]);var HM=QM,WM={"view-job-vacancy":BU,"add-job-vacancy":JU,"edit-job-vacancy":wA,"save-candidate":SP,"view-candidates-list":QP,"view-candidate-profile":Uq,"shortlist-action":VP,"reject-action":vP,"interview-schedule-action":tP,"interview-passed-action":OA,"interview-failed-action":MA,"offer-job-action":rP,"offer-decline-action":mP,"hire-action":LA,"view-action-history":zq,"vacancy-list":lM,"apply-job-vacancy":SM,"view-interview-attachments":HM};const YM={class:"orangehrm-background-container"},JM={class:"orangehrm-paper-container"},XM={class:"orangehrm-header-container"},KM={class:"orangehrm-container"},eF={class:"orangehrm-bottom-container"};function tF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table"),c=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",YM,[(0,a.createElementVNode)("div",JM,[(0,a.createElementVNode)("div",XM,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.my_performance_trackers")),1)])),_:1})]),(0,a.createVNode)(s,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",KM,[(0,a.createVNode)(d,{order:l.sortDefinition,"onUpdate:order":t[0]||(t[0]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["order","headers","items","loading"])]),(0,a.createElementVNode)("div",eF,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])])}const oF={"performanceTracker.trackerName":"DEFAULT","performanceTracker.addedDate":"DEFAULT","performanceTracker.modifiedDate":"DESC"};var aF={setup(){const{sortDefinition:e,sortField:t,sortOrder:o,onSort:l}=Tt({sortDefinition:oF}),n=(0,a.computed)((()=>({sortField:t.value,sortOrder:o.value}))),r=new P(window.appGlobal.baseUrl,"/api/v2/performance/trackers"),{jsDateFormat:i}=R(),{locale:s}=De(),d=e=>e.map((e=>({id:e.id,tracker:e.trackerName,addedDate:ie(re(e.addedDate),i,{locale:s}),modifiedDate:ie(re(e.modifiedDate),i,{locale:s})}))),{currentPage:c,total:m,showPaginator:u,pages:p,pageSize:h,response:g,execQuery:v,isLoading:f}=wt(r,{query:n,normalizer:d});return l(v),{http:r,total:m,isLoading:f,items:g,execQuery:v,sortDefinition:e,showPaginator:u,pages:p,pageSize:h,currentPage:c}},data(){return{headers:[{name:"tracker",slot:"title",title:this.$t("performance.tracker"),sortField:"performanceTracker.trackerName",style:{flex:"30%"}},{name:"addedDate",title:this.$t("performance.added_date"),sortField:"performanceTracker.addedDate",style:{flex:1}},{name:"modifiedDate",title:this.$t("performance.modified_date"),sortField:"performanceTracker.modifiedDate",style:{flex:1}},{name:"action",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{view:{onClick:this.onClickView,component:"oxd-button",props:{name:"view",label:this.$t("general.view"),displayType:"text"}}}}]}},methods:{onClickView(e){U("/performance/addPerformanceTrackerLog/trackId/{id}?mode=my",{id:e.id})}}};const lF=(0,r.Z)(aF,[["render",tF]]);var nF=lF;const rF={class:"orangehrm-background-container"},iF=(0,a.createElementVNode)("br",null,null,-1),sF={class:"orangehrm-paper-container"},dF={class:"orangehrm-container"},cF={class:"orangehrm-bottom-container"};function mF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("include-employee-dropdown"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("table-header"),y=(0,a.resolveComponent)("oxd-card-table"),C=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rF,[(0,a.createVNode)(v,{"filter-title":e.$t("performance.employee_performance_trackers")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:r.filterItems,onReset:r.resetDataTable},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.empName,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.empName=e),rules:n.rules.employee,"api-path":"/api/v2/performance/trackers/reviewers",params:{includeEmployees:l.filters.includeEmployees.param}},null,8,["modelValue","rules","params"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.includeEmployees,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.includeEmployees=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(p,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),iF,(0,a.createElementVNode)("div",sF,[(0,a.createVNode)(f,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",dF,[(0,a.createVNode)(y,{order:l.sortDefinition,"onUpdate:order":t[2]||(t[2]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!1,clickable:!0,loading:l.isLoading,class:"orangehrm-employee-list","row-decorator":"oxd-table-decorator-card"},null,8,["order","headers","items","loading"])]),(0,a.createElementVNode)("div",cF,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(C,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])])}const uF={empName:null,includeEmployees:{id:1,param:"onlyCurrent",label:"仅当前人员"}},pF={"employee.lastName":"DEFAULT","tracker.trackerName":"DEFAULT","tracker.modifiedDate":"DESC","tracker.addedDate":"DEFAULT"};var hF={components:{"include-employee-dropdown":zu,"employee-autocomplete":Va},setup(){const{$t:e}=Se(),{jsDateFormat:t}=R(),{locale:o}=De(),l=a=>a.map((a=>({id:a.id,title:a.title,empName:`${a.employee?.firstName} ${a.employee?.lastName} ${a.employee?.terminationId?` ${e("general.past_employee")}`:""}`,modifiedDate:ie(re(a.modifiedDate),t,{locale:o}),addedDate:ie(re(a.addedDate),t,{locale:o})}))),n=(0,a.ref)({...uF}),{sortDefinition:r,sortField:i,sortOrder:s,onSort:d}=Tt({sortDefinition:pF}),c=(0,a.computed)((()=>({sortField:i.value,sortOrder:s.value,empNumber:n.value.empName?.id,includeEmployees:n.value.includeEmployees?.param}))),m="/api/v2/performance/employees/trackers",u=new P(window.appGlobal.baseUrl,m),{showPaginator:p,currentPage:h,total:g,pages:v,pageSize:f,isLoading:y,response:C,execQuery:b}=wt(u,{query:c,normalizer:l});return d(b),{total:g,showPaginator:p,currentPage:h,pages:v,pageSize:f,isLoading:y,items:C,api:m,http:u,execQuery:b,sortDefinition:r,filters:n}},data(){return{headers:[{name:"empName",slot:"title",title:this.$t("general.employee_name"),sortField:"employee.lastName",style:{flex:2}},{name:"title",title:this.$t("general.trackers"),sortField:"tracker.trackerName",style:{flex:2}},{name:"addedDate",title:this.$t("performance.added_date"),sortField:"tracker.addedDate",style:{flex:1}},{name:"modifiedDate",title:this.$t("performance.modified_date"),sortField:"tracker.modifiedDate",style:{flex:1}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{view:{onClick:this.onClickView,component:"oxd-button",props:{name:"view",label:this.$t("general.view"),class:"orangehrm-left-space",displayType:"text"}}}}],rules:{employee:[xo]}}},methods:{async resetDataTable(){await this.execQuery()},async filterItems(){await this.execQuery()},onClickView(e){U("/performance/addPerformanceTrackerLog/trackId/{id}",{id:e.id})}}};const gF=(0,r.Z)(hF,[["render",mF]]);var vF=gF;const fF=e=>((0,a.pushScopeId)("data-v-7cf38636"),e=e(),(0,a.popScopeId)(),e),yF={class:"orangehrm-background-container"},CF={class:"orangehrm-card-container"},bF={class:"orangehrm-module-field-row"},VF=fF((()=>(0,a.createElementVNode)("br",null,null,-1)));function xF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("jobtitle-dropdown"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",yF,[(0,a.createElementVNode)("div",CF,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.edit_key_performance_indicator")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.title,"onUpdate:modelValue":t[0]||(t[0]=e=>n.kpi.title=e),label:e.$t("performance.key_performance_indicator"),required:"",rules:n.rules.title,autcomplete:"off",readonly:n.isReadOnly},null,8,["modelValue","label","rules","readonly"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.kpi.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.kpi.jobTitle=e),required:"",rules:n.rules.jobTitle},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.minRating,"onUpdate:modelValue":t[2]||(t[2]=e=>n.kpi.minRating=e),modelModifiers:{number:!0},label:e.$t("performance.minimum_rating"),required:"",autcomplete:"off",rules:n.rules.minRating,readonly:n.isReadOnly},null,8,["modelValue","label","rules","readonly"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.maxRating,"onUpdate:modelValue":t[3]||(t[3]=e=>n.kpi.maxRating=e),modelModifiers:{number:!0},label:e.$t("performance.maximum_rating"),required:"",autcomplete:"off",rules:n.rules.maxRating,readonly:n.isReadOnly},null,8,["modelValue","label","rules","readonly"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",bF,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.make_default_scale")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.kpi.isDefault,"onUpdate:modelValue":t[4]||(t[4]=e=>n.kpi.isDefault=e)},null,8,["modelValue"])])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),VF,(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const wF={title:"",jobTitle:null,minRating:null,maxRating:null,isDefault:!1};var NF={name:"KpiSave",components:{"oxd-switch-input":q.OxdSwitchInput,"jobtitle-dropdown":Eu},props:{kpiId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/kpis");return{http:e}},data(){return{isLoading:!1,kpi:{...wF},isReadOnly:!1,rules:{title:[jt,zt(100)],jobTitle:[jt],minRating:[jt,vo(0,100),go((()=>this.kpi.maxRating),this.$t("performance.minimum_rating_should_be_less_than_maximum_rating"))],maxRating:[jt,vo(0,100),ho((()=>this.kpi.minRating),this.$t("performance.maximum_rating_should_be_greater_than_minimum_rating"))]}}},created(){this.isLoading=!0,this.http.get(this.kpiId).then((e=>{const{data:t}=e.data,{meta:o}=e.data;this.isReadOnly=!1===o.editable,this.kpi.title=t.title,this.kpi.jobTitle=t.jobTitle.deleted?null:{id:t.jobTitle.id,label:t.jobTitle.name},this.kpi.minRating=t.minRating,this.kpi.maxRating=t.maxRating,this.kpi.isDefault=t.isDefault})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/performance/searchKpi")},onSave(){this.isLoading=!0,this.http.update(this.kpiId,{title:this.kpi.title,jobTitleId:this.kpi.jobTitle.id,minRating:this.kpi.minRating,maxRating:this.kpi.maxRating,isDefault:this.kpi.isDefault}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))}}};const _F=(0,r.Z)(NF,[["render",xF],["__scopeId","data-v-7cf38636"]]);var kF=_F;const SF=e=>((0,a.pushScopeId)("data-v-f93b79d6"),e=e(),(0,a.popScopeId)(),e),DF={class:"orangehrm-background-container"},$F={class:"orangehrm-card-container"},EF={class:"orangehrm-module-field-row"},TF=SF((()=>(0,a.createElementVNode)("br",null,null,-1)));function BF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("jobtitle-dropdown"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",DF,[(0,a.createElementVNode)("div",$F,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.add_key_performance_indicator")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.title,"onUpdate:modelValue":t[0]||(t[0]=e=>n.kpi.title=e),label:e.$t("performance.key_performance_indicator"),required:"",rules:n.rules.title,autcomplete:"off"},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.kpi.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.kpi.jobTitle=e),required:"",rules:n.rules.jobTitle},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.minRating,"onUpdate:modelValue":t[2]||(t[2]=e=>n.kpi.minRating=e),modelModifiers:{number:!0},label:e.$t("performance.minimum_rating"),required:"",autcomplete:"off",rules:n.rules.minRating},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.maxRating,"onUpdate:modelValue":t[3]||(t[3]=e=>n.kpi.maxRating=e),modelModifiers:{number:!0},label:e.$t("performance.maximum_rating"),required:"",autcomplete:"off",rules:n.rules.maxRating},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",EF,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.make_default_scale")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.kpi.isDefault,"onUpdate:modelValue":t[4]||(t[4]=e=>n.kpi.isDefault=e)},null,8,["modelValue"])])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),TF,(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const IF={title:"",jobTitle:null,minRating:null,maxRating:null,isDefault:!1};var LF={name:"KpiSave",components:{"oxd-switch-input":q.OxdSwitchInput,"jobtitle-dropdown":Eu},props:{defaultMinRating:{type:Number,required:!1,default:null},defaultMaxRating:{type:Number,required:!1,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/kpis");return{http:e}},data(){return{isLoading:!1,kpi:{...IF},rules:{title:[jt,zt(100)],jobTitle:[jt],minRating:[jt,vo(0,100),go((()=>this.kpi.maxRating),this.$t("performance.minimum_rating_should_be_less_than_maximum_rating"))],maxRating:[jt,vo(0,100),ho((()=>this.kpi.minRating),this.$t("performance.maximum_rating_should_be_greater_than_minimum_rating"))]}}},beforeMount(){this.kpi.minRating=this.defaultMinRating,this.kpi.maxRating=this.defaultMaxRating},methods:{onCancel(){U("/performance/searchKpi")},onSave(){this.isLoading=!0,this.http.create({title:this.kpi.title,jobTitleId:this.kpi.jobTitle.id,minRating:this.kpi.minRating,maxRating:this.kpi.maxRating,isDefault:this.kpi.isDefault}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))}}};const UF=(0,r.Z)(LF,[["render",BF],["__scopeId","data-v-f93b79d6"]]);var AF=UF;const PF={class:"orangehrm-background-container"},qF=(0,a.createElementVNode)("br",null,null,-1),MF={class:"orangehrm-paper-container"},FF={class:"orangehrm-header-container"},jF={class:"orangehrm-container"},zF={class:"orangehrm-bottom-container"};function RF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("jobtitle-dropdown"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-table-filter"),v=(0,a.resolveComponent)("table-header"),f=(0,a.resolveComponent)("oxd-card-table"),y=(0,a.resolveComponent)("oxd-pagination"),C=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",PF,[(0,a.createVNode)(g,{"filter-title":e.$t("performance.key_performance_indicators_for_job_title")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{onSubmitValid:r.filterItems,onReset:r.resetDataTable},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.jobTitleId,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.jobTitleId=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(u,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),qF,(0,a.createElementVNode)("div",MF,[(0,a.createElementVNode)("div",FF,[(0,a.createVNode)(u,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(v,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",jF,[(0,a.createVNode)(f,{selected:n.checkedItems,"onUpdate:selected":t[1]||(t[1]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[2]||(t[2]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",zF,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(C,{ref:"deleteDialog"},null,512)])}const OF={jobTitleId:null},GF={"kpi.title":"ASC","jobTitle.jobTitleName":"DEFAULT"};var ZF={name:"KpiSearch",components:{"delete-confirmation":Et,"jobtitle-dropdown":Eu},setup(){const{$t:e}=Se(),t=t=>t.map((t=>({id:t.id,title:t.title,jobTitleName:t.jobTitle.name,jobTitleId:t.jobTitle.id,minRating:t.minRating,maxRating:t.maxRating,isDefault:t.isDefault?e("general.yes"):"",isDeletable:t.deletable}))),o=(0,a.ref)({...OF}),{sortDefinition:l,sortField:n,sortOrder:r,onSort:i}=Tt({sortDefinition:GF}),s=(0,a.computed)((()=>({sortField:n.value,sortOrder:r.value,jobTitleId:o.value.jobTitleId?.id}))),d=new P(window.appGlobal.baseUrl,"/api/v2/performance/kpis"),{showPaginator:c,currentPage:m,total:u,pages:p,pageSize:h,response:g,isLoading:v,execQuery:f}=wt(d,{query:s,normalizer:t});return i(f),{http:d,showPaginator:c,currentPage:m,total:u,pages:p,pageSize:h,items:g,isLoading:v,execQuery:f,filters:o,sortDefinition:l}},data(){return{headers:[{name:"title",title:this.$t("performance.key_performance_indicator"),slot:"title",sortField:"kpi.title",style:{flex:"30%"}},{name:"jobTitleName",title:this.$t("general.job_title"),sortField:"jobTitle.jobTitleName",style:{flex:"30%"}},{name:"minRating",title:this.$t("performance.min_rate"),style:{flex:"10%"}},{name:"maxRating",title:this.$t("performance.max_rate"),style:{flex:"10%"}},{name:"isDefault",title:this.$t("performance.is_default"),style:{flex:"10%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:"10%"},cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer}],checkedItems:[]}},methods:{cellRenderer(...[,,,e]){const t={};return t.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}},e.isDeletable&&(t.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),{props:{header:{cellConfig:t}}}},onClickAdd(){U("/performance/saveKpi")},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},onClickEdit(e){U("/performance/saveKpi/{id}",{id:e.id})},async filterItems(){await this.execQuery()},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const QF=(0,r.Z)(ZF,[["render",RF]]);var HF=QF;const WF={class:"orangehrm-background-container"},YF={class:"orangehrm-card-container"},JF={class:"orangehrm-button-row"};function XF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("supervisor-autocomplete"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",WF,[(0,a.createElementVNode)("div",YF,[(0,a.createVNode)(i,{class:"orangehrm-main-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.add_review")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{ref:"formRef",loading:n.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.review.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.review.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.review.supervisorReviewer,"onUpdate:modelValue":t[1]||(t[1]=e=>n.review.supervisorReviewer=e),rules:n.rules.supervisorReviewer,subordinate:n.review.employee,required:""},null,8,["modelValue","rules","subordinate"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.startDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.review.startDate=e),label:e.$t("performance.review_period_start_date"),rules:n.rules.startDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.endDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.review.endDate=e),label:e.$t("performance.review_period_end_date"),rules:n.rules.endDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.dueDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.review.dueDate=e),label:e.$t("performance.due_date"),rules:n.rules.dueDate,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createElementVNode)("div",JF,[(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),type:"button",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.save"),type:"submit",onClick:t[5]||(t[5]=e=>r.onSave(!1))},null,8,["label"]),(0,a.createVNode)(v,{"display-type":"secondary",label:e.$t("performance.activate"),type:"button",onClick:t[6]||(t[6]=e=>r.onSave(!0))},null,8,["label"])])])),_:1})])),_:1},8,["loading"])])])}function KF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete");return(0,a.openBlock)(),(0,a.createBlock)(i,{label:e.$t("performance.supervisor_reviewer"),clear:!1,"create-options":r.loadEmployees,required:""},null,8,["label","create-options"])}var ej={name:"SupervisorAutoComplete",components:{"employee-autocomplete":Va},props:{subordinate:{type:Object,required:!1,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/supervisors");return{http:e}},methods:{async loadEmployees(e){return new Promise((t=>{e.trim()&&this.subordinate?this.http.getAll({nameOrId:e.trim(),empNumber:this.subordinate.id}).then((({data:e})=>{t(e.data.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId}))))})):t([])}))}}};const tj=(0,r.Z)(ej,[["render",KF]]);var oj=tj;const aj={employee:null,supervisorReviewer:null,startDate:null,endDate:null,dueDate:null};var lj={components:{"employee-autocomplete":Va,"supervisor-autocomplete":oj},setup(){const{formRef:e,invalid:t,validate:o}=$c(),{userDateFormat:a}=R(),l=new P(window.appGlobal.baseUrl,"/api/v2/performance/manage/reviews");return l.setIgnorePath("/api/v2/performance/manage/reviews"),{formRef:e,invalid:t,validate:o,http:l,userDateFormat:a}},data(){return{isLoading:!1,review:{...aj},rules:{employee:[jt,xo],supervisorReviewer:[jt,xo],startDate:[jt,Rt(this.userDateFormat),co((()=>this.review.endDate),this.$t("performance.review_period_start_date_should_be_before_end_date"))],endDate:[jt,Rt(this.userDateFormat),eo((()=>this.review.startDate),this.$t("performance.review_period_end_date_should_be_after_start_date"))],dueDate:[jt,Rt(),eo((()=>this.review.endDate),this.$t("performance.due_date_should_be_after_review_period_end_date"))]}}},methods:{onCancel(){U("/performance/searchPerformanceReview")},onSave(e=!1){this.validate().then((()=>{!0!==this.invalid&&(this.isLoading=!0,this.http.create({empNumber:this.review.employee.id,reviewerEmpNumber:this.review.supervisorReviewer.id,startDate:this.review.startDate,endDate:this.review.endDate,dueDate:this.review.dueDate,activate:e}).then((()=>!0===e?this.$toast.success({title:this.$t("general.success"),message:this.$t("general.successfully_activated")}):this.$toast.updateSuccess())).then((()=>{this.onCancel()})).catch((e=>this.$toast.warn({title:this.$t("general.warning"),message:e?.data.error.message}))).finally((()=>{this.isLoading=!1})))}))}}};const nj=(0,r.Z)(lj,[["render",XF],["__scopeId","data-v-07c0323b"]]);var rj=nj;const ij={class:"orangehrm-background-container"},sj={class:"orangehrm-card-container"},dj={class:"orangehrm-button-row"};function cj(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("supervisor-autocomplete"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ij,[(0,a.createElementVNode)("div",sj,[(0,a.createVNode)(i,{class:"orangehrm-main-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.edit_review")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{ref:"formRef",loading:n.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.review.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.review.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.review.supervisorReviewer,"onUpdate:modelValue":t[1]||(t[1]=e=>n.review.supervisorReviewer=e),rules:n.rules.supervisorReviewer,required:"",subordinate:n.review.employee},null,8,["modelValue","rules","subordinate"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.startDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.review.startDate=e),label:e.$t("performance.review_period_start_date"),rules:n.rules.startDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.endDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.review.endDate=e),label:e.$t("performance.review_period_end_date"),rules:n.rules.endDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.dueDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.review.dueDate=e),label:e.$t("performance.due_date"),rules:n.rules.dueDate,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createElementVNode)("div",dj,[(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),type:"button",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.save"),type:"submit",onClick:t[5]||(t[5]=e=>r.onSave(!1))},null,8,["label"]),(0,a.createVNode)(v,{"display-type":"secondary",label:e.$t("performance.activate"),type:"button",onClick:t[6]||(t[6]=e=>r.onSave(!0))},null,8,["label"])])])),_:1})])),_:1},8,["loading"])])])}const mj={employee:null,supervisorReviewer:null,startDate:null,endDate:null,dueDate:null};var uj={components:{"employee-autocomplete":Va,"supervisor-autocomplete":oj},props:{reviewId:{type:Number,required:!0}},setup(){const{formRef:e,invalid:t,validate:o}=$c(),{userDateFormat:a}=R(),l=new P(window.appGlobal.baseUrl,"/api/v2/performance/manage/reviews");return l.setIgnorePath("/api/v2/performance/manage/reviews/[0-9]+"),{formRef:e,invalid:t,validate:o,http:l,userDateFormat:a}},data(){return{isLoading:!1,review:{...mj},rules:{employee:[jt,xo],supervisorReviewer:[jt,xo],startDate:[jt,Rt(this.userDateFormat),co((()=>this.review.endDate),this.$t("general.review_period_start_date_should_be_before_end_date"))],endDate:[jt,Rt(this.userDateFormat),eo((()=>this.review.startDate),this.$t("performance.review_period_end_date_should_be_after_start_date"))],dueDate:[jt,Rt(),eo((()=>this.review.endDate),this.$t("performance.due_date_should_be_after_review_period_end_date"))]}}},created(){this.isLoading=!0,this.http.get(this.reviewId).then((e=>{const{data:t}=e.data;this.review.employee=t.employee?{id:t.employee.empNumber,label:`${t.employee.firstName} ${t.employee.middleName?t.employee.middleName:""} ${t.employee.lastName}`,isPastEmployee:!!t.employee.terminationId}:null,this.review.supervisorReviewer=t.reviewer.employee?{id:t.reviewer.employee.empNumber,label:`${t.reviewer.employee.firstName} ${t.reviewer.employee.middleName?t.reviewer.employee.middleName:""} ${t.reviewer.employee.lastName}`,isPastEmployee:!!t.reviewer.employee.terminationId}:null,this.review.startDate=t.reviewPeriodStart,this.review.endDate=t.reviewPeriodEnd,this.review.dueDate=t.dueDate})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/performance/searchPerformanceReview")},onSave(e=!1){this.validate().then((()=>{if(!0!==this.invalid){if(this.review.supervisorReviewer.isPastEmployee)return this.$toast.warn({title:this.$t("general.warning"),message:this.$t("performance.cannot_add_a_past_employee_as_a_reviewer")});this.isLoading=!0,this.http.update(this.reviewId,{empNumber:this.review.employee.id,reviewerEmpNumber:this.review.supervisorReviewer.id,startDate:this.review.startDate,endDate:this.review.endDate,dueDate:this.review.dueDate,activate:e}).then((()=>!0===e?this.$toast.success({title:this.$t("general.success"),message:this.$t("general.successfully_activated")}):this.$toast.updateSuccess())).then((()=>{this.onCancel()})).catch((e=>this.$toast.warn({title:this.$t("general.warning"),message:e?.data.error.message}))).finally((()=>{this.isLoading=!1}))}}))}}};const pj=(0,r.Z)(uj,[["render",cj],["__scopeId","data-v-d6976f66"]]);var hj=pj;const gj={class:"orangehrm-background-container"},vj=(0,a.createElementVNode)("br",null,null,-1),fj={class:"orangehrm-paper-container"},yj={class:"orangehrm-header-container"},Cj={class:"orangehrm-container"},bj={class:"orangehrm-bottom-container"};function Vj(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-table-filter"),v=(0,a.resolveComponent)("table-header"),f=(0,a.resolveComponent)("oxd-card-table"),y=(0,a.resolveComponent)("oxd-pagination"),C=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",gj,[(0,a.createVNode)(g,{"filter-title":e.$t("performance.performance_trackers")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.empNumber,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.empNumber=e),rules:n.rules.employee,params:{includeEmployees:"currentAndPast"}},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(u,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),vj,(0,a.createElementVNode)("div",fj,[(0,a.createElementVNode)("div",yj,[(0,a.createVNode)(u,{"display-type":"secondary","icon-name":"plus",label:e.$t("general.add"),onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(v,{loading:l.isLoading,selected:n.checkedItems.length,total:l.total,onDelete:r.onClickDeleteSelected},null,8,["loading","selected","total","onDelete"]),(0,a.createElementVNode)("div",Cj,[(0,a.createVNode)(f,{order:l.sortDefinition,"onUpdate:order":t[1]||(t[1]=e=>l.sortDefinition=e),selected:n.checkedItems,"onUpdate:selected":t[2]||(t[2]=e=>n.checkedItems=e),clickable:!1,headers:n.headers,items:l.response?.data,loading:l.isLoading,selectable:!0,"row-decorator":"oxd-table-decorator-card"},null,8,["order","selected","headers","items","loading"])]),(0,a.createElementVNode)("div",bj,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(C,{ref:"deleteDialog"},null,512)])}const xj={empNumber:null},wj={"performanceTracker.modifiedDate":"DESC","employee.lastName":"ASC","performanceTracker.trackerName":"ASC","performanceTracker.addedDate":"DESC"};var Nj={name:"TrackerList",components:{"delete-confirmation":Et,"employee-autocomplete":Va},props:{unselectableIds:{type:Array,default:()=>[]}},setup(){const{locale:e}=De(),{jsDateFormat:t}=R(),{$tEmpName:o}=xa(),l=a=>a.map((a=>({id:a.id,tracker:a.trackerName,addDate:ie(re(a.addedDate),t,{locale:e}),modifiedDate:ie(re(a.modifiedDate),t,{locale:e}),empName:o(a.employee,{includeMiddle:!1,excludePastEmpTag:!1})}))),n=new P(window.appGlobal.baseUrl,"/api/v2/performance/config/trackers"),r=(0,a.ref)({...xj}),{sortDefinition:i,sortField:s,sortOrder:d,onSort:c}=Tt({sortDefinition:wj}),m=(0,a.computed)((()=>({empNumber:r.value.empNumber?.id,sortField:s.value,sortOrder:d.value,includeEmployees:r.value.includeEmployees?.param}))),{showPaginator:u,currentPage:p,total:h,response:g,pages:v,isLoading:f,execQuery:y}=wt(n,{query:m,normalizer:l,prefetch:!0,toastNoRecords:!0});return c(y),{http:n,total:h,isLoading:f,showPaginator:u,currentPage:p,pages:v,response:g,execQuery:y,sortDefinition:i,filters:r}},data(){return{headers:[{name:"empName",title:this.$t("general.employee"),slot:"title",sortField:"employee.lastName",style:{flex:1}},{name:"tracker",title:this.$t("performance.tracker"),style:{flex:1},sortField:"performanceTracker.trackerName"},{name:"addDate",title:this.$t("performance.added_date"),sortField:"performanceTracker.addedDate",style:{flex:1}},{name:"modifiedDate",title:this.$t("performance.modified_date"),sortField:"performanceTracker.modifiedDate",style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],rules:{employee:[xo]}}},methods:{onClickAdd(){U("/performance/addPerformanceTracker")},onClickEdit(e){U("/performance/addPerformanceTracker/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.response?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.cannotDelete();this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onClickReset(){this.filters={...xj},this.filterItems()}}};const _j=(0,r.Z)(Nj,[["render",Vj]]);var kj=_j;const Sj={class:"orangehrm-background-container"},Dj={class:"orangehrm-card-container"};function $j(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("employee-autocomplete"),h=(0,a.resolveComponent)("reviewer-autocomplete"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Sj,[(0,a.createElementVNode)("div",Dj,[(0,a.createVNode)(i,{class:"orangehrm-main-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.add_performance_tracker")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.tracker.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.tracker.name=e),rules:n.rules.tracker,label:e.$t("performance.tracker_name"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.tracker.employee,"onUpdate:modelValue":t[1]||(t[1]=e=>n.tracker.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.tracker.reviewers,"onUpdate:modelValue":t[2]||(t[2]=e=>n.tracker.reviewers=e),rules:n.rules.reviewers,"exclude-employee":n.tracker.employee,required:""},null,8,["modelValue","rules","exclude-employee"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),type:"button",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}function Ej(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete");return(0,a.openBlock)(),(0,a.createBlock)(i,{label:e.$t("performance.reviewers"),multiple:!0,clear:!1,"create-options":r.loadEmployees,required:""},null,8,["label","create-options"])}var Tj={name:"ReviewersAutoComplete",components:{"employee-autocomplete":Va},props:{includeEmployees:{type:String,default:"onlyCurrent"},excludeEmployee:{type:Object,required:!1,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/trackers/reviewers");return{http:e}},methods:{async loadEmployees(e){return new Promise((t=>{e.trim()?this.http.getAll({nameOrId:e.trim(),empNumber:null==this.excludeEmployee?null:this.excludeEmployee.id}).then((({data:e})=>{t(e.data.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId}))))})):t([])}))}}};const Bj=(0,r.Z)(Tj,[["render",Ej]]);var Ij=Bj;const Lj={name:null,employee:null,reviewers:[]};var Uj={components:{"reviewer-autocomplete":Ij,"employee-autocomplete":Va},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/config/trackers");return{http:e}},data(){return{isLoading:!1,tracker:{...Lj},rules:{tracker:[jt,zt(200)],employee:[jt,xo,e=>{if(null===e)return!0;const t=this.tracker.reviewers.findIndex((t=>t.id===e.id));return-1==t||this.$t("performance.employee_cannot_be_assigned_as_his_own_reviewer")}],reviewers:[jt,xo]}}},methods:{onCancel(){U("/performance/viewPerformanceTracker")},onSave(){this.isLoading=!0,this.http.create({trackerName:this.tracker.name.trim(),empNumber:this.tracker.employee.id,reviewerEmpNumbers:this.tracker.reviewers.map((e=>e.id))}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))}}};const Aj=(0,r.Z)(Uj,[["render",$j]]);var Pj=Aj;const qj={class:"orangehrm-background-container"},Mj={class:"orangehrm-card-container"};function Fj(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("employee-autocomplete"),h=(0,a.resolveComponent)("reviewer-autocomplete"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",qj,[(0,a.createElementVNode)("div",Mj,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.edit_performance_tracker")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.tracker.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.tracker.name=e),rules:n.rules.tracker,label:e.$t("performance.tracker_name"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.tracker.employee,"onUpdate:modelValue":t[1]||(t[1]=e=>n.tracker.employee=e),rules:n.rules.employee,readonly:n.isReadOnly},null,8,["modelValue","rules","readonly"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.tracker.reviewers,"onUpdate:modelValue":t[2]||(t[2]=e=>n.tracker.reviewers=e),rules:n.rules.reviewers,"exclude-employee":n.tracker.employee,required:""},null,8,["modelValue","rules","exclude-employee"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const jj={name:null,employee:null,reviewers:[]};var zj={components:{"employee-autocomplete":Va,"reviewer-autocomplete":Ij},props:{performanceTrackerId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/config/trackers");return{http:e}},data(){return{isLoading:!1,tracker:{...jj},isReadOnly:!1,rules:{tracker:[jt,zt(200)],employee:[jt,xo,e=>{if(null===e)return!0;const t=this.tracker.reviewers.findIndex((t=>t.id===e.id));return-1==t||this.$t("performance.employee_cannot_be_assigned_as_his_own_reviewer")}],reviewers:[jt,xo]}}},beforeMount(){this.isLoading=!0,this.http.get(this.performanceTrackerId).then((e=>{const{data:t}=e.data;this.isReadOnly=!1===t.ownerEditable,this.tracker.id=t.id,this.tracker.name=t.trackerName,this.tracker.employee=t.employee?{id:t.employee.empNumber,label:`${t.employee.firstName} ${t.employee.middleName} ${t.employee.lastName}`,isPastEmployee:!!t.employee.terminationId}:null,this.tracker.reviewers=t.reviewers.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId})))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/performance/viewPerformanceTracker")},onSave(){this.isLoading=!0;const e={trackerName:this.tracker.name.trim(),empNumber:this.tracker.employee.id,reviewerEmpNumbers:this.tracker.reviewers.map((e=>e.id))};this.http.update(this.performanceTrackerId,e).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))}}};const Rj=(0,r.Z)(zj,[["render",Fj]]);var Oj=Rj;const Gj={class:"orangehrm-background-container"},Zj={class:"orangehrm-paper-container"},Qj={class:"orangehrm-header-container"},Hj={class:"orangehrm-container"},Wj={class:"orangehrm-bottom-container"};function Yj(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table"),c=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Gj,[(0,a.createElementVNode)("div",Zj,[(0,a.createElementVNode)("div",Qj,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.my_reviews")),1)])),_:1})]),(0,a.createVNode)(s,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",Hj,[(0,a.createVNode)(d,{order:l.sortDefinition,"onUpdate:order":t[0]||(t[0]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["order","headers","items","loading"])]),(0,a.createElementVNode)("div",Wj,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])])}const Jj={component:"oxd-icon-button",props:{name:"eye-fill",title:"View"}},Xj={component:"oxd-icon-button",props:{name:"pencil-fill",title:"Edit"}},Kj={component:"oxd-icon-button",props:{name:"file-text-fill",title:"Evaluate"}},ez={component:"oxd-button",props:{label:"View",displayType:"text",size:"medium",style:{"min-width":"120px"}}},tz={component:"oxd-button",props:{label:"Edit",displayType:"text",size:"medium",style:{"min-width":"120px"}}},oz={component:"oxd-button",props:{label:"Evaluate",displayType:"text",size:"medium",style:{"min-width":"120px"}}},az={class:"oxd-table-card-cell"},lz={class:"data"};function nz(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",az,[(0,a.withDirectives)((0,a.createElementVNode)("div",{class:"header"},(0,a.toDisplayString)(o.header.title),513),[[a.vShow,r.showHeader]]),(0,a.createElementVNode)("div",lz,[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.reviewPeriodStart)+" - ",1),(0,a.createVNode)(i,{tag:"span",class:"time"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.reviewPeriodEnd),1)])),_:1})])),_:1})])])}var rz={name:"ReviewPeriodCell",props:{header:{type:Object,required:!0},reviewPeriodStart:{type:String,required:!0},reviewPeriodEnd:{type:String,required:!0}},setup(){const{screenState:e}=(0,q.useInjectTableProps)();return{screenState:e}},computed:{showHeader(){return!("lg"===this.screenState.screenType||"xl"===this.screenState.screenType)}}};const iz=(0,r.Z)(rz,[["render",nz],["__scopeId","data-v-ab384128"]]);var sz=iz;const dz={"performanceReview.statusId":"ASC","performanceReview.dueDate":"ASC","performanceReview.reviewPeriodStart":"DEFAULT","reviewer.status":"DEFAULT"};var cz={setup(){const{sortDefinition:e,sortField:t,sortOrder:o,onSort:l}=Tt({sortDefinition:dz}),n=(0,a.computed)((()=>({sortField:t.value,sortOrder:o.value}))),r=new P(window.appGlobal.baseUrl,"/api/v2/performance/reviews"),{jsDateFormat:i}=R(),{locale:s}=De(),d=e=>e.map((e=>({id:e.id,jobTitle:e.jobTitle.name,department:e.subunit.name,reviewPeriod:{reviewPeriodStart:ie(re(e.reviewPeriodStart),i,{locale:s}),reviewPeriodEnd:ie(re(e.reviewPeriodEnd),i,{locale:s})},dueDate:ie(re(e.dueDate),i,{locale:s}),overallStatus:e.overallStatus.statusName,selfEvaluationStatus:e.selfReviewStatus,statusId:e.overallStatus.statusId}))),{currentPage:c,total:m,showPaginator:u,pages:p,pageSize:h,response:g,execQuery:v,isLoading:f}=wt(r,{query:n,normalizer:d});return l(v),{http:r,total:m,isLoading:f,items:g,execQuery:v,sortDefinition:e,showPaginator:u,pages:p,pageSize:h,currentPage:c}},data(){return{headers:[{name:"jobTitle",slot:"title",title:this.$t("general.job_title"),style:{flex:1}},{name:"department",title:this.$t("general.sub_unit"),style:{flex:1}},{name:"reviewPeriod",title:this.$t("performance.review_period"),sortField:"performanceReview.reviewPeriodStart",style:{flex:2},cellRenderer:this.reviewPeriodCellRenderer},{name:"dueDate",title:this.$t("performance.due_date"),sortField:"performanceReview.dueDate",style:{flex:1}},{name:"selfEvaluationStatus",title:this.$t("performance.self_evaluation_status"),sortField:"reviewer.status",style:{flex:1}},{name:"overallStatus",title:this.$t("performance.review_status"),sortField:"performanceReview.statusId",style:{flex:1}},{name:"action",slot:"footer",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellRenderer:this.actionButtonCellRenderer}]}},methods:{actionButtonCellRenderer(...[,,,e]){const t={},o=(0,a.inject)(q.tableScreenStateKey);return"lg"===o.screenType||"xl"===o.screenType?"Completed"===e.selfEvaluationStatus?(t.view=Jj,t.view.props.title=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):(t.evaluate=Kj,t.evaluate.props.title=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate):"Completed"===e.selfEvaluationStatus?(t.view=ez,t.view.props.label=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):(t.evaluate=oz,t.evaluate.props.label=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate),{props:{header:{cellConfig:t}}}},reviewPeriodCellRenderer(...e){const t=e[1];return{component:sz,props:{reviewPeriodStart:t.reviewPeriodStart,reviewPeriodEnd:t.reviewPeriodEnd}}},onClickView(){U("/performance/searchKpi")},onClickEvaluate(e){U("/performance/reviewEvaluate/id/{id}",{id:e.id})}}};const mz=(0,r.Z)(cz,[["render",Yj],["__scopeId","data-v-0a23ca8f"]]);var uz=mz;const pz=e=>((0,a.pushScopeId)("data-v-2415900c"),e=e(),(0,a.popScopeId)(),e),hz={class:"orangehrm-background-container"},gz=pz((()=>(0,a.createElementVNode)("br",null,null,-1))),vz={class:"orangehrm-paper-container"},fz={class:"orangehrm-container"},yz={class:"orangehrm-bottom-container"};function Cz(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("jobtitle-dropdown"),c=(0,a.resolveComponent)("subunit-dropdown"),m=(0,a.resolveComponent)("include-employee-dropdown"),u=(0,a.resolveComponent)("review-status-dropdown"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("oxd-grid"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("oxd-table-filter"),b=(0,a.resolveComponent)("table-header"),V=(0,a.resolveComponent)("oxd-card-table"),x=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",hz,[(0,a.createVNode)(C,{"filter-title":e.$t("performance.employee_reviews")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y,{onSubmitValid:r.filterItems,onReset:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:n.rules.employee,params:{includeEmployees:l.filters.includeEmployees.param}},null,8,["modelValue","rules","params"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.jobTitle=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.subunit,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.subunit=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.includeEmployees,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.includeEmployees=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.status,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.status=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.fromDate=e),rules:n.rules.fromDate,label:e.$t("general.from_date")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[6]||(t[6]=e=>l.filters.toDate=e),rules:n.rules.toDate,label:e.$t("general.to_date")},null,8,["modelValue","rules","label"])])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(v,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),gz,(0,a.createElementVNode)("div",vz,[(0,a.createVNode)(b,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",fz,[(0,a.createVNode)(V,{order:l.sortDefinition,"onUpdate:order":t[7]||(t[7]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["order","headers","items","loading"])]),(0,a.createElementVNode)("div",yz,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(x,{key:0,current:l.currentPage,"onUpdate:current":t[8]||(t[8]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])])}function bz(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("performance.review_status"),clear:!1,options:n.statusOpts},null,8,["label","options"])}var Vz={name:"ReviewStatusDropdown",data(){return{statusOpts:[{id:1,statusId:2,label:this.$t("performance.activated")},{id:2,statusId:3,label:this.$t("performance.in_progress")},{id:3,statusId:4,label:this.$t("performance.completed")}]}}};const xz=(0,r.Z)(Vz,[["render",bz]]);var wz=xz;const Nz={"employee.lastName":"DEFAULT","performanceReview.reviewPeriodStart":"DEFAULT","performanceReview.dueDate":"DEFAULT","performanceReview.statusId":"ASC"};var _z={name:"ReviewList",components:{"include-employee-dropdown":zu,"review-status-dropdown":wz,"subunit-dropdown":Lu,"jobtitle-dropdown":Eu,"employee-autocomplete":Va},props:{fromDate:{type:String,required:!1,default:null},toDate:{type:String,required:!1,default:null}},setup(e){const{$t:t}=Se(),{jsDateFormat:o,userDateFormat:l}=R(),{locale:n}=De(),r=e=>ie(re(e),o,{locale:n}),i=e=>e.map((e=>({id:e.id,employee:`${e.employee?.firstName} ${e.employee?.lastName} ${e.employee?.terminationId?` ${t("general.past_employee")}`:""}`,jobTitle:e.jobTitle?.name,subunit:e.subunit?.name,reviewPeriod:{reviewPeriodStart:r(e.reviewPeriodStart),reviewPeriodEnd:r(e.reviewPeriodEnd)},dueDate:r(e.dueDate),status:2===e.overallStatus.statusId?t("performance.activated"):3===e.overallStatus.statusId?t("performance.in_progress"):t("performance.completed"),statusId:e.overallStatus.statusId}))),s={employee:null,jobTitle:null,subunit:null,status:null,fromDate:null,toDate:null,includeEmployees:{id:1,param:"onlyCurrent",label:t("general.current_employees_only")}},d=(0,a.ref)({...s,...e.fromDate&&{fromDate:e.fromDate},...e.toDate&&{toDate:e.toDate}}),{sortDefinition:c,sortField:m,sortOrder:u,onSort:p}=Tt({sortDefinition:Nz}),h=(0,a.computed)((()=>({sortField:m.value,sortOrder:u.value,empNumber:d.value.employee?.id,jobTitleId:d.value.jobTitle?.id,subunitId:d.value.subunit?.id,statusId:d.value.status?.statusId,fromDate:d.value.fromDate,toDate:d.value.toDate,includeEmployees:d.value.includeEmployees?.param}))),g=new P(window.appGlobal.baseUrl,"/api/v2/performance/employees/reviews"),{showPaginator:v,currentPage:f,total:y,pages:C,pageSize:b,response:V,isLoading:x,execQuery:w}=wt(g,{query:h,normalizer:i});return p(w),{http:g,showPaginator:v,currentPage:f,isLoading:x,total:y,pages:C,pageSize:b,execQuery:w,items:V,filters:d,sortDefinition:c,userDateFormat:l}},data(){return{headers:[{name:"employee",title:this.$t("general.employee"),slot:"title",sortField:"employee.lastName",style:{flex:1}},{name:"jobTitle",title:this.$t("general.job_title"),style:{flex:1}},{name:"subunit",title:this.$t("general.sub_unit"),style:{flex:1}},{name:"reviewPeriod",title:this.$t("performance.review_period"),sortField:"performanceReview.reviewPeriodStart",style:{flex:1},cellRenderer:this.reviewPeriodCellRenderer},{name:"dueDate",title:this.$t("performance.due_date"),sortField:"performanceReview.dueDate",style:{flex:1}},{name:"status",title:this.$t("performance.review_status"),sortField:"performanceReview.statusId",style:{flex:1}},{name:"action",slot:"footer",title:this.$t("general.actions"),cellType:"oxd-table-cell-actions",cellRenderer:this.actionCellRenderer,style:{flex:1}}],rules:{employee:[xo],fromDate:[Rt(this.userDateFormat),co((()=>this.filters.toDate),this.$t("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(this.userDateFormat),eo((()=>this.filters.fromDate),this.$t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]}}},methods:{actionCellRenderer(...[,,,e]){const t={},o=(0,a.inject)(q.tableScreenStateKey);return"lg"===o.screenType||"xl"===o.screenType?4===e.statusId?(t.view=Jj,t.view.props.title=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):(t.evaluate=Kj,t.evaluate.props.title=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate):4===e.statusId?(t.view=ez,t.view.props.label=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):(t.evaluate=oz,t.evaluate.props.label=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate),{props:{header:{cellConfig:t}}}},reviewPeriodCellRenderer(...e){const t=e[1];return{component:sz,props:{reviewPeriodStart:t.reviewPeriodStart,reviewPeriodEnd:t.reviewPeriodEnd}}},async filterItems(){await this.execQuery()},onClickEvaluate(e){U("/performance/reviewEvaluateByAdmin/{id}",{id:e.id})}}};const kz=(0,r.Z)(_z,[["render",Cz],["__scopeId","data-v-2415900c"]]);var Sz=kz;const Dz=e=>((0,a.pushScopeId)("data-v-f1a9132e"),e=e(),(0,a.popScopeId)(),e),$z={class:"orangehrm-background-container"},Ez=Dz((()=>(0,a.createElementVNode)("br",null,null,-1))),Tz={class:"orangehrm-paper-container"},Bz={class:"orangehrm-header-container"},Iz={class:"orangehrm-container"},Lz={class:"orangehrm-bottom-container"};function Uz(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("jobtitle-dropdown"),c=(0,a.resolveComponent)("review-status-dropdown"),m=(0,a.resolveComponent)("include-employee-dropdown"),u=(0,a.resolveComponent)("date-input"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-divider"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("oxd-table-filter"),C=(0,a.resolveComponent)("table-header"),b=(0,a.resolveComponent)("oxd-card-table"),V=(0,a.resolveComponent)("oxd-pagination"),x=(0,a.resolveComponent)("delete-confirmation-dialog");return(0,a.openBlock)(),(0,a.createElementBlock)("div",$z,[(0,a.createVNode)(y,{"filter-title":e.$t("performance.manage_performance_reviews")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{onSubmitValid:r.filterItems,onReset:r.resetDataTable},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:n.rules.employee,params:{includeEmployees:l.filters.includeEmployees.param}},null,8,["modelValue","rules","params"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.jobTitle=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.status,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.status=e),options:l.statusOpts},null,8,["modelValue","options"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.includeEmployees,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.includeEmployees=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.reviewer,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.reviewer=e),label:e.$t("performance.reviewer"),params:{includeEmployees:"currentAndPast"}},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.fromDate=e),rules:n.rules.fromDate,label:e.$t("general.from_date")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[6]||(t[6]=e=>l.filters.toDate=e),rules:n.rules.toDate,label:e.$t("general.to_date")},null,8,["modelValue","rules","label"])])),_:1})])),_:1}),(0,a.createVNode)(h),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(g,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),Ez,(0,a.createElementVNode)("div",Tz,[(0,a.createElementVNode)("div",Bz,[(0,a.createVNode)(g,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(C,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Iz,[(0,a.createVNode)(b,{selected:n.checkedItems,"onUpdate:selected":t[7]||(t[7]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[8]||(t[8]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",Lz,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,current:l.currentPage,"onUpdate:current":t[9]||(t[9]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(x,{ref:"deleteDialog"},null,512)])}const Az={"employee.lastName":"DEFAULT","performanceReview.reviewPeriodStart":"DEFAULT","performanceReview.dueDate":"DEFAULT","performanceReview.statusId":"ASC","jobTitle.jobTitleName":"DEFAULT","reviewerEmployee.lastName":"DEFAULT"};var Pz={name:"ReviewSearch",components:{"include-employee-dropdown":zu,"review-status-dropdown":wz,"jobtitle-dropdown":Eu,"employee-autocomplete":Va,"delete-confirmation-dialog":Et},props:{fromDate:{type:String,required:!1,default:null},toDate:{type:String,required:!1,default:null}},setup(e){const{$t:t}=Se(),{jsDateFormat:o,userDateFormat:l}=R(),{locale:n}=De(),{$tEmpName:r}=xa(),i=e=>ie(re(e),o,{locale:n}),s=[{id:1,label:t("performance.inactive")},{id:2,label:t("performance.activated")},{id:3,label:t("performance.in_progress")},{id:4,label:t("performance.completed")}],d=e=>e.map((e=>{const t=e.employee,o=e.reviewer?.employee;return{id:e.id,employee:r(t),reviewer:r(o),jobTitle:e.jobTitle?.name,reviewPeriod:{reviewPeriodStart:i(e.reviewPeriodStart),reviewPeriodEnd:i(e.reviewPeriodEnd)},dueDate:i(e.dueDate),status:s.find((t=>t.id===e.overallStatus.statusId)).label,statusId:e.overallStatus.statusId}})),c={employee:null,jobTitle:null,status:null,reviewer:null,fromDate:null,toDate:null,includeEmployees:{id:1,param:"onlyCurrent",label:t("general.current_employees_only")}},m=(0,a.ref)({...c,...e.fromDate&&{fromDate:e.fromDate},...e.toDate&&{toDate:e.toDate}}),{sortDefinition:u,sortField:p,sortOrder:h,onSort:g}=Tt({sortDefinition:Az}),v=(0,a.computed)((()=>({sortField:p.value,sortOrder:h.value,empNumber:m.value.employee?.id,jobTitleId:m.value.jobTitle?.id,statusId:m.value.status?.id,reviewerEmpNumber:m.value.reviewer?.id,fromDate:m.value.fromDate,toDate:m.value.toDate,includeEmployees:m.value.includeEmployees?.param}))),f=new P(window.appGlobal.baseUrl,"/api/v2/performance/manage/reviews"),{showPaginator:y,currentPage:C,total:b,pages:V,pageSize:x,response:w,isLoading:N,execQuery:_}=wt(f,{query:v,normalizer:d});return g(_),{http:f,showPaginator:y,currentPage:C,isLoading:N,total:b,pages:V,pageSize:x,execQuery:_,items:w,filters:m,sortDefinition:u,statusOpts:s,userDateFormat:l}},data(){return{headers:[{name:"employee",title:this.$t("general.employee"),slot:"title",sortField:"employee.lastName",style:{flex:"14%"}},{name:"jobTitle",title:this.$t("general.job_title"),sortField:"jobTitle.jobTitleName",style:{flex:"14%"}},{name:"reviewPeriod",title:this.$t("performance.review_period"),sortField:"performanceReview.reviewPeriodStart",style:{flex:"14%"},cellRenderer:this.reviewPeriodCellRenderer},{name:"dueDate",title:this.$t("performance.due_date"),sortField:"performanceReview.dueDate",style:{flex:"14%"}},{name:"reviewer",title:this.$t("performance.reviewer"),sortField:"reviewerEmployee.lastName",style:{flex:"14%"}},{name:"status",title:this.$t("performance.review_status"),sortField:"performanceReview.statusId",style:{flex:"14%"}},{name:"action",slot:"footer",title:this.$t("general.actions"),cellType:"oxd-table-cell-actions",cellRenderer:this.actionButtonCellRenderer,style:{flex:"16%"}}],checkedItems:[],rules:{employee:[xo],fromDate:[Rt(this.userDateFormat),co((()=>this.filters.toDate),this.$t("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(this.userDateFormat),eo((()=>this.filters.fromDate),this.$t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]}}},methods:{actionButtonCellRenderer(...[,,,e]){const t={},o=(0,a.inject)(q.tableScreenStateKey);return t.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},"lg"===o.screenType||"xl"===o.screenType?4===e.statusId?(t.view=Jj,t.view.props.title=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):1===e.statusId?(t.edit=Xj,t.edit.props.title=this.$t("general.edit"),t.edit.onClick=this.onClickEdit):(t.evaluate=Kj,t.evaluate.props.title=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate):4===e.statusId?(t.view=ez,t.view.props.label=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):1===e.statusId?(t.edit=tz,t.edit.props.label=this.$t("general.edit"),t.edit.onClick=this.onClickEdit):(t.evaluate=oz,t.evaluate.props.label=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate),{props:{header:{cellConfig:t}}}},reviewPeriodCellRenderer(...e){const t=e[1];return{component:sz,props:{reviewPeriodStart:t.reviewPeriodStart,reviewPeriodEnd:t.reviewPeriodEnd}}},onClickEdit(e){U("/performance/saveReview/{id}",{id:e.id})},onClickAdd(){U("/performance/saveReview")},onClickEvaluate(e){U("/performance/reviewEvaluateByAdmin/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async filterItems(){await this.execQuery()},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const qz=(0,r.Z)(Pz,[["render",Uz],["__scopeId","data-v-f1a9132e"]]);var Mz=qz;const Fz=e=>((0,a.pushScopeId)("data-v-f225ba5e"),e=e(),(0,a.popScopeId)(),e),jz={class:"orangehrm-background-container"},zz={class:"orangehrm-card-container"},Rz={class:"orangehrm-employee-tracker"},Oz={class:"orangehrm-employee-tracker-image-section"},Gz={class:"orangehrm-employee-tracker-image-wrapper"},Zz=["src"],Qz={class:"orangehrm-employee-tracker-header-section"},Hz={class:"orangehrm-employee-tracker-header"},Wz={class:"orangehrm-employee-tracker-ratings"},Yz={key:0,class:"orangehrm-employee-tracker-ratings-info"},Jz={key:1,class:"orangehrm-employee-tracker-ratings-info"},Xz=Fz((()=>(0,a.createElementVNode)("br",null,null,-1))),Kz={class:"orangehrm-paper-container"},eR={class:"orangehrm-header-container"},tR={ref:"scrollerRef",class:"orangehrm-container"},oR={key:0,class:"orangehrm-employee-tracker-no-records"};function aR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon"),d=(0,a.resolveComponent)("oxd-button"),c=(0,a.resolveComponent)("employee-tracker-log-card"),m=(0,a.resolveComponent)("oxd-sheet"),u=(0,a.resolveComponent)("oxd-loading-spinner"),p=(0,a.resolveComponent)("add-tracker-log-modal"),h=(0,a.resolveComponent)("edit-tracker-log-modal"),g=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",jz,[(0,a.createElementVNode)("div",zz,[(0,a.createElementVNode)("div",Rz,[(0,a.createElementVNode)("div",Oz,[(0,a.createElementVNode)("div",Gz,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:l.imgSrc},null,8,Zz)])]),(0,a.createElementVNode)("div",Qz,[(0,a.createElementVNode)("div",Hz,[(0,a.createVNode)(i,{tag:"h5",class:"orangehrm-employee-tracker-header-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.trackerName),1)])),_:1}),(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-employee-tracker-header-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.employeeName),1)])),_:1})]),(0,a.createElementVNode)("div",Wz,[e.meta.positive>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",Yz,[(0,a.createVNode)(s,{class:"orangehrm-employee-tracker-ratings-icon --positive",type:"svg",name:"thumbsup"}),(0,a.createVNode)(i,{class:"orangehrm-employee-tracker-ratings-text --positive"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.meta.positive),1)])),_:1})])):(0,a.createCommentVNode)("",!0),e.meta.negative>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",Jz,[(0,a.createVNode)(s,{class:"orangehrm-employee-tracker-ratings-icon --negative",type:"svg",name:"thumbsdown"}),(0,a.createVNode)(i,{class:"orangehrm-employee-tracker-ratings-text --negative"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.meta.negative),1)])),_:1})])):(0,a.createCommentVNode)("",!0)])])])]),Xz,(0,a.createElementVNode)("div",Kz,[(0,a.createElementVNode)("div",eR,[(0,a.createVNode)(i,{tag:"h5",class:"orangehrm-employee-tracker-list-header"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.tracker_logs")),1)])),_:1}),(0,a.createVNode)(d,{label:e.$t("performance.add_log"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createElementVNode)("div",tR,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.items,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(m,{key:t,gutters:!1,type:"gray-lighten-2",class:"orangehrm-scroll-card"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{"tracker-log":e,onEdit:r.onClickEdit,onDelete:r.onClickDelete},null,8,["tracker-log","onEdit","onDelete"])])),_:2},1024)))),128)),e.showNoRecordsFound?((0,a.openBlock)(),(0,a.createElementBlock)("div",oR,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_found",{count:0})),1)])),_:1})])):(0,a.createCommentVNode)("",!0),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1,class:"orangehrm-container-loader"})):(0,a.createCommentVNode)("",!0)],512)]),n.showAddTrackerModal?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,"tracker-id":o.trackerId,onClose:r.onAddTrackerModalClose},null,8,["tracker-id","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditTrackerModal?((0,a.openBlock)(),(0,a.createBlock)(h,{key:1,"tracker-id":o.trackerId,"tracker-log-id":n.editTrackerLogId,onClose:r.onEditTrackerModalClose},null,8,["tracker-id","tracker-log-id","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(g,{ref:"deleteDialog"},null,512)])}function lR(e,{refName:t="scrollerRef",scrollDistance:o=100,debounceInterval:l=100}={}){let n=0,r=!1;const i=(0,a.ref)(),s=(0,q.promiseDebounce)((async()=>e()),l),d=()=>{let e,t,a;i.value?({scrollHeight:e,clientHeight:t,scrollTop:a}=i.value.$el||i.value):(a=window.scrollY,e=document.body.scrollHeight,t=document.body.clientHeight),r=a>n,n=a;const l=a+t>=e-(o||0);r&&l&&s()};return(0,a.onMounted)((async()=>{await(0,a.nextTick)(),i.value?(i.value.$el||i.value).addEventListener("scroll",d):document.addEventListener("scroll",d)})),(0,a.onBeforeUnmount)((()=>{i.value?(i.value.$el||i.value).removeEventListener("scroll",d):document.removeEventListener("scroll",d)})),{[t]:i}}const nR={class:"orangehrm-modal-header"},rR={class:"orangehrm-add-tracker-log-ratings-container"};function iR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("tracker-log-rating-button"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{style:{width:"90%",maxWidth:"650px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",nR,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.add_tracker_log")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.trackerLog.log,"onUpdate:modelValue":t[0]||(t[0]=e=>n.trackerLog.log=e),label:e.$t("performance.log"),placeholder:e.$t("general.type_here"),rules:n.rules.log,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",rR,[(0,a.createVNode)(m,{label:e.$t("performance.positive"),selected:n.rating,type:"positive",onClick:r.onClickPositive},null,8,["label","selected","onClick"]),(0,a.createVNode)(m,{label:e.$t("performance.negative"),selected:!n.rating,type:"negative",onClick:r.onClickNegative},null,8,["label","selected","onClick"])])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.trackerLog.comment,"onUpdate:modelValue":t[1]||(t[1]=e=>n.trackerLog.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_here"),rules:n.rules.comment,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{class:"orangehrm-form-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p,{"display-type":"secondary",label:e.$t("general.save"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}function sR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createBlock)(s,{"display-type":"text",label:o.label,class:(0,a.normalizeClass)(r.buttonClasses),onClick:t[0]||(t[0]=t=>e.$emit("click"))},{icon:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"svg",name:r.iconName,class:(0,a.normalizeClass)(r.iconClasses)},null,8,["name","class"])])),_:1},8,["label","class"])}var dR={name:"TrackerLogRatingButton",components:{"oxd-icon":q.OxdIcon},props:{label:{type:String,required:!0},selected:{type:Boolean,required:!0},type:{type:String,required:!0,validator:function(e){return-1!==["positive","negative"].indexOf(e)}}},emits:["click"],computed:{iconName(){return"thumbs"+("positive"===this.type?"up":"down")},buttonClasses(){return{"orangehrm-tracker-rating-button":!0,"--deselected":!this.selected}},iconClasses(){return{"orangehrm-tracker-rating-icon":!0,[`--${this.type}`]:!0}}}};const cR=(0,r.Z)(dR,[["render",sR],["__scopeId","data-v-21511c97"]]);var mR=cR;const uR={log:"",comment:""};var pR={name:"AddTrackerLogModal",components:{"oxd-dialog":q.OxdDialog,"tracker-log-rating-button":mR},props:{trackerId:{type:Number,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/performance/trackers/${e.trackerId}/logs`);return{http:t}},data(){return{isLoading:!1,rating:!0,trackerLog:{...uR},rules:{log:[jt,zt(150)],comment:[jt,zt(3e3)]}}},methods:{onClickPositive(){this.rating=!0},onClickNegative(){this.rating=!1},onSave(){this.isLoading=!0,this.http.create({log:this.trackerLog.log,comment:this.trackerLog.comment,achievement:this.rating?1:2}).then((()=>{this.$toast.saveSuccess(),this.onCancel()}))},onCancel(){this.$emit("close")}}};const hR=(0,r.Z)(pR,[["render",iR],["__scopeId","data-v-38b5fab4"]]);var gR=hR;const vR={class:"orangehrm-modal-header"},fR={class:"orangehrm-add-tracker-log-ratings-container"};function yR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("tracker-log-rating-button"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{style:{width:"90%",maxWidth:"650px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",vR,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.edit_tracker_log")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.trackerLog.log,"onUpdate:modelValue":t[0]||(t[0]=e=>n.trackerLog.log=e),label:e.$t("performance.log"),placeholder:e.$t("general.type_here"),rules:n.rules.log,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",fR,[(0,a.createVNode)(m,{label:e.$t("performance.positive"),selected:n.rating,type:"positive",onClick:r.onClickPositive},null,8,["label","selected","onClick"]),(0,a.createVNode)(m,{label:e.$t("performance.negative"),selected:!n.rating,type:"negative",onClick:r.onClickNegative},null,8,["label","selected","onClick"])])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.trackerLog.comment,"onUpdate:modelValue":t[1]||(t[1]=e=>n.trackerLog.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_here"),rules:n.rules.comment,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{class:"orangehrm-form-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p,{"display-type":"secondary",label:e.$t("general.save"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const CR={log:"",comment:""};var bR={name:"EditTrackerLogModal",components:{"oxd-dialog":q.OxdDialog,"tracker-log-rating-button":mR},props:{trackerId:{type:Number,required:!0},trackerLogId:{type:Number,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/performance/trackers/${e.trackerId}/logs`);return{http:t}},data(){return{isLoading:!1,rating:!0,trackerLog:{...CR},rules:{log:[jt,zt(150)],comment:[jt,zt(3e3)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.trackerLogId).then((e=>{const{data:t}=e.data;this.trackerLog.log=t.log,this.trackerLog.comment=t.comment,this.rating="1"===t.achievement})).finally((()=>{this.isLoading=!1}))},methods:{onClickPositive(){this.rating=!0},onClickNegative(){this.rating=!1},onSave(){this.isLoading=!0,this.http.update(this.trackerLogId,{log:this.trackerLog.log,comment:this.trackerLog.comment,achievement:this.rating?1:2}).then((()=>{this.$toast.updateSuccess(),this.onCancel()}))},onCancel(){this.$emit("close")}}};const VR=(0,r.Z)(bR,[["render",yR],["__scopeId","data-v-5f6526aa"]]);var xR=VR;const wR={class:"orangehrm-employee-tracker-log"},NR={class:"orangehrm-employee-tracker-log-image-section"},_R={class:"orangehrm-employee-tracker-log-image-wrapper"},kR=["src"],SR={class:"orangehrm-employee-tracker-log-content-section"},DR={class:"orangehrm-employee-tracker-log-reviewer-name"},$R={class:"orangehrm-employee-tracker-log-content-container"},ER={class:"orangehrm-employee-tracker-log-header"},TR={class:"orangehrm-employee-tracker-log-title"},BR={class:"orangehrm-employee-tracker-log-body"},IR={class:"orangehrm-employee-tracker-log-reviewer-date"},LR={class:"orangehrm-employee-tracker-log-reviewer-date-container"},UR={key:0,class:"orangehrm-employee-tracker-log-reviewer-date-container"};function AR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon"),d=(0,a.resolveComponent)("oxd-table-dropdown");return(0,a.openBlock)(),(0,a.createElementBlock)("div",wR,[(0,a.createElementVNode)("div",NR,[(0,a.createElementVNode)("div",_R,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:o.trackerLog.reviewerPictureSrc},null,8,kR)])]),(0,a.createElementVNode)("div",SR,[(0,a.createElementVNode)("div",DR,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.trackerLog.reviewerName),1)])),_:1})]),(0,a.createElementVNode)("div",$R,[(0,a.createElementVNode)("div",ER,[(0,a.createElementVNode)("div",TR,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-employee-tracker-log-title-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.trackerLog.log),1)])),_:1}),(0,a.createVNode)(s,{type:"svg",class:(0,a.normalizeClass)({"orangehrm-employee-tracker-log-title-icon":!0,"--positive":"1"===o.trackerLog.achievement,"--negative":"2"===o.trackerLog.achievement}),name:"thumbs"+("1"===o.trackerLog.achievement?"up":"down")},null,8,["class","name"])]),o.trackerLog.editable?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,options:n.dropdownOptions,onClick:t[0]||(t[0]=e=>r.onTrackerDropdownAction(e,o.trackerLog))},null,8,["options"])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",BR,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-employee-tracker-log-body-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.trackerLog.comment),1)])),_:1})])]),(0,a.createElementVNode)("div",IR,[(0,a.createElementVNode)("div",LR,[(0,a.createVNode)(s,{class:"orangehrm-employee-tracker-log-reviewer-date-icon",name:"calendar-plus",title:e.$t("performance.added_on")},null,8,["title"]),(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.trackerLog.addedDate),1)])),_:1})]),o.trackerLog.modifiedDate?((0,a.openBlock)(),(0,a.createElementBlock)("div",UR,[(0,a.createVNode)(s,{class:"orangehrm-employee-tracker-log-reviewer-date-icon",name:"pencil",title:e.$t("performance.modified_on")},null,8,["title"]),(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.trackerLog.modifiedDate),1)])),_:1})])):(0,a.createCommentVNode)("",!0)])])])}var PR={name:"EmployeeTrackerLogCard",components:{"oxd-icon":q.OxdIcon,"oxd-table-dropdown":q.OxdTableDropdown},props:{trackerLog:{type:Object,required:!0}},emits:["edit","delete"],data(){return{dropdownOptions:[{label:this.$t("general.edit"),context:"edit"},{label:this.$t("performance.delete"),context:"delete"}]}},methods:{onTrackerDropdownAction(e,t){switch(e.context){case"edit":this.$emit("edit",t.id);break;case"delete":this.$emit("delete",t.id);break}}}};const qR=(0,r.Z)(PR,[["render",AR],["__scopeId","data-v-6a9799ac"]]);var MR=qR,FR={name:"ViewEmployeeTrackerLogs",components:{"oxd-icon":q.OxdIcon,"oxd-sheet":q.OxdSheet,"oxd-loading-spinner":q.OxdSpinner,"add-tracker-log-modal":gR,"edit-tracker-log-modal":xR,"delete-confirmation":Et,"employee-tracker-log-card":MR},props:{trackerId:{type:Number,required:!0},empNumber:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/performance/trackers/${e.trackerId}/logs`),o=10,l=(0,a.reactive)({total:0,items:[],meta:{positive:0,negative:0},infinite:!1,isLoading:!1,showNoRecordsFound:!1}),{$tEmpName:n}=xa(),{jsDateFormat:r}=R(),{locale:i}=De(),s=()=>{l.showNoRecordsFound=!1,l.isLoading=!0,t.getAll({limit:o,offset:0===l.items.length?0:o}).then((e=>{const{data:t,meta:o}=e.data;l.total=o?.total||0,Array.isArray(t)&&(l.items=[...l.items,...t.map((e=>({...e,reviewerPictureSrc:`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.reviewer.empNumber}`,reviewerName:n(e.reviewer),addedDate:ie(re(e.addedDate),r,{locale:i}),modifiedDate:ie(re(e.modifiedDate),r,{locale:i})})))],l.meta={...l.meta,...o})})).finally((()=>{l.showNoRecordsFound=0===l.total,l.isLoading=!1}))},{scrollerRef:d}=lR((()=>{l.items.length>=l.total||s()})),c=(0,a.computed)((()=>`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.empNumber}`));return{http:t,scrollerRef:d,fetchData:s,...(0,a.toRefs)(l),imgSrc:c}},data(){return{trackerName:"",employeeName:"",showAddTrackerModal:!1,showEditTrackerModal:!1,editTrackerLogId:null}},beforeMount(){this.http.request({method:"GET",url:`/api/v2/performance/employees/trackers/${this.trackerId}`}).then((e=>{const{data:t}=e.data;this.trackerName=t.trackerName,this.employeeName=`${t.employee.firstName} ${t.employee.lastName} ${t.employee.terminationId?` ${this.$t("general.past_employee")}`:""}`})).then((()=>{this.fetchData()}))},methods:{onClickAdd(){this.showAddTrackerModal=!0},onAddTrackerModalClose(){this.showAddTrackerModal=!1,this.resetItems()},onEditTrackerModalClose(){this.showEditTrackerModal=!1,this.resetItems()},onClickEdit(e){this.editTrackerLogId=e,this.showEditTrackerModal=!0},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e])}))},deleteItems(e){e instanceof Array&&(this.items=[],this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).finally((()=>{this.fetchData()})))},resetItems(){this.items=[],this.fetchData()}}};const jR=(0,r.Z)(FR,[["render",aR],["__scopeId","data-v-f225ba5e"]]);var zR=jR;const RR=e=>((0,a.pushScopeId)("data-v-ecbdbb4c"),e=e(),(0,a.popScopeId)(),e),OR={class:"orangehrm-background-container"},GR={class:"orangehrm-card-container"},ZR=RR((()=>(0,a.createElementVNode)("br",null,null,-1))),QR=RR((()=>(0,a.createElementVNode)("br",null,null,-1))),HR=RR((()=>(0,a.createElementVNode)("br",null,null,-1))),WR={class:"orangehrm-performance-review-actions"};function YR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("review-confirm-modal"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("review-summary"),c=(0,a.resolveComponent)("evaluation-form"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("final-evaluation"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",OR,[(0,a.createVNode)(i,{ref:"confirmDialog"},null,512),(0,a.createElementVNode)("div",GR,[(0,a.createVNode)(s,{tag:"h5",class:"orangehrm-performance-review-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.performance_review")),1)])),_:1})]),ZR,(0,a.createVNode)(d,{loading:n.isLoading,status:o.status,"due-date":o.dueDate,employee:n.employee.details,"job-title":n.employee.jobTitle,"review-period-end":o.reviewPeriodEnd,"review-period-start":o.reviewPeriodStart,"final-rating":n.finalRating},null,8,["loading","status","due-date","employee","job-title","review-period-end","review-period-start","final-rating"]),QR,(0,a.createVNode)(g,{ref:"formRef",loading:n.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.employeeReview,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employeeReview=e),kpis:n.kpis,rules:n.rules,editable:r.hasSupervisorUpdateAction,collapsed:n.employee.status<3,collapsible:3===n.employee.status,employee:n.employee.details,"job-title":n.employee.jobTitle,status:n.employee.status,title:e.$t("performance.self_evaluation_by")},null,8,["modelValue","kpis","rules","editable","collapsed","collapsible","employee","job-title","status","title"]),HR,(0,a.createVNode)(c,{modelValue:n.supervisorReview,"onUpdate:modelValue":t[6]||(t[6]=e=>n.supervisorReview=e),kpis:n.kpis,rules:n.rules,editable:r.hasSaveAction||r.hasCompleteAction,collapsible:!0,employee:n.supervisor.details,"job-title":n.supervisor.jobTitle,status:n.supervisor.status,title:e.$t("performance.supervisor_evaluation_by")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),((0,a.openBlock)(),(0,a.createBlock)(u,{key:n.isFinalizeRequired,"final-rating":n.finalRating,"onUpdate:final-rating":t[1]||(t[1]=e=>n.finalRating=e),"final-comment":n.finalComment,"onUpdate:final-comment":t[2]||(t[2]=e=>n.finalComment=e),"completed-date":n.completedDate,"onUpdate:completed-date":t[3]||(t[3]=e=>n.completedDate=e),status:o.status,"is-required":n.isFinalizeRequired},null,8,["final-rating","final-comment","completed-date","status","is-required"])),(0,a.withDirectives)((0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createElementVNode)("div",WR,[r.hasCancelAction?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickCancel},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),r.hasSaveAction?((0,a.openBlock)(),(0,a.createBlock)(p,{key:1,"display-type":"ghost",type:"button",label:e.$t("general.save"),onClick:t[4]||(t[4]=e=>r.onSubmit(!1))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasCompleteAction?((0,a.openBlock)(),(0,a.createBlock)(p,{key:2,type:"button","display-type":"secondary",label:e.$t("performance.complete"),onClick:t[5]||(t[5]=e=>r.onSubmit(!0))},null,8,["label"])):(0,a.createCommentVNode)("",!0)])])),_:1},512),[[a.vShow,r.hasActions]])])),_:1},8,["modelValue","kpis","rules","editable","employee","job-title","status","title"])])),_:1},8,["loading"])])}const JR={class:"orangehrm-card-container"},XR={class:"orangehrm-performance-review-summary"},KR={class:"orangehrm-performance-review-owner"},eO=["src"],tO={class:"orangehrm-performance-review-owner-employee-section"},oO={class:"orangehrm-performance-review-owner-employee"},aO={class:"orangehrm-performance-review-rating"};function lO(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",JR,[(0,a.createElementVNode)("div",XR,[(0,a.createVNode)(i,{tag:"h5",class:"orangehrm-performance-review-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.review_summary")),1)])),_:1}),(0,a.createVNode)(m,{loading:o.loading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-performance-review-details"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-performance-review-details-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",KR,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:l.imgSrc},null,8,eO),(0,a.createElementVNode)("div",tO,[(0,a.createElementVNode)("div",oO,[(0,a.createVNode)(i,{tag:"h5",class:"orangehrm-performance-review-owner-employee-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeName),1)])),_:1}),(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-performance-review-owner-employee-job"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.jobTitle),1)])),_:1})])])])])),_:1}),(0,a.withDirectives)((0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",aO,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.final_rating")),1)])),_:1}),(0,a.createVNode)(i,{tag:"h4",class:"orangehrm-performance-review-rating-number"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.finalRating),1)])),_:1})])])),_:1},512),[[a.vShow,4===o.status]])])),_:1})])),_:1}),(0,a.createVNode)(c,{class:"orangehrm-performance-review-details"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-performance-review-details-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-performance-review-column"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.review_status")),1)])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-performance-review-bold"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.reviewStatus),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-performance-review-column"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.review_period")),1)])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-performance-review-bold"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.reviewPeriod),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-performance-review-column"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.review_due_date")),1)])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-performance-review-bold"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.reviewDueDate),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["loading"])])])}const nO=`${window.appGlobal.publicPath}/images/default-photo.png`;var rO={name:"ReviewSummary",props:{employee:{type:Object,required:!0},jobTitle:{type:String,required:!0},status:{type:Number,required:!0},reviewPeriodStart:{type:String,required:!0},reviewPeriodEnd:{type:String,required:!0},dueDate:{type:String,required:!0},loading:{type:Boolean,required:!0},finalRating:{type:Number,default:0}},setup(e){const{$t:t}=Se(),{locale:o}=De(),{jsDateFormat:l}=R(),{$tEmpName:n}=xa(),r=[{id:1,label:t("performance.inactive")},{id:2,label:t("performance.activated")},{id:3,label:t("performance.in_progress")},{id:4,label:t("performance.completed")}],i=e=>ie(re(e),l,{locale:o}),s=(0,a.computed)((()=>e.employee.empNumber?`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.employee.empNumber}`:nO)),d=r.find((t=>t.id===e.status)).label,c=`${i(e.reviewPeriodStart)} - ${i(e.reviewPeriodEnd)}`,m=i(e.dueDate),u=(0,a.computed)((()=>n(e.employee,{includeMiddle:!0,excludePastEmpTag:!1})));return{imgSrc:s,reviewStatus:d,reviewPeriod:c,reviewDueDate:m,employeeName:u}}};const iO=(0,r.Z)(rO,[["render",lO],["__scopeId","data-v-21b21277"]]);var sO=iO;const dO=e=>((0,a.pushScopeId)("data-v-2711f6e6"),e=e(),(0,a.popScopeId)(),e),cO=dO((()=>(0,a.createElementVNode)("br",null,null,-1))),mO={key:1,class:"orangehrm-performance-review-read"},uO={key:1,class:"orangehrm-performance-review-read"},pO={key:1,class:"orangehrm-performance-review-read"};function hO(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("date-input"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createVNode)(i,{class:"orangehrm-performance-review-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.review_finalization")),1)])),_:1}),cO,(0,a.createVNode)(m,{cols:4,class:"orangehrm-performance-review-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.date_of_completion")),1)])),_:1}),l.editable?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,"model-value":o.completedDate,rules:n.rules.completedDate,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:completedDate",t))},null,8,["model-value","rules"])):((0,a.openBlock)(),(0,a.createElementBlock)("div",mO,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.formattedCompletedDate),1)])),_:1})]))])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-performance-review-grid-rating"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.final_rating")),1)])),_:1}),l.editable?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,"model-value":o.finalRating,rules:n.rules.finalRating,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:finalRating",t))},null,8,["model-value","rules"])):((0,a.openBlock)(),(0,a.createElementBlock)("div",uO,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.finalRating),1)])),_:1})]))])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.final_comments")),1)])),_:1}),l.editable?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,rows:"1",type:"textarea","model-value":o.finalComment,rules:n.rules.finalComment,"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update:finalComment",t))},null,8,["model-value","rules"])):((0,a.openBlock)(),(0,a.createElementBlock)("div",pO,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.finalComment),1)])),_:1})]))])),_:1})])),_:1})])}var gO={name:"FinalEvaluation",props:{completedDate:{type:String,default:null,required:!1},finalRating:{type:Number,default:null,required:!1},finalComment:{type:String,default:null,required:!1},status:{type:Number,required:!0},isRequired:{type:Boolean,required:!0}},emits:["update:finalRating","update:finalComment","update:completedDate"],setup(e){const{locale:t}=De(),{jsDateFormat:o,userDateFormat:l}=R(),n=(0,a.computed)((()=>4!==e.status)),r=(0,a.computed)((()=>ie(re(e.completedDate),o,{locale:t})));return{editable:n,userDateFormat:l,formattedCompletedDate:r}},data(){return{rules:{completedDate:[Rt(this.userDateFormat),...this.isRequired?[jt]:[]],finalRating:[Co(0,this.$t("performance.rating_should_be_greater_than_or_equal_to_minValue",{minValue:0})),bo(100,this.$t("performance.rating_should_be_less_than_or_equal_to_maxValue",{maxValue:100})),...this.isRequired?[jt]:[]],finalComment:[...this.isRequired?[jt]:[]]}}}};const vO=(0,r.Z)(gO,[["render",hO],["__scopeId","data-v-2711f6e6"]]);var fO=vO;const yO={class:"orangehrm-evaluation orangehrm-card-container"},CO={class:"orangehrm-evaluation-header"},bO=["src"],VO={class:"orangehrm-evaluation-title-name"};function xO(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-icon-button"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createElementBlock)("div",yO,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.title),1)])),_:1}),(0,a.createElementVNode)("div",CO,[(0,a.createVNode)(d,{cols:3,class:"orangehrm-evaluation-header-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-evaluation-title"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("img",{class:"orangehrm-evaluation-title-profile-image",alt:"profile picture",src:l.profileImgSrc},null,8,bO),(0,a.createElementVNode)("div",VO,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeName),1)])),_:1}),(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.jobTitle),1)])),_:1})])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.status")),1)])),_:1}),(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.evaluationLabel),1)])),_:1})])),_:1})])),_:1}),o.collapsible?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,"with-container":!1,name:l.isCollapsed?"chevron-down":"chevron-up",onClick:l.toggleForm},null,8,["name","onClick"])):(0,a.createCommentVNode)("",!0)]),l.isCollapsed?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(m),(0,a.createVNode)(d,{cols:4,class:"orangehrm-evaluation-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.kpis")),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.rating")),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.comments")),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-spacer-md"}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.kpis,((t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:t.id},[(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-kpi"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-evaluation-grid-kpi-header",type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.kpi")),1)])),_:1}),(0,a.createVNode)(i,{title:t.title,tag:"p",class:"orangehrm-evaluation-grid-kpi-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.title),1)])),_:2},1032,["title"]),(0,a.createVNode)(i,{class:"orangehrm-evaluation-grid-kpi-minmax",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.min"))+": "+(0,a.toDisplayString)(t.minRating),1)])),_:2},1024),(0,a.createVNode)(i,{class:"orangehrm-evaluation-grid-kpi-minmax",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.max"))+": "+(0,a.toDisplayString)(t.maxRating),1)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-evaluation-grid-kpi-header",type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.rating")),1)])),_:1}),(0,a.createVNode)(u,{type:"input",disabled:!o.editable,rules:o.rules[n],"model-value":o.modelValue.kpis[n].rating,"onUpdate:modelValue":e=>l.onUpdateRating(e,n)},null,8,["disabled","rules","model-value","onUpdate:modelValue"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-evaluation-grid-kpi-header",type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.comment")),1)])),_:1}),(0,a.createVNode)(u,{class:"orangehrm-evaluation-grid-comment",rows:"2",type:"textarea",disabled:!o.editable,rules:l.commentValidators,"model-value":o.modelValue.kpis[n].comment,"onUpdate:modelValue":e=>l.onUpdateComment(e,n)},null,8,["disabled","rules","model-value","onUpdate:modelValue"])])),_:2},1024),(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-spacer-md"})],64)))),128))])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(d,{cols:3,class:"orangehrm-evaluation-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-general"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-evaluation-grid-general-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.general_comment")),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{class:"orangehrm-evaluation-grid-comment",rows:"2",type:"textarea",disabled:!o.editable,rules:l.commentValidators,"model-value":o.modelValue.generalComment,"onUpdate:modelValue":t[0]||(t[0]=e=>l.onUpdateGeneralComment(e))},null,8,["disabled","rules","model-value"])])),_:1})])),_:1}),(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)],64))])}const wO=`${window.appGlobal.publicPath}/images/default-photo.png`;var NO={components:{"oxd-divider":q.OxdDivider},props:{kpis:{type:Array,required:!0},title:{type:String,required:!0},editable:{type:Boolean,required:!0},collapsible:{type:Boolean,required:!0},employee:{type:Object,required:!0},jobTitle:{type:String,required:!0},rules:{type:Array,required:!0},modelValue:{type:Object,required:!0,validator:e=>Object.hasOwn(e,"kpis")&&Object.hasOwn(e,"generalComment")},collapsed:{type:Boolean,default:!1},status:{type:Number,required:!0}},emits:["update:modelValue"],setup(e,t){const{$t:o}=Se(),{$tEmpName:l}=xa(),n=(0,a.ref)(e.collapsed),r=[zt(2e3)],i=(0,a.computed)((()=>e.employee.empNumber?`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.employee.empNumber}`:wO)),s=(0,a.computed)((()=>l(e.employee))),d=()=>{n.value=!n.value},c=(o,a)=>{t.emit("update:modelValue",{kpis:e.modelValue.kpis.map(((e,t)=>t===a?{...e,rating:o}:e)),generalComment:e.modelValue.generalComment})},m=(o,a)=>{t.emit("update:modelValue",{kpis:e.modelValue.kpis.map(((e,t)=>t===a?{...e,comment:o}:e)),generalComment:e.modelValue.generalComment})},u=o=>{t.emit("update:modelValue",{kpis:e.modelValue.kpis,generalComment:o})},p=[{id:1,label:o("performance.evaluation_activated")},{id:2,label:o("performance.evaluation_in_progress")},{id:3,label:o("performance.evaluation_completed")}],h=(0,a.computed)((()=>p.find((t=>t.id===e.status)).label));return{toggleForm:d,isCollapsed:n,employeeName:s,profileImgSrc:i,onUpdateRating:c,onUpdateComment:m,onUpdateGeneralComment:u,commentValidators:r,evaluationLabel:h}}};const _O=(0,r.Z)(NO,[["render",xO],["__scopeId","data-v-d193810c"]]);var kO=_O;function SO(e){const{$t:t}=Se(),o=t=>e.request({method:"GET",url:`/api/v2/performance/reviews/${t}/kpis`}),a=t=>e.request({method:"GET",url:`/api/v2/performance/reviews/${t}/evaluation/supervisor`}),l=t=>e.request({method:"GET",url:`/api/v2/performance/reviews/${t}/evaluation/employee`}),n=t=>e.request({method:"GET",url:`/api/v2/performance/reviews/${t}/evaluation/final`}),r=(t,o)=>e.request({method:"PUT",url:`/api/v2/performance/reviews/${t}/evaluation/final`,data:{...o,finalComment:""===o.finalComment?null:o.finalComment}}),i=(t,o,a)=>e.request({method:"PUT",url:`/api/v2/performance/reviews/${t}/evaluation/employee`,data:{complete:o,ratings:a.kpis,generalComment:a.generalComment}}),s=(t,o)=>e.request({method:"PUT",url:`/api/v2/performance/reviews/${t}/evaluation/supervisor`,data:{ratings:o.kpis,generalComment:o.generalComment}}),d=e=>e.map((e=>[Co(e.minRating,t("performance.rating_should_be_greater_than_or_equal_to_minValue",{minValue:e.minRating})),bo(e.maxRating,t("performance.rating_should_be_less_than_or_equal_to_maxValue",{maxValue:e.maxRating}))])),c=e=>({kpis:e.map((e=>({kpiId:e.id,rating:null,comment:null}))),generalComment:null}),m=(e,t,o)=>({kpis:o.map((({kpiId:t})=>{const o=e.find((e=>e.kpi.id===t));return{kpiId:t,rating:o?.rating,comment:o?.comment}})),generalComment:t}),u=e=>({details:{empNumber:e.employee.empNumber,firstName:e.employee.firstName,lastName:e.employee.lastName,middleName:e.employee.middleName,terminationId:e.employee.terminationId},jobTitle:e.employee.jobTitle.name,status:e.status}),p=e=>new Map(e?.map((e=>[e.action,e.name])));return{getAllKpis:o,getEmployeeReview:l,getSupervisorReview:a,getFinalReview:n,generateRules:d,generateModel:c,generateReviewerData:u,generateAllowedActions:p,generateEvaluationFormData:m,finalizeReview:r,saveEmployeeReview:i,saveSupervisorReview:s}}const DO={class:"orangehrm-modal-header"},$O={class:"orangehrm-text-center-align"},EO={class:"orangehrm-modal-footer"};function TO(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-dialog-popup","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",DO,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.confirm_review_submission")),1)])),_:1})]),(0,a.createElementVNode)("div",$O,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.confirm_review_submission_message")),1)])),_:1})]),(0,a.createElementVNode)("div",EO,[(0,a.createVNode)(s,{"display-type":"ghost",class:"orangehrm-button-margin",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{"display-type":"secondary",class:"orangehrm-button-margin",label:e.$t("general.ok"),onClick:r.onConfirm},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var BO={name:"ReviewConfirmModal",components:{"oxd-dialog":q.OxdDialog},data(){return{show:!1,reject:null,resolve:null}},methods:{showDialog(){return new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const IO=(0,r.Z)(BO,[["render",TO],["__scopeId","data-v-76b5ab1c"]]);var LO=IO;const UO={details:{empNumber:null,firstName:"",lastName:"",middleName:"",terminationId:null},jobTitle:"",status:1,actions:new Map};var AO={components:{"review-summary":sO,"final-evaluation":fO,"evaluation-form":kO,"review-confirm-modal":LO},props:{reviewId:{type:Number,required:!0},status:{type:Number,required:!0},reviewPeriodStart:{type:String,required:!0},reviewPeriodEnd:{type:String,required:!0},dueDate:{type:String,required:!0},isReviewer:{type:Boolean,default:!1}},setup(){const{formRef:e,invalid:t,validate:o}=$c(),a=new P(window.appGlobal.baseUrl,""),{getAllKpis:l,getEmployeeReview:n,getSupervisorReview:r,getFinalReview:i,generateRules:s,generateModel:d,generateReviewerData:c,generateAllowedActions:m,generateEvaluationFormData:u,finalizeReview:p,saveEmployeeReview:h,saveSupervisorReview:g}=SO(a);return{http:a,invalid:t,formRef:e,validate:o,getAllKpis:l,generateRules:s,generateModel:d,generateReviewerData:c,generateAllowedActions:m,generateEvaluationFormData:u,getEmployeeReview:n,getSupervisorReview:r,getFinalReview:i,finalizeReview:p,saveEmployeeReview:h,saveSupervisorReview:g}},data(){return{kpis:[],rules:[],employee:{...UO},employeeReview:{},supervisor:{...UO},supervisorReview:{},isLoading:!1,finalRating:null,finalComment:null,completedDate:null,isFinalizeRequired:!1}},computed:{hasSupervisorUpdateAction(){return this.employee.actions.has("supervisorUpdate")},hasSaveAction(){return this.supervisor.actions.has("save")},hasCompleteAction(){return this.supervisor.actions.has("complete")},hasCancelAction(){return 4!==this.status},hasActions(){return this.hasSupervisorUpdateAction||this.hasSaveAction||this.hasCompleteAction||this.hasCancelAction}},beforeMount(){this.isLoading=!0,this.getAllKpis(this.reviewId).then((e=>{const{data:t}=e.data;return this.kpis=[...t],this.rules=this.generateRules(t),this.employeeReview=this.generateModel(t),this.supervisorReview=this.generateModel(t),this.getEmployeeReview(this.reviewId)})).then((e=>{const{data:t}=e.data,{meta:o}=e.data;return this.employee=this.generateReviewerData(o.reviewer),this.employee.actions=this.generateAllowedActions(o.allowedActions),this.employeeReview=this.generateEvaluationFormData(t,o.generalComment,this.employeeReview.kpis),this.getSupervisorReview(this.reviewId)})).then((e=>{const{data:t}=e.data,{meta:o}=e.data;return this.supervisor=this.generateReviewerData(o.reviewer),this.supervisor.actions=this.generateAllowedActions(o.allowedActions),this.supervisorReview=this.generateEvaluationFormData(t,o.generalComment,this.supervisorReview.kpis),this.getFinalReview(this.reviewId)})).then((e=>{const{data:t}=e.data;this.finalRating=t.finalRating,this.finalComment=t.finalComment,this.completedDate=t.completedDate})).finally((()=>{this.isLoading=!1}))},methods:{onSubmit(e=!1){this.isFinalizeRequired=e,this.$nextTick().then((()=>this.validate())).then((()=>{!0!==this.invalid&&(e?this.$refs.confirmDialog.showDialog().then((e=>{"ok"===e&&this.submitReview(!0)})):this.submitReview(!1))}))},submitReview(e=!1){this.isLoading=!0,this.saveSupervisorReview(this.reviewId,this.supervisorReview).then((()=>{if(this.hasSupervisorUpdateAction)return this.saveEmployeeReview(this.reviewId,!0,this.employeeReview)})).then((()=>this.finalizeReview(this.reviewId,{complete:e,finalRating:this.finalRating,finalComment:this.finalComment,completedDate:this.completedDate}))).then((()=>this.$toast.saveSuccess())).finally((()=>{A()}))},onClickCancel(){U(this.isReviewer?"/performance/searchEvaluatePerformanceReview":"/performance/searchPerformanceReview")}}};const PO=(0,r.Z)(AO,[["render",YR],["__scopeId","data-v-ecbdbb4c"]]);var qO=PO;const MO=e=>((0,a.pushScopeId)("data-v-574fdbb6"),e=e(),(0,a.popScopeId)(),e),FO={class:"orangehrm-background-container"},jO={class:"orangehrm-card-container"},zO=MO((()=>(0,a.createElementVNode)("br",null,null,-1))),RO=MO((()=>(0,a.createElementVNode)("br",null,null,-1))),OO={key:0},GO=MO((()=>(0,a.createElementVNode)("br",null,null,-1))),ZO={class:"orangehrm-performance-review-actions"},QO={key:1},HO=MO((()=>(0,a.createElementVNode)("br",null,null,-1)));function WO(e,t,o,l,n,r){const i=(0,a.resolveComponent)("review-confirm-modal"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("review-summary"),c=(0,a.resolveComponent)("evaluation-form"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("final-evaluation"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",FO,[(0,a.createVNode)(i,{ref:"confirmDialog"},null,512),(0,a.createElementVNode)("div",jO,[(0,a.createVNode)(s,{tag:"h5",class:"orangehrm-performance-review-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.performance_review")),1)])),_:1})]),zO,(0,a.createVNode)(d,{loading:n.isLoading,status:o.status,"due-date":o.dueDate,employee:n.employee.details,"job-title":n.employee.jobTitle,"review-period-end":o.reviewPeriodEnd,"review-period-start":o.reviewPeriodStart,"final-rating":n.finalRating},null,8,["loading","status","due-date","employee","job-title","review-period-end","review-period-start","final-rating"]),RO,(0,a.createVNode)(g,{ref:"formRef",loading:n.isLoading},{default:(0,a.withCtx)((()=>[o.status<4?((0,a.openBlock)(),(0,a.createElementBlock)("div",OO,[(0,a.createVNode)(c,{modelValue:n.supervisorReview,"onUpdate:modelValue":t[0]||(t[0]=e=>n.supervisorReview=e),kpis:n.kpis,rules:n.rules,editable:!1,collapsible:!1,collapsed:!0,employee:n.supervisor.details,"job-title":n.supervisor.jobTitle,status:n.supervisor.status,title:e.$t("performance.supervisor_evaluation_by")},null,8,["modelValue","kpis","rules","employee","job-title","status","title"]),GO,(0,a.createVNode)(c,{modelValue:n.employeeReview,"onUpdate:modelValue":t[3]||(t[3]=e=>n.employeeReview=e),kpis:n.kpis,rules:n.rules,editable:n.employee.status<3,collapsed:!1,collapsible:!0,employee:n.employee.details,"job-title":n.employee.jobTitle,status:n.employee.status,title:e.$t("performance.self_evaluation_by")},{default:(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createElementVNode)("div",ZO,[r.hasCancelAction?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickCancel},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),r.hasSaveAction?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1,"display-type":"ghost",type:"button",label:e.$t("general.save"),onClick:t[1]||(t[1]=e=>r.onSubmit(!1))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasCompleteAction?((0,a.openBlock)(),(0,a.createBlock)(u,{key:2,type:"button","display-type":"secondary",label:e.$t("performance.complete"),onClick:t[2]||(t[2]=e=>r.onSubmit(!0))},null,8,["label"])):(0,a.createCommentVNode)("",!0)])])),_:1},512),[[a.vShow,r.hasActions]])])),_:1},8,["modelValue","kpis","rules","editable","employee","job-title","status","title"])])):(0,a.createCommentVNode)("",!0),4===o.status?((0,a.openBlock)(),(0,a.createElementBlock)("div",QO,[(0,a.createVNode)(c,{modelValue:n.employeeReview,"onUpdate:modelValue":t[4]||(t[4]=e=>n.employeeReview=e),kpis:n.kpis,rules:n.rules,editable:!1,collapsed:!1,collapsible:!0,employee:n.employee.details,"job-title":n.employee.jobTitle,status:n.employee.status,title:e.$t("performance.self_evaluation_by")},null,8,["modelValue","kpis","rules","employee","job-title","status","title"]),HO,(0,a.createVNode)(c,{modelValue:n.supervisorReview,"onUpdate:modelValue":t[8]||(t[8]=e=>n.supervisorReview=e),kpis:n.kpis,rules:n.rules,editable:!1,collapsible:!0,collapsed:!1,employee:n.supervisor.details,"job-title":n.supervisor.jobTitle,status:n.supervisor.status,title:e.$t("performance.supervisor_evaluation_by")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(h,{"final-rating":n.finalRating,"onUpdate:final-rating":t[5]||(t[5]=e=>n.finalRating=e),"final-comment":n.finalComment,"onUpdate:final-comment":t[6]||(t[6]=e=>n.finalComment=e),"completed-date":n.completedDate,"onUpdate:completed-date":t[7]||(t[7]=e=>n.completedDate=e),status:o.status,"is-required":!1},null,8,["final-rating","final-comment","completed-date","status"])])),_:1},8,["modelValue","kpis","rules","employee","job-title","status","title"])])):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading"])])}const YO={details:{empNumber:null,firstName:"",lastName:"",terminationId:null},jobTitle:"",status:1,actions:new Map};var JO={name:"SelfEvaluation",components:{"review-summary":sO,"final-evaluation":fO,"evaluation-form":kO,"review-confirm-modal":LO},props:{reviewId:{type:Number,required:!0},status:{type:Number,required:!0},reviewPeriodStart:{type:String,required:!0},reviewPeriodEnd:{type:String,required:!0},dueDate:{type:String,required:!0}},setup(){const{formRef:e,invalid:t,validate:o}=$c(),a=new P(window.appGlobal.baseUrl,""),{getAllKpis:l,getEmployeeReview:n,getSupervisorReview:r,getFinalReview:i,generateRules:s,generateModel:d,generateReviewerData:c,generateAllowedActions:m,generateEvaluationFormData:u,finalizeReview:p,saveEmployeeReview:h}=SO(a);return{http:a,invalid:t,formRef:e,validate:o,getAllKpis:l,generateRules:s,generateModel:d,generateReviewerData:c,generateAllowedActions:m,generateEvaluationFormData:u,getEmployeeReview:n,getSupervisorReview:r,getFinalReview:i,finalizeReview:p,saveEmployeeReview:h}},data(){return{kpis:[],rules:[],employee:{...YO},employeeReview:{},supervisor:{...YO},supervisorReview:{},isLoading:!1,finalRating:null,finalComment:null,completedDate:null}},computed:{hasSaveAction(){return this.employee.actions.has("save")},hasCompleteAction(){return this.employee.actions.has("complete")},hasCancelAction(){return!(4===this.status||3===this.employee?.status)},hasActions(){return this.hasSaveAction||this.hasCancelAction||this.hasCompleteAction}},beforeMount(){this.isLoading=!0,this.getAllKpis(this.reviewId).then((e=>{const{data:t}=e.data;return this.kpis=[...t],this.rules=this.generateRules(t),this.employeeReview=this.generateModel(t),this.supervisorReview=this.generateModel(t),this.getEmployeeReview(this.reviewId)})).then((e=>{const{data:t}=e.data,{meta:o}=e.data;return this.employee=this.generateReviewerData(o.reviewer),this.employee.actions=this.generateAllowedActions(o.allowedActions),this.employeeReview=this.generateEvaluationFormData(t,o.generalComment,this.employeeReview.kpis),this.getSupervisorReview(this.reviewId)})).then((e=>{const{data:t}=e.data,{meta:o}=e.data;return this.supervisor=this.generateReviewerData(o.reviewer),this.supervisor.actions=this.generateAllowedActions(o.allowedActions),this.supervisorReview=this.generateEvaluationFormData(t,o.generalComment,this.supervisorReview.kpis),4===this.status?this.getFinalReview(this.reviewId):{}})).then((e=>{if(0!==Object.keys(e).length){const{data:t}=e.data;this.finalRating=t.finalRating,this.finalComment=t.finalComment,this.completedDate=t.completedDate}})).finally((()=>{this.isLoading=!1}))},methods:{onSubmit(e=!1){this.$nextTick().then((()=>this.validate())).then((async()=>{!0!==this.invalid&&(e?this.$refs.confirmDialog.showDialog().then((e=>{"ok"===e&&this.submitReview(!0)})):this.submitReview(!1))}))},submitReview(e=!1){this.isLoading=!0,this.saveEmployeeReview(this.reviewId,e,this.employeeReview).then((()=>this.$toast.saveSuccess())).finally((()=>{A()}))},onClickCancel(){U("/performance/myPerformanceReview")}}};const XO=(0,r.Z)(JO,[["render",WO],["__scopeId","data-v-574fdbb6"]]);var KO=XO,eG={"my-tracker":nF,"employee-trackers":vF,"kpi-search":HF,"kpi-save":AF,"kpi-edit":kF,"add-review":rj,"edit-review":hj,"performance-tracker-list":kj,"performance-tracker-save":Pj,"performance-tracker-edit":Oj,"my-reviews":uz,"review-list":Sz,"review-search":Mz,"employee-tracker-logs":zR,"admin-evaluation":qO,"self-evaluation":KO};const tG=e=>((0,a.pushScopeId)("data-v-0d01fa51"),e=e(),(0,a.popScopeId)(),e),oG={class:"orangehrm-background-container"},aG=tG((()=>(0,a.createElementVNode)("br",null,null,-1))),lG={class:"orangehrm-corporate-directory"},nG={class:"orangehrm-paper-container"},rG={ref:"scrollerRef",class:"orangehrm-container"},iG=tG((()=>(0,a.createElementVNode)("div",{class:"orangehrm-bottom-container"},null,-1))),sG={key:0,class:"orangehrm-corporate-directory-sidebar"};function dG(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("oxd-table-filter"),y=(0,a.resolveComponent)("table-header"),C=(0,a.resolveComponent)("employee-details"),b=(0,a.resolveComponent)("summary-card"),V=(0,a.resolveComponent)("oxd-loading-spinner"),x=(0,a.resolveComponent)("summary-card-details");return(0,a.openBlock)(),(0,a.createElementBlock)("div",oG,[(0,a.createVNode)(f,{"filter-title":e.$t("general.directory")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{onSubmitValid:r.onSearch,onReset:r.onReset},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:e.filters.employeeNumber,"onUpdate:modelValue":t[0]||(t[0]=t=>e.filters.employeeNumber=t),rules:l.rules.employee,"api-path":"/api/v2/directory/employees"},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.filters.jobTitleId,"onUpdate:modelValue":t[1]||(t[1]=t=>e.filters.jobTitleId=t),type:"select",label:e.$t("general.job_title"),options:o.jobTitles},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.filters.locationId,"onUpdate:modelValue":t[2]||(t[2]=t=>e.filters.locationId=t),type:"select",label:e.$t("general.location"),options:o.locations},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{label:e.$t("general.reset"),"display-type":"ghost",type:"reset"},null,8,["label"]),(0,a.createVNode)(h,{label:e.$t("general.search")},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),aG,(0,a.createElementVNode)("div",lG,[(0,a.createElementVNode)("div",nG,[(0,a.createVNode)(y,{selected:0,total:e.total,loading:!1,"show-divider":!1},null,8,["total"]),(0,a.createElementVNode)("div",rG,[(0,a.createVNode)(c,{cols:r.colSize},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.employees,((t,o)=>((0,a.openBlock)(),(0,a.createBlock)(s,{key:t},{default:(0,a.withCtx)((()=>[r.isMobile&&e.currentIndex===o?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0,"employee-id":t.id,"employee-name":t.employeeName,"employee-sub-unit":t.employeeSubUnit,"employee-location":t.employeeLocation,"employee-designation":t.employeeJobTitle,onClick:e=>r.showEmployeeDetails(o)},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(C,{"employee-id":t.id,"is-mobile":r.isMobile},null,8,["employee-id","is-mobile"])])),_:2},1032,["employee-id","employee-name","employee-sub-unit","employee-location","employee-designation","onClick"])):((0,a.openBlock)(),(0,a.createBlock)(b,{key:1,"employee-id":t.id,"employee-name":t.employeeName,"employee-sub-unit":t.employeeSubUnit,"employee-location":t.employeeLocation,"employee-designation":t.employeeJobTitle,onClick:e=>r.showEmployeeDetails(o)},null,8,["employee-id","employee-name","employee-sub-unit","employee-location","employee-designation","onClick"]))])),_:2},1024)))),128))])),_:1},8,["cols"]),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,class:"orangehrm-container-loader"})):(0,a.createCommentVNode)("",!0)],512),iG]),r.isEmployeeSelected&&!1===r.isMobile?((0,a.openBlock)(),(0,a.createElementBlock)("div",sG,[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(x,{"employee-designation":e.employees[e.currentIndex].employeeJobTitle,"employee-id":e.employees[e.currentIndex].id,"employee-location":e.employees[e.currentIndex].employeeLocation,"employee-name":e.employees[e.currentIndex].employeeName,"employee-sub-unit":e.employees[e.currentIndex].employeeSubUnit,onHideDetails:t[3]||(t[3]=e=>r.hideEmployeeDetails())},null,8,["employee-designation","employee-id","employee-location","employee-name","employee-sub-unit"])])),_:1})])):(0,a.createCommentVNode)("",!0)])])}const cG={class:"orangehrm-directory-card-body"};function mG(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("profile-picture"),c=(0,a.resolveComponent)("oxd-sheet");return(0,a.openBlock)(),(0,a.createBlock)(c,{gutters:!1,class:"orangehrm-directory-card"},{default:(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createElementVNode)("div",{class:"orangehrm-directory-card-top",onClick:t[0]||(t[0]=t=>e.$emit("hide-details",!1))},[(0,a.createVNode)(i,{name:"arrow-right"})],512),[[a.vShow,o.showBackButton]]),(0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.cardTitleClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.employeeName),1)])),_:1},8,["class"]),(0,a.createVNode)(d,{id:o.employeeId},null,8,["id"]),(0,a.withDirectives)((0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.cardSubTitleClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.employeeDesignation),1)])),_:1},8,["class"]),[[a.vShow,o.employeeDesignation]]),(0,a.withDirectives)((0,a.createElementVNode)("div",cG,[(0,a.createVNode)(i,{class:"orangehrm-directory-card-icon",name:"geo-alt-fill"}),(0,a.createElementVNode)("div",null,[(0,a.withDirectives)((0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.cardDescriptionClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.employeeSubUnit),1)])),_:1},8,["class"]),[[a.vShow,o.employeeSubUnit]]),(0,a.withDirectives)((0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.cardDescriptionClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.employeeLocation),1)])),_:1},8,["class"]),[[a.vShow,o.employeeLocation]])])],512),[[a.vShow,o.employeeSubUnit||o.employeeLocation]]),(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)])),_:3})}const uG={class:"orangehrm-profile-picture"},pG=["src"];function hG(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",uG,[(0,a.createElementVNode)("img",{src:l.imgSrc,alt:"Profile Picture",class:"orangehrm-profile-picture-img"},null,8,pG)])}const gG=`${window.appGlobal.publicPath}/images/default-photo.png`;var vG={name:"ProfilePicture",props:{id:{type:Number,required:!0}},setup(e){const t=(0,a.computed)((()=>e.id?`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.id}`:gG));return{imgSrc:t}}};const fG=(0,r.Z)(vG,[["render",hG],["__scopeId","data-v-49d66b74"]]);var yG=fG,CG={name:"SummaryCard",components:{"oxd-icon":q.OxdIcon,"oxd-sheet":q.OxdSheet,"profile-picture":yG},props:{employeeId:{type:Number,required:!0},employeeName:{type:String,required:!0},employeeDesignation:{type:String,required:!1,default:null},employeeSubUnit:{type:String,default:""},employeeLocation:{type:String,default:""},showBackButton:{type:Boolean,default:!1}},emits:["hide-details"],computed:{hasDefaultSlot(){return!!this.$slots.default},cardTitleClasses(){return{"orangehrm-directory-card-header":!0,"--break-words":!this.hasDefaultSlot}},cardSubTitleClasses(){return{"orangehrm-directory-card-subtitle":!0,"--break-words":!this.hasDefaultSlot}},cardDescriptionClasses(){return{"orangehrm-directory-card-description":!0,"--break-words":!this.hasDefaultSlot}}}};const bG=(0,r.Z)(CG,[["render",mG],["__scopeId","data-v-0415b0f1"]]);var VG=bG;const xG={class:"orangehrm-directory-card-rounded-body"},wG={class:"orangehrm-directory-card-icon"},NG={class:"orangehrm-directory-card-icon"},_G={class:"orangehrm-directory-card-hover-body"},kG={class:"orangehrm-directory-card-hover-body orangehrm-directory-card-hover-icon"},SG={class:"orangehrm-directory-card-hover-body"},DG={class:"orangehrm-directory-card-hover-body orangehrm-directory-card-hover-icon"};function $G(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-divider"),s=(0,a.resolveComponent)("oxd-icon-button"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("qr-code");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.withDirectives)((0,a.createVNode)(i,null,null,512),[[a.vShow,n.employeeWorkEmail||n.employeeWorkTelephone]]),(0,a.withDirectives)((0,a.createElementVNode)("div",xG,[(0,a.withDirectives)((0,a.createElementVNode)("div",wG,[(0,a.createVNode)(s,{"display-type":"success",name:"telephone-fill",onClick:(0,a.withModifiers)(r.openClientTelephone,["stop"])},null,8,["onClick"])],512),[[a.vShow,n.employeeWorkTelephone]]),(0,a.withDirectives)((0,a.createElementVNode)("div",NG,[(0,a.createVNode)(s,{"display-type":"danger",name:"envelope-fill",onClick:(0,a.withModifiers)(r.openClientEmail,["stop"])},null,8,["onClick"])],512),[[a.vShow,n.employeeWorkEmail]])],512),[[a.vShow,n.employeeWorkEmail||n.employeeWorkTelephone]]),(0,a.withDirectives)((0,a.createElementVNode)("div",{class:"orangehrm-directory-card-hover",onMouseleave:t[0]||(t[0]=e=>n.showTelephoneClip=!1),onMouseover:t[1]||(t[1]=e=>n.showTelephoneClip=!0)},[(0,a.createElementVNode)("div",_G,[(0,a.createVNode)(d,{type:"toast-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.work_telephone")),1)])),_:1}),(0,a.createVNode)(d,{ref:"cloneTelephone",type:"toast-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.employeeWorkTelephone),1)])),_:1},512)]),(0,a.createElementVNode)("div",kG,[(0,a.withDirectives)((0,a.createVNode)(s,{name:"files",onClick:(0,a.withModifiers)(r.copyTelephone,["stop"])},null,8,["onClick"]),[[a.vShow,n.showTelephoneClip||o.isMobile]])])],544),[[a.vShow,n.employeeWorkTelephone]]),(0,a.withDirectives)((0,a.createVNode)(i,null,null,512),[[a.vShow,n.employeeWorkTelephone]]),(0,a.withDirectives)((0,a.createElementVNode)("div",{class:"orangehrm-directory-card-hover",onMouseleave:t[2]||(t[2]=e=>n.showEmailClip=!1),onMouseover:t[3]||(t[3]=e=>n.showEmailClip=!0)},[(0,a.createElementVNode)("div",SG,[(0,a.createVNode)(d,{type:"toast-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.work_email")),1)])),_:1}),(0,a.createVNode)(d,{ref:"cloneEmail",type:"toast-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.employeeWorkEmail),1)])),_:1},512)]),(0,a.createElementVNode)("div",DG,[(0,a.withDirectives)((0,a.createVNode)(s,{name:"files",onClick:(0,a.withModifiers)(r.copyEmail,["stop"])},null,8,["onClick"]),[[a.vShow,n.showEmailClip||o.isMobile]])])],544),[[a.vShow,n.employeeWorkEmail]]),(0,a.withDirectives)((0,a.createVNode)(i,null,null,512),[[a.vShow,n.employeeWorkEmail]]),n.qrPayload&&(n.employeeWorkTelephone||n.employeeWorkEmail)?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,value:n.qrPayload},null,8,["value"])):(0,a.createCommentVNode)("",!0)],64)}var EG=o(2592),TG={name:"QRCode",props:{value:{type:String,required:!0}},setup(e){const t=(0,a.ref)(""),o=async()=>{const o=await(0,EG.hz)(String(e.value),{type:"image/png",width:140});t.value=o||""};return(0,a.watch)((()=>e.value),o),(0,a.onBeforeMount)(o),()=>(0,a.h)("img",{src:t.value,class:"orangehrm-qr-code"})}};const BG=(0,r.Z)(TG,[["__scopeId","data-v-74e533de"]]);var IG=BG,LG={name:"EmployeeDetails",components:{"qr-code":IG,"oxd-divider":q.OxdDivider},props:{employeeId:{type:Number,required:!0},isMobile:{type:Boolean,default:!1}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/directory/employees");return{http:e}},data(){return{employeeWorkTelephone:null,employeeWorkEmail:null,showTelephoneClip:!1,showEmailClip:!1,toGoEmail:null,qrPayload:null,employeeName:null}},watch:{employeeId:function(){this.callEmployeeDetailsApi()}},beforeMount(){this.callEmployeeDetailsApi()},methods:{openClientTelephone(){window.location.href="tel:"+this.employeeWorkTelephone},openClientEmail(){window.location.href="mailto:"+this.employeeWorkEmail},copyEmail(){navigator.clipboard?.writeText(this.employeeWorkEmail)},copyTelephone(){navigator.clipboard?.writeText(this.employeeWorkTelephone)},callEmployeeDetailsApi(){this.http.get(this.employeeId,{model:"detailed"}).then((e=>{const{data:t}=e.data;this.employeeName={firstName:t.firstName,middleName:t.middleName,lastName:t.lastName},this.employeeWorkEmail=t.contactInfo?.workEmail,this.employeeWorkTelephone=t.contactInfo?.workTelephone,this.generateQrPayload()}))},generateQrPayload(){let e="";e+=`N:${this.employeeName?.lastName||""};`,e+=`${this.employeeName?.firstName||""};`,e+=`${this.employeeName?.middleName||""};\n`,this.employeeWorkTelephone&&(e+=`TEL;CELL:${this.employeeWorkTelephone}\n`),this.employeeWorkEmail&&(e+=`EMAIL;WORK;INTERNET:${this.employeeWorkEmail}\n`),this.qrPayload=`BEGIN:VCARD\nVERSION:3.0\n${e}END:VCARD\n`}}};const UG=(0,r.Z)(LG,[["render",$G],["__scopeId","data-v-d01dcc04"]]);var AG=UG;function PG(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-details"),s=(0,a.resolveComponent)("summary-card");return(0,a.openBlock)(),(0,a.createBlock)(s,{"employee-id":o.employeeId,"show-back-button":!0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{"employee-id":o.employeeId},null,8,["employee-id"])])),_:1},8,["employee-id"])}var qG={name:"SummaryCardDetails",components:{"employee-details":AG,"summary-card":VG},props:{employeeId:{type:Number,required:!0}}};const MG=(0,r.Z)(qG,[["render",PG]]);var FG=MG;const jG={employeeNumber:null,jobTitleId:null,locationId:null};var zG={name:"CorporateDirectory",components:{"summary-card":VG,"oxd-loading-spinner":q.OxdSpinner,"employee-details":AG,"summary-card-details":FG,"employee-autocomplete":Va},props:{jobTitles:{type:Array,default:()=>[]},locations:{type:Array,default:()=>[]}},setup(){const{$t:e}=Se(),{noRecordsFound:t}=yt(),o=(0,q.useResponsive)(),l={employee:[xo]},n=t=>t.map((t=>({id:t.empNumber,employeeName:`${t.firstName} ${t.middleName} ${t.lastName} `+(t.terminationId?e("general.past_employee"):""),employeeJobTitle:t.jobTitle?.isDeleted?`${t.jobTitle?.title} `+e("general.deleted"):t.jobTitle?.title,employeeSubUnit:t.subunit?.name,employeeLocation:t.location?.name}))),r=new P(window.appGlobal.baseUrl,"/api/v2/directory/employees"),i=14,s=(0,a.reactive)({total:0,offset:0,employees:[],currentIndex:-1,isLoading:!1,filters:{...jG}}),d=()=>{s.isLoading=!0,r.getAll({limit:i,offset:s.offset,locationId:s.filters.locationId?.id,empNumber:s.filters.employeeNumber?.id,jobTitleId:s.filters.jobTitleId?.id}).then((e=>{const{data:o,meta:a}=e.data;s.total=a?.total||0,Array.isArray(o)&&(s.employees=[...s.employees,...n(o)]),0===s.total&&t()})).finally((()=>s.isLoading=!1))},{scrollerRef:c}=lR((()=>{s.employees.length>=s.total||(s.offset+=i,d())}));return{rules:l,fetchData:d,scrollerRef:c,...(0,a.toRefs)(s),...(0,a.toRefs)(o)}},computed:{isMobile(){return this.windowWidth<800},isEmployeeSelected(){return this.currentIndex>=0},oxdGridClasses(){return{"orangehrm-container":!0,"orangehrm-container-min-display":this.isEmployeeSelected}},colSize(){return this.windowWidth>=1920?this.isEmployeeSelected?5:7:this.isEmployeeSelected?3:4}},beforeMount(){this.fetchData()},methods:{hideEmployeeDetails(){this.currentIndex=-1},showEmployeeDetails(e){this.currentIndex!=e?this.currentIndex=e:this.hideEmployeeDetails()},onSearch(){this.hideEmployeeDetails(),this.employees=[],this.offset=0,this.fetchData()},onReset(){this.hideEmployeeDetails(),this.employees=[],this.offset=0,this.filters={...jG},this.fetchData()}}};const RG=(0,r.Z)(zG,[["render",dG],["__scopeId","data-v-0d01fa51"]]);var OG=RG,GG={"corporate-directory-employee-list":OG};const ZG=e=>((0,a.pushScopeId)("data-v-358db50f"),e=e(),(0,a.popScopeId)(),e),QG={class:"orangehrm-login-form"},HG={class:"orangehrm-login-error"},WG=["value"],YG={class:"orangehrm-login-forgot"},JG=ZG((()=>(0,a.createElementVNode)("br",null,null,-1))),XG={class:"orangehrm-login-footer"},KG={key:0,class:"orangehrm-login-footer-sm"},eZ={href:"https://www.linkedin.com/company/orangehrm/mycompany/",target:"_blank"},tZ={href:"https://www.facebook.com/OrangeHRM/",target:"_blank"},oZ={href:"https://twitter.com/orangehrm?lang=en",target:"_blank"},aZ={href:"https://www.youtube.com/c/OrangeHRMInc",target:"_blank"};function lZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-alert"),d=(0,a.resolveComponent)("oxd-sheet"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-icon"),v=(0,a.resolveComponent)("login-layout");return(0,a.openBlock)(),(0,a.createBlock)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-login-title",tag:"h5"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.login")),1)])),_:1}),(0,a.createElementVNode)("div",QG,[(0,a.createElementVNode)("div",HG,[(0,a.createVNode)(s,{show:null!==o.error,message:o.error?.message||"",type:"error"},null,8,["show","message"]),o.isDemoMode?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,type:"gray-lighten-2",class:"orangehrm-demo-credentials"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("Username : Admin")])),_:1}),(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("Password : admin123")])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(h,{ref:"loginForm",method:"post",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,WG),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.username,"onUpdate:modelValue":t[0]||(t[0]=e=>n.username=e),name:"username",label:e.$t("general.username"),"label-icon":"person",placeholder:e.$t("auth.username"),rules:n.rules.username,autofocus:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.password,"onUpdate:modelValue":t[1]||(t[1]=e=>n.password=e),name:"password",label:e.$t("general.password"),"label-icon":"key",placeholder:e.$t("auth.password"),type:"password",rules:n.rules.password},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(p,{class:"orangehrm-login-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{class:"orangehrm-login-button","display-type":"main",label:e.$t("auth.login"),type:"submit"},null,8,["label"])])),_:1}),(0,a.createElementVNode)("div",YG,[(0,a.createVNode)(i,{class:"orangehrm-login-forgot-header",onClick:r.navigateUrl},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.forgot_password"))+"? ",1)])),_:1},8,["onClick"])])])),_:1},8,["action","onSubmitValid"]),JG]),(0,a.createElementVNode)("div",XG,[o.showSocialMedia?((0,a.openBlock)(),(0,a.createElementBlock)("div",KG,[(0,a.createElementVNode)("a",eZ,[(0,a.createVNode)(g,{type:"svg",class:"orangehrm-sm-icon",name:"linkedinFill"})]),(0,a.createElementVNode)("a",tZ,[(0,a.createVNode)(g,{type:"svg",class:"orangehrm-sm-icon",name:"facebookFill"})]),(0,a.createElementVNode)("a",oZ,[(0,a.createVNode)(g,{type:"svg",class:"orangehrm-sm-icon",name:"twitterFill"})]),(0,a.createElementVNode)("a",aZ,[(0,a.createVNode)(g,{type:"svg",class:"orangehrm-sm-icon",name:"youtubeFill"})])])):(0,a.createCommentVNode)("",!0),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])])),_:3})}const nZ={class:"orangehrm-login-layout"},rZ={class:"orangehrm-login-layout-blob"},iZ={class:"orangehrm-login-container"},sZ={class:"orangehrm-login-slot-wrapper"},dZ={class:"orangehrm-login-slot"},cZ={class:"orangehrm-login-logo-mobile"},mZ=["src"],uZ={class:"orangehrm-login-logo"},pZ=["src"];function hZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("login-branding");return(0,a.openBlock)(),(0,a.createElementBlock)("div",nZ,[(0,a.createElementVNode)("div",rZ,[(0,a.createElementVNode)("div",iZ,[(0,a.createElementVNode)("div",sZ,[(0,a.createVNode)(i,{"img-src":o.loginBannerSrc},null,8,["img-src"]),(0,a.createElementVNode)("div",dZ,[(0,a.createElementVNode)("div",cZ,[(0,a.createElementVNode)("img",{src:o.loginLogoSrc,alt:"orangehrm-logo"},null,8,mZ)]),(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)])])]),(0,a.createElementVNode)("div",uZ,[(0,a.createElementVNode)("img",{src:o.loginLogoSrc,alt:"orangehrm-logo"},null,8,pZ)])])])}var gZ={name:"LoginLayout",components:{"login-branding":CB},props:{loginLogoSrc:{type:String,required:!0},loginBannerSrc:{type:String,required:!0}}};const vZ=(0,r.Z)(gZ,[["render",hZ],["__scopeId","data-v-50815349"]]);var fZ=vZ,yZ={components:{"oxd-icon":q.OxdIcon,"oxd-alert":q.OxdAlert,"oxd-sheet":q.OxdSheet,"login-layout":fZ},props:{error:{type:Object,default:()=>null},token:{type:String,required:!0},showSocialMedia:{type:Boolean,default:!0},isDemoMode:{type:Boolean,default:!1}},data(){return{username:"",password:"",rules:{username:[jt],password:[jt]},submitted:!1}},computed:{submitUrl(){return L("/auth/validate")}},beforeMount(){setTimeout((()=>{A()}),12e5)},methods:{onSubmit(){this.submitted||(this.submitted=!0,this.$refs.loginForm.$el.submit())},navigateUrl(){U("/auth/requestPasswordResetCode")}}};const CZ=(0,r.Z)(yZ,[["render",lZ],["__scopeId","data-v-358db50f"]]);var bZ=CZ;function VZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-alert");return(0,a.openBlock)(),(0,a.createBlock)(i,{show:!0,type:"error",message:e.$t("auth.credential_required")},null,8,["message"])}var xZ={components:{"oxd-alert":q.OxdAlert}};const wZ=(0,r.Z)(xZ,[["render",VZ]]);var NZ=wZ;const _Z={class:"orangehrm-forgot-password-container"},kZ={class:"orangehrm-forgot-password-wrapper"},SZ={class:"orangehrm-card-container"},DZ=["value"],$Z={class:"orangehrm-forgot-password-buttons"};function EZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("card-note"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("password-strength-indicator"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",_Z,[(0,a.createElementVNode)("div",kZ,[(0,a.createElementVNode)("div",SZ,[(0,a.createVNode)(h,{ref:"resetForm",method:"post",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.reset_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(d,{"note-text":e.$t("auth.set_new_password"),class:"orangehrm-forgot-password-card-note"},null,8,["note-text"]),(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,DZ),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{value:o.username,label:e.$t("auth.username"),readonly:"",name:"username","label-icon":"person"},null,8,["value","label"])])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-forgot-password-row"},{default:(0,a.withCtx)((()=>[n.user.newPassword?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"password-strength":l.passwordStrength},null,8,["password-strength"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,{modelValue:n.user.newPassword,"onUpdate:modelValue":t[0]||(t[0]=e=>n.user.newPassword=e),rules:n.rules.newPassword,label:e.$t("auth.new_password"),placeholder:e.$t("auth.password"),name:"password",type:"password","label-icon":"key",autocomplete:"off"},null,8,["modelValue","rules","label","placeholder"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.user.confirmPassword,"onUpdate:modelValue":t[1]||(t[1]=e=>n.user.confirmPassword=e),rules:n.rules.confirmPassword,placeholder:e.$t("auth.password"),label:e.$t("general.confirm_password"),type:"password","label-icon":"key",autocomplete:"off",name:"confirmPassword"},null,8,["modelValue","rules","placeholder","label"])])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",$Z,[(0,a.createVNode)(p,{label:e.$t("general.save"),size:"large",type:"submit","display-type":"secondary",class:"orangehrm-forgot-password-button"},null,8,["label"])])])),_:1},8,["action","onSubmitValid"])])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}function TZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon");return(0,a.openBlock)(),(0,a.createBlock)(i,{class:(0,a.normalizeClass)({"orangehrm-card-note":!0,"orangehrm-card-note--background":o.hasNote,"orangehrm-card-note--icon":o.hasNoteIcon})},{default:(0,a.withCtx)((()=>[o.hasNote?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,class:"orangehrm-sub-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.note"))+": ",1)])),_:1})):(0,a.createCommentVNode)("",!0),o.hasNoteIcon?((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,tag:"span",class:"orangehrm-card-note-icon"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{name:"exclamation-triangle",class:"orangehrm-card-icon"})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(i,{class:(0,a.normalizeClass)({"orangehrm-card-note-text":o.hasNoteIcon})},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.noteText),1)])),_:1},8,["class"])])),_:1},8,["class"])}var BZ={name:"CardNote",components:{"oxd-icon":q.OxdIcon},props:{noteText:{type:String,required:!0},hasNote:{type:Boolean,default:!1},hasNoteIcon:{type:Boolean,required:!1}}};const IZ=(0,r.Z)(BZ,[["render",TZ],["__scopeId","data-v-58e596ce"]]);var LZ=IZ,UZ={name:"ResetPassword",components:{"card-note":LZ,"password-strength-indicator":Aa},props:{username:{type:String,required:!0},token:{type:String,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,""),{passwordStrength:t,validatePassword:o}=Ba(e);return{http:e,passwordStrength:t,validatePassword:o}},data(){return{user:{username:"",newPassword:"",confirmPassword:""},rules:{newPassword:[jt,zt(64),(0,q.promiseDebounce)(this.validatePassword,500)],confirmPassword:[jt,zt(64),e=>!!e&&e===this.user.newPassword||this.$t("general.passwords_do_not_match")]}}},computed:{submitUrl(){return L("/auth/resetPassword")}},methods:{onSubmit(){this.$refs.resetForm.$el.submit()}}};const AZ=(0,r.Z)(UZ,[["render",EZ],["__scopeId","data-v-3069512e"]]);var PZ=AZ;const qZ={class:"orangehrm-forgot-password-container"},MZ={class:"orangehrm-forgot-password-wrapper"},FZ={class:"orangehrm-card-container"},jZ={class:"orangehrm-login-error"},zZ=["value"],RZ=["value"],OZ={class:"orangehrm-forgot-password-buttons"};function GZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-alert"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("password-strength-indicator"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",qZ,[(0,a.createElementVNode)("div",MZ,[(0,a.createElementVNode)("div",FZ,[(0,a.createVNode)(h,{ref:"resetForm",method:"post",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.change_weak_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",jZ,[(0,a.createVNode)(d,{show:!0,message:o.invalidCode?e.$t("auth.invalid_password_reset_code"):o.error?.message||e.$t("auth.password_not_strong"),type:"error"},null,8,["message"])]),o.invalidCode?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createElementVNode)("input",{name:"resetCode",value:o.code,type:"hidden"},null,8,zZ),(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,RZ),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{value:o.username,label:e.$t("auth.username"),readonly:"",name:"username","label-icon":"person"},null,8,["value","label"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.user.currentPassword,"onUpdate:modelValue":t[0]||(t[0]=e=>n.user.currentPassword=e),rules:n.rules.currentPassword,label:e.$t("pim.current_password"),type:"password","label-icon":"key",autocomplete:"off",name:"currentPassword"},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-forgot-password-row"},{default:(0,a.withCtx)((()=>[n.user.newPassword?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"password-strength":l.passwordStrength},null,8,["password-strength"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,{modelValue:n.user.newPassword,"onUpdate:modelValue":t[1]||(t[1]=e=>n.user.newPassword=e),rules:n.rules.newPassword,label:e.$t("auth.new_password"),placeholder:e.$t("auth.password"),name:"password",type:"password","label-icon":"key",autocomplete:"off"},null,8,["modelValue","rules","label","placeholder"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.user.confirmPassword,"onUpdate:modelValue":t[2]||(t[2]=e=>n.user.confirmPassword=e),rules:n.rules.confirmPassword,placeholder:e.$t("auth.password"),label:e.$t("general.confirm_password"),type:"password","label-icon":"key",autocomplete:"off",name:"confirmPassword"},null,8,["modelValue","rules","placeholder","label"])])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",OZ,[(0,a.createVNode)(p,{label:e.$t("general.save"),size:"large",type:"submit","display-type":"secondary",class:"orangehrm-forgot-password-button"},null,8,["label"])])],64))])),_:1},8,["action","onSubmitValid"])])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var ZZ={name:"ResetWeakPassword",components:{"password-strength-indicator":Aa,"oxd-alert":q.OxdAlert},props:{username:{type:String,required:!0},code:{type:String,required:!0},token:{type:String,required:!0},error:{type:Object,default:()=>null},invalidCode:{type:Boolean,default:()=>!1}},setup(){const e=new P(window.appGlobal.baseUrl,""),{passwordStrength:t,validatePassword:o}=Ba(e);return{http:e,passwordStrength:t,validatePassword:o}},data(){return{user:{username:"",currentPassword:"",confirmPassword:""},rules:{currentPassword:[jt,zt(64)],newPassword:[jt,zt(64),(0,q.promiseDebounce)(this.validatePassword,500)],confirmPassword:[jt,zt(64),e=>!!e&&e===this.user.newPassword||this.$t("general.passwords_do_not_match")]}}},computed:{submitUrl(){return L("/auth/resetWeakPassword")}},methods:{onSubmit(){this.$refs.resetForm.$el.submit()}}};const QZ=(0,r.Z)(ZZ,[["render",GZ],["__scopeId","data-v-cae6a014"]]);var HZ=QZ;const WZ={class:"orangehrm-forgot-password-container"},YZ={class:"orangehrm-forgot-password-wrapper"},JZ={class:"orangehrm-card-container"};function XZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("card-note");return(0,a.openBlock)(),(0,a.createElementBlock)("div",WZ,[(0,a.createElementVNode)("div",YZ,[(0,a.createElementVNode)("div",JZ,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-forgot-password-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.reset_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(d,{"note-text":e.$t("auth.reset_password_token_expired_note"),class:"orangehrm-forgot-password-card-note","has-note-icon":""},null,8,["note-text"]),(0,a.createVNode)(i,{class:"orangehrm-forgot-password-reset"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"span",class:"orangehrm-forgot-password-reset--link",onClick:r.navigateUrl},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.click_here")),1)])),_:1},8,["onClick"]),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("auth.request_new_password_token")),1)])),_:1})])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var KZ={name:"ResetPasswordError",components:{"card-note":LZ},methods:{navigateUrl(){U("/auth/requestPasswordResetCode")}}};const eQ=(0,r.Z)(KZ,[["render",XZ],["__scopeId","data-v-0928170e"]]);var tQ=eQ;const oQ=e=>((0,a.pushScopeId)("data-v-3614f3e7"),e=e(),(0,a.popScopeId)(),e),aQ={class:"orangehrm-admin-access-container"},lQ={class:"orangehrm-card-container"},nQ=oQ((()=>(0,a.createElementVNode)("br",null,null,-1))),rQ=["value"],iQ={class:"orangehrm-admin-access-button-container"},sQ=oQ((()=>(0,a.createElementVNode)("br",null,null,-1)));function dQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-alert"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-button"),u=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",aQ,[(0,a.createElementVNode)("div",lQ,[(0,a.createVNode)(u,{ref:"verifyForm",method:"post",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-admin-access-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.admin_access")),1)])),_:1}),nQ,(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(n.noteContainerClass)},[(0,a.createVNode)(i,{tag:"toast-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.admin_access_note")),1)])),_:1})],2),(0,a.createVNode)(s,{show:null!==o.error,type:"error",message:o.error?.message},null,8,["show","message"]),(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,rQ),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{"model-value":o.username,name:"username",label:e.$t("general.username"),"label-icon":"person",disabled:""},null,8,["model-value","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.password,"onUpdate:modelValue":t[0]||(t[0]=e=>n.password=e),name:"password",label:e.$t("general.password"),"label-icon":"key",type:"password",rules:n.rules.password,autofocus:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createElementVNode)("div",iQ,[(0,a.createVNode)(m,{class:"orangehrm-admin-access-button","display-type":"ghost",size:"large",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(m,{class:"orangehrm-admin-access-button","display-type":"secondary",size:"large",label:e.$t("general.confirm"),type:"submit"},null,8,["label"])])])),_:1},8,["action","onSubmitValid"])]),sQ,(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var cQ={name:"AdministratorAccess",components:{"oxd-alert":q.OxdAlert},props:{username:{type:String,required:!0},error:{type:Object,default:()=>null},token:{type:String,required:!0},backUrl:{type:String,default:null}},data(){return{password:"",rules:{password:[jt]},noteClasses:{"orangehrm-admin-access-note":!0,"--padding":null===this.error},noteContainerClass:{"orangehrm-admin-access-note-container":null===this.error}}},computed:{submitUrl(){return L("/auth/adminVerify")}},methods:{onSubmit(){this.$refs.verifyForm.$el.submit()},onCancel(){U(this.backUrl)}}};const mQ=(0,r.Z)(cQ,[["render",dQ],["__scopeId","data-v-3614f3e7"]]);var uQ=mQ;const pQ={class:"orangehrm-forgot-password-container"},hQ={class:"orangehrm-forgot-password-wrapper"},gQ={class:"orangehrm-card-container"},vQ=["value"],fQ={class:"orangehrm-forgot-password-button-container"};function yQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("card-note"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",pQ,[(0,a.createElementVNode)("div",hQ,[(0,a.createElementVNode)("div",gQ,[(0,a.createVNode)(p,{ref:"resetForm",method:"post",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-forgot-password-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.reset_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(d,{"note-text":e.$t("auth.username_identify_reset_note"),class:"orangehrm-forgot-password-card-note"},null,8,["note-text"]),(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,vQ),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.username,"onUpdate:modelValue":t[0]||(t[0]=e=>n.username=e),name:"username",label:e.$t("auth.username"),"label-icon":"person",rules:n.rules.username,placeholder:e.$t("auth.username")},null,8,["modelValue","label","rules","placeholder"])])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",fQ,[(0,a.createVNode)(u,{class:"orangehrm-forgot-password-button orangehrm-forgot-password-button--cancel","display-type":"ghost",size:"large",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(u,{class:"orangehrm-forgot-password-button orangehrm-forgot-password-button--reset","display-type":"secondary",size:"large",label:e.$t("auth.reset_password"),type:"submit"},null,8,["label"])])])),_:1},8,["action","onSubmitValid"])])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var CQ={name:"RequestResetPassword",components:{"card-note":LZ},props:{token:{type:String,required:!0}},data(){return{username:"",rules:{username:[jt]}}},computed:{submitUrl(){return L("/auth/requestResetPassword")}},methods:{onCancel(){U("/auth/login")},onSubmit(){this.$refs.resetForm.$el.submit()}}};const bQ=(0,r.Z)(CQ,[["render",yQ],["__scopeId","data-v-cee5d450"]]);var VQ=bQ;const xQ={class:"orangehrm-forgot-password-container"},wQ={class:"orangehrm-forgot-password-wrapper"},NQ={class:"orangehrm-card-container"};function _Q(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("card-note");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xQ,[(0,a.createElementVNode)("div",wQ,[(0,a.createElementVNode)("div",NQ,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-forgot-password-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.reset_password_link_sent_successfully")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(d,{"note-text":e.$t("auth.reset_password_link_via_email"),class:"orangehrm-forgot-password-card-note"},null,8,["note-text"]),(0,a.createVNode)(d,{"note-text":e.$t("auth.follow_link_to_select_password"),class:"orangehrm-forgot-password-card-note"},null,8,["note-text"]),(0,a.createVNode)(d,{"note-text":e.$t("auth.email_not_receive_note"),class:"orangehrm-forgot-password-card-note","has-note":""},null,8,["note-text"])])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var kQ={name:"ResetPasswordSuccess",components:{"card-note":LZ}};const SQ=(0,r.Z)(kQ,[["render",_Q],["__scopeId","data-v-3198c915"]]);var DQ=SQ;const $Q={class:"orangehrm-forgot-password-container"},EQ={class:"orangehrm-forgot-password-wrapper"},TQ={class:"orangehrm-card-container"};function BQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("card-note");return(0,a.openBlock)(),(0,a.createElementBlock)("div",$Q,[(0,a.createElementVNode)("div",EQ,[(0,a.createElementVNode)("div",TQ,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-forgot-password-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.reset_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(d,{"note-text":e.$t("auth.configured_receive_email_notification_note"),class:"orangehrm-forgot-password-card-note","has-note-icon":""},null,8,["note-text"]),(0,a.createVNode)(i,{class:"orangehrm-forgot-password-reset"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"span",class:"orangehrm-forgot-password-reset--link",onClick:r.navigateUrl},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.click_here")),1)])),_:1},8,["onClick"]),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("auth.back_to_login")),1)])),_:1})])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var IQ={name:"EmailConfigurationWarning",components:{"card-note":LZ},methods:{navigateUrl(){U("/auth/login")}}};const LQ=(0,r.Z)(IQ,[["render",BQ],["__scopeId","data-v-64d8674c"]]);var UQ=LQ,AQ={"auth-login":bZ,"auth-forbidden":NZ,"reset-password":PZ,"auth-admin-access":uQ,"reset-weak-password":HZ,"reset-password-error":tQ,"reset-password-success":DQ,"request-reset-password":VQ,"email-configuration-warning":UQ};function PQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-attendance-widget"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("my-action-summary-widget"),c=(0,a.resolveComponent)("quick-launch-widget"),m=(0,a.resolveComponent)("buzz-latest-post-widget"),u=(0,a.resolveComponent)("employees-on-leave-widget"),p=(0,a.resolveComponent)("employee-subunit-widget"),h=(0,a.resolveComponent)("employee-location-widget"),g=(0,a.resolveComponent)("oxd-grid");return(0,a.openBlock)(),(0,a.createBlock)(g,{class:"orangehrm-dashboard-grid",cols:3},{default:(0,a.withCtx)((()=>[e.$can.read("dashboard_time_widget")?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i)])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s,{class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d)])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c)])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m)])),_:1}),e.$can.read("dashboard_leave_widget")?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u)])),_:1})):(0,a.createCommentVNode)("",!0),e.$can.read("dashboard_subunit_widget")?((0,a.openBlock)(),(0,a.createBlock)(s,{key:2,class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p)])),_:1})):(0,a.createCommentVNode)("",!0),e.$can.read("dashboard_location_widget")?((0,a.openBlock)(),(0,a.createBlock)(s,{key:3,class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h)])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})}const qQ=["title"];function MQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(m,{icon:"lightning-charge-fill",empty:r.isEmpty,loading:n.isLoading,title:e.$t("dashboard.quick_launch")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:3,class:"orangehrm-quick-launch"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.sortedActions,(e=>((0,a.openBlock)(),(0,a.createBlock)(d,{key:e,class:"orangehrm-quick-launch-card"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{"icon-type":"svg",class:"orangehrm-quick-launch-icon",name:e.icon,title:e.label,onClick:t=>r.onClickAction(e.path)},null,8,["name","title","onClick"]),(0,a.createElementVNode)("div",{class:"orangehrm-quick-launch-heading",title:e.label},[(0,a.createVNode)(s,{tag:"p",class:"--text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)])),_:2},1024)],8,qQ)])),_:2},1024)))),128))])),_:1})])),_:1},8,["empty","loading","title"])}const FQ={class:"orangehrm-dashboard-widget-header"},jQ={class:"orangehrm-dashboard-widget-name"},zQ={key:0,class:"orangehrm-dashboard-widget-body-nocontent"},RQ=["src"];function OQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-loading-spinner"),m=(0,a.resolveComponent)("oxd-sheet");return(0,a.openBlock)(),(0,a.createBlock)(m,{gutters:!1,class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",FQ,[(0,a.createElementVNode)("div",jQ,[(0,a.createVNode)(i,{name:o.icon,type:o.iconType,class:"orangehrm-dashboard-widget-icon"},null,8,["name","type"]),(0,a.createVNode)(s,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.title),1)])),_:1})]),(0,a.renderSlot)(e.$slots,"action",{},void 0,!0)]),(0,a.createVNode)(d),o.loading?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,class:"orangehrm-dashboard-widget-loader"})):((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:1,ref:"widgetRef",class:(0,a.normalizeClass)(l.widgetBodyClasses)},[(0,a.renderSlot)(e.$slots,"default",{},void 0,!0),o.empty?((0,a.openBlock)(),(0,a.createElementBlock)("div",zQ,[(0,a.createElementVNode)("img",{src:l.defaultPic,alt:"No Content",class:"orangehrm-dashboard-widget-img"},null,8,RQ),(0,a.createVNode)(s,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.emptyText||e.$t("dashboard.not_available")),1)])),_:1})])):(0,a.createCommentVNode)("",!0)],2))])),_:3})}var GQ={name:"BaseWidget",components:{"oxd-sheet":q.OxdSheet,"oxd-icon":q.OxdIcon,"oxd-loading-spinner":q.OxdSpinner},props:{icon:{type:String,required:!0},title:{type:String,required:!0},loading:{type:Boolean,default:!1},empty:{type:Boolean,default:!1},emptyText:{type:String,default:null},iconType:{type:String,default:void 0}},setup(){const e=(0,a.ref)(),t=`${window.appGlobal.publicPath}/images/dashboard_empty_widget_watermark.png`,o=(0,a.computed)((()=>({"orangehrm-dashboard-widget-body":!0,"--scroll-visible":e.value?.scrollHeight>e.value?.clientHeight})));return{widgetRef:e,defaultPic:t,widgetBodyClasses:o}}};const ZQ=(0,r.Z)(GQ,[["render",OQ],["__scopeId","data-v-fcab0262"]]);var QQ=ZQ,HQ={name:"QuickLaunchWidget",components:{"base-widget":QQ},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/shortcuts");return{http:e}},data(){return{isLoading:!1,quickLaunchActions:[]}},computed:{isEmpty(){return 0===this.quickLaunchActions.length},sortedActions(){return[...this.quickLaunchActions].sort(((e,t)=>e.order-t.order))}},beforeMount(){this.isLoading=!0;const e={"leave.assign_leave":{order:1,icon:"leaveassign",label:this.$t("leave.assign_leave"),path:"/leave/assignLeave"},"leave.leave_list":{order:2,icon:"leavelist",label:this.$t("leave.leave_list"),path:"/leave/viewLeaveList"},"time.employee_timesheet":{order:3,icon:"timesheets",label:this.$t("general.timesheets"),path:"/time/viewEmployeeTimesheet"},"leave.apply_leave":{order:4,icon:"leaveapply",label:this.$t("leave.apply_leave"),path:"/leave/applyLeave"},"leave.my_leave":{order:5,icon:"myleaves",label:this.$t("general.my_leave"),path:"/leave/viewMyLeaveList"},"time.my_timesheet":{order:6,icon:"mytimesheet",label:this.$t("time.my_timesheet"),path:"/time/viewMyTimesheet"}};this.http.getAll().then((t=>{const{data:o}=t.data;for(const a in o)o[a]&&this.quickLaunchActions.push(e[a])})).finally((()=>{this.isLoading=!1}))},methods:{onClickAction(e){e&&U(e)}}};const WQ=(0,r.Z)(HQ,[["render",MQ],["__scopeId","data-v-6321cefe"]]);var YQ=WQ;const JQ={class:"orangehrm-buzz-widget-header-text"},XQ=["src"];function KQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("video-frame"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(p,{icon:"camera-fill",empty:l.isEmpty,loading:l.isLoading,title:e.$t("dashboard.buzz_latest_posts"),"empty-text":e.$t("dashboard.no_posts_added")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{class:"orangehrm-buzz-widget",cols:1},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.posts,(e=>((0,a.openBlock)(),(0,a.createBlock)(m,{key:e,class:"orangehrm-buzz-widget-card"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",{class:"orangehrm-buzz-widget-header",onClick:t[0]||(t[0]=(...e)=>l.onClickPost&&l.onClickPost(...e))},[(0,a.createVNode)(i,{employee:e.employee},null,8,["employee"]),(0,a.createElementVNode)("div",JQ,[(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-widget-header-emp"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.employeeFullName),1)])),_:2},1024),(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-widget-header-time"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.dateTime),1)])),_:2},1024)])]),(0,a.createVNode)(d,{class:"orangehrm-buzz-widget-divider"}),e.text?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,tag:"p",class:"orangehrm-buzz-widget-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.text),1)])),_:2},1024)):(0,a.createCommentVNode)("",!0),e.postImgSrc?((0,a.openBlock)(),(0,a.createElementBlock)("img",{key:1,src:e.postImgSrc,class:"orangehrm-buzz-widget-picture"},null,8,XQ)):(0,a.createCommentVNode)("",!0),e.postVideoSrc?((0,a.openBlock)(),(0,a.createBlock)(c,{key:2,"video-src":e.postVideoSrc},null,8,["video-src"])):(0,a.createCommentVNode)("",!0)])),_:2},1024)))),128))])),_:1})])),_:1},8,["empty","loading","title","empty-text"])}const eH={class:"orangehrm-buzz-video"},tH=["src"];function oH(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",eH,[(0,a.createElementVNode)("iframe",{src:r.embedURL,frameborder:"0",class:"orangehrm-buzz-video-frame",title:"OrangeHRM buzz video frame",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,tH)])}var aH={name:"VideoFrame",props:{videoSrc:{type:String,required:!0}},computed:{embedURL(){return new String(this.videoSrc).trim()}}};const lH=(0,r.Z)(aH,[["render",oH],["__scopeId","data-v-2cbd4256"]]);var nH=lH;function rH(e){const t=(t,o=0,a=!1)=>e.request({method:"GET",url:`/api/v2/buzz/shares/${t}/comments`,params:{limit:o,...a&&{model:"detailed"}}}),o=(t,o)=>e.request({method:"POST",url:`/api/v2/buzz/shares/${t}/comments`,data:{text:o}}),a=(t,o,a)=>e.request({method:"PUT",url:`/api/v2/buzz/shares/${t}/comments/${o}`,data:{text:a}}),l=(t,o)=>e.request({method:"DELETE",url:`/api/v2/buzz/shares/${t}/comments/${o}`}),n=t=>e.request({method:"GET",url:`/api/v2/buzz/shares/${t}/likes`}),r=(t,o,a,l)=>e.request({method:"GET",url:"/api/v2/buzz/feed",params:{limit:t,offset:o,sortOrder:a,sortField:l}}),i=(t,o)=>e.request({method:o?"DELETE":"POST",url:`/api/v2/buzz/shares/${t}/likes`}),s=(t,o)=>e.request({method:o?"DELETE":"POST",url:`/api/v2/buzz/comments/${t}/likes`}),d=t=>e.request({method:"DELETE",url:`/api/v2/buzz/shares/${t}`}),c=(t,o)=>("photo"===o.type&&delete o["link"],"video"===o.type&&(delete o["photos"],delete o["deletedPhotos"]),"text"===o.type&&(delete o["link"],delete o["photos"]),e.request({method:"PUT",url:`/api/v2/buzz/posts/${t}`,data:{...o},params:{model:"detailed"}})),m=(t,o)=>e.request({method:"PUT",url:`/api/v2/buzz/shares/${t}`,data:{text:o},params:{model:"detailed"}});return{fetchPosts:r,updatePost:c,deletePost:d,updatePostLike:i,fetchPostLikes:n,savePostComment:o,updateSharedPost:m,updatePostComment:a,deletePostComment:l,fetchPostComments:t,updateCommentLike:s}}const iH={class:"orangehrm-buzz-profile-image"},sH=["src"];function dH(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",iH,[(0,a.createElementVNode)("img",{alt:"profile picture",src:r.imageSrc},null,8,sH)])}var cH={name:"ProfileImage",props:{employee:{type:Object,required:!0}},computed:{imageSrc(){return`../pim/viewPhoto/empNumber/${this.employee.empNumber}`}}};const mH=(0,r.Z)(cH,[["render",dH],["__scopeId","data-v-7d93b59a"]]);var uH=mH,pH={name:"BuzzLatestPostWidget",components:{"base-widget":QQ,"video-frame":nH,"profile-image":uH},setup(){const e=(0,a.ref)([]),t=(0,a.ref)(!1),{locale:o}=De(),{jsDateFormat:l,jsTimeFormat:n}=R(),{$tEmpName:r}=xa(),{fetchPosts:i}=rH(new P(window.appGlobal.baseUrl,"")),s=(0,a.computed)((()=>0===e.value.length)),d=()=>U("/buzz/viewBuzz");return(0,a.onBeforeMount)((()=>{t.value=!0,i(5,0,"DESC","share.createdAtUtc").then((t=>{const{data:a}=t.data;e.value=a.map((e=>{const{employee:t,createdDate:a,createdTime:i,originalPost:s}=e,d=e.video?.link||null,c=re(`${a} ${i} +00:00`,"yyyy-MM-dd HH:mm xxx"),m=ie(c,`${l} ${n}`,{locale:o}),u=r(t,{includeMiddle:!0,excludePastEmpTag:!1}),p=Array.isArray(e?.photoIds)?`${window.appGlobal.baseUrl}/buzz/photo/${e.photoIds[0]}`:null,h=s?s.text:e.text;return{...e,text:h,dateTime:m,postImgSrc:p,postVideoSrc:d,employeeFullName:u}}))})).finally((()=>{t.value=!1}))})),{posts:e,isEmpty:s,isLoading:t,onClickPost:d}}};const hH=(0,r.Z)(pH,[["render",KQ],["__scopeId","data-v-5021c2bc"]]);var gH=hH;function vH(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-pie-chart"),s=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(s,{icon:"pie-chart-fill",loading:n.isLoading,title:e.$t("dashboard.employee_distribution_by_sub_unit")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{data:n.dataset,"aspect-ratio":!1,"custom-legend":!0,"custom-tooltip":!0,"wrapper-classes":"emp-distrib-chart"},null,8,["data"])])),_:1},8,["loading","title"])}var fH={name:"EmployeeSubunitWidget",components:{"base-widget":QQ,"oxd-pie-chart":q.OxdPieChart},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/employees/subunit");return{http:e}},data(){return{dataset:[],isLoading:!1}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t,meta:o}=e.data,a=[q.CHART_COLORS.COLOR_HEAT_WAVE,q.CHART_COLORS.COLOR_CHROME_YELLOW,q.CHART_COLORS.COLOR_YELLOW_GREEN,q.CHART_COLORS.COLOR_MOUNTAIN_MEADOW,q.CHART_COLORS.COLOR_PACIFIC_BLUE,q.CHART_COLORS.COLOR_BLEU_DE_FRANCE,q.CHART_COLORS.COLOR_MAJORELLE_BLUE,q.CHART_COLORS.COLOR_MEDIUM_ORCHID,q.CHART_COLORS.COLOR_FANDANGO_PINK];this.dataset=t.map(((e,t)=>!!e.count&&{value:e.count,color:a[t],label:e.subunit.name})).filter((e=>e)),o?.otherEmployeeCount&&this.dataset.push({value:o.otherEmployeeCount,color:q.CHART_COLORS.COLOR_FANDANGO_PINK,label:this.$t("pim.other")}),o?.unassignedEmployeeCount&&this.dataset.push({value:o.unassignedEmployeeCount,color:q.CHART_COLORS.COLOR_TART_ORANGE,label:this.$t("dashboard.unassigned")})})).finally((()=>{this.isLoading=!1}))}};const yH=(0,r.Z)(fH,[["render",vH],["__scopeId","data-v-8c1519ac"]]);var CH=yH;const bH={key:0,class:"orangehrm-todo-list"},VH={key:0,class:"orangehrm-todo-list-item"},xH={key:1,class:"orangehrm-todo-list-item"},wH={key:2,class:"orangehrm-todo-list-item"},NH={key:3,class:"orangehrm-todo-list-item"},_H={key:4,class:"orangehrm-todo-list-item"};function kH(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(d,{icon:"list-check",empty:r.isEmpty,"empty-text":r.emptyText,loading:e.isLoading,title:e.$t("dashboard.my_actions")},{default:(0,a.withCtx)((()=>[n.myActions.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",bH,[n.leaveRequestCount>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",VH,[(0,a.createVNode)(i,{class:"orangehrm-report-icon",name:"attendanceAlt","icon-type":"svg","display-type":"success",onClick:r.onClickPendingLeave},null,8,["onClick"]),(0,a.createVNode)(s,{tag:"p",onClick:r.onClickPendingLeave},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.n_pending_leave_request",{pendingActionsCount:n.leaveRequestCount})),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0),n.timeSheetCount>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",xH,[(0,a.createVNode)(i,{class:"orangehrm-report-icon",name:"timeAlt","icon-type":"svg","display-type":"warn",onClick:r.onClickPendingTimesheet},null,8,["onClick"]),(0,a.createVNode)(s,{tag:"p",onClick:r.onClickPendingTimesheet},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.n_pending_time_sheet",{pendingActionsCount:n.timeSheetCount})),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0),n.reviewCount>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",wH,[(0,a.createVNode)(i,{class:"orangehrm-report-icon",name:"appraisals","icon-type":"svg","display-type":"danger",onClick:r.onClickPendingReview},null,8,["onClick"]),(0,a.createVNode)(s,{tag:"p",onClick:r.onClickPendingReview},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.n_pending_performance_evaluate",{pendingActionsCount:n.reviewCount})),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0),n.selfReviewCount>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",NH,[(0,a.createVNode)(i,{class:"orangehrm-report-icon",name:"appraisals","icon-type":"svg","display-type":"danger",onClick:r.onClickPendingReview},null,8,["onClick"]),(0,a.createVNode)(s,{tag:"p",onClick:r.onClickSelfReview},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.n_pending_self_review",{pendingActionsCount:n.selfReviewCount})),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0),n.interviewCount>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",_H,[(0,a.createVNode)(i,{class:"orangehrm-report-icon",name:"interview","icon-type":"svg","display-type":"info",onClick:r.onClickPendingInterview},null,8,["onClick"]),(0,a.createVNode)(s,{tag:"p",onClick:r.onClickPendingInterview},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.n_pending_candidate_interview",{pendingActionsCount:n.interviewCount})),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0)])):(0,a.createCommentVNode)("",!0)])),_:1},8,["empty","empty-text","loading","title"])}var SH={name:"MyActionSummaryWidget",components:{"base-widget":QQ},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/employees/action-summary");return{http:e}},data(){return{myActions:[],leaveRequestCount:0,timeSheetCount:0,reviewCount:0,selfReviewCount:0,interviewCount:0}},computed:{isEmpty(){return 0===this.myActions.length},emptyText(){return this.$t("dashboard.no_pending_actions")}},beforeMount(){this.isLoading=!1,this.http.getAll().then((e=>{const{data:t}=e.data;this.myActions=t.map((e=>{const{group:t,pendingActionCount:o}=e;"Leave Requests To Approve"===t&&(this.leaveRequestCount=o),"Timesheets To Approve"===t&&(this.timeSheetCount=o),"Pending Appraisal Reviews"===t&&(this.reviewCount=o),"Pending Self Reviews"===t&&(this.selfReviewCount=o),"Candidates To Interview"===t&&(this.interviewCount=o)}))})).finally((()=>{this.isLoading=!1}))},methods:{onClickPendingLeave(){U("/leave/viewLeaveList")},onClickPendingTimesheet(){U("/time/viewEmployeeTimesheet")},onClickPendingReview(){U("/performance/searchEvaluatePerformanceReview")},onClickPendingInterview(){U("/recruitment/viewCandidates",void 0,{statusId:4})},onClickSelfReview(){U("/performance/myPerformanceReview")}}};const DH=(0,r.Z)(SH,[["render",kH],["__scopeId","data-v-267ef1b2"]]);var $H=DH;function EH(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-pie-chart"),s=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(s,{icon:"pie-chart-fill",loading:n.isLoading,title:e.$t("dashboard.employee_distribution_by_location")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{data:n.dataset,"aspect-ratio":!1,"custom-legend":!0,"custom-tooltip":!0,"wrapper-classes":"emp-distrib-chart"},null,8,["data"])])),_:1},8,["loading","title"])}var TH={name:"EmployeeLocationWidget",components:{"base-widget":QQ,"oxd-pie-chart":q.OxdPieChart},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/employees/locations");return{http:e}},data(){return{dataset:[],isLoading:!1}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t,meta:o}=e.data,a=[q.CHART_COLORS.COLOR_HEAT_WAVE,q.CHART_COLORS.COLOR_CHROME_YELLOW,q.CHART_COLORS.COLOR_YELLOW_GREEN,q.CHART_COLORS.COLOR_MOUNTAIN_MEADOW,q.CHART_COLORS.COLOR_PACIFIC_BLUE,q.CHART_COLORS.COLOR_BLEU_DE_FRANCE,q.CHART_COLORS.COLOR_MAJORELLE_BLUE,q.CHART_COLORS.COLOR_MEDIUM_ORCHID,q.CHART_COLORS.COLOR_FANDANGO_PINK];this.dataset=t.map(((e,t)=>!!e.count&&{value:e.count,color:a[t],label:e.location.name})).filter((e=>e)),o?.otherEmployeeCount&&this.dataset.push({value:o.otherEmployeeCount,color:q.CHART_COLORS.COLOR_FANDANGO_PINK,label:this.$t("pim.other")}),o?.unassignedEmployeeCount&&this.dataset.push({value:o.unassignedEmployeeCount,color:q.CHART_COLORS.COLOR_TART_ORANGE,label:this.$t("dashboard.unassigned")})})).finally((()=>{this.isLoading=!1}))}};const BH=(0,r.Z)(TH,[["render",EH],["__scopeId","data-v-f6125ed6"]]);var IH=BH;const LH={class:"orangehrm-leave-card-profile-image"},UH=["src"],AH={class:"orangehrm-leave-card-details"};function PH(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("base-widget"),c=(0,a.resolveComponent)("employees-on-leave-config-modal");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(d,{icon:"leaveAlt","icon-type":"svg",class:"emp-leave-chart",empty:r.isEmpty,"empty-text":r.emptyText,loading:n.isLoading,title:e.$t("dashboard.employees_on_leave_today")},(0,a.createSlots)({default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.leaveList,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:e,class:"orangehrm-leave-card"},[(0,a.createElementVNode)("div",LH,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:`../pim/viewPhoto/empNumber/${e.empNumber}`},null,8,UH)]),(0,a.createElementVNode)("div",AH,[(0,a.createVNode)(s,{tag:"p",class:"orangehrm-leave-card-emp-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.empName),1)])),_:2},1024),e.leaveType?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,tag:"p",class:"orangehrm-leave-card-leave-details"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.leaveType),1)])),_:2},1024)):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(s,{tag:"p",class:"orangehrm-leave-card-emp-id"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.employeeId),1)])),_:2},1024)])))),128))])),_:2},[e.$can.update("dashboard_employees_on_leave_today_config")?{name:"action",fn:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-card-icon",name:"gear-fill",onClick:r.onClickConfig},null,8,["onClick"])])),key:"0"}:void 0]),1032,["empty","empty-text","loading","title"]),n.showConfigModal?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,onClose:r.onConfigModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)],64)}const qH={class:"orangehrm-modal-header"},MH={class:"orangehrm-config-title"};function FH(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",qH,[(0,a.createVNode)(i,{type:"svg",name:"leaveAlt"}),(0,a.createElementVNode)("div",MH,[(0,a.createVNode)(s,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.employees_on_leave_today")),1)])),_:1}),(0,a.createVNode)(s,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.configurations")),1)])),_:1})])]),(0,a.createVNode)(d),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-config-checkbox"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.showAccessibleEmployeesOnly,"onUpdate:modelValue":t[0]||(t[0]=e=>n.showAccessibleEmployeesOnly=e),type:"switch",label:e.$t("dashboard.only_show_accessible_employees_on_leave_for_other_users")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}var jH={name:"EmployeesOnLeaveConfigModal",components:{"oxd-icon":q.OxdIcon,"oxd-dialog":q.OxdDialog},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/config/employee-on-leave-today");return{http:e}},data(){return{isLoading:!1,showAccessibleEmployeesOnly:!1}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.showAccessibleEmployeesOnly=t.showOnlyAccessibleEmployeesOnLeaveToday})).finally((()=>this.isLoading=!1))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{showOnlyAccessibleEmployeesOnLeaveToday:this.showAccessibleEmployeesOnly}}).then((()=>{this.$toast.updateSuccess(),this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const zH=(0,r.Z)(jH,[["render",FH],["__scopeId","data-v-729478c0"]]);var RH=zH,OH={name:"EmployeesOnLeaveWidget",components:{"oxd-icon":q.OxdIcon,"base-widget":QQ,"employees-on-leave-config-modal":RH},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/employees/leaves"),{$tEmpName:t}=xa();return{http:e,tEmpName:t}},data(){return{leaveList:[],isLoading:!1,leavePeriod:null,showConfigModal:!1}},computed:{isEmpty(){return 0===this.leaveList.length},emptyText(){return this.leavePeriod?this.$t("dashboard.no_employees_are_on_leave_today"):this.$t("dashboard.leave_period_not_defined")}},beforeMount(){this.isLoading=!0,this.http.getAll({date:ie(ne(),"yyyy-MM-dd")}).then((e=>{const{data:t,meta:o}=e.data;this.leaveList=t.map((e=>{const{employee:t,leaveType:o,duration:a}=e;let l=o?.name;return l&&"half_day_morning"===a&&(l+=` (${this.$t("leave.half_day_morning")})`),l&&"half_day_afternoon"===a&&(l+=` (${this.$t("leave.half_day_evening")})`),l&&"specify_time"===a&&(l+=` (${e.startTime} - ${e.endTime})`),{leaveType:l,empNumber:t.empNumber,employeeId:t.employeeId,empName:this.tEmpName(t,{includeMiddle:!1,excludePastEmpTag:!1})}})),this.leavePeriod=o?.leavePeriodDefined})).finally((()=>{this.isLoading=!1}))},methods:{onClickConfig(){this.showConfigModal=!0},onConfigModalClose(){this.showConfigModal=!1}}};const GH=(0,r.Z)(OH,[["render",PH],["__scopeId","data-v-0bbde4fe"]]);var ZH=GH;const QH={class:"orangehrm-attendance-card"},HH={class:"orangehrm-attendance-card-profile"},WH={class:"orangehrm-attendance-card-profile-image"},YH=["src"],JH={class:"orangehrm-attendance-card-profile-record"},XH={class:"orangehrm-attendance-card-bar"},KH={class:"orangehrm-attendance-card-summary"},eW={class:"orangehrm-attendance-card-summary-week"},tW={class:"orangehrm-attendance-card-summary-total"};function oW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon-button"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-icon"),m=(0,a.resolveComponent)("oxd-bar-chart"),u=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(u,{icon:"clock-fill",loading:n.isLoading,title:e.$t("dashboard.time_at_work")},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",QH,[(0,a.createElementVNode)("div",HH,[(0,a.createElementVNode)("div",WH,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:`../pim/viewPhoto/empNumber/${n.empNumber}`},null,8,YH)]),(0,a.createElementVNode)("div",JH,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-card-state"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.lastState),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-card-details"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.lastRecord),1)])),_:1})])]),(0,a.createElementVNode)("div",XH,[(0,a.createVNode)(i,{tag:"span",class:"orangehrm-attendance-card-fulltime"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("b",null,(0,a.toDisplayString)(n.dayTotal.hours)+"h",1),(0,a.createTextVNode)(),(0,a.createElementVNode)("b",null,(0,a.toDisplayString)(n.dayTotal.minutes)+"m",1),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("dashboard.today")),1)])),_:1}),(0,a.createVNode)(s,{name:"stopwatch","display-type":"solid-main",class:"orangehrm-attendance-card-action",onClick:r.onClickPunchIn},null,8,["onClick"])]),(0,a.createVNode)(d),(0,a.createElementVNode)("div",KH,[(0,a.createElementVNode)("div",eW,[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.this_week")),1)])),_:1}),(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.currentWeek),1)])),_:1})]),(0,a.createElementVNode)("div",tW,[(0,a.createVNode)(c,{name:"stopwatch",class:"orangehrm-attendance-card-icon"}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-card-fulltime"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.weekTotal.hours)+"h "+(0,a.toDisplayString)(n.weekTotal.minutes)+"m ",1)])),_:1})])])]),(0,a.createVNode)(m,{grid:!1,data:n.dataset,"y-axsis":!1,"aspect-ratio":!1,"wrapper-classes":"emp-attendance-chart"},null,8,["data"])])),_:1},8,["loading","title"])}var aW={name:"EmployeeAttendanceWidget",components:{"oxd-icon":q.OxdIcon,"base-widget":QQ,"oxd-bar-chart":q.OxdBarChart},setup(){const{locale:e}=De(),t=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/employees/time-at-work");return{http:t,locale:e}},data(){return{dataset:[],state:null,endDate:null,userDate:null,userTime:null,startDate:null,isLoading:!1,empNumber:null,timezoneOffset:null,dayTotal:{hours:0,minutes:0},weekTotal:{hours:0,minutes:0}}},computed:{lastState(){switch(this.state){case"PUNCHED IN":return this.$t("attendance.punched_in");case"PUNCHED OUT":return this.$t("attendance.punched_out");default:return this.$t("attendance.not_punched_in")}},lastRecord(){if(!this.userDate||!this.userTime)return null;const e=re(`${this.userDate} ${this.userTime}`,"yyyy-MM-dd HH:mm"),t=ie(e,"hh:mm a",{locale:this.locale});if(!(0,ae.Z)(e)){const o=ie(e,"MMM do",{locale:this.locale});return this.$t("dashboard.state_date_at_time_timezone_offset",{lastState:this.lastState,date:o,time:t,timezoneOffset:this.timezoneOffset})}return this.$t("dashboard.state_today_at_time_timezone_offset",{lastState:this.lastState,time:t,timezoneOffset:this.timezoneOffset})},currentWeek(){if(!this.startDate||!this.endDate)return null;const e=ie(re(this.startDate),"MMM dd",{locale:this.locale}),t=ie(re(this.endDate),"MMM dd",{locale:this.locale});return`${e} - ${t}`}},beforeMount(){this.fetchWidgetData()},methods:{onClickPunchIn(){U("/attendance/punchIn")},fetchWidgetData(){this.isLoading=!0;const e=ne(),t=e.getTimezoneOffset()/60*-1;this.http.getAll({timezoneOffset:t,currentDate:ie(e,"yyyy-MM-dd"),currentTime:ie(new Date,"HH:mm")}).then((e=>{const{data:t,meta:o}=e.data;this.dataset=t.map((e=>({value:e.totalTime.hours+e.totalTime.minutes/60,label:this.$t(`general.${new String(e.workDay.day).toLowerCase()}`),color:q.CHART_COLORS.COLOR_HEAT_WAVE})));const{lastAction:a,currentDay:l,currentWeek:n,currentUser:r}=o;a&&(this.state=a.state,this.userDate=a.userDate,this.userTime=a.userTime,this.timezoneOffset=a.timezoneOffset),n&&(this.weekTotal=n.totalTime,this.endDate=n.endDate?.date,this.startDate=n.startDate?.date),l&&(this.dayTotal=l.totalTime),r&&(this.empNumber=r.empNumber)})).finally((()=>{this.isLoading=!1}))}}};const lW=(0,r.Z)(aW,[["render",oW],["__scopeId","data-v-98346df6"]]);var nW=lW,rW={components:{"quick-launch-widget":YQ,"buzz-latest-post-widget":gH,"employee-subunit-widget":CH,"my-action-summary-widget":$H,"employee-location-widget":IH,"employees-on-leave-widget":ZH,"employee-attendance-widget":nW},mounted(){const e=new P(window.appGlobal.baseUrl,"events/push");e.create()}};const iW=(0,r.Z)(rW,[["render",PQ],["__scopeId","data-v-47e79c96"]]);var sW=iW,dW={"view-dashboard":sW};function cW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("post-filters"),s=(0,a.resolveComponent)("news-feed"),d=(0,a.resolveComponent)("oxd-tab-panel"),c=(0,a.resolveComponent)("upcoming-anniversaries"),m=(0,a.resolveComponent)("oxd-tab-container"),u=(0,a.resolveComponent)("oxd-grid-item"),p=(0,a.resolveComponent)("oxd-grid");return l.isMobile?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,ref:"swipeRef",modelValue:l.tabSelector,"onUpdate:modelValue":t[0]||(t[0]=e=>l.tabSelector=e),"keep-alive":!0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{key:"buzz_newsfeed",name:e.$t("buzz.buzz_newsfeed")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{mobile:!0,employee:o.employee,"sort-field":l.sortField},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{mobile:!0,filter:l.sortField,onUpdatePriority:l.onUpdatePriority},null,8,["filter","onUpdatePriority"])])),_:1},8,["employee","sort-field"])])),_:1},8,["name"]),(0,a.createVNode)(d,{key:"buzz_anniversary",name:e.$t("buzz.upcoming_anniversaries")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c)])),_:1},8,["name"])])),_:1},8,["modelValue"])):l.width<1920?((0,a.openBlock)(),(0,a.createBlock)(p,{key:1,cols:2,class:"orangehrm-buzz-layout"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{employee:o.employee,"sort-field":l.sortField},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{filter:l.sortField,onUpdatePriority:l.onUpdatePriority},null,8,["filter","onUpdatePriority"])])),_:1},8,["employee","sort-field"])])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c)])),_:1})])),_:1})):((0,a.openBlock)(),(0,a.createBlock)(p,{key:2,cols:3,class:"orangehrm-buzz-layout"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{filter:l.sortField,onUpdatePriority:l.onUpdatePriority},null,8,["filter","onUpdatePriority"])])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{employee:o.employee,"sort-field":l.sortField},null,8,["employee","sort-field"])])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c)])),_:1})])),_:1}))}var mW=o(840),uW=o.n(mW);function pW(e){let t;const o=(0,a.ref)();return(0,a.onMounted)((()=>{if(!o.value)return;t=new(uW().Manager)(o.value?.$el||o.value);const a=new(uW().Swipe);t.add(a),t.on("swipe",e)})),(0,a.onBeforeUnmount)((()=>{t?.destroy()})),{swipeContainer:o}}const hW={class:"orangehrm-buzz-newsfeed"},gW=["src"];function vW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("create-post"),d=(0,a.resolveComponent)("post-body"),c=(0,a.resolveComponent)("post-actions"),m=(0,a.resolveComponent)("post-stats"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("post-comment-container"),h=(0,a.resolveComponent)("post-container"),g=(0,a.resolveComponent)("oxd-grid-item"),v=(0,a.resolveComponent)("oxd-grid"),f=(0,a.resolveComponent)("oxd-loading-spinner"),y=(0,a.resolveComponent)("edit-post-modal"),C=(0,a.resolveComponent)("share-post-modal"),b=(0,a.resolveComponent)("photo-carousel"),V=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",hW,[(0,a.createVNode)(i,{type:"card-title",class:"orangehrm-buzz-newsfeed-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.buzz_newsfeed")),1)])),_:1}),((0,a.openBlock)(),(0,a.createBlock)(s,{key:e.posts,employee:o.employee,onRefresh:l.resetFeed},null,8,["employee","onRefresh"])),(0,a.renderSlot)(e.$slots,"default",{},void 0,!0),(0,a.createVNode)(v,{cols:1,class:"orangehrm-buzz-newsfeed-posts"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.posts,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(g,{key:e},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{post:e,onEdit:e=>l.onEdit(t),onDelete:e=>l.onDelete(t)},(0,a.createSlots)({content:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{post:e,onSelectPhoto:e=>l.onSelectPhoto(e,t)},null,8,["post","onSelectPhoto"])])),actionButton:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{post:e,onLike:e=>l.onLike(t),onShare:e=>l.onShare(t),onComment:e=>l.onComment(t)},null,8,["post","onLike","onShare","onComment"])])),postStats:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{post:e,mobile:o.mobile,onComment:e=>l.onComment(t)},null,8,["post","mobile","onComment"])])),_:2},[e.showComments?{name:"comments",fn:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{"post-id":e.id,employee:o.employee,onCreate:e=>l.onCreateComment(t),onDelete:e=>l.onDeleteComment(t)},null,8,["post-id","employee","onCreate","onDelete"])])),key:"0"}:void 0]),1032,["post","onEdit","onDelete"])])),_:2},1024)))),128)),(0,a.withDirectives)((0,a.createVNode)(g,{class:"orangehrm-buzz-newsfeed-noposts"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("img",{src:l.noPostsPic,alt:"No Posts"},null,8,gW),(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.no_posts_available")),1)])),_:1})])),_:1},512),[[a.vShow,!e.isLoading&&0===e.posts.length]])])),_:1}),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(f,{key:0,class:"orangehrm-buzz-newsfeed-loader"})):(0,a.createCommentVNode)("",!0)]),e.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,employee:o.employee,data:e.editModalState.post,onClose:l.onCloseEditModal},null,8,["employee","data","onClose"])):(0,a.createCommentVNode)("",!0),e.showShareModal?((0,a.openBlock)(),(0,a.createBlock)(C,{key:1,employee:o.employee,data:e.shareModalState,onClose:l.onCloseShareModal},null,8,["employee","data","onClose"])):(0,a.createCommentVNode)("",!0),e.showPhotoCarousel?((0,a.openBlock)(),(0,a.createBlock)(b,{key:2,mobile:o.mobile,post:e.photoCarouselState.post,"photo-index":e.photoCarouselState.photoIndex,onClose:l.onClosePhotoCarousel,onLike:t[0]||(t[0]=t=>l.onLike(e.photoCarouselState.postIndex)),onCreateComment:t[1]||(t[1]=t=>l.onCreateComment(e.photoCarouselState.postIndex)),onDeleteComment:t[2]||(t[2]=t=>l.onDeleteComment(e.photoCarouselState.postIndex))},null,8,["mobile","post","photo-index","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(V,{ref:"deleteDialog",message:e.$t("buzz.post_delete_confirmation_message")},null,8,["message"])],64)}const fW={class:"orangehrm-buzz-post-body"},yW={key:1},CW=["onClick"],bW=["onClick"],VW={key:0};function xW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("video-frame"),d=(0,a.resolveComponent)("oxd-icon"),c=(0,a.resolveComponent)("photo-frame");return(0,a.openBlock)(),(0,a.createElementBlock)("div",fW,[o.post.text?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,tag:"p",class:(0,a.normalizeClass)(l.postClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.post.text),1)])),_:1},8,["class"])):(0,a.createCommentVNode)("",!0),(0,a.withDirectives)((0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-post-body-readmore",onClick:l.onClickReadMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.read_more")),1)])),_:1},8,["onClick"]),[[a.vShow,!e.readMore]]),!o.post.text||"video"!==o.post.type&&"photo"!==o.post.type?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("br",yW)),"video"===o.post.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:2,"video-src":o.post.video.link},null,8,["video-src"])):(0,a.createCommentVNode)("",!0),"photo"===o.post.type?((0,a.openBlock)(),(0,a.createBlock)(c,{key:3,media:o.post.photoIds},{content:(0,a.withCtx)((({index:e})=>[3===e&&5===o.post.photoIds.length?((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:0,class:"orangehrm-buzz-post-body-picture --more",onClick:t=>l.onClickPicture(e)},[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-post-body-more"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("+1")])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-buzz-post-body-more",name:"images"})],8,CW)):((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:1,class:"orangehrm-buzz-post-body-picture",onClick:t=>l.onClickPicture(e)},null,8,bW))])),_:1},8,["media"])):(0,a.createCommentVNode)("",!0),l.originalPost?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:4},[o.post.text||"video"===o.post.type||"photo"===o.post.type?((0,a.openBlock)(),(0,a.createElementBlock)("br",VW)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-post-body-employee"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.employee),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-post-body-date"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.dateTime),1)])),_:1}),l.originalPost.text?((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,tag:"p",class:"orangehrm-buzz-post-body-original-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.text),1)])),_:1})):(0,a.createCommentVNode)("",!0)],64)):(0,a.createCommentVNode)("",!0)])}const wW=["src"];function NW(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)(r.classes)},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.photos,((t,o)=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t,class:"orangehrm-buzz-photos-item"},[(0,a.renderSlot)(e.$slots,"content",{data:t,index:o},void 0,!0),(0,a.createElementVNode)("img",{src:t},null,8,wW)])))),128))],2)}var _W={name:"PhotoFrame",props:{media:{type:Array,required:!0}},computed:{classes(){return{"orangehrm-buzz-photos":!0,"--two-thumbnails":2===this.media.length,"--three-thumbnails":3===this.media.length,"--four-thumbnails":4===this.media.length,"--five-thumbnails":5===this.media.length}},photos(){return(this.media||[]).map((e=>{if("number"===typeof e)return`${window.appGlobal.baseUrl}/buzz/photo/${e}`;const{type:t,base64:o}=e;return`data:${t};base64,${o}`}))}}};const kW=(0,r.Z)(_W,[["render",NW],["__scopeId","data-v-1e5473e0"]]);var SW=kW,DW={name:"PostBody",components:{"oxd-icon":q.OxdIcon,"photo-frame":SW,"video-frame":nH},props:{post:{type:Object,required:!0}},emits:["close","selectPhoto"],setup(e,t){const{locale:o}=De(),{jsDateFormat:l,jsTimeFormat:n}=R(),{$tEmpName:r}=xa(),i=(0,a.reactive)({readMore:new String(e.post?.text).length<500}),s=(0,a.computed)((()=>({"orangehrm-buzz-post-body-text":!0,"--truncate":!1===i.readMore}))),d=()=>{i.readMore=!i.readMore},c=e=>{t.emit("selectPhoto",e)},m=(0,a.computed)((()=>{if(null===e.post.originalPost)return null;const{createdDate:t,createdTime:a}=e.post.originalPost,i=re(`${t} ${a} +00:00`,"yyyy-MM-dd HH:mm xxx");return{text:e.post.originalPost.text,employee:r(e.post.originalPost.employee,{includeMiddle:!0,excludePastEmpTag:!1}),dateTime:ie(i,`${l} ${n}`,{locale:o})}}));return{postClasses:s,originalPost:m,onClickPicture:c,onClickReadMore:d,...(0,a.toRefs)(i)}}};const $W=(0,r.Z)(DW,[["render",xW],["__scopeId","data-v-6a53586a"]]);var EW=$W;const TW={class:"orangehrm-buzz-stats"},BW={class:"orangehrm-buzz-stats-row"},IW={class:"orangehrm-buzz-stats-row"};function LW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("post-stats-modal"),c=(0,a.resolveDirective)("click-outside");return(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("div",TW,[(0,a.createElementVNode)("div",BW,[(0,a.createVNode)(i,{name:"heart-fill",class:"orangehrm-buzz-stats-like-icon"}),(0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.likesClasses),onClick:r.onShowLikeList},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.likesCount),1)])),_:1},8,["class","onClick"]),n.showLikeList?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,type:"likes",icon:"heart-fill",mobile:o.mobile,"post-id":o.post.id,onClose:r.onClose},null,8,["mobile","post-id","onClose"])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",IW,[(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-stats-active",onClick:r.onShowComments},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.commentsCount),1)])),_:1},8,["onClick"]),r.sharesCount?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createTextVNode)(" ‚  "),(0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.sharesClasses),onClick:r.onShowSharesList},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.sharesCount),1)])),_:1},8,["class","onClick"])],64)):(0,a.createCommentVNode)("",!0),n.showSharesList?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,type:"shares",icon:"share-fill",mobile:o.mobile,"post-id":o.post.post.id,onClose:r.onClose},null,8,["mobile","post-id","onClose"])):(0,a.createCommentVNode)("",!0)])])),[[c,r.onClose]])}const UW={class:"orangehrm-buzz-stats-dialog-header"};function AW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-loading-spinner"),c=(0,a.resolveComponent)("oxd-sheet"),m=(0,a.resolveComponent)("oxd-icon"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-dialog");return o.mobile?((0,a.openBlock)(),(0,a.createBlock)(p,{key:1,class:"orangehrm-buzz-stats-dialog","onUpdate:show":l.onClose},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",UW,[(0,a.createVNode)(m,{class:(0,a.normalizeClass)({"orangehrm-buzz-stats-dialog-icon":!0,"--likes":"likes"===o.type}),name:o.icon,"with-container":!0},null,8,["class","name"]),"shares"===o.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.n_share",{shareCount:e.total})),1)])),_:1})):(0,a.createCommentVNode)("",!0),"likes"===o.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.n_like",{likesCount:e.total})),1)])),_:1})):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(u),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.users,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:e,class:"orangehrm-buzz-stats-dialog-employee"},[(0,a.createVNode)(i,{employee:e.employee},null,8,["employee"]),(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-stats-dialog-employee-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.fullName),1)])),_:2},1024)])))),128)),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-buzz-loader"})):(0,a.createCommentVNode)("",!0)])),_:1},8,["onUpdate:show"])):((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,gutters:!1,type:"white",class:"orangehrm-buzz-stats-modal"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.users,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:e,class:"orangehrm-buzz-stats-modal-employee"},[(0,a.createVNode)(i,{employee:e.employee},null,8,["employee"]),(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-stats-modal-employee-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.fullName),1)])),_:2},1024)])))),128)),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-buzz-loader"})):(0,a.createCommentVNode)("",!0)])),_:1}))}var PW={name:"PostStatsModal",components:{"oxd-icon":q.OxdIcon,"oxd-sheet":q.OxdSheet,"oxd-dialog":q.OxdDialog,"profile-image":uH,"oxd-loading-spinner":q.OxdSpinner},props:{postId:{type:Number,required:!0},type:{type:String,required:!0},icon:{type:String,required:!0},mobile:{type:Boolean,default:!1}},emits:["close"],setup(e,t){let o;const l=10,{$tEmpName:n}=xa();switch(e.type){case"likes":o=`/api/v2/buzz/shares/${e.postId}/likes`;break;case"shares":o=`/api/v2/buzz/posts/${e.postId}/shares`;break;default:break}const r=new P(window.appGlobal.baseUrl,o),i=(0,a.reactive)({total:0,offset:0,users:[],isLoading:!1}),s=()=>{i.isLoading=!0,r.getAll({limit:l,offset:i.offset}).then((e=>{const{data:t,meta:o}=e.data;if(i.total=o?.total||0,Array.isArray(t)){const e=t.map((e=>{const{employee:t}=e;return{employee:t,fullName:n(t,{includeMiddle:!1,excludePastEmpTag:!1})}}));i.users=[...i.users,...e]}})).finally((()=>i.isLoading=!1))};lR((()=>{i.users.length>=i.total||(i.offset+=l,s())})),(0,a.onBeforeMount)((()=>s()));const d=()=>{t.emit("close")};return{onClose:d,fetchData:s,...(0,a.toRefs)(i)}}};const qW=(0,r.Z)(PW,[["render",AW],["__scopeId","data-v-77c45dfa"]]);var MW=qW,FW={name:"PostStats",components:{"oxd-icon":q.OxdIcon,"post-stats-modal":MW},directives:{"click-outside":q.clickOutsideDirective},props:{post:{type:Object,required:!0},mobile:{type:Boolean,default:!1}},emits:["comment"],data(){return{showLikeList:!1,showSharesList:!1}},computed:{likesCount(){return this.$t("buzz.n_like",{likesCount:this.post.stats?.numOfLikes||0})},sharesCount(){return null===this.post.stats?.numOfShares?null:this.$t("buzz.n_share",{shareCount:this.post.stats?.numOfShares||0})},commentsCount(){return this.$t("buzz.n_comment",{commentCount:this.post.stats?.numOfComments||0})},likesClasses(){return{"orangehrm-buzz-stats-active":this.post.stats?.numOfLikes>0}},sharesClasses(){return{"orangehrm-buzz-stats-active":this.post.stats?.numOfShares>0}}},methods:{onShowComments(){this.$emit("comment")},onShowLikeList(){this.showSharesList=!1,this.post.stats?.numOfLikes&&(this.showLikeList=!0)},onShowSharesList(){this.showLikeList=!1,this.post.stats?.numOfShares&&(this.showSharesList=!0)},onClose(){this.showLikeList=!1,this.showSharesList=!1}}};const jW=(0,r.Z)(FW,[["render",LW],["__scopeId","data-v-096b057d"]]);var zW=jW;const RW={class:"orangehrm-buzz-create-post-header"},OW={class:"orangehrm-buzz-create-post-header-text"},GW={class:"orangehrm-buzz-create-post-actions"};function ZW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-buzz-post-input"),c=(0,a.resolveComponent)("oxd-form"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-glass-button"),p=(0,a.resolveComponent)("oxd-sheet"),h=(0,a.resolveComponent)("share-video-modal"),g=(0,a.resolveComponent)("share-photo-modal");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(p,{class:"orangehrm-buzz-create-post"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",RW,[(0,a.createVNode)(i,{employee:o.employee},null,8,["employee"]),(0,a.createElementVNode)("div",OW,[(0,a.createVNode)(c,{onSubmitValid:l.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.post,"onUpdate:modelValue":t[0]||(t[0]=e=>l.post=e),rules:l.rules,placeholder:e.$t("buzz.post_placeholder")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{type:"submit",label:e.$t("buzz.post")},null,8,["label"])])),_:1},8,["modelValue","rules","placeholder"])])),_:1},8,["onSubmitValid"])])]),(0,a.createVNode)(m),(0,a.createElementVNode)("div",GW,[(0,a.createVNode)(u,{icon:"cameraglass",label:e.$t("buzz.share_photos"),onClick:l.onClickSharePhotos},null,8,["label","onClick"]),(0,a.createVNode)(u,{icon:"videoglass",label:e.$t("buzz.share_video"),onClick:l.onClickShareVideos},null,8,["label","onClick"])])])),_:1}),l.showVideoModal?((0,a.openBlock)(),(0,a.createBlock)(h,{key:0,text:l.post,employee:o.employee,onClose:l.onCloseVideoModal},null,8,["text","employee","onClose"])):(0,a.createCommentVNode)("",!0),l.showPhotoModal?((0,a.openBlock)(),(0,a.createBlock)(g,{key:1,text:l.post,employee:o.employee,onClose:l.onClosePhotoModal},null,8,["text","employee","onClose"])):(0,a.createCommentVNode)("",!0)],64)}function QW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-buzz-post-input"),s=(0,a.resolveComponent)("oxd-input-field"),d=(0,a.resolveComponent)("video-frame"),c=(0,a.resolveComponent)("post-modal");return(0,a.openBlock)(),(0,a.createBlock)(c,{loading:e.isLoading,title:e.$t("buzz.share_video"),onSubmit:l.onSubmit,onClose:t[2]||(t[2]=t=>e.$emit("close",!1))},{header:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:e.post.text,"onUpdate:modelValue":t[0]||(t[0]=t=>e.post.text=t),rules:l.rules.text,placeholder:e.$t("buzz.post_placeholder")},null,8,["modelValue","rules","placeholder"])])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:e.post.url,"onUpdate:modelValue":t[1]||(t[1]=t=>e.post.url=t),type:"textarea",rules:l.rules.url,label:e.$t("buzz.video_url"),placeholder:e.$t("buzz.paste_video_url")},null,8,["modelValue","rules","label","placeholder"]),e.embedURL?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"video-src":e.embedURL},null,8,["video-src"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","title","onSubmit"])}const HW={class:"orangehrm-modal-header"},WW={class:"orangehrm-buzz-post-modal-header"},YW={class:"orangehrm-buzz-post-modal-header-text"};function JW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("profile-image"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("oxd-form-actions"),u=(0,a.resolveComponent)("oxd-form"),p=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(p,{class:"orangehrm-dialog-modal",persistent:!0,"onUpdate:show":l.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",HW,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.title),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(u,{loading:o.loading,onSubmitValid:l.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",WW,[(0,a.createVNode)(d,{employee:o.employee},null,8,["employee"]),(0,a.createElementVNode)("div",YW,[(0,a.renderSlot)(e.$slots,"header",{},void 0,!0)])]),(0,a.renderSlot)(e.$slots,"default",{},void 0,!0),(0,a.createVNode)(m,{class:"orangehrm-buzz-post-modal-actions"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{type:"submit",disabled:o.disabled,label:o.actionLabel||e.$t("buzz.share")},null,8,["disabled","label"])])),_:1})])),_:3},8,["loading","onSubmitValid"])])),_:3},8,["onUpdate:show"])}var XW={name:"PostModal",components:{"oxd-dialog":q.OxdDialog,"profile-image":uH},props:{title:{type:String,required:!0},employee:{type:Object,required:!0},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},actionLabel:{type:String,default:null,required:!1}},emits:["close","submit"],setup(e,t){const o=()=>{t.emit("submit")},a=()=>{t.emit("close")};return{onSubmit:o,onCancel:a}}};const KW=(0,r.Z)(XW,[["render",JW],["__scopeId","data-v-cbb80b9a"]]);var eY=KW,tY={name:"ShareVideoModal",components:{"post-modal":eY,"video-frame":nH,"oxd-buzz-post-input":q.OxdBuzzPostInput},props:{text:{type:String,default:null}},emits:["close"],setup(e,t){const{$t:o}=Se(),l=new P(window.appGlobal.baseUrl,"/api/v2/buzz/posts"),n=(0,a.reactive)({post:{text:e.text||null,url:null},embedURL:null,isLoading:!1}),r={url:[jt,(0,q.promiseDebounce)((async e=>{if(!e)return!0;n.embedURL=null;const t=await l.request({method:"GET",url:"/api/v2/buzz/validation/links",params:{url:e}}),{data:a}=t.data;return!0===a?.valid?(n.embedURL=a.embeddedURL,!0):o("general.invalid_video_url_message")}),500)],text:[zt(65530)]},i=()=>{n.isLoading=!0,l.create({type:"video",link:n.post.url,text:n.post.text}).then((()=>t.emit("close",!0)))};return{rules:r,onSubmit:i,...(0,a.toRefs)(n)}}};const oY=(0,r.Z)(tY,[["render",QW]]);var aY=oY;function lY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-buzz-post-input"),s=(0,a.resolveComponent)("photo-input"),d=(0,a.resolveComponent)("post-modal");return(0,a.openBlock)(),(0,a.createBlock)(d,{loading:e.isLoading,disabled:l.isDisabled,title:e.$t("buzz.share_photos"),onSubmit:l.onSubmit,onClose:t[2]||(t[2]=t=>e.$emit("close",!1))},{header:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:e.post.text,"onUpdate:modelValue":t[0]||(t[0]=t=>e.post.text=t),rules:l.rules.text,placeholder:e.$t("buzz.post_placeholder")},null,8,["modelValue","rules","placeholder"])])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:e.post.photos,"onUpdate:modelValue":t[1]||(t[1]=t=>e.post.photos=t)},null,8,["modelValue"])])),_:1},8,["loading","disabled","title","onSubmit"])}const nY={class:"orangehrm-photo-input"},rY={class:"orangehrm-photo-input-field"};function iY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-alert"),d=(0,a.resolveComponent)("photo-upload-area"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("photo-frame");return(0,a.openBlock)(),(0,a.createElementBlock)("div",nY,[(0,a.createVNode)(s,{type:"error",show:!!l.validationMessage,message:l.validationMessage},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{name:"x",class:"orangehrm-photo-input-remove",onClick:l.onClickCloseAlert},null,8,["onClick"])])),_:1},8,["show","message"]),l.showUploadArea?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"onUpdate:modelValue":l.onFileChange},null,8,["onUpdate:modelValue"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",rY,[l.showUploadButton?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,type:"file",value:"","onUpdate:modelValue":l.onFileChange},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{"icon-name":"file-image",label:e.$t("buzz.add_photos")},null,8,["label"])])),_:1},8,["onUpdate:modelValue"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(u,{media:o.modelValue},{content:(0,a.withCtx)((({index:e})=>[(0,a.createVNode)(i,{name:"x",class:"orangehrm-photo-input-remove --float",onClick:t=>l.onClickRemove(e)},null,8,["onClick"])])),_:1},8,["media"])])}const sY={class:"orangehrm-photo-upload-area"};function dY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(d,{type:"file"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",sY,[(0,a.createVNode)(i,{class:"orangehrm-photo-upload-icon",name:"images"}),(0,a.createVNode)(s,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.add_photos")),1)])),_:1})])])),_:1})}var cY={name:"PhotoUploadArea",components:{"oxd-icon":q.OxdIcon}};const mY=(0,r.Z)(cY,[["render",dY],["__scopeId","data-v-42c23441"]]);var uY=mY,pY={name:"PhotoInput",components:{"oxd-alert":q.OxdAlert,"photo-frame":SW,"photo-upload-area":uY},props:{modelValue:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,t){const{$t:o}=Se(),l=(0,a.ref)(""),n=ro(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/x-png"]),r=no(2097152),i=a=>{if(a)return l.value="",!0!==r(a)?l.value=o("buzz.file_size_validation_message"):!0!==n(a)?l.value=o("buzz.file_type_validation_message"):void t.emit("update:modelValue",[...e.modelValue||[],a])},s=o=>{l.value="",t.emit("update:modelValue",(e.modelValue||[]).filter(((e,t)=>o!==t)))},d=()=>{l.value=""},c=(0,a.computed)((()=>Array.isArray(e.modelValue)&&e.modelValue.length<1)),m=(0,a.computed)((()=>Array.isArray(e.modelValue)&&e.modelValue.length>0&&e.modelValue.length<5));return{onFileChange:i,onClickRemove:s,showUploadArea:c,showUploadButton:m,onClickCloseAlert:d,validationMessage:l}}};const hY=(0,r.Z)(pY,[["render",iY],["__scopeId","data-v-7401001c"]]);var gY=hY,vY={name:"SharePhotoModal",components:{"post-modal":eY,"photo-input":gY,"oxd-buzz-post-input":q.OxdBuzzPostInput},props:{text:{type:String,default:null}},emits:["close"],setup(e,t){const o={text:[zt(65530)]},l=new P(window.appGlobal.baseUrl,"/api/v2/buzz/posts"),n=(0,a.reactive)({post:{text:e.text||null,photos:[]},isLoading:!1}),r=()=>{n.isLoading=!0,l.create({type:"photo",text:n.post.text,photos:n.post.photos}).then((()=>t.emit("close",!0)))},i=(0,a.computed)((()=>0===n.post.photos.length));return{rules:o,onSubmit:r,isDisabled:i,...(0,a.toRefs)(n)}}};const fY=(0,r.Z)(vY,[["render",lY]]);var yY=fY,CY={name:"CreatePost",components:{"oxd-sheet":q.OxdSheet,"profile-image":uH,"oxd-glass-button":q.OxdGlassButton,"oxd-buzz-post-input":q.OxdBuzzPostInput,"share-video-modal":aY,"share-photo-modal":yY},props:{employee:{type:Object,required:!0}},emits:["refresh"],setup(e,t){const o=(0,a.ref)(null),{saveSuccess:l}=yt(),n=(0,a.ref)(!1),r=(0,a.ref)(!1),i=[zt(65530)],s=new P(window.appGlobal.baseUrl,"/api/v2/buzz/posts"),d=()=>{null!==o.value&&""!==String(o.value).trim()&&s.create({type:"text",text:o.value}).then((()=>{l(),o.value=null,t.emit("refresh")}))},c=()=>{r.value=!0},m=()=>{n.value=!0},u=e=>{n.value=!1,e&&(l(),t.emit("refresh"))},p=e=>{r.value=!1,e&&(l(),t.emit("refresh"))};return{post:o,rules:i,onSubmit:d,showVideoModal:n,showPhotoModal:r,onCloseVideoModal:u,onClosePhotoModal:p,onClickSharePhotos:c,onClickShareVideos:m}}};const bY=(0,r.Z)(CY,[["render",ZW],["__scopeId","data-v-cc1398f0"]]);var VY=bY;const xY={class:"orangehrm-buzz-post-actions"};function wY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("post-like"),s=(0,a.resolveComponent)("post-comment"),d=(0,a.resolveComponent)("post-share");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xY,[(0,a.createVNode)(i,{like:o.post.liked,onClick:t[0]||(t[0]=e=>l.onClickAction("like"))},null,8,["like"]),(0,a.createVNode)(s,{onClick:t[1]||(t[1]=e=>l.onClickAction("comment"))}),(0,a.createVNode)(d,{onClick:t[2]||(t[2]=e=>l.onClickAction("share"))})])}const NY=e=>((0,a.pushScopeId)("data-v-e149abea"),e=e(),(0,a.popScopeId)(),e),_Y=(0,a.createStaticVNode)('',1),kY=[_Y],SY=NY((()=>(0,a.createElementVNode)("span",{class:"orangehrm-heart-icon-circle"},null,-1)));function DY(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)({"orangehrm-like-animation":o.like})},[((0,a.openBlock)(),(0,a.createElementBlock)("svg",{id:"heart-svg",class:"orangehrm-heart-icon",viewBox:"467 392 58 57",xmlns:"http://www.w3.org/2000/svg",onClick:t[0]||(t[0]=(...t)=>e.addLike&&e.addLike(...t))},kY)),SY],2)}var $Y={name:"PostLikeButton",props:{like:{type:Boolean,required:!0}}};const EY=(0,r.Z)($Y,[["render",DY],["__scopeId","data-v-e149abea"]]);var TY=EY;function BY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button");return(0,a.openBlock)(),(0,a.createBlock)(i,{name:"share-fill","with-container":!0})}var IY={name:"PostShareButton"};const LY=(0,r.Z)(IY,[["render",BY]]);var UY=LY;function AY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button");return(0,a.openBlock)(),(0,a.createBlock)(i,{name:"chat-text-fill","with-container":!0})}var PY={name:"PostCommentButton"};const qY=(0,r.Z)(PY,[["render",AY]]);var MY=qY,FY={name:"PostActions",components:{"post-like":TY,"post-share":UY,"post-comment":MY},props:{post:{type:Object,required:!0}},emits:["like","comment","share"],setup(e,t){let o=!1;const{updatePostLike:a}=rH(new P(window.appGlobal.baseUrl,"")),l=l=>{switch(l){case"comment":t.emit("comment");break;case"share":t.emit("share");break;case"like":o||(o=!0,a(e.post.id,e.post.liked).then((()=>{o=!1,t.emit("like")})));break;default:break}};return{onClickAction:l}}};const jY=(0,r.Z)(FY,[["render",wY],["__scopeId","data-v-f9d19a8e"]]);var zY=jY;const RY={key:2};function OY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-buzz-post-input"),s=(0,a.resolveComponent)("video-frame"),d=(0,a.resolveComponent)("photo-frame"),c=(0,a.resolveComponent)("oxd-text"),m=(0,a.resolveComponent)("photo-input"),u=(0,a.resolveComponent)("oxd-input-field"),p=(0,a.resolveComponent)("post-modal");return(0,a.openBlock)(),(0,a.createBlock)(p,{loading:e.isLoading,title:e.$t("buzz.edit_post"),"action-label":e.$t("buzz.post"),onSubmit:l.onSubmit,onClose:t[3]||(t[3]=t=>e.$emit("close",!1))},{header:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:e.post.text,"onUpdate:modelValue":t[0]||(t[0]=t=>e.post.text=t),rules:l.rules.text},null,8,["modelValue","rules"])])),default:(0,a.withCtx)((()=>[o.data.originalPost?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},["video"===o.data.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,"video-src":o.data.video.link},null,8,["video-src"])):(0,a.createCommentVNode)("",!0),"photo"===o.data.type?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,media:o.data.photoIds},null,8,["media"])):(0,a.createCommentVNode)("",!0),"video"===o.data.type||"photo"===o.data.type?((0,a.openBlock)(),(0,a.createElementBlock)("br",RY)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,{tag:"p",class:"orangehrm-buzz-share-employee"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.employee),1)])),_:1}),(0,a.createVNode)(c,{tag:"p",class:"orangehrm-buzz-share-date"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.dateTime),1)])),_:1}),l.originalPost.text?((0,a.openBlock)(),(0,a.createBlock)(c,{key:3,tag:"p",class:"orangehrm-buzz-share-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.text),1)])),_:1})):(0,a.createCommentVNode)("",!0)],64)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},["text"===e.post.type||"photo"===e.post.type?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,modelValue:e.post.photos,"onUpdate:modelValue":t[1]||(t[1]=t=>e.post.photos=t)},null,8,["modelValue"])):(0,a.createCommentVNode)("",!0),"video"===e.post.type?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1,modelValue:e.post.video,"onUpdate:modelValue":t[2]||(t[2]=t=>e.post.video=t),type:"textarea",rules:l.rules.url,label:e.$t("buzz.video_url")},null,8,["modelValue","rules","label"])):(0,a.createCommentVNode)("",!0),e.embedURL?((0,a.openBlock)(),(0,a.createBlock)(s,{key:2,"video-src":e.embedURL},null,8,["video-src"])):(0,a.createCommentVNode)("",!0)],64))])),_:1},8,["loading","title","action-label","onSubmit"])}var GY={name:"EditPostModal",components:{"post-modal":eY,"photo-frame":SW,"photo-input":gY,"video-frame":nH,"oxd-buzz-post-input":q.OxdBuzzPostInput},props:{data:{type:Object,required:!0}},emits:["close"],setup(e,t){const{$t:o}=Se(),{locale:l}=De(),{jsDateFormat:n,jsTimeFormat:r}=R(),{$tEmpName:i}=xa(),s=new P(window.appGlobal.baseUrl,""),{updateSuccess:d}=yt(),{updatePost:c,updateSharedPost:m}=rH(s),u=(0,a.reactive)({post:{text:e.data.text,type:e.data.type,photos:e.data.photoIds||[],video:e.data.video?.link||null},isLoading:!1,embedURL:e.data.video?.link||null}),p=()=>{let o="text";u.isLoading=!0,u.post.photos.length>0&&(o="photo"),u.post.video&&(o="video"),new Promise((t=>{e.data.originalPost?t(m(e.data.id,u.post.text)):t(c(e.data.post.id,{type:o,text:u.post.text,link:u.post.video,photos:u.post.photos.filter((e=>"object"===typeof e)),deletedPhotos:(e.data.photoIds||[]).filter((e=>-1===u.post.photos.findIndex((t=>t===e))))}))})).then((e=>{d(),t.emit("close",e.data)}))},h={url:[jt,(0,q.promiseDebounce)((async e=>{if(!e)return!0;u.embedURL=null;const t=await s.request({method:"GET",url:"/api/v2/buzz/validation/links",params:{url:e}}),{data:a}=t.data;return!0===a?.valid?(u.embedURL=a.embeddedURL,!0):o("general.invalid_video_url_message")}),500)],text:[zt(65530),t=>"video"===e.data.type||u.post.photos.length>0||jt(t)]},g=(0,a.computed)((()=>{const t=e.data.originalPost?.text,o=e.data.originalPost?.employee,{createdDate:a,createdTime:s}=e.data.originalPost,d=re(`${a} ${s} +00:00`,"yyyy-MM-dd HH:mm xxx");return{text:t,employee:i(o,{includeMiddle:!0,excludePastEmpTag:!1}),dateTime:ie(d,`${n} ${r}`,{locale:l})}}));return{rules:h,onSubmit:p,originalPost:g,...(0,a.toRefs)(u)}}};const ZY=(0,r.Z)(GY,[["render",OY],["__scopeId","data-v-d7bc64d6"]]);var QY=ZY;function HY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("post-actions-pill"),s=(0,a.resolveComponent)("photo-viewer"),d=(0,a.resolveComponent)("post-details");return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)(l.layoutClasses)},[l.showPhoto?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,post:o.post,"photo-index":o.photoIndex,onClose:t[1]||(t[1]=t=>e.$emit("close",!1))},{default:(0,a.withCtx)((()=>[o.mobile?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,post:o.post,onLike:t[0]||(t[0]=t=>e.$emit("like")),onComment:l.onClickComment},null,8,["post","onComment"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["post","photo-index"])):(0,a.createCommentVNode)("",!0),l.showDetails?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,post:o.post,mobile:o.mobile,onLike:t[2]||(t[2]=t=>e.$emit("like")),onClose:t[3]||(t[3]=t=>e.$emit("close",!1)),onCreateComment:t[4]||(t[4]=t=>e.$emit("createComment",t)),onDeleteComment:t[5]||(t[5]=t=>e.$emit("deleteComment",t))},null,8,["post","mobile"])):(0,a.createCommentVNode)("",!0)],2)}const WY={class:"orangehrm-photo-viewer"},YY=["src"],JY=["src"],XY={key:0,class:"orangehrm-photo-viewer-controls"},KY={class:"orangehrm-photo-viewer-actions"};function eJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",WY,[(0,a.createElementVNode)("img",{class:"orangehrm-photo-viewer-background",alt:"photo",src:l.selectedPhoto},null,8,YY),(0,a.createElementVNode)("img",{class:"orangehrm-photo-viewer-photo",alt:"background",src:l.selectedPhoto},null,8,JY),o.post.photoIds.length>1?((0,a.openBlock)(),(0,a.createElementBlock)("div",XY,[(0,a.createVNode)(i,{class:"orangehrm-photo-viewer-icon actions",name:"chevron-left",disabled:0===e.index,onClick:l.onClickPreviousPhoto},null,8,["disabled","onClick"]),(0,a.createVNode)(i,{class:"orangehrm-photo-viewer-icon actions",name:"chevron-right",disabled:e.index===o.post.photoIds.length-1,onClick:l.onClickNextPhoto},null,8,["disabled","onClick"])])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",KY,[(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)]),(0,a.createVNode)(i,{class:"orangehrm-photo-viewer-close actions",name:"x",onClick:l.onClickClose},null,8,["onClick"])])}var tJ={name:"PhotoViewer",props:{post:{type:Object,required:!0},photoIndex:{type:Number,required:!0}},emits:["close"],setup(e,t){const o=(0,a.reactive)({index:e.photoIndex}),l=()=>o.index++,n=()=>o.index--,r=(0,a.computed)((()=>{const t=e.post.photoIds[o.index];return`${window.appGlobal.baseUrl}/buzz/photo/${t}`})),i=e=>{e.key&&"Escape"!==e.key||t.emit("close")};return window.addEventListener("keydown",i),(0,a.onBeforeUnmount)((()=>window.removeEventListener("keydown",i))),{onClickClose:i,selectedPhoto:r,onClickNextPhoto:l,onClickPreviousPhoto:n,...(0,a.toRefs)(o)}}};const oJ=(0,r.Z)(tJ,[["render",eJ],["__scopeId","data-v-606dc22d"]]);var aJ=oJ;const lJ={class:"orangehrm-post-details"},nJ={class:"orangehrm-post-details-header"},rJ={class:"orangehrm-post-details-header-text"},iJ={class:"orangehrm-post-details-actions"};function sJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("profile-image"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-divider"),m=(0,a.resolveComponent)("post-like"),u=(0,a.resolveComponent)("post-stats"),p=(0,a.resolveComponent)("post-comment-container");return(0,a.openBlock)(),(0,a.createElementBlock)("div",lJ,[(0,a.createVNode)(i,{class:"orangehrm-post-details-close",name:"x","with-container":!1,onClick:l.onClickClose},null,8,["onClick"]),(0,a.createElementVNode)("div",nJ,[(0,a.createVNode)(s,{employee:o.post.employee},null,8,["employee"]),(0,a.createElementVNode)("div",rJ,[(0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-details-emp-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeFullName),1)])),_:1}),(0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-details-time"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.postDateTime),1)])),_:1})])]),o.post.text?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,tag:"p",class:(0,a.normalizeClass)(l.postClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.post.text),1)])),_:1},8,["class"])):(0,a.createCommentVNode)("",!0),(0,a.withDirectives)((0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-details-readmore",onClick:l.onClickReadMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.read_more")),1)])),_:1},8,["onClick"]),[[a.vShow,!l.readMore]]),(0,a.createVNode)(c),(0,a.createElementVNode)("div",iJ,[(0,a.createVNode)(m,{like:o.post.liked,onClick:l.onClickLike},null,8,["like","onClick"]),(0,a.createVNode)(u,{post:o.post,mobile:o.mobile},null,8,["post","mobile"])]),(0,a.createVNode)(c),(0,a.createVNode)(p,{"post-id":o.post.id,employee:o.post.employee,onCreate:t[0]||(t[0]=t=>e.$emit("createComment",t)),onDelete:t[1]||(t[1]=t=>e.$emit("deleteComment",t))},null,8,["post-id","employee"])])}const dJ={class:"orangehrm-buzz-comment"},cJ={class:"orangehrm-buzz-comment-add"},mJ={key:0};function uJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-input-field"),d=(0,a.resolveComponent)("oxd-form"),c=(0,a.resolveComponent)("post-comment"),m=(0,a.resolveComponent)("oxd-text"),u=(0,a.resolveComponent)("delete-confirmation"),p=(0,a.resolveDirective)("autofocus");return(0,a.openBlock)(),(0,a.createElementBlock)("div",dJ,[(0,a.createElementVNode)("div",cJ,[(0,a.createVNode)(i,{employee:o.employee},null,8,["employee"]),(0,a.createVNode)(d,{onSubmitValid:l.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createVNode)(s,{modelValue:e.text,"onUpdate:modelValue":t[0]||(t[0]=t=>e.text=t),placeholder:e.$t("buzz.write_your_comment")},null,8,["modelValue","placeholder"]),[[p]])])),_:1},8,["onSubmitValid"])]),e.total>0?((0,a.openBlock)(),(0,a.createElementBlock)("br",mJ)):(0,a.createCommentVNode)("",!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.comments,(e=>((0,a.openBlock)(),(0,a.createBlock)(c,{key:e,data:e,"post-id":o.postId,onEdit:l.onEditComment,onLike:l.onLikeComment,onDelete:l.onDeleteComment},null,8,["data","post-id","onEdit","onLike","onDelete"])))),128)),e.total>4?((0,a.openBlock)(),(0,a.createBlock)(m,{key:1,tag:"p",class:"orangehrm-buzz-comment-readmore",onClick:l.onClickShowMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.showAllComments?e.$t("general.show_less"):e.$t("general.show_more")),1)])),_:1},8,["onClick"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(u,{ref:"deleteDialog",message:e.$t("buzz.post_delete_confirmation_message")},null,8,["message"])])}function pJ(){const e={mounted(e){e&&e.querySelector("input")?.focus()}};return{autofocus:e}}const hJ={class:"orangehrm-comment-wrapper"},gJ={class:"orangehrm-post-comment"},vJ={key:1,class:"orangehrm-post-comment-area"},fJ={key:0,class:"orangehrm-post-comment-stats"},yJ={key:2,class:"orangehrm-post-comment-action-area"};function CJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-input-field"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-form"),m=(0,a.resolveComponent)("oxd-icon"),u=(0,a.resolveDirective)("autofocus");return(0,a.openBlock)(),(0,a.createElementBlock)("div",hJ,[(0,a.createVNode)(i,{employee:o.data.employee},null,8,["employee"]),(0,a.createElementVNode)("div",gJ,[e.edit?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,onSubmitValid:l.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createVNode)(s,{modelValue:e.comment,"onUpdate:modelValue":t[0]||(t[0]=t=>e.comment=t),rules:l.rules,onKeydown:(0,a.withKeys)((0,a.withModifiers)(l.onCancelComment,["stop"]),["esc"])},null,8,["modelValue","rules","onKeydown"]),[[u]]),(0,a.createVNode)(d,{tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.press_esc_to"))+" ",1)])),_:1}),(0,a.createVNode)(d,{tag:"span",class:"orangehrm-post-comment-action --cancel",onClick:l.onCancelComment},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.cancel")),1)])),_:1},8,["onClick"])])),_:1},8,["onSubmitValid"])):((0,a.openBlock)(),(0,a.createElementBlock)("div",vJ,[(0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-comment-employee"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeFullName),1)])),_:1}),(0,a.createVNode)(d,{tag:"span",class:(0,a.normalizeClass)({"orangehrm-post-comment-text":!0,"--truncate":!1===e.readMore})},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.comment),1)])),_:1},8,["class"]),(0,a.withDirectives)((0,a.createVNode)(d,{tag:"span",class:"orangehrm-post-comment-readmore",onClick:l.onClickReadMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.read_more")),1)])),_:1},8,["onClick"]),[[a.vShow,!e.readMore]]),(0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-comment-datetime"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.dateTime),1)])),_:1}),o.data.comment.numOfLikes>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",fJ,[(0,a.createVNode)(m,{name:"heart-fill",class:"orangehrm-post-comment-stats-icon"}),(0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-comment-stats-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.data.comment.numOfLikes),1)])),_:1})])):(0,a.createCommentVNode)("",!0)])),e.edit?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",yJ,[(0,a.createVNode)(d,{tag:"p",class:(0,a.normalizeClass)({"orangehrm-post-comment-action":!0,"--liked":!0===o.data.comment.liked}),onClick:l.onClickLike},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.like")),1)])),_:1},8,["class","onClick"]),o.data.permission.canUpdate?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,tag:"p",class:"orangehrm-post-comment-action",onClick:l.onClickEdit},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit")),1)])),_:1},8,["onClick"])):(0,a.createCommentVNode)("",!0),o.data.permission.canDelete?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,tag:"p",class:"orangehrm-post-comment-action",onClick:l.onClickDelete},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.delete")),1)])),_:1},8,["onClick"])):(0,a.createCommentVNode)("",!0)]))])])}var bJ={name:"PostComment",components:{"oxd-icon":q.OxdIcon,"profile-image":uH},directives:{...pJ()},props:{postId:{type:Number,required:!0},data:{type:Object,required:!0}},emits:["edit","delete","like"],setup(e,t){let o=!1;const{locale:l}=De(),{jsDateFormat:n,jsTimeFormat:r}=R(),{$tEmpName:i}=xa(),s=[jt,zt(65530)],d=(0,a.reactive)({edit:!1,comment:e.data.comment.text,readMore:new String(e.data.comment.text).length<500}),{updatePostComment:c,updateCommentLike:m}=rH(new P(window.appGlobal.baseUrl,"")),u=()=>{c(e.postId,e.data.comment.id,d.comment).then((()=>{d.edit=!1,t.emit("edit",e.data.comment.id)}))},p=()=>{d.edit=!0},h=()=>{o||(o=!0,m(e.data.comment.id,e.data.comment.liked).then((()=>{o=!1,t.emit("like",e.data.comment.id)})))},g=()=>{t.emit("delete",e.data.comment.id)},v=()=>{d.readMore=!d.readMore},f=()=>{d.comment=e.data.comment.text,d.edit=!1},y=(0,a.computed)((()=>{const{createdDate:t,createdTime:o}=e.data.comment,a=re(`${t} ${o} +00:00`,"yyyy-MM-dd HH:mm xxx");return ie(a,`${n} ${r}`,{locale:l})})),C=(0,a.computed)((()=>i(e.data.employee,{includeMiddle:!0,excludePastEmpTag:!1})));return{rules:s,dateTime:y,onSubmit:u,onClickLike:h,onClickEdit:p,onClickDelete:g,onClickReadMore:v,onCancelComment:f,employeeFullName:C,...(0,a.toRefs)(d)}}};const VJ=(0,r.Z)(bJ,[["render",CJ],["__scopeId","data-v-b16f1772"]]);var xJ=VJ,wJ={name:"PostCommentContainer",components:{"post-comment":xJ,"profile-image":uH,"delete-confirmation":Et},directives:{...pJ()},props:{postId:{type:Number,required:!0},employee:{type:Object,required:!0}},emits:["create","delete"],setup(e,t){const o=(0,a.ref)(),l=(0,a.reactive)({text:null,total:0,comments:[],showAllComments:!1}),{saveSuccess:n,updateSuccess:r,deleteSuccess:i}=yt(),{fetchPostComments:s,savePostComment:d,deletePostComment:c}=rH(new P(window.appGlobal.baseUrl,"")),m=()=>{s(e.postId,l.showAllComments?0:4,!0).then((e=>{const{data:t,meta:o}=e.data;l.total=o.total,l.comments=[...t]}))},u=()=>{l.text&&d(e.postId,l.text).then((()=>{l.text=null,m(),n(),t.emit("create")}))},p=()=>{l.showAllComments=!l.showAllComments,m()},h=()=>{m(),r()},g=a=>{o.value.showDialog().then((o=>{"ok"===o&&c(e.postId,a).then((()=>{m(),i(),t.emit("delete")}))}))},v=()=>{m()};return(0,a.onBeforeMount)((()=>m())),{onSubmit:u,deleteDialog:o,onLikeComment:v,onEditComment:h,onClickShowMore:p,onDeleteComment:g,...(0,a.toRefs)(l)}}};const NJ=(0,r.Z)(wJ,[["render",uJ],["__scopeId","data-v-58a27a86"]]);var _J=NJ,kJ={name:"PostDetails",components:{"post-stats":zW,"post-like":TY,"profile-image":uH,"post-comment-container":_J},props:{post:{type:Object,required:!0},mobile:{type:Boolean,default:!1}},emits:["like","close","createComment","deleteComment"],setup(e,t){let o=!1;const{locale:l}=De(),{jsDateFormat:n,jsTimeFormat:r}=R(),{$tEmpName:i}=xa(),s=(0,a.ref)(new String(e.post?.text).length<500),{updatePostLike:d}=rH(new P(window.appGlobal.baseUrl,"")),c=(0,a.computed)((()=>{const{createdDate:t,createdTime:o}=e.post,a=re(`${t} ${o} +00:00`,"yyyy-MM-dd HH:mm xxx");return ie(a,`${n} ${r}`,{locale:l})})),m=(0,a.computed)((()=>i(e.post.employee,{includeMiddle:!0,excludePastEmpTag:!1}))),u=()=>t.emit("close"),p=()=>{o||(o=!0,d(e.post.id,e.post.liked).then((()=>{o=!1,t.emit("like")})))},h=(0,a.computed)((()=>({"orangehrm-post-details-text":!0,"--truncate":!1===s.value}))),g=()=>{s.value=!s.value};return{readMore:s,postClasses:h,onClickLike:p,onClickClose:u,postDateTime:c,onClickReadMore:g,employeeFullName:m}}};const SJ=(0,r.Z)(kJ,[["render",sJ],["__scopeId","data-v-486acada"]]);var DJ=SJ;const $J={class:"orangehrm-buzz-pill"},EJ={class:"orangehrm-buzz-pill-actions"},TJ={class:"orangehrm-buzz-pill-stats"},BJ={class:"orangehrm-buzz-pill-stats-likes"},IJ={class:"orangehrm-buzz-pill-stats-other"};function LJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("post-like"),s=(0,a.resolveComponent)("post-comment"),d=(0,a.resolveComponent)("oxd-icon"),c=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",$J,[(0,a.createElementVNode)("div",EJ,[(0,a.createVNode)(i,{like:o.post.liked,onClick:l.onClickLike},null,8,["like","onClick"]),(0,a.createVNode)(s,{onClick:l.onClickComment},null,8,["onClick"])]),(0,a.createElementVNode)("div",TJ,[(0,a.createElementVNode)("div",BJ,[(0,a.createVNode)(d,{name:"heart-fill"}),(0,a.createVNode)(c,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.n_like",{likesCount:o.post.stats.numOfLikes})),1)])),_:1})]),(0,a.createElementVNode)("div",IJ,[(0,a.createVNode)(c,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.combinedPostStats),1)])),_:1})])])])}var UJ={name:"PostActionsPill",components:{"oxd-icon":q.OxdIcon,"post-like":TY,"post-comment":MY},props:{post:{type:Object,required:!0}},emits:["like","comment"],setup(e,t){let o=!1;const{updatePostLike:a}=rH(new P(window.appGlobal.baseUrl,"")),l=()=>{t.emit("comment")},n=()=>{o||(o=!0,a(e.post.id,e.post.liked).then((()=>{o=!1,t.emit("like")})))};return{onClickLike:n,onClickComment:l}},computed:{combinedPostStats(){const e=this.$t("buzz.n_comment",{commentCount:this.post.stats?.numOfComments||0}),t=this.$t("buzz.n_share",{shareCount:this.post.stats?.numOfShares||0});return null===this.post.stats?.numOfShares?e:`${e}, ${t}`}}};const AJ=(0,r.Z)(UJ,[["render",LJ],["__scopeId","data-v-0963cda2"]]);var PJ=AJ,qJ={name:"PhotoCarousel",components:{"photo-viewer":aJ,"post-details":DJ,"post-actions-pill":PJ},props:{post:{type:Object,required:!0},mobile:{type:Boolean,default:!1},photoIndex:{type:Number,required:!0}},emits:["like","close","createComment","deleteComment"],setup(e){const t=(0,a.reactive)({view:"photo",index:e.photoIndex}),o=()=>t.index++,l=()=>t.index--,n=()=>t.view="details",r=(0,a.computed)((()=>e.post.photoIds[t.index])),i=(0,a.computed)((()=>({"orangehrm-photo-carousel":!0,"--web":!1===e.mobile}))),s=(0,a.computed)((()=>!1===e.mobile||"photo"===t.view)),d=(0,a.computed)((()=>!1===e.mobile||"details"===t.view));return{showPhoto:s,showDetails:d,layoutClasses:i,selectedPhoto:r,onClickComment:n,onClickNextPhoto:o,onClickPreviousPhoto:l,...(0,a.toRefs)(t)}}};const MJ=(0,r.Z)(qJ,[["render",HY],["__scopeId","data-v-052f1294"]]);var FJ=MJ;const jJ={class:"orangehrm-buzz-post"},zJ={class:"orangehrm-buzz-post-header"},RJ={class:"orangehrm-buzz-post-header-details"},OJ={class:"orangehrm-buzz-post-header-text"},GJ={key:0,class:"orangehrm-buzz-post-header-config"},ZJ={class:"orangehrm-buzz-post-body"},QJ={class:"orangehrm-buzz-post-footer"};function HJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-icon-button"),c=(0,a.resolveComponent)("oxd-icon"),m=(0,a.resolveComponent)("oxd-dropdown"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-sheet");return(0,a.openBlock)(),(0,a.createBlock)(p,{gutters:!1,type:"white",class:"orangehrm-buzz"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",jJ,[(0,a.createElementVNode)("div",zJ,[(0,a.createElementVNode)("div",RJ,[(0,a.createVNode)(i,{employee:o.post.employee},null,8,["employee"]),(0,a.createElementVNode)("div",OJ,[(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-post-emp-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeFullName),1)])),_:1}),(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-post-time"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.postDateTime),1)])),_:1})])]),o.post.permission.canUpdate||o.post.permission.canDelete?((0,a.openBlock)(),(0,a.createElementBlock)("div",GJ,[(0,a.createVNode)(m,null,{content:(0,a.withCtx)((()=>[o.post.permission.canDelete?((0,a.openBlock)(),(0,a.createElementBlock)("li",{key:0,class:"orangehrm-buzz-post-header-config-item",onClick:t[0]||(t[0]=t=>e.$emit("delete",t))},[(0,a.createVNode)(c,{name:"trash"}),(0,a.createVNode)(s,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.delete_post")),1)])),_:1})])):(0,a.createCommentVNode)("",!0),o.post.permission.canUpdate?((0,a.openBlock)(),(0,a.createElementBlock)("li",{key:1,class:"orangehrm-buzz-post-header-config-item",onClick:t[1]||(t[1]=t=>e.$emit("edit",t))},[(0,a.createVNode)(c,{name:"pencil"}),(0,a.createVNode)(s,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.edit_post")),1)])),_:1})])):(0,a.createCommentVNode)("",!0)])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{name:"three-dots","with-container":!0})])),_:1})])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(u)]),(0,a.createElementVNode)("div",ZJ,[(0,a.renderSlot)(e.$slots,"content",{},void 0,!0),(0,a.renderSlot)(e.$slots,"body",{},void 0,!0)]),(0,a.createElementVNode)("div",QJ,[(0,a.renderSlot)(e.$slots,"actionButton",{},void 0,!0),(0,a.renderSlot)(e.$slots,"postStats",{},void 0,!0)]),(0,a.renderSlot)(e.$slots,"comments",{},void 0,!0)])),_:3})}var WJ={name:"PostContainer",components:{"oxd-icon":q.OxdIcon,"oxd-sheet":q.OxdSheet,"oxd-dropdown":q.OxdDropdownMenu,"profile-image":uH},props:{post:{type:Object,required:!0}},emits:["edit","delete"],setup(e){const{locale:t}=De(),{jsDateFormat:o,jsTimeFormat:l}=R(),{$tEmpName:n}=xa(),r=(0,a.computed)((()=>n(e.post.employee,{includeMiddle:!0,excludePastEmpTag:!1}))),i=(0,a.computed)((()=>{const{createdDate:a,createdTime:n}=e.post,r=re(`${a} ${n} +00:00`,"yyyy-MM-dd HH:mm xxx");return ie(r,`${o} ${l}`,{locale:t})}));return{postDateTime:i,employeeFullName:r}}};const YJ=(0,r.Z)(WJ,[["render",HJ],["__scopeId","data-v-061e7373"]]);var JJ=YJ;const XJ={key:2};function KJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-buzz-post-input"),s=(0,a.resolveComponent)("video-frame"),d=(0,a.resolveComponent)("photo-frame"),c=(0,a.resolveComponent)("oxd-text"),m=(0,a.resolveComponent)("post-modal");return(0,a.openBlock)(),(0,a.createBlock)(m,{loading:e.isLoading,title:e.$t("buzz.share_post"),onSubmit:l.onSubmit,onClose:t[1]||(t[1]=t=>e.$emit("close",!1))},{header:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:e.post.text,"onUpdate:modelValue":t[0]||(t[0]=t=>e.post.text=t),rules:l.rules.text,placeholder:e.$t("buzz.post_placeholder")},null,8,["modelValue","rules","placeholder"])])),default:(0,a.withCtx)((()=>["video"===o.data.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,"video-src":o.data.video.link},null,8,["video-src"])):(0,a.createCommentVNode)("",!0),"photo"===o.data.type?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,media:o.data.photoIds},null,8,["media"])):(0,a.createCommentVNode)("",!0),"video"===o.data.type||"photo"===o.data.type?((0,a.openBlock)(),(0,a.createElementBlock)("br",XJ)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,{tag:"p",class:"orangehrm-buzz-share-employee"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.employee),1)])),_:1}),(0,a.createVNode)(c,{tag:"p",class:"orangehrm-buzz-share-date"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.dateTime),1)])),_:1}),l.originalPost.text?((0,a.openBlock)(),(0,a.createBlock)(c,{key:3,tag:"p",class:"orangehrm-buzz-share-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.text),1)])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","title","onSubmit"])}var eX={name:"SharePostModal",components:{"post-modal":eY,"photo-frame":SW,"video-frame":nH,"oxd-buzz-post-input":q.OxdBuzzPostInput},props:{data:{type:Object,required:!0}},emits:["close"],setup(e,t){const{locale:o}=De(),{saveSuccess:l}=yt(),{jsDateFormat:n,jsTimeFormat:r}=R(),{$tEmpName:i}=xa(),s={text:[zt(65530)]},d=new P(window.appGlobal.baseUrl,"/api/v2/buzz/shares"),c=(0,a.reactive)({post:{text:null},isLoading:!1}),m=()=>{c.isLoading=!0,d.create({text:c.post.text,shareId:e.data.id}).then((()=>{l(),t.emit("close",!0)}))},u=(0,a.computed)((()=>{const t=e.data.originalPost?.text||e.data.text,a=e.data.originalPost?.employee||e.data.employee,{createdDate:l,createdTime:s}=e.data.originalPost||e.data,d=re(`${l} ${s} +00:00`,"yyyy-MM-dd HH:mm xxx");return{text:t,employee:i(a,{includeMiddle:!0,excludePastEmpTag:!1}),dateTime:ie(d,`${n} ${r}`,{locale:o})}}));return{rules:s,onSubmit:m,originalPost:u,...(0,a.toRefs)(c)}}};const tX=(0,r.Z)(eX,[["render",KJ],["__scopeId","data-v-67079a5e"]]);var oX=tX,aX={name:"NewsFeed",components:{"post-body":EW,"post-stats":zW,"create-post":VY,"post-actions":zY,"oxd-loading-spinner":q.OxdSpinner,"photo-carousel":FJ,"post-container":JJ,"edit-post-modal":QY,"share-post-modal":oX,"post-comment-container":_J,"delete-confirmation":Et},props:{employee:{type:Object,required:!0},sortField:{type:String,required:!0},mobile:{type:Boolean,default:!1}},setup(e){const t=10,o=(0,a.ref)(),{deleteSuccess:l}=yt(),{fetchPosts:n,deletePost:r}=rH(new P(window.appGlobal.baseUrl,"")),i=`${window.appGlobal.publicPath}/images/buzz_no_posts.svg`,s=(0,a.reactive)({total:0,offset:0,posts:[],isLoading:!1,showEditModal:!1,editModalState:null,showShareModal:!1,shareModalState:null,showPhotoCarousel:!1,photoCarouselState:null}),d=()=>{s.isLoading=!0,n(t,s.offset,"DESC",e.sortField).then((e=>{const{data:t,meta:o}=e.data;s.total=o.total||0,Array.isArray(t)&&(s.posts=[...s.posts,...t])})).finally((()=>s.isLoading=!1))};lR((()=>{s.posts.length>=s.total||(s.offset+=t,d())}));const c=e=>{s.posts[e].liked=!s.posts[e].liked,s.posts[e].liked?s.posts[e].stats.numOfLikes++:s.posts[e].stats.numOfLikes--},m=e=>{s.showEditModal=!0,s.editModalState={postIndex:e,post:s.posts[e]},document.body.style.overflow="hidden"},u=e=>{s.showShareModal=!0,s.shareModalState=s.posts[e],document.body.style.overflow="hidden"},p=e=>{s.posts[e].showComments?s.posts[e].showComments=!1:s.posts[e].showComments=!0},h=()=>{s.posts=[],s.offset=0,d()},g=(e,t)=>{s.photoCarouselState={postIndex:t,photoIndex:e,post:s.posts[t]},s.showPhotoCarousel=!0,document.body.style.overflow="hidden"},v=()=>{s.showPhotoCarousel=!1,s.photoCarouselState=null,document.body.style.overflow="auto"},f=e=>{s.showShareModal=!1,s.shareModalState=null,document.body.style.overflow="auto",e&&h()},y=e=>{const{data:t}=e;t&&(s.posts[s.editModalState.postIndex]={...t}),s.showEditModal=!1,s.editModalState=null,document.body.style.overflow="auto"},C=e=>{o.value.showDialog().then((t=>{"ok"===t&&r(s.posts[e].id).then((()=>{h(),l()}))}))},b=e=>{s.posts[e].stats.numOfComments++},V=e=>{s.posts[e].stats.numOfComments--};return(0,a.onBeforeMount)((()=>d())),(0,a.watch)((()=>e.sortField),(()=>{s.posts=[],s.offset=0,d()})),{onLike:c,onEdit:m,onShare:u,onDelete:C,resetFeed:h,onComment:p,noPostsPic:i,deleteDialog:o,onSelectPhoto:g,onCreateComment:b,onDeleteComment:V,onCloseEditModal:y,onCloseShareModal:f,onClosePhotoCarousel:v,...(0,a.toRefs)(s)}}};const lX=(0,r.Z)(aX,[["render",vW],["__scopeId","data-v-74e739a2"]]);var nX=lX;const rX={class:"orangehrm-post-filters"};function iX(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rX,[(0,a.createVNode)(i,{"icon-name":"clock-history",class:"orangehrm-post-filters-button",label:r.mostRecentButtonLabel,"display-type":r.mostRecentButtonType,onClick:t[0]||(t[0]=t=>e.$emit("updatePriority","share.createdAtUtc"))},null,8,["label","display-type"]),(0,a.createVNode)(i,{"icon-name":"heart-fill",class:"orangehrm-post-filters-button",label:r.mostLikesButtonLabel,"display-type":r.mostLikesButtonType,onClick:t[1]||(t[1]=t=>e.$emit("updatePriority","share.numOfLikes"))},null,8,["label","display-type"]),(0,a.createVNode)(i,{"icon-name":"chat-dots-fill",class:"orangehrm-post-filters-button",label:r.mostCommentsButtonLabel,"display-type":r.mostCommentsButtonType,onClick:t[2]||(t[2]=t=>e.$emit("updatePriority","share.numOfComments"))},null,8,["label","display-type"])])}var sX={name:"PostFilters",props:{filter:{type:String,required:!0},mobile:{type:Boolean,default:!1}},emits:["updatePriority"],computed:{isMostRecent(){return"share.createdAtUtc"===this.filter},isMostLikes(){return"share.numOfLikes"===this.filter},isMostComments(){return"share.numOfComments"===this.filter},mostRecentButtonType(){return this.isMostRecent?"label-warn":"text"},mostLikesButtonType(){return this.isMostLikes?"label-warn":"text"},mostCommentsButtonType(){return this.isMostComments?"label-warn":"text"},mostRecentButtonLabel(){return this.mobile?this.isMostRecent?this.$t("buzz.most_recent_posts"):"":this.$t("buzz.most_recent_posts")},mostLikesButtonLabel(){return this.mobile?this.isMostLikes?this.$t("buzz.most_liked_posts"):"":this.$t("buzz.most_liked_posts")},mostCommentsButtonLabel(){return this.mobile?this.isMostComments?this.$t("buzz.most_commented_posts"):"":this.$t("buzz.most_commented_posts")}}};const dX=(0,r.Z)(sX,[["render",iX],["__scopeId","data-v-5df7d87f"]]);var cX=dX;const mX={class:"orangehrm-buzz-anniversary"},uX={class:"orangehrm-buzz-anniversary-profile"},pX={class:"orangehrm-buzz-anniversary-profile-details"},hX={class:"orangehrm-buzz-anniversary-duration"},gX=["src"],vX={class:"orangehrm-buzz-anniversary-durations-text"},fX={key:0,class:"orangehrm-buzz-anniversary-nocontent"},yX=["src"],CX={key:0,class:"orangehrm-buzz-anniversary-footer"};function bX(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("profile-image");return(0,a.openBlock)(),(0,a.createElementBlock)("div",mX,[(0,a.createVNode)(i,{type:"card-title",class:"orangehrm-buzz-anniversary-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.upcoming_anniversaries")),1)])),_:1}),(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(["orangehrm-buzz-anniversary-content",{"--show-more":n.anniversariesCount>5}])},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.anniversaries,(t=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t,class:"orangehrm-buzz-anniversary-item"},[(0,a.createElementVNode)("div",uX,[(0,a.createVNode)(s,{employee:t},null,8,["employee"]),(0,a.createElementVNode)("div",pX,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-anniversary-emp-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.empName),1)])),_:2},1024),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-anniversary-job-details"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.jobTitle),1)])),_:2},1024)])]),(0,a.createElementVNode)("div",hX,[(0,a.createElementVNode)("img",{alt:"year celebration",class:"orangehrm-buzz-anniversary-year-celebration",src:l.celebrationPic},null,8,gX),(0,a.createElementVNode)("div",vX,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-anniversary-duration-years"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.anniversaryYear),1)])),_:2},1024),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-anniversary-duration-years"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.n_year",{yearsCount:t.anniversaryYear})),1)])),_:2},1024),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-anniversary-duration-date"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.joinedDate),1)])),_:2},1024)])])])))),128)),r.isEmpty?((0,a.openBlock)(),(0,a.createElementBlock)("div",fX,[(0,a.createElementVNode)("img",{src:l.noContentPic,alt:"No Content"},null,8,yX),(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.no_records_found")),1)])),_:1})])):(0,a.createCommentVNode)("",!0)],2),n.anniversariesCount>5?((0,a.openBlock)(),(0,a.createElementBlock)("div",CX,[(0,a.createVNode)(i,{tag:"p",onClick:r.onSeeMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.isViewDetails?e.$t("general.show_more"):e.$t("general.show_less")),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0)])}var VX={name:"UpcomingAnniversaries",components:{"profile-image":uH},setup(){const{locale:e}=De(),{$tEmpName:t}=xa(),o=`${window.appGlobal.publicPath}/images/year_celebration.png`,a=`${window.appGlobal.publicPath}/images/buzz_no_anniversaries.png`,l=new P(window.appGlobal.baseUrl,"/api/v2/buzz/anniversaries");return{http:l,locale:e,noContentPic:a,celebrationPic:o,tEmpName:t}},data(){return{viewMore:!1,isLoading:!1,anniversaries:[],anniversariesCount:0}},computed:{isViewDetails(){return!this.viewMore},isEmpty(){return!this.isLoading&&0===this.anniversaries.length}},beforeMount(){this.anniversariesLimit=5,this.getAnniversaries()},methods:{onSeeMore(){this.viewMore=!this.viewMore,this.viewMore?this.anniversariesLimit=0:this.anniversariesLimit=5,this.getAnniversaries()},getAnniversaries(){this.isLoading=!0,this.http.getAll({limit:this.anniversariesLimit}).then((e=>{const{data:t,meta:o}=e.data;this.anniversaries=t.map((e=>{const{employee:t,jobTitle:o,joinedDate:a}=e;return{empNumber:t.empNumber,empName:this.tEmpName(t,{includeMiddle:!1,excludePastEmpTag:!1}),jobTitle:o.title,joinedDate:ie(re(a),"MMM dd",{locale:this.locale}),anniversaryYear:(new Date).getFullYear()-new Date(a).getFullYear()}})),this.anniversariesCount=o?.total})).finally((()=>this.isLoading=!1))}}};const xX=(0,r.Z)(VX,[["render",bX],["__scopeId","data-v-7a43ba69"]]);var wX=xX,NX={components:{"news-feed":nX,"oxd-tab-panel":q.OxdTabPanel,"post-filters":cX,"oxd-tab-container":q.OxdTabContainer,"upcoming-anniversaries":wX},props:{employee:{type:Object,required:!0}},setup(){const{$t:e}=Se(),t=(0,a.ref)(null),o=(0,q.useResponsive)(),l=(0,a.ref)("share.createdAtUtc"),n=(0,a.computed)((()=>!(o.screenType===q.DEVICE_TYPES.DEVICE_LG||o.screenType===q.DEVICE_TYPES.DEVICE_XL))),r=(0,a.computed)((()=>o.windowWidth)),{swipeContainer:i}=pW((o=>{const a=o.offsetDirection;2===a&&(t.value=e("buzz.upcoming_anniversaries")),4===a&&(t.value=e("buzz.buzz_newsfeed"))})),s=e=>{e&&(l.value=e)};return{width:r,isMobile:n,sortField:l,tabSelector:t,onUpdatePriority:s,swipeRef:i}}};const _X=(0,r.Z)(NX,[["render",cW],["__scopeId","data-v-df9a4d4c"]]);var kX=_X,SX={"view-buzz":kX};const DX=e=>((0,a.pushScopeId)("data-v-b551a176"),e=e(),(0,a.popScopeId)(),e),$X={class:"orangehrm-system-check"},EX=DX((()=>(0,a.createElementVNode)("br",null,null,-1))),TX=DX((()=>(0,a.createElementVNode)("br",null,null,-1))),BX=DX((()=>(0,a.createElementVNode)("b",null,"/src/log",-1))),IX=DX((()=>(0,a.createElementVNode)("b",null,"/src/log/orangehrm.log",-1)));function LX(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("flex-table"),d=(0,a.resolveComponent)("oxd-button"),c=(0,a.resolveComponent)("oxd-form-actions"),m=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createBlock)(m,{loading:n.isLoading,class:(0,a.normalizeClass)(n.isLoading?"orangehrm-system-check-form-loading":"orangehrm-system-check-form")},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",$X,[(0,a.createVNode)(i,{tag:"h5",class:"orangehrm-system-check-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" System Check ")])),_:1}),EX,(0,a.createVNode)(i,{class:"orangehrm-system-check-content"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" To properly function the system, please ensure that all of the system check items listed below are green. If any are red, please take the necessary steps to fix them. ")])),_:1}),TX,n.error?.message?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,class:"orangehrm-system-check-content --error"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" An unexpected error occurred. Please provide the file write permission to "),BX,(0,a.createTextVNode)(" directory and check the error log in "),IX,(0,a.createTextVNode)(" file for more details. ")])),_:1})):(0,a.createCommentVNode)("",!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.items,(e=>((0,a.openBlock)(),(0,a.createBlock)(s,{key:e.category,items:e.checks,"title-name":e.category},null,8,["items","title-name"])))),128)),(0,a.createVNode)(c,{class:"orangehrm-system-check-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{class:"orangehrm-left-space","display-type":"ghost",label:"Re-Check",type:"submit",onClick:r.reCheck},null,8,["onClick"])])),_:1})]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])),_:3},8,["loading","class"])}const UX={class:"orangehrm-flex-table"};function AX(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider");return(0,a.openBlock)(),(0,a.createElementBlock)("div",UX,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-flex-table-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.titleName),1)])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-flex-table-divider"}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.items,((e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t,class:"orangehrm-flex-table-row"},[(0,a.createVNode)(i,{class:"orangehrm-flex-table-content"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)])),_:2},1024),(0,a.createVNode)(i,{class:(0,a.normalizeClass)(r.getClass(e.value.status))},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.value.message),1)])),_:2},1032,["class"])])))),128))])}var PX={name:"FlexTable",props:{titleName:{type:String,required:!0},items:{type:Array,required:!0,default:()=>[]}},methods:{getClass(e){return 1===e?"orangehrm-flex-table-value --success":2===e?"orangehrm-flex-table-value --warning":"orangehrm-flex-table-value --error"}}};const qX=(0,r.Z)(PX,[["render",AX],["__scopeId","data-v-29402b1e"]]);var MX=qX,FX={name:"SystemCheckScreen",components:{"flex-table":MX},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/core/system-check");return{http:e}},data(){return{items:[],isLoading:!1,isInterrupted:!1,error:null}},beforeMount(){this.fetchData()},methods:{fetchData(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t,meta:o}=e.data;this.items=t,this.isInterrupted=o.isInterrupted,this.error=o.error})).finally((()=>{this.isLoading=!1}))},reCheck(){this.fetchData()}}};const jX=(0,r.Z)(FX,[["render",LX],["__scopeId","data-v-b551a176"]]);var zX=jX,RX={"system-check":zX},OX={...Ym,...fx,...mt,...$x,...Uk,...wB,...zT,...XI,...mU,...WM,...eG,...GG,...AQ,...Ym,...dW,...SX,...RX};const GX=e=>(...t)=>{const o=(0,a.getCurrentInstance)();if(!o)throw new Error("Vue app context not found!");const l=(0,a.inject)("permissions",void 0);return!!l&&t.reduce(((t,o)=>t&&Boolean(l[o])&&l[o][e]),!0)};function ZX(){return{beforeCreate(){this.$can={read:GX("canRead"),create:GX("canCreate"),update:GX("canUpdate"),delete:GX("canDelete")}}}}var QX={install:e=>{e.mixin(ZX())}},HX=o(3416);const WX=we(),YX=(0,a.reactive)({toasts:[],transition:"",class:"",position:""}),JX=(0,a.defineComponent)({name:"OxdToaster",setup(){return{...(0,a.toRefs)(YX)}},computed:{classes(){return{"oxd-toast-container":!0,[`oxd-toast-container--${this.position}`]:!0}}},methods:{onUpdateShow(e,t){!1===e&&this.toasts.splice(t,1)}},render(){return(0,a.h)(a.TransitionGroup,{appear:!0,name:this.transition,tag:"div",class:this.classes},{default:()=>this.toasts.map(((e,t)=>(0,a.h)(q.OxdToast,{key:e.id,type:e.type,title:e.title,message:e.message,show:e.show,class:this.class,"onUpdate:show":e=>this.onUpdateShow(e,t)})))})}});var XX={install:(e,t)=>{const o=document.createElement("oxd-toaster");o.id="oxd-toaster_1",document.getElementById("app").appendChild(o);const a=e=>{if("string"===typeof e){const t=YX.toasts.findIndex((t=>t.id===e));t>-1&&a(t)}else YX.toasts[e]&&YX.toasts.splice(e,1)},l=e=>new Promise((o=>{const l=(0,HX.x0)(8);if(YX.toasts.push({...e,id:l}),t.persist)o(l);else{const e=t.duration?t.duration:2500;setTimeout((()=>{a(l),o(l)}),e)}})),n=e=>l({id:"",type:q.TOAST_TYPES.TYPE_SUCCESS,show:!0,...e}),r=e=>l({id:"",type:q.TOAST_TYPES.TYPE_ERROR,show:!0,...e}),i=e=>l({id:"",type:q.TOAST_TYPES.TYPE_INFO,show:!0,...e}),s=e=>l({id:"",type:q.TOAST_TYPES.TYPE_WARN,show:!0,...e}),d=e=>l({id:"",type:q.TOAST_TYPES.TYPE_DEFAULT,show:!0,...e}),c=()=>{YX.toasts=[]},m=()=>n({title:WX("general.success"),message:WX("general.successfully_saved")}),u=()=>n({title:WX("general.success"),message:WX("general.successfully_added")}),p=()=>n({title:WX("general.success"),message:WX("general.successfully_updated")}),h=()=>n({title:WX("general.success"),message:WX("general.successfully_deleted")}),g=()=>r({title:WX("general.error"),message:WX("general.cannot_be_deleted")}),v=()=>i({title:WX("general.info"),message:WX("general.no_records_found")}),f=e=>r({title:WX("general.error"),message:e??WX("general.unexpected_error")});YX.class=t.class?t.class:"oxd-toast-container--toast",YX.transition=t.animation?t.animation:"oxd-toast-list",YX.position=t.position?t.position:"bottom",e.component("OxdToaster",JX);const y={notify:l,show:d,success:n,error:r,info:i,warn:s,clear:a,clearAll:c,saveSuccess:m,addSuccess:u,updateSuccess:p,deleteSuccess:h,cannotDelete:g,noRecordsFound:v,unexpectedError:f};e.config.globalProperties.$toast=y}};const KX=(0,a.createApp)({name:"App",components:OX});KX.use(Ae),KX.use(XX,{duration:2500,persist:!1,animation:"oxd-toast-list",position:"bottom"});const eK=window.appGlobal.baseUrl,{i18n:tK,init:oK}=ke({baseUrl:eK,resourceUrl:"core/i18n/messages"});KX.use(QX),KX.use(tK),KX.config.globalProperties.global={baseUrl:eK},oK().then((()=>KX.mount("#app")))}},t={};function o(a){var l=t[a];if(void 0!==l)return l.exports;var n=t[a]={exports:{}};return e[a].call(n.exports,n,n.exports,o),n.exports}o.m=e,function(){var e=[];o.O=function(t,a,l,n){if(!a){var r=1/0;for(c=0;c=n)&&Object.keys(o.O).every((function(e){return o.O[e](a[s])}))?a.splice(s--,1):(i=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[a,l,n]}}(),function(){o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,{a:t}),t}}(),function(){o.d=function(e,t){for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce((function(t,a){return o.f[a](e,t),t}),[]))}}(),function(){o.u=function(e){return"js/"+e+".js"}}(),function(){o.miniCssF=function(e){}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="orangehrm:";o.l=function(a,l,n,r){if(e[a])e[a].push(l);else{var i,s;if(void 0!==n)for(var d=document.getElementsByTagName("script"),c=0;c0?((0,a.openBlock)(),(0,a.createElementBlock)("div",m,[(0,a.createVNode)(s,{tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_selected",{count:o.selected})),1)])),_:1}),(0,a.createVNode)(u,{label:e.$t("general.delete_selected"),"icon-name":"trash-fill","display-type":"label-danger",class:"orangehrm-horizontal-margin",onClick:t[0]||(t[0]=t=>e.$emit("delete",t))},null,8,["label"])])):((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_found",{count:o.total})),1)])),_:1}))])]))}var p={name:"TableHeader",props:{loading:{type:Boolean,required:!0},selected:{type:Number,required:!0},total:{type:Number,required:!0},showDivider:{type:Boolean,required:!1,default:!0}},emits:["delete"]};const h=(0,r.Z)(p,[["render",u],["__scopeId","data-v-0dea79bd"]]);var g=h;function v(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createBlock)(i,{tag:"p",class:"orangehrm-form-hint"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" * "+(0,a.toDisplayString)(e.$t("general.required")),1)])),_:1})}var f={name:"RequiredText"};const y=(0,r.Z)(f,[["render",v],["__scopeId","data-v-319fc346"]]);var C=y;const b=["href"],V={key:0},x=["href"],w=["href"];function N(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-layout"),d=(0,a.resolveComponent)("about");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,(0,a.normalizeProps)((0,a.guardReactiveProps)(e.$attrs)),(0,a.createSlots)({"user-actions":(0,a.withCtx)((()=>[(0,a.createElementVNode)("li",null,[(0,a.createElementVNode)("a",{href:"#",role:"menuitem",class:"oxd-userdropdown-link",onClick:t[0]||(t[0]=(...e)=>l.openAboutModel&&l.openAboutModel(...e))},(0,a.toDisplayString)(e.$t("general.about")),1)]),(0,a.createElementVNode)("li",null,[(0,a.createElementVNode)("a",{href:o.supportUrl,role:"menuitem",class:"oxd-userdropdown-link"},(0,a.toDisplayString)(e.$t("general.support")),9,b)]),o.updatePasswordUrl?((0,a.openBlock)(),(0,a.createElementBlock)("li",V,[(0,a.createElementVNode)("a",{href:o.updatePasswordUrl,role:"menuitem",class:"oxd-userdropdown-link"},(0,a.toDisplayString)(e.$t("general.change_password")),9,x)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("li",null,[(0,a.createElementVNode)("a",{href:o.logoutUrl,role:"menuitem",class:"oxd-userdropdown-link"},(0,a.toDisplayString)(e.$t("general.logout")),9,w)])])),"nav-actions":(0,a.withCtx)((()=>[(0,a.createVNode)(i,{name:"question-lg",title:e.$t("general.help"),onClick:l.onClickSupport},null,8,["title","onClick"])])),_:2},[(0,a.renderList)(e.$slots,((t,o)=>({name:o,fn:(0,a.withCtx)((t=>[(0,a.renderSlot)(e.$slots,o,(0,a.normalizeProps)((0,a.guardReactiveProps)(t)))]))})))]),1040),l.showAboutModel?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,onClose:l.closeAboutModel},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)],64)}const _={class:"orangehrm-modal-header"},k={key:0,class:"orangehrm-loader"};function S(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-loading-spinner"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(u,{style:{width:"90%",maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",_,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.about")),1)])),_:1})]),(0,a.createVNode)(s),n.isLoading?((0,a.openBlock)(),(0,a.createElementBlock)("div",k,[(0,a.createVNode)(d)])):((0,a.openBlock)(),(0,a.createBlock)(m,{key:1,cols:2,class:"orangehrm-about"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.company_name"))+": ",1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.data.companyName),1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.version"))+": ",1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.data.productName)+" "+(0,a.toDisplayString)(n.data.version),1)])),_:1})])),_:1}),void 0!==n.data.numberOfActiveEmployee?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.active_employees"))+": ",1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.data.numberOfActiveEmployee),1)])),_:1})])),_:1})],64)):(0,a.createCommentVNode)("",!0),void 0!==n.data.numberOfPastEmployee?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.employees_terminated"))+": ",1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-about-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.data.numberOfPastEmployee),1)])),_:1})])),_:1})],64)):(0,a.createCommentVNode)("",!0)])),_:1}))])),_:1},8,["onUpdate:show"])}var D=o(7327),$=o(8945);o(2801);class E{constructor(){(0,D.Z)(this,"_tempStorage",{})}clear(){this._tempStorage={}}getItem(e){return this._tempStorage[e]||null}key(e){return Object.keys(this._tempStorage)[e]||null}removeItem(e){delete this._tempStorage[e]}setItem(e,t){this._tempStorage[e]=t}}function T(e){try{const t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&e&&0!==e.length}}class B{constructor(e){(0,D.Z)(this,"_storage",void 0),T(e)?this._storage=e:this._storage=new E}clear(){this._storage.clear()}getItem(e){return this._storage.getItem(e)}key(e){return this._storage.key(e)}removeItem(e){this._storage.removeItem(e)}setItem(e,t){this._storage.setItem(e,t)}}const I=function(e,t={},o={}){let a=e;o=JSON.parse(JSON.stringify(o)),Object.keys(t).forEach((e=>{const o=`{${e}}`;if(a.includes(o)){let l=t[e];"number"===typeof l&&(l=l.toString()),a=a.replace(o,l)}else console.error("Invalid parameter.")}));let l="?";const n=Object.keys(o);return n.forEach(((e,t)=>{0!==t&&(l+="&");const a=o[e];Array.isArray(a)?a.forEach(((t,o)=>{0!==o&&(l+="&"),l+=`${e}[]=${t}`})):l+=`${e}=${a}`})),encodeURI(a+(0===n.length?"":l))},L=function(e,t={},o={}){return window.appGlobal.baseUrl+I(e,t,o)},U=function(e,t={},o={}){window.location.href=L(e,t,o)},A=function(){window.location.reload()};class P{constructor(e,t){(0,D.Z)(this,"_http",void 0),(0,D.Z)(this,"_baseUrl",void 0),(0,D.Z)(this,"_apiSection",void 0),(0,D.Z)(this,"_cacheStorage",void 0),(0,D.Z)(this,"_ignorePathRegex",void 0),this._baseUrl=e,this._apiSection=t,this._http=$.Z.create({baseURL:this._baseUrl}),this._cacheStorage=new B(localStorage),this.setupResponseInterceptors((0,a.getCurrentInstance)())}setIgnorePath(e){this._ignorePathRegex=new RegExp(e)}getAll(e){const t={"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0"};return this._http.get(this._apiSection,{headers:t,params:e})}get(e,t){const o={"Content-Type":"application/json"};return this._http.get(`${this._apiSection}/${e}`,{headers:o,params:t})}create(e){const t={"Content-Type":"application/json",Accept:"application/json"};return this._http.post(this._apiSection,e,{headers:t})}update(e,t){const o={"Content-Type":"application/json"};return this._http.put(`${this._apiSection}/${e}`,t,{headers:o})}delete(e){const t={"Content-Type":"application/json"};return this._http.delete(`${this._apiSection}/${e}`,{headers:t})}deleteAll(e){const t={"Content-Type":"application/json"};return this._http.delete(`${this._apiSection}`,{headers:t,data:e})}request(e){const t={"Content-Type":"application/json"};return this._http.request({url:this._apiSection,headers:t,...e})}ignoreError(e){if(this._ignorePathRegex&&(422===e.response?.status||400===e.response?.status)){const t=e.response.config.url??"";return this._ignorePathRegex.test(t)}return!1}setupResponseInterceptors(e){this._http.interceptors.response.use((e=>e),(t=>{if(401===t.response?.status)return A(),Promise.reject();if(this.ignoreError(t))return Promise.reject(t.response);const o=e?.appContext.config.globalProperties.$toast;if(o&&"ECONNABORTED"!==t.code){const e=t.response?.data;o.unexpectedError(e?.error.message||null)}return Promise.reject(t)}));{const e=e=>e.startsWith("W/")?e.substring(2):e;this._http.interceptors.request.use((e=>{if(e.url){const t=e.url,o=this._cacheStorage.getItem(t);o&&(e.headers={...e.headers,"If-None-Match":o})}return e}),(e=>Promise.reject(e))),this._http.interceptors.response.use((t=>{const{config:o,headers:a}=t;if(o.url&&a){const l=o.url,n=a["etag"],r=this._cacheStorage.getItem(l);n&&n!==r&&(this._cacheStorage.removeItem(l),this._cacheStorage.setItem(l,e(n)),r&&this._cacheStorage.removeItem(r),this._cacheStorage.setItem(e(n),JSON.stringify(t.data)))}return t}),(t=>{if(304===t.response?.status){const o=t.response.headers["etag"];if(o){const a=this._cacheStorage.getItem(e(o));if(a)return Promise.resolve({...t.response,status:200,data:JSON.parse(a)})}}return Promise.reject(t)}))}}get http(){return this._http}get baseUrl(){return this._baseUrl}set apiSection(e){this._apiSection=e}}var q=o(756),M={components:{"oxd-loading-spinner":q.OxdSpinner,"oxd-dialog":q.OxdDialog},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/core/about");return{http:e}},data(){return{isLoading:!1,data:null}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.data={...t}})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){this.$emit("close",!0)}}};const F=(0,r.Z)(M,[["render",S],["__scopeId","data-v-df10eb5c"]]);var j=F;const z=Symbol("dateFormat");function R(){const e=(0,a.inject)(z);if(!e)throw new Error("Date format is invalid");const t=(0,q.convertPHPDateFormat)(e.id),o=e.label,l="HH:mm",n="hh:mm a";return{timeFormat:l,jsTimeFormat:n,jsDateFormat:t,userDateFormat:o}}var O={components:{about:j,"oxd-layout":q.OxdLayout},inheritAttrs:!1,props:{permissions:{type:Object,default:()=>({})},logoutUrl:{type:String,default:"#"},supportUrl:{type:String,default:"#"},updatePasswordUrl:{type:String,default:"#"},dateFormat:{type:Object,default:null},helpUrl:{type:String,default:null}},setup(e){const t=(0,a.ref)(!1);(0,a.provide)("permissions",(0,a.readonly)(e.permissions)),(0,a.provide)(z,(0,a.readonly)(e.dateFormat));const o=()=>{t.value=!0},l=()=>{t.value=!1},n=()=>{e.helpUrl&&window.open(e.helpUrl,"_blank")};return{onClickSupport:n,showAboutModel:t,openAboutModel:o,closeAboutModel:l}}};const G=(0,r.Z)(O,[["render",N]]);var Z=G;function Q(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"date",placeholder:l.userDateFormat,"day-attributes":e.attributes,events:e.events,"display-format":l.jsDateFormat,locale:l.locale,onSelectYear:l.onSelectYear},null,8,["placeholder","day-attributes","events","display-format","locale","onSelectYear"])}var H=o(2034),W=o(1132),Y=o(9474),J=o(3151),X=o(2300),K=o(1699),ee=o(8148),te=o(876),oe=o(7349),ae=o(1085);const le=[{offset:0,label:"Europe/London"},{offset:1,label:"Europe/Belgrade"},{offset:2,label:"Europe/Minsk"},{offset:3,label:"Asia/Kuwait"},{offset:4,label:"Asia/Muscat"},{offset:5,label:"Asia/Yekaterinburg"},{offset:5.5,label:"Asia/Kolkata"},{offset:6,label:"Asia/Dhaka"},{offset:7,label:"Asia/Krasnoyarsk"},{offset:8,label:"Asia/Brunei"},{offset:9,label:"Asia/Seoul"},{offset:9.5,label:"Australia/Darwin"},{offset:10,label:"Australia/Canberra"},{offset:11,label:"Asia/Magadan"},{offset:12,label:"Pacific/Fiji"},{offset:-11,label:"Pacific/Midway"},{offset:-10,label:"Pacific/Honolulu"},{offset:-9,label:"America/Anchorage"},{offset:-8,label:"America/Los_Angeles"},{offset:-7,label:"America/Denver"},{offset:-6,label:"America/Tegucigalpa"},{offset:-5,label:"America/New_York"},{offset:-4,label:"America/Halifax"},{offset:-3.5,label:"America/St_Johns"},{offset:-3,label:"America/Argentina/Buenos_Aires"},{offset:-2,label:"Atlantic/South_Georgia"},{offset:-1,label:"Atlantic/Azores"}],ne=()=>new Date((new Date).setHours(0,0,0,0)),re=(e,t="yyyy-MM-dd",o={})=>{try{const a=(0,H.Z)(e,t,ne(),o);return!isNaN(a.valueOf())&&a.getFullYear()>=1e3?a:null}catch(a){return null}},ie=(e,t,o={})=>{try{return(0,W.Z)(e,t,o)}catch(a){return null}},se=(e,t,o)=>{const a=re(e,o),l=re(t,o);return!(!a||!l)&&-1===(0,Y.Z)(a,l)},de=(e,t,o)=>{const a=re(e,o),l=re(t,o);return!(!a||!l)&&1===(0,Y.Z)(a,l)},ce=(e,t,o)=>{const a=re(e,o),l=re(t,o);return!(!a||!l)&&0===(0,Y.Z)(a,l)},me=(e,t)=>re(e,t),ue=(e,t,o={})=>ie(e,t,o),pe=(e,t,o)=>{const a=re(e,o),l=re(t,o);if(a&&l){if(a.valueOf()l.valueOf())return-1;if(a.valueOf()===l.valueOf())return 0}return NaN},he=(e,t,o="yyyy-MM-dd")=>{const a=re(e,o),l=re(t,o);return a&&l?(0,J.Z)(l,a)?1:(0,X.Z)(l,a)+1:0},ge=(e,t,o="HH:mm")=>{const a=me(e,o),l=me(t,o);if(a&&l){const e=(0,K.Z)(l,a);if(e>0)return e}return 0},ve=e=>{const t=Math.floor(e/3600),o=Math.floor((e-3600*t)/60);return`${t.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`},fe=e=>{if(/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(e)){const t=e.split(":");return 60*parseInt(t[0])*60+60*parseInt(t[1])}return parseFloat(e)<24&&/^([0-9])+(?:\.[0-9]{1,2})?$/.test(e)?60*parseFloat(e)*60:-1},ye=(e,t=1e3)=>{t=t<1e3?1e3:t;const o=()=>{e(),setTimeout(o,t-(new Date).getTime()%t)};o()},Ce=e=>(e>0?"+":"-")+String(Math.abs(e).toFixed(2)).split(".").map(((e,t)=>0===t?e.padStart(2,"0"):String(.6*parseInt(e)).padEnd(2,"0"))).join(":"),be=()=>{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;const t=(new Date).getTimezoneOffset()/60*-1;if(void 0===e){const o=le.find((e=>e.offset===t));e=o?o.label:le[0].label}const o=Ce(t);return{name:e,label:`(GMT ${o}) ${e}`,offset:t}};var Ve=o(6791);const xe={},we=()=>(e,t={})=>{try{if(!xe[e])return e;const o=xe[e].format(t);return Array.isArray(o)?"string"===typeof o[0]?o[0]:e:o}catch(o){return console.error(o),e}},Ne=()=>({beforeCreate(){this.$t=we()}});function _e(e){const t=new P(e.baseUrl,e.resourceUrl);return{init:function(){return new Promise((e=>{t.request({method:"GET",headers:{Accept:"application/json",contentType:"application/json",...!1}}).then((e=>{const{data:t}=e,o={};for(const a in t)o[a]=t[a].target||t[a].source,xe[a]=new Ve.ZP(t[a].target||t[a].source,void 0,void 0,{ignoreTag:!0});q.StoreService.mergeConfig({language:o})})).finally((()=>e()))}))},i18n:function(e){e.mixin(Ne())}}}var ke=_e;function Se(){const e=we();return{$t:e}}function De(){const{$t:e}=Se(),t=(0,q.buildLocale)({months:{wide:[e("general.january"),e("general.february"),e("general.march"),e("general.april"),e("general.may"),e("general.june"),e("general.july"),e("general.august"),e("general.september"),e("general.october"),e("general.november"),e("general.december")],abbreviated:[e("general.jan"),e("general.feb"),e("general.mar"),e("general.apr"),e("general.may"),e("general.jun"),e("general.jul"),e("general.aug"),e("general.sep"),e("general.oct"),e("general.nov"),e("general.dec")]},days:{abbreviated:[e("general.sun"),e("general.mon"),e("general.tue"),e("general.wed"),e("general.thu"),e("general.fri"),e("general.sat")],wide:[e("general.sunday"),e("general.monday"),e("general.tuesday"),e("general.wednesday"),e("general.thursday"),e("general.friday"),e("general.saturday")]}});return{locale:t}}var $e={name:"DateInput",setup(){const e=(0,a.reactive)({attributes:[],events:[]}),t=new P(window.appGlobal.baseUrl,""),{jsDateFormat:o,userDateFormat:l}=R(),{locale:n}=De(),r=e=>e>=200&&e<300||403===e,i=async()=>{t.request({method:"GET",url:"/api/v2/leave/workweek",params:{model:"indexed"},validateStatus:r}).then((({data:t})=>{t?.data&&(e.attributes=Object.keys(t.data).map((e=>({index:parseInt(e),class:8===t.data[e]?"--non-working-day":4===t.data[e]?"--working-day-half":""}))))}))},s=async(o,a)=>{t.request({method:"GET",url:"/api/v2/leave/holidays",params:{fromDate:o,toDate:a},validateStatus:r}).then((({data:t})=>{Array.isArray(t?.data)&&(e.events=t.data.map((e=>({date:re(e.date,"yyyy-MM-dd"),type:e.name,class:0===e.length?"--holiday-full":"--holiday-half"}))))}))},d=async({year:e})=>{const t=(new Date).setFullYear(e),o=ie((0,ee.Z)(t),"yyyy-MM-dd"),a=ie((0,te.Z)(t),"yyyy-MM-dd");s(o,a)};return(0,a.onBeforeMount)((async()=>{await i(),await d({year:(new Date).getFullYear()})})),{jsDateFormat:o,userDateFormat:l,...(0,a.toRefs)(e),onSelectYear:d,locale:n}}};const Ee=(0,r.Z)($e,[["render",Q]]);var Te=Ee;function Be(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"time",step:15,placeholder:e.$t("attendance.hh_mm")},null,8,["placeholder"])}var Ie={name:"TimeInput"};const Le=(0,r.Z)(Ie,[["render",Be]]);var Ue=Le,Ae={install:e=>{e.component("OxdLayout",Z),e.component("OxdCardTable",q.OxdCardTable),e.component("OxdButton",q.OxdButton),e.component("OxdPagination",q.OxdPagination),e.component("OxdDivider",q.OxdDivider),e.component("OxdText",q.OxdText),e.component("OxdIconButton",q.OxdIconButton),e.component("OxdForm",q.OxdForm),e.component("OxdFormRow",q.OxdFormRow),e.component("OxdFormActions",q.OxdFormActions),e.component("OxdInputField",q.OxdInputField),e.component("OxdInputGroup",q.OxdInputGroup),e.component("OxdGrid",q.OxdGrid),e.component("OxdGridItem",q.OxdGridItem),e.component("OxdTableFilter",q.OxdTableFilter),e.component("SubmitButton",s),e.component("TableHeader",g),e.component("RequiredText",C),e.component("DateInput",Te),e.component("TimeInput",Ue)}};function Pe(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-alert");return(0,a.openBlock)(),(0,a.createBlock)(i,{show:!0,type:"warn",message:e.$t("general.no_records_found")},null,8,["message"])}var qe={components:{"oxd-alert":q.OxdAlert}};const Me=(0,r.Z)(qe,[["render",Pe]]);var Fe=Me;function je(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-alert");return(0,a.openBlock)(),(0,a.createBlock)(i,{show:!0,type:"warn",message:e.$t("general.bad_request")},null,8,["message"])}var ze={components:{"oxd-alert":q.OxdAlert}};const Re=(0,r.Z)(ze,[["render",je]]);var Oe=Re;const Ge={class:"orangehrm-background-container"},Ze={class:"orangehrm-card-container"},Qe={class:"orangehrm-module-under-development"},He=["src"],We={target:"_blank",class:"orangehrm-module-under-development-link",href:"https://sourceforge.net/projects/orangehrm/files/latest/download"};function Ye(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ge,[(0,a.createElementVNode)("div",Ze,[(0,a.createElementVNode)("div",Qe,[(0,a.createVNode)(i,{tag:"h4",class:"orangehrm-module-under-development-heading"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.launching_soon")),1)])),_:1}),(0,a.createElementVNode)("img",{src:n.moduleUnderDevelopment,class:"orangehrm-module-under-development-img",alt:"this module is under development"},null,8,He),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-under-development-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.this_page_is_being_developed",{version:"5.4"}))+" ",1),(0,a.createElementVNode)("a",We,(0,a.toDisplayString)(e.$t("general.click_here")),1),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("general.download_latest_release_with_all_features")),1)])),_:1})])])])}var Je={data(){return{moduleUnderDevelopment:`${window.appGlobal.publicPath}/images/web_under_construction.png`}}};const Xe=(0,r.Z)(Je,[["render",Ye],["__scopeId","data-v-c0c6b572"]]);var Ke=Xe;const et={class:"orangehrm-background-container"},tt={class:"orangehrm-card-container"},ot={class:"orangehrm-module-disabled"};function at(e,t){const o=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",et,[(0,a.createElementVNode)("div",tt,[(0,a.createElementVNode)("div",ot,[(0,a.createVNode)(o,{tag:"h1",class:"orangehrm-module-disabled-heading"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" 403 ")])),_:1}),(0,a.createVNode)(o,{tag:"h4",class:"orangehrm-module-disabled-sub-heading"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.module_forbidden")),1)])),_:1}),(0,a.createVNode)(o,{tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.module_access_restriction")),1)])),_:1})])])])}const lt={},nt=(0,r.Z)(lt,[["render",at],["__scopeId","data-v-3d2f2dd1"]]);var rt=nt;function it(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-alert");return(0,a.openBlock)(),(0,a.createBlock)(i,{show:!0,type:"warn",message:e.$t("time.timesheet_period_not_defined")},null,8,["message"])}var st={components:{"oxd-alert":q.OxdAlert}};const dt=(0,r.Z)(st,[["render",it]]);var ct=dt,mt={"bad-request":Oe,"no-records-found":Fe,"module-under-development":Ke,"disabled-module":rt,"time-sheet-period-not-defined":ct};const ut={class:"orangehrm-background-container"},pt={class:"orangehrm-paper-container"},ht={class:"orangehrm-header-container"},gt={class:"orangehrm-container"},vt={class:"orangehrm-bottom-container"};function ft(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ut,[(0,a.createElementVNode)("div",pt,[(0,a.createElementVNode)("div",ht,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.job_titles")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",gt,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[1]||(t[1]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",vt,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[2]||(t[2]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}o(7658);function yt(){const e=(0,a.getCurrentInstance)()?.appContext.config.globalProperties.$toast,t=e=>(...t)=>e&&e(...t);return{notify:t(e?.notify),show:t(e?.show),success:t(e?.success),error:t(e?.error),info:t(e?.info),warn:t(e?.warn),clear:t(e?.clear),clearAll:t(e?.clearAll),saveSuccess:t(e?.saveSuccess),addSuccess:t(e?.addSuccess),updateSuccess:t(e?.updateSuccess),deleteSuccess:t(e?.deleteSuccess),cannotDelete:t(e?.cannotDelete),noRecordsFound:t(e?.noRecordsFound)}}async function Ct(e,t){try{const o=await e.getAll(t);return{data:o.data.data,meta:o.data.meta,error:!1}}catch(o){return{error:!0,message:o.message}}}function bt(e,t){const o=e*(t-1);return{limit:e,offset:o}}function Vt(e){const t=JSON.parse(JSON.stringify((0,a.unref)(e)));for(const[o,a]of Object.entries(t))t[o]=null===a||""===a?void 0:a;return t}function xt(e){return e}function wt(e,{query:t={},normalizer:o=xt,prefetch:l=!0,toastNoRecords:n=!0,pageSize:r=50}={}){const i=(0,a.reactive)({showPaginator:!1,isLoading:!1,response:{},total:0,pages:0,currentPage:1}),{noRecordsFound:s}=yt(),d=async()=>{i.isLoading=!0;const a=bt(r,i.currentPage),l=Vt(t);if(i.response=await Ct(e,{...a,...l}),!i.response.error){const{data:e,...t}=i.response,a=o(e);i.response={data:a,...t}}i.response.meta&&(i.total=i.response.meta.total,i.total>r?(i.showPaginator=!0,i.pages=Math.ceil(i.total/r)):(i.currentPage=1,i.pages=1,i.showPaginator=!1),0===i.total&&n&&s()),i.isLoading=!1};return l&&(0,a.onBeforeMount)(d),(0,a.watch)((()=>i.currentPage),d),{...(0,a.toRefs)(i),execQuery:d}}const Nt={class:"orangehrm-modal-header"},_t={class:"orangehrm-text-center-align"},kt={class:"orangehrm-modal-footer"};function St(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-dialog-popup","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Nt,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.are_you_sure")),1)])),_:1})]),(0,a.createElementVNode)("div",_t,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.message||e.$t("general.delete_confirmation_message")),1)])),_:1})]),(0,a.createElementVNode)("div",kt,[(0,a.createVNode)(s,{label:e.$t("general.no_cancel"),"display-type":"text",class:"orangehrm-button-margin",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{label:e.$t("general.yes_delete"),"icon-name":"trash","display-type":"label-danger",class:"orangehrm-button-margin",onClick:r.onDelete},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var Dt={components:{"oxd-dialog":q.OxdDialog},props:{message:{type:String,default:null,required:!1}},data(){return{show:!1,reject:null,resolve:null}},methods:{showDialog(){return new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))},onDelete(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const $t=(0,r.Z)(Dt,[["render",St],["__scopeId","data-v-64d94959"]]);var Et=$t;function Tt(e){const t=(0,a.ref)({...JSON.parse(JSON.stringify(e.sortDefinition))}),o=(0,a.computed)((()=>Object.keys(t.value).filter((e=>{const o=t.value[e];return o&&"DEFAULT"!=o}))[0])),l=(0,a.computed)((()=>t.value[o.value])),n=e=>(0,a.watch)(t,e);return{sortDefinition:t,sortField:o,sortOrder:l,onSort:n}}const Bt={jobTitleName:"",jobDescription:""},It={"jt.jobTitleName":"ASC"};var Lt={components:{"delete-confirmation":Et},setup(){const e=(0,a.ref)({...Bt}),{sortDefinition:t,sortField:o,sortOrder:l,onSort:n}=Tt({sortDefinition:It}),r=(0,a.computed)((()=>({jobTitleName:e.value.jobTitleName,jobDescription:e.value.jobDescription,sortField:o.value,sortOrder:l.value}))),i=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-titles"),{showPaginator:s,currentPage:d,total:c,pages:m,pageSize:u,response:p,isLoading:h,execQuery:g}=wt(i,{query:r});return n(g),{http:i,showPaginator:s,currentPage:d,isLoading:h,total:c,pages:m,pageSize:u,execQuery:g,items:p,filters:e,sortDefinition:t}},data(){return{headers:[{name:"title",slot:"title",title:this.$t("admin.job_titles"),sortField:"jt.jobTitleName",style:{flex:2}},{name:"description",cellType:"oxd-table-cell-truncate",title:this.$t("admin.job_description"),style:{flex:4}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveJobTitle")},onClickEdit(e){U("/admin/saveJobTitle/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Ut=(0,r.Z)(Lt,[["render",ft]]);var At=Ut;const Pt={class:"orangehrm-background-container"},qt={class:"orangehrm-card-container"};function Mt(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("file-upload-input"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Pt,[(0,a.createElementVNode)("div",qt,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_job_title")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.title,"onUpdate:modelValue":t[0]||(t[0]=e=>n.jobTitle.title=e),label:e.$t("general.job_title"),rules:n.rules.title,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.jobTitle.description=e),type:"textarea",label:e.$t("admin.job_description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{newFile:n.jobTitle.newSpecification,"onUpdate:newFile":t[2]||(t[2]=e=>n.jobTitle.newSpecification=e),method:n.jobTitle.method,"onUpdate:method":t[3]||(t[3]=e=>n.jobTitle.method=e),label:e.$t("general.job_specification"),"button-label":e.$t("general.browse"),file:n.jobTitle.oldSpecification,rules:n.rules.specification,url:"admin/viewJobSpecification/attachId",hint:e.$t("general.accepts_up_to_1mb")},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.note,"onUpdate:modelValue":t[4]||(t[4]=e=>n.jobTitle.note=e),type:"textarea",label:e.$t("general.note"),placeholder:e.$t("general.add_note"),rules:n.rules.note,"label-icon":"pencil-square"},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(h)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Ft=we(),jt=function(e){return"string"===typeof e?!!e&&""!==e.trim()||Ft("general.required"):"number"===typeof e?!Number.isNaN(e)||"general.required":Array.isArray(e)?!!e&&0!==e.length||Ft("general.required"):"object"===typeof e&&null!==e||Ft("general.required")},zt=function(e){return function(t){return!t||new String(t).length<=e||Ft("general.should_be_less_n_characters",{amount:e})}},Rt=function(e="yyyy-mm-dd",t="yyyy-MM-dd"){return function(o){if(!o)return!0;const a=re(o,t);return!!a||Ft("general.should_be_a_valid_date_in_x_format",{format:e})}},Ot=function(){return function(e){if(!e)return!0;const t="yyyy-MM-dd",o=ie(new Date,t)||"",a=he(e,o,t);return a>0||Ft("recruitment.should_be_current_date_previous_date")}},Gt=function(e){if(!e)return!0;const t=re(e,"HH:mm");return!!t||Ft("general.should_be_a_valid_date_in_hh:mm_format")},Zt=function(e){return function(t){return Number.isNaN(parseFloat(t))||parseFloat(t)a=>{const l="function"===typeof e?e():e,n="string"===typeof t?t:Ft("general.end_date_should_be_after_start_date");return o.allowSameDate?Kt(a,l)||Xt(a,l,o.dateFormat)||n:Xt(a,l,o.dateFormat)||n},to=function(e,t,o="yyyy-MM-dd"){return!e||!t||1===pe(e,t,o)},oo=function(e,t,o="HH:mm"){return!e||!t||-1===pe(e,t,o)},ao=function(e,t,o="HH:mm"){return!e||!t||0===pe(e,t,o)},lo=(e,t,o={allowSameTime:!1,timeFormat:"HH:mm"})=>a=>{const l="function"===typeof e?e():e,n="string"===typeof t?t:Ft("general.end_time_should_be_after_start_time");return o.allowSameTime?ao(a,l)||oo(a,l,o.timeFormat)||n:oo(a,l,o.timeFormat)||n},no=function(e){return function(t){return null===t||t.size&&t.size<=e||Ft("general.attachment_size_exceeded")}},ro=function(e){return function(t){return null===t||t&&e.findIndex((e=>e===t.type))>-1||Ft("general.file_type_not_allowed")}},io=function(e){return!e||/^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/.test(e)||Ft("general.expected_email_address_format_not_matched")},so=function(e){return!e||/^[0-9+\-/() ]+$/.test(e)||Ft("general.allows_phone_numbers_only")},co=(e,t,o={allowSameDate:!1,dateFormat:"yyyy-MM-dd"})=>a=>{const l="function"===typeof e?e():e,n="string"===typeof t?t:Ft("general.start_date_should_be_before_end_date");return o.allowSameDate?Kt(a,l)||Jt(a,l,o.dateFormat)||n:Jt(a,l,o.dateFormat)||n},mo=function(e){return function(t){return Number.isNaN(parseFloat(t))||parseFloat(t)a=>{const l="function"===typeof e?e():e,n="string"===typeof t?t:Ft("general.start_time_should_be_before_end_time");return o.allowSameTime?ao(a,l)||to(a,l,o.timeFormat)||n:to(a,l,o.timeFormat)||n},po=function(e){return function(t){return!t||String(t).length>=e||Ft("general.should_be_least_n_characters",{amount:e})}},ho=(e,t)=>o=>{const a="function"===typeof e?e():e,l="string"===typeof t?t:Ft("general.should_be_higher_than_minimum_value");return null===a||null===o||(void 0===a||void 0===o||(""===a||""===o||("0"===a||"0"===o||(parseFloat(a)o=>{const a="function"===typeof e?e():e,l="string"===typeof t?t:Ft("general.should_be_lower_than_maximum_value");return null===a||null===o||(void 0===a||void 0===o||(""===a||"0"===o||(parseFloat(a)>parseFloat(o)||l)))},vo=(e,t,o)=>a=>{const l="string"===typeof o?o:Ft("general.should_be_a_number_between_min_and_max",{min:e,max:t});return!0===Qt(a)&&parseFloat(a)>=e&&parseFloat(a)<=t||l},fo=function(e){return!e||(!!/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/i.test(e)||Ft("general.invalid"))},yo=function(e,t=.1){return function(o){return new Promise((a=>{if(null===o||"image/svg+xml"===o.type)return a(!0);const l=new Image;l.src=`data:${o.type};base64, ${o.base64}`,l.decode().then((()=>{Math.abs(l.width/l.height-e)=e||o)}},bo=function(e,t){const o="string"===typeof t?t:Ft("general.less_than_or_equal_to_n",{maxValue:e});return function(t){return null===t||""===t||(!0!==Yt(t)?o:parseFloat(t)<=e||o)}},Vo=function(e){return null===e||""===e||(0===e.split("").reduce(((e,t)=>("{"===t&&e++,"}"===t&&e--,e)),0)||Ft("general.invalid"))},xo=function(e){return"string"!==typeof e||Ft("general.invalid")},wo=function(e){let t;return t=/\p{L}/u.test(e)?/^([\p{L}\p{N}\p{S}\-.])+(\.?([\p{L}\p{N}]|xn--[\p{L}\p{N}-]+)+\.?)(:[0-9]+)?$/gu:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/,!e||t.test(e)||Ft("general.invalid")},No=function(e,t,o){return function(a){return!a||/^\d+$/.test(a)&&!Number.isNaN(parseFloat(a))&&String(a).length<=e&&parseInt(a)>=t&&parseInt(a)<=o||Ft("general.enter_valid_port_between_a_to_b",{minValue:t,maxValue:o})}},_o={class:"orangehrm-file-current"},ko={key:0,class:"orangehrm-file-options"},So={key:1,class:"orangehrm-file-input"};function Do(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[r.fileSelected?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,label:o.label},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",_o,[(0,a.createElementVNode)("div",{class:"orangehrm-file-preview",onClick:t[0]||(t[0]=(...e)=>r.downloadFile&&r.downloadFile(...e))},[(0,a.createVNode)(i,{class:"orangehrm-file-icon",name:"file-earmark-text"}),(0,a.createVNode)(s,{class:"orangehrm-file-name",tag:"p",title:o.file.filename},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.file.filename)+" ",1),(0,a.createVNode)(i,{class:"orangehrm-file-download",name:"download"})])),_:1},8,["title"])]),o.disabled?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",ko,[(0,a.createVNode)(d,{type:"radio","option-label":e.$t("general.keep_current"),value:"keepCurrent","model-value":o.method,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:method",t))},null,8,["option-label","model-value"]),o.deletable?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,type:"radio","option-label":e.$t("general.delete_current"),value:"deleteCurrent","model-value":o.method,"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update:method",t))},null,8,["option-label","model-value"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{type:"radio","option-label":e.$t("general.replace_current"),value:"replaceCurrent","model-value":o.method,"onUpdate:modelValue":t[3]||(t[3]=t=>e.$emit("update:method",t))},null,8,["option-label","model-value"])]))])])),_:1},8,["label"])):(0,a.createCommentVNode)("",!0),"replaceCurrent"!==o.method&&r.fileSelected?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",So,[(0,a.createVNode)(d,(0,a.mergeProps)(e.$attrs,{type:"file",label:r.fieldLabel,"model-value":o.newFile,disabled:o.disabled,placeholder:e.$t("general.no_file_selected"),"onUpdate:modelValue":t[4]||(t[4]=t=>e.$emit("update:newFile",t))}),null,16,["label","model-value","disabled","placeholder"]),(0,a.createVNode)(s,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.hint),1)])),_:1})]))],64)}var $o={name:"FileUploadInput",components:{"oxd-icon":q.OxdIcon},inheritAttrs:!1,props:{label:{type:String,default:""},hint:{type:String,default:""},url:{type:[String,Function],required:!0},method:{type:String,required:!0},file:{type:Object,required:!1,default:()=>null},newFile:{type:Object,required:!1,default:()=>null},disabled:{type:Boolean,default:!1},deletable:{type:Boolean,default:!0}},emits:["update:method","update:newFile"],computed:{fileSelected(){return this.file&&Object.keys(this.file).length>0},fieldLabel(){return"replaceCurrent"===this.method&&this.fileSelected?this.$t("general.upload_n_file",{fileName:this.label}):this.label}},methods:{downloadFile(){let e;if("function"===typeof this.url)e=this.url(this.$props);else{if(!this.file?.id)return;e=`${window.appGlobal.baseUrl}/${this.url}/${this.file.id}`}window.open(e,"_blank")}}};const Eo=(0,r.Z)($o,[["render",Do],["__scopeId","data-v-0511e208"]]);var To=Eo;const Bo={title:"",description:"",oldSpecification:"",newSpecification:null,method:"keepCurrent",note:""};var Io={components:{"file-upload-input":To},props:{jobTitleId:{type:String,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-titles");return{http:e}},data(){return{isLoading:!1,jobTitle:{...Bo},rules:{title:[jt,zt(100)],description:[zt(400)],specification:[e=>"replaceCurrent"!=this.jobTitle.method||jt(e),ro(this.allowedFileTypes),no(this.maxFileSize)],note:[zt(400)]}}},created(){this.isLoading=!0,this.http.get(this.jobTitleId).then((e=>{const{data:t}=e.data;return this.jobTitle.title=t.title,this.jobTitle.description=t.description,this.jobTitle.note=t.note,this.jobTitle.oldSpecification=t.jobSpecification?.id?t.jobSpecification:null,this.jobTitle.newSpecification=null,this.jobTitle.method="keepCurrent",this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.title.push((e=>{const o=t.findIndex((t=>String(t.title).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.jobTitleId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/admin/viewJobTitleList")},onSave(){this.isLoading=!0,this.http.update(this.jobTitleId,{title:this.jobTitle.title,description:this.jobTitle.description,note:this.jobTitle.note,currentJobSpecification:this.jobTitle.oldSpecification?this.jobTitle.method:void 0,specification:this.jobTitle.newSpecification?this.jobTitle.newSpecification:void 0}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))}}};const Lo=(0,r.Z)(Io,[["render",Mt]]);var Uo=Lo;const Ao={class:"orangehrm-background-container"},Po={class:"orangehrm-card-container"};function qo(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ao,[(0,a.createElementVNode)("div",Po,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_job_title")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.title,"onUpdate:modelValue":t[0]||(t[0]=e=>n.jobTitle.title=e),label:e.$t("general.job_title"),rules:n.rules.title,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.jobTitle.description=e),type:"textarea",label:e.$t("admin.job_description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.specification,"onUpdate:modelValue":t[2]||(t[2]=e=>n.jobTitle.specification=e),type:"file",label:e.$t("general.job_specification"),"button-label":e.$t("general.browse"),rules:n.rules.specification},null,8,["modelValue","label","button-label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.jobTitle.note,"onUpdate:modelValue":t[3]||(t[3]=e=>n.jobTitle.note=e),type:"textarea",label:e.$t("general.note"),placeholder:e.$t("general.add_note"),"label-icon":"pencil-square",rules:n.rules.note},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Mo={title:"",description:"",specification:null,note:""};var Fo={props:{allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-titles");return{http:e}},data(){return{isLoading:!1,jobTitle:{...Mo},rules:{title:[jt,zt(100)],description:[zt(400)],specification:[ro(this.allowedFileTypes),no(this.maxFileSize)],note:[zt(400)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.title.push((e=>{const o=t.findIndex((t=>String(t.title).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/admin/viewJobTitleList")},onSave(){this.isLoading=!0,this.http.create({...this.jobTitle}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))}}};const jo=(0,r.Z)(Fo,[["render",qo]]);var zo=jo;const Ro={class:"orangehrm-background-container"},Oo={class:"orangehrm-paper-container"},Go={class:"orangehrm-header-container"},Zo={class:"orangehrm-container"},Qo={class:"orangehrm-bottom-container"};function Ho(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ro,[(0,a.createElementVNode)("div",Oo,[(0,a.createElementVNode)("div",Go,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.job_categories")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Zo,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",Qo,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Wo={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-categories"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.job_category"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveJobCategory")},onClickEdit(e){U("/admin/saveJobCategory/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Yo=(0,r.Z)(Wo,[["render",Ho]]);var Jo=Yo;const Xo={class:"orangehrm-background-container"},Ko={class:"orangehrm-card-container"};function ea(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Xo,[(0,a.createElementVNode)("div",Ko,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_job_category")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.category.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.category.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var ta={props:{jobCategoryId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-categories");return{http:e}},data(){return{isLoading:!1,category:{id:"",name:""},rules:{name:[jt,zt(50)]},errors:[]}},created(){this.isLoading=!0,this.http.get(this.jobCategoryId).then((e=>{const{data:t}=e.data;return this.category.id=t.id,this.category.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.category.id||this.$t("general.already_exists")}return!0})),this.isLoading=!1})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.jobCategoryId,{name:this.category.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/jobCategory")}}};const oa=(0,r.Z)(ta,[["render",ea]]);var aa=oa;const la={class:"orangehrm-background-container"},na={class:"orangehrm-card-container"};function ra(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",la,[(0,a.createElementVNode)("div",na,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_job_category")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.category.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.category.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var ia={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-categories");return{http:e}},data(){return{isLoading:!1,category:{id:"",name:""},rules:{name:[jt,zt(50)]},errors:[]}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")})),this.isLoading=!1})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.category.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/jobCategory")}}};const sa=(0,r.Z)(ia,[["render",ra]]);var da=sa;const ca={class:"orangehrm-background-container"},ma=(0,a.createElementVNode)("br",null,null,-1),ua={class:"orangehrm-paper-container"},pa={class:"orangehrm-header-container"},ha={class:"orangehrm-container"},ga={class:"orangehrm-bottom-container"};function va(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("table-header"),y=(0,a.resolveComponent)("oxd-card-table"),C=(0,a.resolveComponent)("oxd-pagination"),b=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ca,[(0,a.createVNode)(v,{"filter-title":e.$t("admin.system_users")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.username,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.username=e),label:e.$t("general.username")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.userRoleId,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.userRoleId=e),type:"select",label:e.$t("general.user_role"),options:n.userRoles},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.empNumber,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.empNumber=e),rules:n.rules.employee},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.status,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.status=e),type:"select",label:e.$t("general.status"),options:n.userStatuses},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(p,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),ma,(0,a.createElementVNode)("div",ua,[(0,a.createElementVNode)("div",pa,[(0,a.createVNode)(p,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(f,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",ha,[(0,a.createVNode)(y,{selected:n.checkedItems,"onUpdate:selected":t[4]||(t[4]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[5]||(t[5]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",ga,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(C,{key:0,current:l.currentPage,"onUpdate:current":t[6]||(t[6]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(b,{ref:"deleteDialog"},null,512)])}const fa={key:0,class:"past-employee-tag"};function ya(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",label:e.$t("general.employee_name"),clear:!1,"create-options":r.loadEmployees},{afterSelected:(0,a.withCtx)((({data:t})=>[t.isPastEmployee?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.past_employee")),1)],64)):(0,a.createCommentVNode)("",!0)])),option:(0,a.withCtx)((({data:t})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(t.label),1),t.isPastEmployee?((0,a.openBlock)(),(0,a.createElementBlock)("div",fa,(0,a.toDisplayString)(e.$t("general.past_employee")),1)):(0,a.createCommentVNode)("",!0)])),_:1},8,["label","create-options"])}var Ca={name:"EmployeeAutocomplete",props:{params:{type:Object,default:()=>({})},apiPath:{type:String,default:"/api/v2/pim/employees"}},setup(e){const t=new P(window.appGlobal.baseUrl,e.apiPath);return{http:t}},methods:{async loadEmployees(e){return new Promise((t=>{e.trim()?this.http.getAll({nameOrId:e.trim(),...this.params}).then((({data:e})=>{t(e.data.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,_employee:e,isPastEmployee:!!e.terminationId}))))})):t([])}))}}};const ba=(0,r.Z)(Ca,[["render",ya],["__scopeId","data-v-1ccb3a64"]]);var Va=ba;function xa(){const{$t:e}=Se(),t=(t,o)=>{if("Purged"===t.firstName&&"Employee"===t.lastName)return e("general.purged_employee");const a=o?.includeMiddle,l=o?.excludePastEmpTag,n="boolean"===typeof a&&a&&"string"===typeof t.middleName?` ${t.middleName} `:" ";if(t.terminationId){const o="undefined"===typeof l?` ${e("general.past_employee")}`:l?"":` ${e("general.past_employee")}`;return`${t.firstName}${n}${t.lastName}${o}`}return`${t.firstName}${n}${t.lastName}`};return{$tEmpName:t}}const wa={username:"",userRoleId:null,empNumber:null,status:null},Na={"u.userName":"ASC","r.displayName":"ASC","e.firstName":"ASC","u.status":"DEFAULT"};var _a={components:{"delete-confirmation":Et,"employee-autocomplete":Va},props:{unselectableIds:{type:Array,default:()=>[]}},setup(e){const{$t:t}=Se(),{$tEmpName:o}=xa(),l=a=>a.map((a=>{const l=e.unselectableIds.findIndex((e=>e==a.id));return{id:a.id,userName:a.userName,role:"Admin"===a.userRole?.displayName?t("general.admin"):t("general.ess"),empName:o(a.employee,{includeMiddle:!1}),status:a.status?"Enabled":"Disabled",isSelectable:-1===l}})),n=(0,a.ref)({...wa}),{sortDefinition:r,sortField:i,sortOrder:s,onSort:d}=Tt({sortDefinition:Na}),c=(0,a.computed)((()=>({username:n.value.username,userRoleId:n.value.userRoleId?.id,empNumber:n.value.empNumber?.id,status:n.value.status?.id,sortField:i.value,sortOrder:s.value}))),m=new P(window.appGlobal.baseUrl,"/api/v2/admin/users"),{showPaginator:u,currentPage:p,total:h,pages:g,pageSize:v,response:f,isLoading:y,execQuery:C}=wt(m,{query:c,normalizer:l});return d(C),{http:m,showPaginator:u,currentPage:p,isLoading:y,total:h,pages:g,pageSize:v,execQuery:C,items:f,filters:n,sortDefinition:r}},data(){return{headers:[{name:"userName",title:this.$t("general.username"),sortField:"u.userName",style:{flex:1}},{name:"role",title:this.$t("general.user_role"),style:{flex:1},sortField:"r.displayName"},{name:"empName",slot:"title",title:this.$t("general.employee_name"),sortField:"e.firstName",style:{flex:1}},{name:"status",title:this.$t("general.status"),sortField:"u.status",style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],userRoles:[{id:1,label:this.$t("general.admin")},{id:2,label:this.$t("general.ess")}],userStatuses:[{id:1,label:this.$t("general.enabled")},{id:0,label:this.$t("general.disabled")}],checkedItems:[],rules:{employee:[xo]}}},methods:{onClickAdd(){U("/admin/saveSystemUser")},onClickEdit(e){U("/admin/saveSystemUser/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.cannotDelete();this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onClickReset(){this.filters={...wa},this.filterItems()}}};const ka=(0,r.Z)(_a,[["render",va]]);var Sa=ka;const Da={class:"orangehrm-background-container"},$a={class:"orangehrm-card-container"};function Ea(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("employee-autocomplete"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("password-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Da,[(0,a.createElementVNode)("div",$a,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_user")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.role,"onUpdate:modelValue":t[0]||(t[0]=e=>n.user.role=e),type:"select",label:e.$t("general.user_role"),rules:n.rules.role,options:n.userRoles,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.user.employee,"onUpdate:modelValue":t[1]||(t[1]=e=>n.user.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.status,"onUpdate:modelValue":t[2]||(t[2]=e=>n.user.status=e),type:"select",label:e.$t("general.status"),rules:n.rules.status,options:n.userStatuses,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.username,"onUpdate:modelValue":t[3]||(t[3]=e=>n.user.username=e),label:e.$t("general.username"),rules:n.rules.username,required:"",autocomplete:"off"},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,{password:n.user.password,"onUpdate:password":t[4]||(t[4]=e=>n.user.password=e),passwordConfirm:n.user.passwordConfirm,"onUpdate:passwordConfirm":t[5]||(t[5]=e=>n.user.passwordConfirm=e)},null,8,["password","passwordConfirm"]),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}function Ta(e,t,o,l,n,r){const i=(0,a.resolveComponent)("password-strength-indicator"),s=(0,a.resolveComponent)("oxd-input-field"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row");return(0,a.openBlock)(),(0,a.createBlock)(u,{class:"user-password-row"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"user-password-cell"},{default:(0,a.withCtx)((()=>[o.password?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,"password-strength":l.passwordStrength},null,8,["password-strength"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s,{type:"password",autocomplete:"off",required:!0,"model-value":o.password,rules:n.rules.password,label:e.$t("general.password"),"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:password",t))},null,8,["model-value","rules","label"]),(0,a.createVNode)(d,{class:"user-password-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.password_strength_message")),1)])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{ref:"passwordConfirm",type:"password",autocomplete:"off",required:!0,"model-value":o.passwordConfirm,rules:n.rules.passwordConfirm,label:e.$t("general.confirm_password"),"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:passwordConfirm",t))},null,8,["model-value","rules","label"])])),_:1})])),_:1})])),_:1})}function Ba(e){const t=(0,a.ref)(0),o=o=>new Promise((a=>{""!==o.trim()?e.request({method:"POST",url:"/api/v2/auth/public/validation/password",data:{password:o}}).then((e=>{const{data:o,meta:l}=e.data;t.value=l?.strength||0,Array.isArray(o?.messages)&&o.messages.length>0?a(o.messages[0]):a(!0)})):(t.value=0,a(!0))}));return{passwordStrength:t,validatePassword:o}}function Ia(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-chip");return(0,a.openBlock)(),(0,a.createBlock)(i,{class:(0,a.normalizeClass)(r.chipClasses),label:r.passwordStrengthLabel},null,8,["class","label"])}var La={name:"PasswordStrengthIndicator",components:{"oxd-chip":q.OxdChip},props:{passwordStrength:{type:Number,required:!0}},computed:{passwordStrengthLabel(){switch(this.passwordStrength){case 1:return this.$t("general.weak");case 2:return this.$t("general.better");case 3:return this.$t("general.strong");case 4:return this.$t("general.strongest");default:return this.$t("general.very_weak")}},chipClasses(){return{"orangehrm-password-chip":!0,"--strength-better":2===this.passwordStrength,"--strength-strong":3===this.passwordStrength,"--strength-strongest":4===this.passwordStrength}}}};const Ua=(0,r.Z)(La,[["render",Ia],["__scopeId","data-v-2eef2625"]]);var Aa=Ua,Pa={name:"PasswordInput",components:{"password-strength-indicator":Aa},props:{password:{type:String,required:!0},passwordConfirm:{type:String,required:!0}},emits:["update:password","update:passwordConfirm"],setup(){const e=new P(window.appGlobal.baseUrl,""),{passwordStrength:t,validatePassword:o}=Ba(e);return{passwordStrength:t,validatePassword:o}},data(){return{rules:{password:[jt,zt(64),(0,q.promiseDebounce)(this.validatePassword,500)],passwordConfirm:[jt,zt(64),e=>!!e&&e===this.password||this.$t("general.passwords_do_not_match")]}}},watch:{password(e){(this.passwordConfirm&&e!==this.passwordConfirm||this.passwordConfirm&&e===this.passwordConfirm)&&this.$nextTick(this.$refs.passwordConfirm.triggerUpdate)}}};const qa=(0,r.Z)(Pa,[["render",Ta],["__scopeId","data-v-9345d4ba"]]);var Ma=qa;const Fa={username:"",role:null,employee:null,status:null,password:"",passwordConfirm:""};var ja={components:{"employee-autocomplete":Va,"password-input":Ma},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/users");return e.setIgnorePath("/api/v2/admin/validation/user-name"),{http:e}},data(){return{isLoading:!1,user:{...Fa},rules:{username:[jt,po(5),zt(40),(0,q.promiseDebounce)(this.validateUserName,500)],role:[jt],employee:[jt,xo],status:[jt]},userRoles:[{id:1,label:this.$t("general.admin")},{id:2,label:this.$t("general.ess")}],userStatuses:[{id:1,label:this.$t("general.enabled")},{id:2,label:this.$t("general.disabled")}]}},methods:{onCancel(){U("/admin/viewSystemUsers")},onSave(){this.isLoading=!0,this.http.create({username:this.user.username.trim(),password:this.user.password,status:this.user.status&&1===this.user.status.id,userRoleId:this.user.role?.id,empNumber:this.user.employee?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},validateUserName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/admin/validation/user-name",params:{userName:this.user.username.trim()}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const za=(0,r.Z)(ja,[["render",Ea]]);var Ra=za;const Oa={class:"orangehrm-background-container"},Ga={class:"orangehrm-card-container"};function Za(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("employee-autocomplete"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("password-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Oa,[(0,a.createElementVNode)("div",Ga,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_user")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.role,"onUpdate:modelValue":t[0]||(t[0]=e=>n.user.role=e),type:"select",label:e.$t("general.user_role"),rules:n.rules.role,options:n.userRoles,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.user.employee,"onUpdate:modelValue":t[1]||(t[1]=e=>n.user.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.status,"onUpdate:modelValue":t[2]||(t[2]=e=>n.user.status=e),type:"select",label:e.$t("general.status"),rules:n.rules.status,options:n.userStatuses,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.username,"onUpdate:modelValue":t[3]||(t[3]=e=>n.user.username=e),label:e.$t("general.username"),rules:n.rules.username,required:"",autocomplete:"off"},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.user.changePassword,"onUpdate:modelValue":t[4]||(t[4]=e=>n.user.changePassword=e),type:"checkbox",value:"true","true-value":!0,"false-value":!1,"option-label":"Yes",label:e.$t("general.change_password_question")},null,8,["modelValue","label"])])),_:1})])),_:1})])),_:1}),n.user.changePassword?((0,a.openBlock)(),(0,a.createBlock)(h,{key:0,password:n.user.password,"onUpdate:password":t[5]||(t[5]=e=>n.user.password=e),passwordConfirm:n.user.passwordConfirm,"onUpdate:passwordConfirm":t[6]||(t[6]=e=>n.user.passwordConfirm=e)},null,8,["password","passwordConfirm"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Qa={id:"",username:"",role:null,employee:null,status:null,changePassword:!1,password:"",passwordConfirm:""};var Ha={components:{"employee-autocomplete":Va,"password-input":Ma},props:{systemUserId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/users");return e.setIgnorePath("/api/v2/admin/validation/user-name"),{http:e}},data(){return{isLoading:!1,user:{...Qa},rules:{username:[jt,po(5),zt(40),(0,q.promiseDebounce)(this.validateUserName,500)],role:[jt],employee:[jt,xo],status:[jt]},userRoles:[{id:1,label:this.$t("general.admin")},{id:2,label:this.$t("general.ess")}],userStatuses:[{id:1,label:this.$t("general.enabled")},{id:2,label:this.$t("general.disabled")}]}},beforeMount(){this.isLoading=!0,this.http.get(this.systemUserId).then((e=>{const{data:t}=e.data;this.user.id=t.id,this.user.username=t.userName,this.user.role=this.userRoles.find((e=>e.id===t.userRole.id)),this.user.employee={id:t.employee.empNumber,label:`${t.employee.firstName} ${t.employee.middleName} ${t.employee.lastName}`,isPastEmployee:t.employee.terminationId},t.status?this.user.status={id:1,label:this.$t("general.enabled")}:this.user.status={id:2,label:this.$t("general.disabled")}})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/admin/viewSystemUsers")},onSave(){this.isLoading=!0,this.http.update(this.systemUserId,{username:this.user.username.trim(),password:this.user.password,status:this.user.status&&"Enabled"===this.user.status.label,userRoleId:this.user.role?.id,empNumber:this.user.employee?.id,changePassword:this.user.changePassword}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},validateUserName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/admin/validation/user-name",params:{userName:this.user.username.trim(),userId:this.systemUserId}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const Wa=(0,r.Z)(Ha,[["render",Za]]);var Ya=Wa;const Ja={class:"orangehrm-background-container"},Xa={class:"orangehrm-paper-container"},Ka={class:"orangehrm-header-container"},el={key:1,class:"org-root-container"},tl={class:"org-container"},ol={key:0,class:"loader"},al={class:"org-name"},ll={key:0,class:"org-action"},nl=["onClick"],rl=["onClick"],il=["onClick"];function sl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-switch-input"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("oxd-loading-spinner"),u=(0,a.resolveComponent)("oxd-icon-button"),p=(0,a.resolveComponent)("oxd-dropdown"),h=(0,a.resolveComponent)("oxd-sheet"),g=(0,a.resolveComponent)("oxd-tree-view"),v=(0,a.resolveComponent)("delete-confirmation"),f=(0,a.resolveComponent)("save-org-unit"),y=(0,a.resolveComponent)("edit-org-unit");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ja,[(0,a.createElementVNode)("div",Xa,[(0,a.createElementVNode)("div",Ka,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.organization_structure")),1)])),_:1}),n.isLoading?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,modelValue:n.editable,"onUpdate:modelValue":t[0]||(t[0]=e=>n.editable=e),"option-label":e.$t("general.edit"),"label-position":"left"},null,8,["modelValue","option-label"]))]),n.isLoading?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-horizontal-margin orangehrm-clear-margins"})),n.isLoading?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",el,[(0,a.createVNode)(i,{tag:"p",class:(0,a.normalizeClass)({"--parent":n.data&&0!=n.data.children})},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.data.name),1)])),_:1},8,["class"]),(0,a.withDirectives)((0,a.createVNode)(c,{class:"org-structure-add",label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:t[1]||(t[1]=e=>r.onAddOrglevel(n.data))},null,8,["label"]),[[a.vShow,n.editable]])])),(0,a.createElementVNode)("div",tl,[n.isLoading?((0,a.openBlock)(),(0,a.createElementBlock)("div",ol,[(0,a.createVNode)(m)])):((0,a.openBlock)(),(0,a.createBlock)(g,{key:1,data:n.data,open:!0,"show-root":!1,class:"org-structure"},{content:(0,a.withCtx)((({nodeData:t})=>[(0,a.createVNode)(h,{type:"pastel-white",class:(0,a.normalizeClass)({"org-structure-card":!0,"--edit":n.editable})},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",al,(0,a.toDisplayString)(t.unitId?`${t.unitId}: ${t.name}`:`${t.name}`),1),n.editable?((0,a.openBlock)(),(0,a.createElementBlock)("div",ll,[l.isMobile?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0},{content:(0,a.withCtx)((()=>[(0,a.createElementVNode)("li",{class:"org-action-description",onClick:e=>r.onDelete(t)},[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.delete")),1)])),_:1})],8,nl),(0,a.createElementVNode)("li",{class:"org-action-description",onClick:e=>r.onEditOrglevel(t)},[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit")),1)])),_:1})],8,rl),(0,a.createElementVNode)("li",{class:"org-action-description",onClick:e=>r.onAddOrglevel(t)},[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add")),1)])),_:1})],8,il)])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{name:"three-dots","with-container":!0})])),_:2},1024)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createVNode)(u,{class:"org-action-icon",name:"trash-fill",role:"none",onClick:e=>r.onDelete(t)},null,8,["onClick"]),(0,a.createVNode)(u,{class:"org-action-icon",name:"pencil-fill",role:"none",onClick:e=>r.onEditOrglevel(t)},null,8,["onClick"]),(0,a.createVNode)(u,{class:"org-action-icon",name:"plus",role:"none",onClick:e=>r.onAddOrglevel(t)},null,8,["onClick"])],64))])):(0,a.createCommentVNode)("",!0)])),_:2},1032,["class"])])),_:1},8,["data"]))])]),(0,a.createVNode)(v,{ref:"deleteDialog"},null,512),n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(f,{key:0,data:n.saveModalState,onClose:r.onSaveModalClose},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(y,{key:1,data:n.editModalState,onClose:r.onEditModalClose},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0)])}const dl={class:"orangehrm-modal-header"};function cl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",dl,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_organization_unit")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.unitId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.orgUnit.unitId=e),label:e.$t("admin.unit_id"),rules:n.rules.unitId},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.name,"onUpdate:modelValue":t[1]||(t[1]=e=>n.orgUnit.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.orgUnit.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"level-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.this_unit_will_be_added_under"))+" ",1),(0,a.createElementVNode)("b",null,(0,a.toDisplayString)(o.data?.unitId?`${o.data.unitId}: ${o.data?.name}`:`${o.data?.name}`),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const ml={unitId:"",name:"",description:""};var ul={name:"SaveOrgUnit",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>({})}},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/subunits");return{http:e}},data(){return{isLoading:!1,orgUnit:{...ml},rules:{unitId:[zt(100)],name:[jt,zt(100)],description:[zt(400)]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;t&&this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return!(o>-1)||this.$t("admin.organization_unit_name_should_be_unique")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({...this.orgUnit,parentId:this.data?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.orgUnit={...ml},this.$emit("close",!0)}}};const pl=(0,r.Z)(ul,[["render",cl],["__scopeId","data-v-391369a4"]]);var hl=pl;const gl={class:"orangehrm-modal-header"};function vl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",gl,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_organization_unit")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.unitId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.orgUnit.unitId=e),label:e.$t("admin.unit_id"),rules:n.rules.unitId},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.name,"onUpdate:modelValue":t[1]||(t[1]=e=>n.orgUnit.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.orgUnit.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.orgUnit.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const fl={unitId:"",name:"",description:""};var yl={name:"EditOrgUnit",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>({})}},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/subunits");return{http:e}},data(){return{isLoading:!1,orgUnit:{...fl},rules:{unitId:[zt(100)],name:[jt,zt(100)],description:[zt(400)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;return this.orgUnit.name=t.name,this.orgUnit.description=t.description,this.orgUnit.unitId=t.unitId,this.http.getAll()})).then((e=>{const{data:t}=e.data;t&&this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.data.id||this.$t("admin.organization_unit_name_should_be_unique")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.orgUnit}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Cl=(0,r.Z)(yl,[["render",vl]]);var bl=Cl,Vl={components:{"oxd-sheet":q.OxdSheet,"save-org-unit":hl,"edit-org-unit":bl,"oxd-tree-view":q.OxdTreeView,"oxd-dropdown":q.OxdDropdownMenu,"oxd-loading-spinner":q.OxdSpinner,"oxd-switch-input":q.OxdSwitchInput,"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/subunits"),t=(0,q.useResponsive)(),o=(0,a.computed)((()=>!(t.screenType===q.DEVICE_TYPES.DEVICE_LG||t.screenType===q.DEVICE_TYPES.DEVICE_XL)));return{http:e,isMobile:o}},data(){return{isLoading:!1,editable:!1,showSaveModal:!1,saveModalState:null,showEditModal:!1,editModalState:null,data:{}}},created(){this.fetchOrgStructure()},methods:{onDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&(this.isLoading=!0,this.http.delete(e.id).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.fetchOrgStructure()})))}))},onAddOrglevel(e){this.editable&&(this.saveModalState=e,this.showSaveModal=!0)},onEditOrglevel(e){this.editable&&(this.editModalState=e,this.showEditModal=!0)},onSaveModalClose(){this.saveModalState=null,this.showSaveModal=!1,this.fetchOrgStructure()},onEditModalClose(){this.editModalState=null,this.showEditModal=!1,this.fetchOrgStructure()},fetchOrgStructure(){this.isLoading=!0,this.http.getAll({mode:"tree"}).then((e=>{const{data:t}=e.data;this.data=t[0]})).finally((()=>{this.isLoading=!1}))}}};const xl=(0,r.Z)(Vl,[["render",sl],["__scopeId","data-v-a525b582"]]);var wl=xl;const Nl={class:"orangehrm-background-container"},_l={class:"orangehrm-card-container"};function kl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Nl,[(0,a.createElementVNode)("div",_l,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_employment_status")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employmentStatus.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employmentStatus.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var Sl={props:{employmentStatusId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/employment-statuses");return{http:e}},data(){return{isLoading:!1,employmentStatus:{id:"",name:""},rules:{name:[jt,zt(50)]}}},created(){this.isLoading=!0,this.http.get(this.employmentStatusId).then((e=>{const{data:t}=e.data;return this.employmentStatus.id=t.id,this.employmentStatus.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.employmentStatus.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.employmentStatusId,{name:this.employmentStatus.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/employmentStatus")}}};const Dl=(0,r.Z)(Sl,[["render",kl]]);var $l=Dl;const El={class:"orangehrm-background-container"},Tl={class:"orangehrm-paper-container"},Bl={class:"orangehrm-header-container"},Il={class:"orangehrm-container"},Ll={class:"orangehrm-bottom-container"};function Ul(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",El,[(0,a.createElementVNode)("div",Tl,[(0,a.createElementVNode)("div",Bl,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.employment_status")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Il,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",Ll,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Al={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/employment-statuses"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.employment_status"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveEmploymentStatus")},onClickEdit(e){U("/admin/saveEmploymentStatus/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Pl=(0,r.Z)(Al,[["render",Ul]]);var ql=Pl;const Ml={class:"orangehrm-background-container"},Fl={class:"orangehrm-card-container"};function jl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ml,[(0,a.createElementVNode)("div",Fl,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_employment_status")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employmentStatus.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employmentStatus.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var zl={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/employment-statuses");return{http:e}},data(){return{isLoading:!1,employmentStatus:{id:"",name:""},rules:{name:[jt,zt(50)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.employmentStatus.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/employmentStatus")}}};const Rl=(0,r.Z)(zl,[["render",jl]]);var Ol=Rl;const Gl={class:"orangehrm-background-container"},Zl={class:"orangehrm-paper-container"},Ql={class:"orangehrm-header-container"},Hl={class:"orangehrm-container"},Wl={class:"orangehrm-bottom-container"};function Yl(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Gl,[(0,a.createElementVNode)("div",Zl,[(0,a.createElementVNode)("div",Ql,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.education")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Hl,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",Wl,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Jl={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/educations"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.level"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveEducation")},onClickEdit(e){U("/admin/saveEducation/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Xl=(0,r.Z)(Jl,[["render",Yl]]);var Kl=Xl;const en={class:"orangehrm-background-container"},tn={class:"orangehrm-card-container"};function on(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",en,[(0,a.createElementVNode)("div",tn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_education")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.qualification.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.qualification.name=e),label:e.$t("general.level"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var an={props:{educationId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/educations");return{http:e}},data(){return{isLoading:!1,qualification:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.get(this.educationId).then((e=>{const{data:t}=e.data;return this.qualification.id=t.id,this.qualification.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e===this.qualification.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.educationId,{name:this.qualification.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/viewEducation")}}};const ln=(0,r.Z)(an,[["render",on]]);var nn=ln;const rn={class:"orangehrm-background-container"},sn={class:"orangehrm-card-container"};function dn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rn,[(0,a.createElementVNode)("div",sn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_education")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.qualification.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.qualification.name=e),label:e.$t("general.level"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var cn={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/educations");return{http:e}},data(){return{isLoading:!1,qualification:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")})),this.isLoading=!1})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.qualification.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/viewEducation")}}};const mn=(0,r.Z)(cn,[["render",dn]]);var un=mn;const pn={class:"orangehrm-background-container"},hn={class:"orangehrm-paper-container"},gn={class:"orangehrm-header-container"},vn={class:"orangehrm-container"},fn={class:"orangehrm-bottom-container"};function yn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",pn,[(0,a.createElementVNode)("div",hn,[(0,a.createElementVNode)("div",gn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.skills")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",vn,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",fn,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Cn={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/skills"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:2}},{name:"description",title:this.$t("general.description"),style:{flex:4}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveSkills")},onClickEdit(e){U("/admin/saveSkills/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const bn=(0,r.Z)(Cn,[["render",yn]]);var Vn=bn;const xn={class:"orangehrm-background-container"},wn={class:"orangehrm-card-container"};function Nn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xn,[(0,a.createElementVNode)("div",wn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_skill")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.skill.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.skill.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const _n={id:"",name:"",description:""};var kn={props:{qualificationSkillId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/skills");return{http:e}},data(){return{isLoading:!1,skill:{..._n},rules:{name:[jt,zt(120)],description:[zt(400)]}}},created(){this.isLoading=!0,this.http.get(this.qualificationSkillId).then((e=>{const{data:t}=e.data;return this.skill.id=t.id,this.skill.name=t.name,this.skill.description=t.description,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.qualificationSkillId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.qualificationSkillId,{name:this.skill.name,description:this.skill.description}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/viewSkills")}}};const Sn=(0,r.Z)(kn,[["render",Nn]]);var Dn=Sn;const $n={class:"orangehrm-background-container"},En={class:"orangehrm-card-container"};function Tn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",$n,[(0,a.createElementVNode)("div",En,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_skill")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.skill.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.skill.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Bn={id:"",name:"",description:""};var In={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/skills");return{http:e}},data(){return{isLoading:!1,skill:{...Bn},rules:{name:[jt,zt(120)],description:[zt(400)]},errors:[]}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.skill.name,description:this.skill.description}).then((()=>this.$toast.saveSuccess())).then((()=>{this.skill.name="",this.skill.description="",this.onCancel()}))},onCancel(){U("/admin/viewSkills")}}};const Ln=(0,r.Z)(In,[["render",Tn]]);var Un=Ln;const An={class:"orangehrm-background-container"},Pn={class:"orangehrm-card-container"};function qn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",An,[(0,a.createElementVNode)("div",Pn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_license")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.license.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.license.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var Mn={props:{licenseId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/licenses");return{http:e}},data(){return{isLoading:!1,license:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.get(this.licenseId).then((e=>{const{data:t}=e.data;return this.license.id=t.id,this.license.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e===this.license.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.licenseId,{name:this.license.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/viewLicenses")}}};const Fn=(0,r.Z)(Mn,[["render",qn]]);var jn=Fn;const zn={class:"orangehrm-background-container"},Rn={class:"orangehrm-card-container"};function On(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",zn,[(0,a.createElementVNode)("div",Rn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_license")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.license.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.license.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var Gn={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/licenses");return{http:e}},data(){return{isLoading:!1,license:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.license.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.license.name="",this.onCancel()}))},onCancel(){U("/admin/viewLicenses")}}};const Zn=(0,r.Z)(Gn,[["render",On]]);var Qn=Zn;const Hn={class:"orangehrm-background-container"},Wn={class:"orangehrm-paper-container"},Yn={class:"orangehrm-header-container"},Jn={class:"orangehrm-container"},Xn={class:"orangehrm-bottom-container"};function Kn(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Hn,[(0,a.createElementVNode)("div",Wn,[(0,a.createElementVNode)("div",Yn,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.licenses")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Jn,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",Xn,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var er={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/licenses"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveLicenses")},onClickEdit(e){U("/admin/saveLicenses/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const tr=(0,r.Z)(er,[["render",Kn]]);var or=tr;const ar={class:"orangehrm-background-container"},lr={class:"orangehrm-card-container"};function nr(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ar,[(0,a.createElementVNode)("div",lr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_language")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.language.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var rr={props:{qualificationLanguageId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/languages");return{http:e}},data(){return{isLoading:!1,language:{id:"",name:""},rules:{name:[jt,zt(120)]}}},created(){this.isLoading=!0,this.http.get(this.qualificationLanguageId).then((e=>{const{data:t}=e.data;return this.language.id=t.id,this.language.name=t.name,this.http.getAll()})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e===this.language.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.qualificationLanguageId,{name:this.language.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/viewLanguages")}}};const ir=(0,r.Z)(rr,[["render",nr]]);var sr=ir;const dr={class:"orangehrm-background-container"},cr={class:"orangehrm-card-container"};function mr(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",dr,[(0,a.createElementVNode)("div",cr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_language")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.language.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var ur={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/languages");return{http:e}},data(){return{isLoading:!1,language:{id:"",name:""},rules:{name:[jt,zt(120)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.language.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.language.name="",this.onCancel()}))},onCancel(){U("/admin/viewLanguages")}}};const pr=(0,r.Z)(ur,[["render",mr]]);var hr=pr;const gr={class:"orangehrm-background-container"},vr={class:"orangehrm-paper-container"},fr={class:"orangehrm-header-container"},yr={class:"orangehrm-container"},Cr={class:"orangehrm-bottom-container"};function br(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",gr,[(0,a.createElementVNode)("div",vr,[(0,a.createElementVNode)("div",fr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.languages")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",yr,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",Cr,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Vr={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/languages"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveLanguages")},onClickEdit(e){U("/admin/saveLanguages/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const xr=(0,r.Z)(Vr,[["render",br]]);var wr=xr;const Nr={class:"orangehrm-background-container"},_r={class:"orangehrm-paper-container"},kr={class:"orangehrm-header-container"},Sr={class:"orangehrm-container"},Dr={class:"orangehrm-bottom-container"};function $r(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Nr,[(0,a.createElementVNode)("div",_r,[(0,a.createElementVNode)("div",kr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.memberships")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Sr,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",Dr,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var Er={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/memberships"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("pim.membership"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveMemberships")},onClickEdit(e){U("/admin/saveMemberships/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Tr=(0,r.Z)(Er,[["render",$r]]);var Br=Tr;const Ir={class:"orangehrm-background-container"},Lr={class:"orangehrm-card-container"};function Ur(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ir,[(0,a.createElementVNode)("div",Lr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_membership")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.membership.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var Ar={props:{qualificationMembershipId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/memberships");return{http:e}},data(){return{isLoading:!1,membership:{id:"",name:""},rules:{name:[jt,zt(50)]}}},created(){this.isLoading=!0,this.http.get(this.qualificationMembershipId).then((e=>{const{data:t}=e.data;return this.membership.id=t.id,this.membership.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e===this.membership.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.qualificationMembershipId,{name:this.membership.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/membership")}}};const Pr=(0,r.Z)(Ar,[["render",Ur]]);var qr=Pr;const Mr={class:"orangehrm-background-container"},Fr={class:"orangehrm-card-container"};function jr(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Mr,[(0,a.createElementVNode)("div",Fr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_membership")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.membership.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var zr={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/memberships");return{http:e}},data(){return{isLoading:!1,membership:{id:"",name:""},rules:{name:[jt,zt(50)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.membership.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.membership.name="",this.onCancel()}))},onCancel(){U("/admin/membership")}}};const Rr=(0,r.Z)(zr,[["render",jr]]);var Or=Rr;const Gr={class:"orangehrm-background-container"},Zr={class:"orangehrm-card-container"},Qr={class:"orangehrm-header-container"};function Hr(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-switch-input"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-input-group"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Gr,[(0,a.createElementVNode)("div",Zr,[(0,a.createElementVNode)("div",Qr,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.general_information")),1)])),_:1}),(0,a.createVNode)(s,{modelValue:n.editable,"onUpdate:modelValue":t[0]||(t[0]=e=>n.editable=e),"option-label":e.$t("general.edit"),"label-position":"left"},null,8,["modelValue","option-label"])]),(0,a.createVNode)(d),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.name,"onUpdate:modelValue":t[1]||(t[1]=e=>n.organization.name=e),label:e.$t("admin.organization_name"),rules:n.rules.name,disabled:!n.editable,required:""},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{label:e.$t("admin.number_of_employees")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"no-of-employees-value"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.organization.noOfEmployees),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.registrationNumber,"onUpdate:modelValue":t[2]||(t[2]=e=>n.organization.registrationNumber=e),label:e.$t("admin.registration_number"),rules:n.rules.registrationNumber,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.taxId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.organization.taxId=e),label:e.$t("admin.tax_id"),rules:n.rules.taxId,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.phone,"onUpdate:modelValue":t[4]||(t[4]=e=>n.organization.phone=e),modelModifiers:{trim:!0},label:e.$t("general.phone"),rules:n.rules.phone,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.fax,"onUpdate:modelValue":t[5]||(t[5]=e=>n.organization.fax=e),label:e.$t("general.fax"),rules:n.rules.fax,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.email,"onUpdate:modelValue":t[6]||(t[6]=e=>n.organization.email=e),label:e.$t("general.email"),rules:n.rules.email,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.street1,"onUpdate:modelValue":t[7]||(t[7]=e=>n.organization.street1=e),label:e.$t("general.address_street_1"),rules:n.rules.street1,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.street2,"onUpdate:modelValue":t[8]||(t[8]=e=>n.organization.street2=e),label:e.$t("general.address_street_2"),rules:n.rules.street2,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.city,"onUpdate:modelValue":t[9]||(t[9]=e=>n.organization.city=e),label:e.$t("general.city"),rules:n.rules.city,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.province,"onUpdate:modelValue":t[10]||(t[10]=e=>n.organization.province=e),label:e.$t("general.state_province"),rules:n.rules.province,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.zipCode,"onUpdate:modelValue":t[11]||(t[11]=e=>n.organization.zipCode=e),label:e.$t("general.zip_postal_code"),rules:n.rules.zipCode,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.country,"onUpdate:modelValue":t[12]||(t[12]=e=>n.organization.country=e),label:e.$t("general.country"),type:"select",rules:n.rules.country,options:o.countryList,disabled:!n.editable},null,8,["modelValue","label","rules","options","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.organization.note,"onUpdate:modelValue":t[13]||(t[13]=e=>n.organization.note=e),label:e.$t("general.notes"),type:"textarea",rules:n.rules.note,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),n.editable?((0,a.openBlock)(),(0,a.createBlock)(v,{key:0})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var Wr={components:{"oxd-switch-input":q.OxdSwitchInput},props:{numberOfEmployees:{type:Number,required:!0},countryList:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/organization");return{http:e}},data(){return{editable:!1,isLoading:!1,organization:{name:"",noOfEmployees:this.numberOfEmployees,registrationNumber:"",taxId:"",phone:"",fax:"",email:"",street1:"",street2:"",city:"",province:"",country:null,zipCode:"",note:""},rules:{name:[jt,zt(100)],registrationNumber:[zt(30)],taxId:[zt(30)],phone:[zt(30),so],fax:[zt(30),so],email:[zt(30),io],street1:[zt(100)],street2:[zt(100)],city:[zt(30)],province:[zt(30)],zipCode:[zt(30)],note:[zt(255)],country:[]},errors:[]}},created(){this.isLoading=!0,this.http.http.get("/api/v2/admin/organization").then((e=>{const{data:t}=e.data;this.organization.name=t.name,this.organization.registrationNumber=t.registrationNumber,this.organization.taxId=t.taxId,this.organization.phone=t.phone,this.organization.fax=t.fax,this.organization.email=t.email,this.organization.street1=t.street1,this.organization.street2=t.street2,this.organization.city=t.city,this.organization.province=t.province,""!==t.country&&null!==t.country&&(this.organization.country=this.countryList.find((e=>e.id===t.country))),this.organization.zipCode=t.zipCode,this.organization.note=t.note})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.http.put("/api/v2/admin/organization",{name:this.organization.name,registrationNumber:this.organization.registrationNumber,taxId:this.organization.taxId,phone:this.organization.phone,fax:this.organization.fax,email:this.organization.email,street1:this.organization.street1,street2:this.organization.street2,city:this.organization.city,province:this.organization.province,country:this.organization.country?.id,zipCode:this.organization.zipCode,note:this.organization.note}).then((()=>this.$toast.updateSuccess())).then((()=>{this.isLoading=!1,this.editable=!1}))}}};const Yr=(0,r.Z)(Wr,[["render",Hr],["__scopeId","data-v-440f5057"]]);var Jr=Yr;const Xr={class:"orangehrm-background-container"},Kr={class:"orangehrm-paper-container"},ei={class:"orangehrm-header-container"},ti={class:"orangehrm-container"},oi={class:"orangehrm-bottom-container"};function ai(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Xr,[(0,a.createElementVNode)("div",Kr,[(0,a.createElementVNode)("div",ei,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.nationalities")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",ti,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",oi,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var li={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/nationalities"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.nationality"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveNationality")},onClickEdit(e){U("/admin/saveNationality/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const ni=(0,r.Z)(li,[["render",ai]]);var ri=ni;const ii={class:"orangehrm-background-container"},si={class:"orangehrm-card-container"};function di(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ii,[(0,a.createElementVNode)("div",si,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_nationality")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.nationality.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.nationality.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var ci={props:{nationalityId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/nationalities");return{http:e}},data(){return{isLoading:!1,nationality:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.get(this.nationalityId).then((e=>{const{data:t}=e.data;return this.nationality.id=t.id,this.nationality.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e===this.nationality.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.nationalityId,{name:this.nationality.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/nationality")}}};const mi=(0,r.Z)(ci,[["render",di]]);var ui=mi;const pi={class:"orangehrm-background-container"},hi={class:"orangehrm-card-container"};function gi(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",pi,[(0,a.createElementVNode)("div",hi,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_nationality")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.nationality.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.nationality.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var vi={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/nationalities");return{http:e}},data(){return{isLoading:!1,nationality:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.nationality.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/nationality")}}};const fi=(0,r.Z)(vi,[["render",gi]]);var yi=fi;const Ci={class:"orangehrm-background-container"},bi={class:"orangehrm-card-container"},Vi={class:"send-method-div"},xi={class:"orangehrm-optional-field-row"},wi={class:"orangehrm-optional-field-row"};function Ni(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-group"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ci,[(0,a.createElementVNode)("div",bi,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.email_configuration")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.sentAs,"onUpdate:modelValue":t[0]||(t[0]=e=>n.emailConfiguration.sentAs=e),label:e.$t("admin.mail_sent_as"),rules:n.rules.sentAs,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{label:e.$t("admin.sending_method")},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Vi,[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.mailType,"onUpdate:modelValue":t[1]||(t[1]=e=>n.emailConfiguration.mailType=e),type:"radio","option-label":e.$t("admin.secure_smtp"),value:"smtps"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.emailConfiguration.mailType,"onUpdate:modelValue":t[2]||(t[2]=e=>n.emailConfiguration.mailType=e),type:"radio","option-label":e.$t("admin.smtp"),value:"smtp"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.emailConfiguration.mailType,"onUpdate:modelValue":t[3]||(t[3]=e=>n.emailConfiguration.mailType=e),type:"radio","option-label":e.$t("admin.sendmail"),value:"sendmail"},null,8,["modelValue","option-label"])])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),"sendmail"===n.emailConfiguration.mailType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{label:e.$t("admin.path_to_sendmail")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"sendmail-path-value"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.emailConfiguration.pathToSendmail),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),"sendmail"!==n.emailConfiguration.mailType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpHost,"onUpdate:modelValue":t[4]||(t[4]=e=>n.emailConfiguration.smtpHost=e),label:e.$t("admin.smtp_host"),rules:n.rules.smtpHost,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpPort,"onUpdate:modelValue":t[5]||(t[5]=e=>n.emailConfiguration.smtpPort=e),label:e.$t("admin.smtp_port"),rules:n.rules.smtpPort},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),"sendmail"!==n.emailConfiguration.mailType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:2},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{label:e.$t("admin.use_smtp_authentication"),classes:{wrapper:"--status-grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpAuthType,"onUpdate:modelValue":t[6]||(t[6]=e=>n.emailConfiguration.smtpAuthType=e),type:"radio","option-label":e.$t("general.yes"),value:"login"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpAuthType,"onUpdate:modelValue":t[7]||(t[7]=e=>n.emailConfiguration.smtpAuthType=e),type:"radio","option-label":e.$t("general.no"),value:"none"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),"sendmail"!==n.emailConfiguration.mailType&&"login"===n.emailConfiguration.smtpAuthType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpUsername,"onUpdate:modelValue":t[8]||(t[8]=e=>n.emailConfiguration.smtpUsername=e),label:e.$t("admin.smtp_user"),rules:n.rules.smtpUsername,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.smtpPassword,"onUpdate:modelValue":t[9]||(t[9]=e=>n.emailConfiguration.smtpPassword=e),label:e.$t("admin.smtp_password"),rules:n.rules.smtpPassword,type:"password",placeholder:n.passwordPlaceHolder,required:""},null,8,["modelValue","label","rules","placeholder"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),"sendmail"!==n.emailConfiguration.mailType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:4,class:"orangehrm-input-field-bottom-space"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",xi,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.tls")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.useTLSSecureConnection,"onUpdate:modelValue":t[10]||(t[10]=e=>n.useTLSSecureConnection=e)},null,8,["modelValue"])])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),"sendmail"!==n.emailConfiguration.mailType?((0,a.openBlock)(),(0,a.createBlock)(p,{key:5},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:1,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"tls-hint"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.optional_the_mail_server_requires_the_use_of_tls_security")),1)])),_:1})])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",wi,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.send_test_email")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.sendTestMailEditable,"onUpdate:modelValue":t[11]||(t[11]=e=>n.sendTestMailEditable=e)},null,8,["modelValue"])])])),_:1})])),_:1})])),_:1}),n.sendTestMailEditable?((0,a.openBlock)(),(0,a.createBlock)(p,{key:6},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.emailConfiguration.testEmailAddress,"onUpdate:modelValue":t[12]||(t[12]=e=>n.emailConfiguration.testEmailAddress=e),label:e.$t("admin.test_email_address"),rules:n.rules.testEmailAddress,disabled:!n.sendTestMailEditable,required:""},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onReset},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var _i={components:{"oxd-switch-input":q.OxdSwitchInput},props:{pathToSendmail:{type:String,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/email-configuration");return{http:e}},data(){return{passwordPlaceHolder:"",defaultValues:{smtpSecurityType:"tls"},useTLSSecureConnection:!0,sendTestMailEditable:!1,isLoading:!1,emailConfiguration:{mailType:"",sentAs:"",pathToSendmail:this.pathToSendmail,smtpHost:"",smtpPort:null,smtpUsername:"",smtpPassword:null,smtpAuthType:"",smtpSecurityType:"",testEmailAddress:""},initialEmailConfiguration:{...this.emailConfiguration,useTLSSecureConnection:!1},rules:{mailType:[jt,zt(50)],sentAs:[jt,zt(100),io],smtpHost:[jt,zt(100)],smtpPort:[zt(10)],smtpUsername:[jt,zt(100)],smtpPassword:[zt(100)],smtpAuthType:[zt(50)],smtpSecurityType:[zt(50)],testEmailAddress:[jt,zt(250),io]}}},created(){this.isLoading=!0,this.http.request({method:"GET",url:"/api/v2/admin/email-configuration"}).then((e=>{const{data:t}=e.data;this.emailConfiguration.mailType=t.mailType,this.emailConfiguration.sentAs=t.sentAs,this.emailConfiguration.smtpHost=t.smtpHost,this.emailConfiguration.smtpPort=t.smtpPort,this.emailConfiguration.smtpUsername=t.smtpUsername,this.passwordPlaceHolder=t.smtpUsername?"******":"",this.emailConfiguration.smtpAuthType=t.smtpAuthType,this.emailConfiguration.testEmailAddress=t.testEmailAddress,this.useTLSSecureConnection="tls"===t.smtpSecurityType,this.initialEmailConfiguration={...this.emailConfiguration,useTLSSecureConnection:this.useTLSSecureConnection},t.smtpUsername||this.rules.smtpPassword.push(jt)})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{mailType:this.emailConfiguration.mailType,sentAs:this.emailConfiguration.sentAs,smtpHost:this.emailConfiguration.smtpHost,smtpPort:parseInt(this.emailConfiguration.smtpPort),smtpUsername:"login"===this.emailConfiguration.smtpAuthType?this.emailConfiguration.smtpUsername:"",smtpPassword:""===this.emailConfiguration.smtpPassword?null:this.emailConfiguration.smtpPassword,smtpAuthType:this.emailConfiguration.smtpAuthType,smtpSecurityType:this.useTLSSecureConnection?"tls":"none",testEmailAddress:this.emailConfiguration.testEmailAddress}}).then((e=>{const t=e.data.meta?.testEmailStatus;return 1===t&&this.sendTestMailEditable?this.$toast.success({title:this.$t("general.success"),message:this.$t("admin.test_email_sent")}):0===t&&this.sendTestMailEditable&&this.$toast.warn({title:this.$t("general.failed"),message:this.$t("admin.test_email_not_sent")}),this.$toast.saveSuccess()})).then((()=>{this.isLoading=!1}))},onReset(){this.emailConfiguration={...this.initialEmailConfiguration},this.useTLSSecureConnection=this.initialEmailConfiguration.useTLSSecureConnection}}};const ki=(0,r.Z)(_i,[["render",Ni],["__scopeId","data-v-5b5ad744"]]);var Si=ki;const Di={class:"orangehrm-background-container"},$i=(0,a.createElementVNode)("br",null,null,-1),Ei={class:"orangehrm-paper-container"},Ti={class:"orangehrm-header-container"},Bi={class:"orangehrm-container"},Ii={class:"orangehrm-bottom-container"};function Li(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-table-filter"),v=(0,a.resolveComponent)("table-header"),f=(0,a.resolveComponent)("oxd-card-table"),y=(0,a.resolveComponent)("oxd-pagination"),C=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Di,[(0,a.createVNode)(g,{"filter-title":e.$t("admin.locations")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.name,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.name=e),label:e.$t("general.name")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.city,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.city=e),label:e.$t("general.city")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.countryCode,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.countryCode=e),type:"select",label:e.$t("general.country"),clear:!1,options:o.countries},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(u,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),$i,(0,a.createElementVNode)("div",Ei,[(0,a.createElementVNode)("div",Ti,[(0,a.createElementVNode)("div",null,[e.$can.create("locations")?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(v,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Bi,[(0,a.createVNode)(f,{selected:n.checkedItems,"onUpdate:selected":t[3]||(t[3]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[4]||(t[4]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:e.$can.delete("locations"),disabled:!(e.$can.delete("locations")&&e.$can.update("locations")),clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","selectable","disabled","loading"])]),(0,a.createElementVNode)("div",Ii,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,current:l.currentPage,"onUpdate:current":t[5]||(t[5]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(C,{ref:"deleteDialog"},null,512)])}const Ui={name:"",city:"",countryCode:{}},Ai={"location.name":"ASC","location.city":"DEFAULT","country.countryName":"DEFAULT","location.phone":"DEFAULT",noOfEmployees:"DEFAULT"},Pi=e=>e.map((e=>({id:e.id,name:e.name,city:e.city,country:e.country.countryName,phone:e.phone,noOfEmployees:e.noOfEmployees?e.noOfEmployees:0})));var qi={components:{"delete-confirmation":Et},props:{countries:{type:Array,default:()=>[]}},setup(){const{sortDefinition:e,sortField:t,sortOrder:o,onSort:l}=Tt({sortDefinition:Ai}),n=(0,a.ref)({...Ui}),r=(0,a.computed)((()=>({name:n.value.name,city:n.value.city,countryCode:n.value.countryCode?.id,sortField:t.value,sortOrder:o.value}))),i=new P(window.appGlobal.baseUrl,"/api/v2/admin/locations"),{showPaginator:s,currentPage:d,total:c,pages:m,pageSize:u,response:p,isLoading:h,execQuery:g}=wt(i,{query:r,normalizer:Pi});return l(g),{http:i,showPaginator:s,currentPage:d,isLoading:h,total:c,pages:m,pageSize:u,execQuery:g,items:p,filters:n,sortDefinition:e}},data(){const e={delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}};return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1},sortField:"location.name"},{name:"city",title:this.$t("general.city"),style:{flex:1},sortField:"location.city"},{name:"country",title:this.$t("general.country"),style:{flex:1},sortField:"country.countryName"},{name:"phone",title:this.$t("general.phone"),style:{flex:1},sortField:"location.phone"},{name:"noOfEmployees",title:this.$t("admin.number_of_employees"),style:{flex:1},sortField:"noOfEmployees"},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:e}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveLocation")},onClickEdit(e){U("/admin/saveLocation/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onClickReset(){this.filters={...Ui},this.filterItems()}}};const Mi=(0,r.Z)(qi,[["render",Li]]);var Fi=Mi;const ji={class:"orangehrm-background-container"},zi={class:"orangehrm-card-container"};function Ri(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ji,[(0,a.createElementVNode)("div",zi,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_location")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.location.name=e),label:e.$t("general.name"),rules:n.rules.name,required:"",disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.city,"onUpdate:modelValue":t[1]||(t[1]=e=>n.location.city=e),label:e.$t("general.city"),rules:n.rules.city,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.province,"onUpdate:modelValue":t[2]||(t[2]=e=>n.location.province=e),label:e.$t("general.state_province"),rules:n.rules.province,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.zipCode,"onUpdate:modelValue":t[3]||(t[3]=e=>n.location.zipCode=e),label:e.$t("general.zip_postal_code"),rules:n.rules.zipCode,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.countryCode,"onUpdate:modelValue":t[4]||(t[4]=e=>n.location.countryCode=e),type:"select",label:e.$t("general.country"),rules:n.rules.countryCode,clear:!1,options:o.countries,required:"",disabled:!r.hasCreatePermissions},null,8,["modelValue","label","rules","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.phone,"onUpdate:modelValue":t[5]||(t[5]=e=>n.location.phone=e),modelModifiers:{trim:!0},label:e.$t("general.phone"),rules:n.rules.phone,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.fax,"onUpdate:modelValue":t[6]||(t[6]=e=>n.location.fax=e),label:e.$t("general.fax"),rules:n.rules.fax,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.address,"onUpdate:modelValue":t[7]||(t[7]=e=>n.location.address=e),type:"textarea",label:e.$t("admin.address"),rules:n.rules.address,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.note,"onUpdate:modelValue":t[8]||(t[8]=e=>n.location.note=e),type:"textarea",label:e.$t("general.notes"),rules:n.rules.note,disabled:!r.hasCreatePermissions,placeholder:e.$t("general.type_here_message")},null,8,["modelValue","label","rules","disabled","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),r.hasCreatePermissions?((0,a.openBlock)(),(0,a.createBlock)(g,{key:0})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Oi={name:"",countryCode:null,province:"",city:"",address:"",zipCode:"",phone:"",fax:"",note:""};var Gi={props:{countries:{type:Array,default:()=>[]}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/locations");return{http:e}},data(){return{isLoading:!1,location:{...Oi},rules:{name:[jt,zt(100)],countryCode:[jt],province:[zt(50)],city:[zt(50)],address:[zt(250)],zipCode:[zt(30)],phone:[zt(30),so],fax:[zt(30),so],note:[zt(250)]}}},computed:{hasCreatePermissions(){return this.$can.create("locations")}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/admin/viewLocations")},onSave(){this.isLoading=!0,this.http.create({...this.location,countryCode:this.location.countryCode.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))}}};const Zi=(0,r.Z)(Gi,[["render",Ri]]);var Qi=Zi;const Hi={class:"orangehrm-background-container"},Wi={class:"orangehrm-card-container"};function Yi(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Hi,[(0,a.createElementVNode)("div",Wi,[(0,a.createVNode)(i,{class:"orangehrm-main-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_location")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.location.name=e),disabled:!r.hasUpdatePermissions,rules:n.rules.name,label:e.$t("general.name"),required:""},null,8,["modelValue","disabled","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.city,"onUpdate:modelValue":t[1]||(t[1]=e=>n.location.city=e),disabled:!r.hasUpdatePermissions,rules:n.rules.city,label:e.$t("general.city")},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.province,"onUpdate:modelValue":t[2]||(t[2]=e=>n.location.province=e),disabled:!r.hasUpdatePermissions,rules:n.rules.province,label:e.$t("general.state_province")},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.zipCode,"onUpdate:modelValue":t[3]||(t[3]=e=>n.location.zipCode=e),disabled:!r.hasUpdatePermissions,rules:n.rules.zipCode,label:e.$t("general.zip_postal_code")},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.countryCode,"onUpdate:modelValue":t[4]||(t[4]=e=>n.location.countryCode=e),clear:!1,disabled:!r.hasUpdatePermissions,options:o.countries,rules:n.rules.countryCode,label:e.$t("general.country"),required:"",type:"select"},null,8,["modelValue","disabled","options","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.phone,"onUpdate:modelValue":t[5]||(t[5]=e=>n.location.phone=e),modelModifiers:{trim:!0},disabled:!r.hasUpdatePermissions,rules:n.rules.phone,label:e.$t("general.phone")},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.fax,"onUpdate:modelValue":t[6]||(t[6]=e=>n.location.fax=e),disabled:!r.hasUpdatePermissions,rules:n.rules.fax,label:e.$t("general.fax")},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.address,"onUpdate:modelValue":t[7]||(t[7]=e=>n.location.address=e),disabled:!r.hasUpdatePermissions,rules:n.rules.address,label:e.$t("admin.address"),type:"textarea"},null,8,["modelValue","disabled","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.location.note,"onUpdate:modelValue":t[8]||(t[8]=e=>n.location.note=e),disabled:!r.hasUpdatePermissions,rules:n.rules.note,label:e.$t("general.note"),type:"textarea"},null,8,["modelValue","disabled","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),r.hasUpdatePermissions?((0,a.openBlock)(),(0,a.createBlock)(g,{key:0})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Ji={name:"",countryCode:null,province:"",city:"",address:"",zipCode:"",phone:"",fax:"",note:""};var Xi={props:{locationId:{type:String,required:!0},countries:{type:Array,default:()=>[]}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/locations");return{http:e}},data(){return{isLoading:!1,location:{...Ji},rules:{name:[jt,zt(100)],countryCode:[jt],province:[zt(50)],city:[zt(50)],address:[zt(250)],zipCode:[zt(30)],phone:[zt(30),so],fax:[zt(30),so],note:[zt(250)]}}},computed:{hasUpdatePermissions(){return this.$can.update("locations")}},created(){this.isLoading=!0,this.http.get(parseInt(this.locationId,10)).then((e=>{const{data:t}=e.data;return this.location.name=t.name,this.location.countryCode=this.countries.find((e=>e.id===t.country.countryCode)),this.location.province=t.province,this.location.city=t.city,this.location.address=t.address,this.location.zipCode=t.zipCode,this.location.phone=t.phone,this.location.fax=t.fax,this.location.note=t.note,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return parseInt(e,10)===parseInt(this.locationId,10)||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/admin/viewLocations")},onSave(){this.isLoading=!0,this.http.update(this.locationId,{name:this.location.name,countryCode:this.location.countryCode.id,province:this.location.province,city:this.location.city,address:this.location.address,zipCode:this.location.zipCode,phone:this.location.phone,fax:this.location.fax,note:this.location.note}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))}}};const Ki=(0,r.Z)(Xi,[["render",Yi]]);var es=Ki;const ts={class:"orangehrm-background-container"},os={class:"orangehrm-paper-container"},as={class:"orangehrm-header-container"},ls={class:"orangehrm-container"},ns={class:"orangehrm-bottom-container"};function rs(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ts,[(0,a.createElementVNode)("div",os,[(0,a.createElementVNode)("div",as,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.pay_grades")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",ls,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",ns,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}const is=e=>e.map((e=>{const t=e.currencies.map((e=>e.name));return{id:e.id,name:e.name,currency:t.join(",")}}));var ss={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/pay-grades"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e,{normalizer:is});return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{"flex-basis":"40%"}},{name:"currency",title:this.$t("general.currency"),style:{"flex-basis":"40%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/payGrade")},onClickEdit(e){U("/admin/payGrade/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const ds=(0,r.Z)(ss,[["render",rs]]);var cs=ds;const ms={class:"orangehrm-background-container"},us={class:"orangehrm-card-container"};function ps(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ms,[(0,a.createElementVNode)("div",us,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_pay_grade")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.grade.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.grade.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var hs={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/pay-grades");return{http:e}},data(){return{isLoading:!1,grade:{id:"",name:""},rules:{name:[jt,zt(50)]},errors:[]}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")})),this.isLoading=!1})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.grade.name}).then((e=>{const{data:t}=e.data;this.$toast.saveSuccess(),U("/admin/payGrade/{id}",{id:t.id})}))},onCancel(){U("/admin/viewPayGrades")}}};const gs=(0,r.Z)(hs,[["render",ps]]);var vs=gs;const fs={class:"orangehrm-background-container"},ys={class:"orangehrm-card-container"};function Cs(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("pay-grade-currency");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",fs,[(0,a.createElementVNode)("div",ys,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_pay_grade")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.grade.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.grade.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])]),(0,a.createVNode)(y,{"pay-grade-id":o.payGradeId},null,8,["pay-grade-id"])],64)}const bs={class:"orangehrm-background-container"},Vs={class:"orangehrm-paper-container"},xs={class:"orangehrm-header-container"},ws={class:"orangehrm-container"},Ns={class:"orangehrm-bottom-container"};function _s(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-pay-currency"),s=(0,a.resolveComponent)("edit-pay-currency"),d=(0,a.resolveComponent)("inline-action-button"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,"pay-grade-id":o.payGradeId,onClose:r.onSaveModalClose},null,8,["pay-grade-id","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,data:n.editModalState,"pay-grade-id":o.payGradeId,onClose:r.onEditModalClose},null,8,["data","pay-grade-id","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",bs,[(0,a.createElementVNode)("div",Vs,[(0,a.createElementVNode)("div",xs,[(0,a.createVNode)(d,{"display-type":"secondary",onClick:r.onclickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.currencies")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",ws,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:r.selectable,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","loading"])]),(0,a.createElementVNode)("div",Ns,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])])],64)}const ks={class:"orangehrm-action-header"};function Ss(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ks,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)])),_:3}),(0,a.createVNode)(s,(0,a.mergeProps)({label:e.$t("general.add"),"icon-name":"plus","display-type":"text"},e.$attrs),null,16,["label"])])}var Ds={name:"InlineActionButton",inheritAttrs:!1};const $s=(0,r.Z)(Ds,[["render",Ss],["__scopeId","data-v-6526a07f"]]);var Es=$s;const Ts={class:"orangehrm-card-container"};function Bs(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ts,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_currency")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.currencyId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.payCurrency.currencyId=e),type:"select",label:e.$t("general.currency"),options:n.currencies,rules:n.rules.currencyId,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.minSalary,"onUpdate:modelValue":t[1]||(t[1]=e=>n.payCurrency.minSalary=e),label:e.$t("admin.minimum_salary"),rules:n.rules.minSalary},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.maxSalary,"onUpdate:modelValue":t[2]||(t[2]=e=>n.payCurrency.maxSalary=e),label:e.$t("admin.maximum_salary"),rules:n.rules.maxSalary},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const Is={currencyId:null,minSalary:"",maxSalary:""};var Ls={name:"SavePayCurrency",props:{payGradeId:{type:Number,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/pay-grades/${e.payGradeId}/currencies`);return{http:t}},data(){return{isLoading:!1,payCurrency:{...Is},currencies:[],rules:{currencyId:[jt],minSalary:[mo(1e9),Qt],maxSalary:[mo(1e9),Qt,ho((()=>this.payCurrency.minSalary),this.$t("admin.should_be_higher_than_minimum_salary"))]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:`/api/v2/admin/pay-grades/${this.payGradeId}/currencies/allowed`,params:{limit:0}}).then((e=>{const{data:t}=e.data;this.currencies=t.map((e=>({id:e.id,label:e.id+" - "+e.name})))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({...this.payCurrency,currencyId:this.payCurrency.currencyId.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Us=(0,r.Z)(Ls,[["render",Bs]]);var As=Us;const Ps={class:"orangehrm-card-container"};function qs(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ps,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_currency")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.payCurrency.name=e),label:e.$t("general.currency"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.minSalary,"onUpdate:modelValue":t[1]||(t[1]=e=>n.payCurrency.minSalary=e),label:e.$t("admin.minimum_salary"),rules:n.rules.minSalary},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.payCurrency.maxSalary,"onUpdate:modelValue":t[2]||(t[2]=e=>n.payCurrency.maxSalary=e),label:e.$t("admin.maximum_salary"),rules:n.rules.maxSalary},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const Ms={currencyId:null,minSalary:"",maxSalary:""};var Fs={name:"EditPayCurrency",props:{payGradeId:{type:Number,required:!0},data:{type:Object,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/pay-grades/${e.payGradeId}/currencies`);return{http:t}},data(){return{isLoading:!1,payCurrency:{...Ms},rules:{currencyId:[jt],minSalary:[mo(1e9),Qt],maxSalary:[mo(1e9),Qt,ho((()=>this.payCurrency.minSalary),this.$t("admin.should_be_higher_than_minimum_salary"))]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.payCurrency.name=t.currencyType.name,this.payCurrency.minSalary=t.minSalary?t.minSalary:"0",this.payCurrency.maxSalary=t.maxSalary?t.maxSalary:"0"})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{minSalary:this.payCurrency.minSalary,maxSalary:this.payCurrency.maxSalary}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const js=(0,r.Z)(Fs,[["render",qs]]);var zs=js;const Rs=e=>e.map((e=>({id:e.currencyType.id,name:e.currencyType.name,maxSalary:e.maxSalary?parseFloat(e.maxSalary).toFixed(2):"0.00",minSalary:e.minSalary?parseFloat(e.minSalary).toFixed(2):"0.00"})));var Os={name:"PayGradeCurrency",components:{"inline-action-button":Es,"save-pay-currency":As,"edit-pay-currency":zs,"delete-confirmation":Et},props:{payGradeId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/pay-grades/${e.payGradeId}/currencies`),{showPaginator:o,currentPage:a,total:l,pages:n,pageSize:r,response:i,isLoading:s,execQuery:d}=wt(t,{normalizer:Rs});return{http:t,showPaginator:o,currentPage:a,isLoading:s,total:l,pages:n,pageSize:r,execQuery:d,items:i}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.currency"),style:{flex:2}},{name:"minSalary",title:this.$t("admin.minimum_salary"),style:{flex:1}},{name:"maxSalary",title:this.$t("admin.maximum_salary"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{selectable(){return!(this.showSaveModal||this.showEditModal)}},methods:{onclickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickDelete(e){this.selectable&&this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},onClickDeleteSelected(){if(!this.selectable)return;const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Gs=(0,r.Z)(Os,[["render",_s]]);var Zs=Gs,Qs={components:{"pay-grade-currency":Zs},props:{payGradeId:{type:String,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/pay-grades");return{http:e}},data(){return{isLoading:!1,grade:{id:"",name:""},rules:{name:[jt,zt(50)]},errors:[]}},created(){this.isLoading=!0,this.http.get(this.payGradeId).then((e=>{const{data:t}=e.data;return this.grade.id=t.id,this.grade.name=t.name,this.http.getAll()})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.grade.id||this.$t("general.already_exists")}return!0})),this.isLoading=!1})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.payGradeId,{name:this.grade.name}).then((()=>this.$toast.updateSuccess())).then((()=>{A()}))},onCancel(){U("/admin/viewPayGrades")}}};const Hs=(0,r.Z)(Qs,[["render",Cs]]);var Ws=Hs;const Ys={class:"orangehrm-background-container"},Js={class:"orangehrm-card-container"},Xs={class:"orangehrm-module-field-row"},Ks={class:"orangehrm-module-field-row"},ed={class:"orangehrm-module-field-row"},td={class:"orangehrm-module-field-row"},od={class:"orangehrm-module-field-row"},ad={class:"orangehrm-module-field-row"},ld={class:"orangehrm-module-field-row"},nd={class:"orangehrm-module-field-row"},rd={class:"orangehrm-module-field-row"};function id(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-switch-input"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("submit-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ys,[(0,a.createElementVNode)("div",Js,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.module_configuration")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Xs,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.admin_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.admin,"onUpdate:modelValue":t[0]||(t[0]=e=>n.modules.admin=e),disabled:!0},null,8,["modelValue"])]),(0,a.createElementVNode)("div",Ks,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.pim_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.pim,"onUpdate:modelValue":t[1]||(t[1]=e=>n.modules.pim=e),disabled:!0},null,8,["modelValue"])]),(0,a.createElementVNode)("div",ed,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.leave_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.leave,"onUpdate:modelValue":t[2]||(t[2]=e=>n.modules.leave=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",td,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.time_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.time,"onUpdate:modelValue":t[3]||(t[3]=e=>n.modules.time=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",od,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.recruitment_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.recruitment,"onUpdate:modelValue":t[4]||(t[4]=e=>n.modules.recruitment=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",ad,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.performance_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.performance,"onUpdate:modelValue":t[5]||(t[5]=e=>n.modules.performance=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",ld,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.directory_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.directory,"onUpdate:modelValue":t[6]||(t[6]=e=>n.modules.directory=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",nd,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.maintenance_module")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.maintenance,"onUpdate:modelValue":t[7]||(t[7]=e=>n.modules.maintenance=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",rd,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.mobile")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.modules.mobile,"onUpdate:modelValue":t[8]||(t[8]=e=>n.modules.mobile=e)},null,8,["modelValue"])])])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const sd={admin:!1,pim:!1,leave:!1,time:!1,recruitment:!1,performance:!1,maintenance:!1,mobile:!1,directory:!1};var dd={components:{"oxd-switch-input":q.OxdSwitchInput},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/modules");return{http:e}},data(){return{modules:{...sd},isLoading:!1}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.modules.admin=t.admin,this.modules.pim=t.pim,this.modules.leave=t.leave,this.modules.time=t.time,this.modules.recruitment=t.recruitment,this.modules.performance=t.performance,this.modules.maintenance=t.maintenance,this.modules.mobile=t.mobile,this.modules.directory=t.directory})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e={admin:!0,pim:!0,leave:this.modules.leave,time:this.modules.time,recruitment:this.modules.recruitment,performance:this.modules.performance,maintenance:this.modules.maintenance,mobile:this.modules.mobile,directory:this.modules.directory};this.http.request({method:"PUT",data:e}).then((e=>{const{data:t}=e.data;return this.modules=t,this.$toast.saveSuccess()})).finally((()=>{this.isLoading=!1,A()}))}}};const cd=(0,r.Z)(dd,[["render",id],["__scopeId","data-v-4e1bed3c"]]);var md=cd;const ud={class:"orangehrm-background-container"},pd={class:"orangehrm-paper-container"},hd={class:"orangehrm-header-container"},gd={class:"orangehrm-container"},vd={class:"orangehrm-bottom-container"};function fd(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ud,[(0,a.createElementVNode)("div",pd,[(0,a.createElementVNode)("div",hd,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.work_shifts")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",gd,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",vd,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var yd={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/work-shifts"),{timeFormat:t,jsTimeFormat:o}=R(),a=e=>e.map((e=>({id:e.id,name:e.name,startTime:ue(me(e.startTime,t),o),endTime:ue(me(e.endTime,t),o),hoursPerDay:parseFloat(e.hoursPerDay).toFixed(2)}))),{showPaginator:l,currentPage:n,total:r,pages:i,pageSize:s,response:d,isLoading:c,execQuery:m}=wt(e,{normalizer:a});return{http:e,showPaginator:l,currentPage:n,isLoading:c,total:r,pages:i,pageSize:s,execQuery:m,items:d}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1}},{name:"startTime",title:this.$t("general.from"),style:{flex:1}},{name:"endTime",title:this.$t("general.to"),style:{flex:1}},{name:"hoursPerDay",title:this.$t("admin.hours_per_day"),style:{flex:1}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveWorkShifts")},onClickEdit(e){U("/admin/saveWorkShifts/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Cd=(0,r.Z)(yd,[["render",fd]]);var bd=Cd;const Vd={class:"orangehrm-background-container"},xd={class:"orangehrm-card-container"};function wd(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("time-input"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("work-shift-employee-autocomplete"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Vd,[(0,a.createElementVNode)("div",xd,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_work_shift")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workShift.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.workShift.name=e),label:e.$t("admin.shift_name"),rules:n.rules.name},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.working_hours"))+" *",1)])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workShift.startTime,"onUpdate:modelValue":t[1]||(t[1]=e=>n.workShift.startTime=e),rules:n.rules.fromTime,label:e.$t("general.from")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workShift.endTime,"onUpdate:modelValue":t[2]||(t[2]=e=>n.workShift.endTime=e),rules:n.rules.endTime,label:e.$t("general.to")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{label:e.$t("admin.duration_per_day")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-workshift-duration",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.selectedTimeDuration),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.workShift.empNumbers,"onUpdate:modelValue":t[3]||(t[3]=e=>n.workShift.empNumbers=e),rules:n.rules.empNumbers},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}function Nd(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete");return(0,a.openBlock)(),(0,a.createBlock)(i,{label:e.$t("admin.assigned_employees"),multiple:!0,clear:!1,"create-options":r.loadEmployees},null,8,["label","create-options"])}var _d={name:"WorkShiftEmployeeAutocomplete",components:{"employee-autocomplete":Va},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/work-shifts/employees");return{http:e}},methods:{async loadEmployees(e){return new Promise((t=>{e.trim()?this.http.getAll({nameOrId:e.trim()}).then((({data:e})=>{t(e.data.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId}))))})):t([])}))}}};const kd=(0,r.Z)(_d,[["render",Nd]]);var Sd=kd;const Dd={id:"",name:"",hoursPerDay:"",startTime:"",endTime:"",empNumbers:[]};var $d={components:{"work-shift-employee-autocomplete":Sd},props:{workShiftConfig:{type:Object,required:!0,default:()=>({})}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/work-shifts");return{http:e}},data(){return{isLoading:!1,workShift:{...Dd},rules:{name:[jt,zt(50)],fromTime:[jt,Gt],endTime:[jt,Gt,lo((()=>this.workShift.startTime),this.$t("general.to_time_should_be_after_from_time"))],empNumbers:[xo]}}},computed:{selectedTimeDuration(){return parseFloat(ge(this.workShift.startTime,this.workShift.endTime)/3600).toFixed(2)}},beforeMount(){this.isLoading=!0,this.workShift.startTime=this.workShiftConfig.startTime,this.workShift.endTime=this.workShiftConfig.endTime,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e={name:this.workShift.name,hoursPerDay:this.selectedTimeDuration,startTime:this.workShift.startTime,endTime:this.workShift.endTime,empNumbers:this.workShift.empNumbers.map((e=>e.id))};this.http.create(e).then((()=>this.$toast.saveSuccess())).then((()=>{this.workShift={...Dd},this.onCancel()}))},onCancel(){U("/admin/workShift")}}};const Ed=(0,r.Z)($d,[["render",wd],["__scopeId","data-v-003161fa"]]);var Td=Ed;const Bd={class:"orangehrm-background-container"},Id={class:"orangehrm-card-container"};function Ld(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("time-input"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("work-shift-employee-autocomplete"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Bd,[(0,a.createElementVNode)("div",Id,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_work_shift")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workShift.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.workShift.name=e),label:e.$t("admin.shift_name"),rules:n.rules.name},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("Working Hours*")])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workShift.startTime,"onUpdate:modelValue":t[1]||(t[1]=e=>n.workShift.startTime=e),rules:n.rules.fromTime,label:e.$t("general.from")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workShift.endTime,"onUpdate:modelValue":t[2]||(t[2]=e=>n.workShift.endTime=e),rules:n.rules.endTime,label:e.$t("general.to")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{label:e.$t("admin.duration_per_day")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-workshift-duration",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.selectedTimeDuration),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.workShift.empNumbers,"onUpdate:modelValue":t[3]||(t[3]=e=>n.workShift.empNumbers=e),rules:n.rules.empNumbers},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Ud={id:"",name:"",hoursPerDay:"",startTime:null,endTime:null,empNumbers:[]};var Ad={components:{"work-shift-employee-autocomplete":Sd},props:{workShiftId:{type:Number,required:!0,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/work-shifts");return{http:e}},data(){return{isLoading:!1,workShift:{...Ud},rules:{name:[jt,zt(50)],fromTime:[Gt],endTime:[Gt,lo((()=>this.workShift.startTime),"To time should be after from time")],empNumbers:[xo]}}},computed:{selectedTimeDuration(){return parseFloat(ge(this.workShift.startTime,this.workShift.endTime)/3600).toFixed(2)}},beforeMount(){this.isLoading=!0,this.http.get(this.workShiftId).then((e=>{const{data:t}=e.data;return this.workShift.id=t.id,this.workShift.name=t.name,this.workShift.hoursPerDay=t.hoursPerDay,this.workShift.startTime=t.startTime,this.workShift.endTime=t.endTime,this.workShift.empNumbers=t.employees.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId}))),this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.workShift.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e={name:this.workShift.name,hoursPerDay:this.selectedTimeDuration,startTime:this.workShift.startTime,endTime:this.workShift.endTime,empNumbers:this.workShift.empNumbers.map((e=>e.id))};this.http.update(this.workShiftId,e).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/admin/workShift")}}};const Pd=(0,r.Z)(Ad,[["render",Ld],["__scopeId","data-v-4e80e7d6"]]);var qd=Pd;const Md={class:"orangehrm-background-container"},Fd={class:"orangehrm-paper-container"},jd={class:"orangehrm-header-container"},zd={class:"orangehrm-container"},Rd=(0,a.createElementVNode)("div",{class:"orangehrm-bottom-container"},null,-1);function Od(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Md,[(0,a.createElementVNode)("div",Fd,[(0,a.createElementVNode)("div",jd,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.email_subscriptions")),1)])),_:1})]),(0,a.createVNode)(s,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",zd,[(0,a.createVNode)(d,{loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["loading","headers","items"])]),Rd])])}var Gd={setup(){const{$t:e}=Se(),t=t=>t.map((t=>{const o=Array.isArray(t.subscribers)?t.subscribers.slice(0,10):[];let a=t.name;switch(a){case"Leave Applications":a=e("admin.leave_applications");break;case"Leave Approvals":a=e("admin.leave_approvals");break;case"Leave Assignments":a=e("admin.leave_assignments");break;case"Leave Cancellations":a=e("admin.leave_cancellation");break;case"Leave Rejections":a=e("admin.leave_rejections");break}return{id:t.id,type:a,subscribers:o.map((e=>`${e.name} <${e.email}>`)).join(", "),enabled:t.isEnabled,_loading:!1}})),o=new P(window.appGlobal.baseUrl,"/api/v2/admin/email-subscriptions"),{total:a,response:l,isLoading:n}=wt(o,{normalizer:t});return{http:o,isLoading:n,total:a,items:l}},data(){return{headers:[{name:"type",slot:"title",title:this.$t("admin.notification_type"),style:{flex:"20%"}},{name:"subscribers",title:this.$t("admin.subscribers"),style:{flex:"65%"}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:"15%"},cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer}]}},methods:{cellRenderer(...e){const[t,,,o]=e,a={component:"oxd-icon-button",props:{name:"person-plus-fill",onClick:()=>{U("/admin/saveSubscriber/{id}",{id:o.id})}}},l={component:q.OxdSwitchInput,props:{modelValue:o.enabled,"onUpdate:modelValue":e=>{this.items.data[t]._loading=!0,this.http.update(o.id,{enabled:e}).then((e=>{const{data:o}=e.data;this.items.data[t].enabled=o.isEnabled,this.$toast.updateSuccess()})).finally((()=>{this.items.data[t]._loading=!1}))},style:{"margin-left":"1rem","text-align":"left"}}},n={component:q.OxdSpinner,props:{withContainer:!1}};return{props:{header:{cellConfig:{...o._loading?{loader:n}:{addSubscriber:a,switchSubscription:l}}}}}}}};const Zd=(0,r.Z)(Gd,[["render",Od]]);var Qd=Zd;const Hd={class:"orangehrm-background-container"},Wd={class:"orangehrm-paper-container"},Yd={class:"orangehrm-header-container"},Jd={class:"orangehrm-container"},Xd={class:"orangehrm-bottom-container"};function Kd(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation"),p=(0,a.resolveComponent)("save-subscriber"),h=(0,a.resolveComponent)("edit-subscriber");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Hd,[(0,a.createElementVNode)("div",Wd,[(0,a.createElementVNode)("div",Yd,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.subscribers"))+": "+(0,a.toDisplayString)(r.title),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Jd,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",Xd,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512),n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,data:{subscriptionId:o.subscriptionId},onClose:r.onSaveModalClose},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(h,{key:1,data:n.editModalState,onClose:r.onEditModalClose},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0)])}const ec={class:"orangehrm-modal-header"};function tc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",ec,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_subscriber")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.subscriber.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.subscriber.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.subscriber.email,"onUpdate:modelValue":t[1]||(t[1]=e=>n.subscriber.email=e),label:e.$t("general.email"),rules:n.rules.email,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const oc={name:"",email:""};var ac={name:"SaveSubscriber",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>({})}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/email-subscriptions/${e.data.subscriptionId}/subscribers`);return{http:t}},data(){return{isLoading:!1,subscriber:{...oc},rules:{name:[jt,zt(100)],email:[jt,io,zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;t&&this.rules.email.push((e=>{const o=t.findIndex((t=>t.email==e));return!(o>-1)||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({...this.subscriber}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.subscriber={...oc},this.$emit("close",!0)}}};const lc=(0,r.Z)(ac,[["render",tc],["__scopeId","data-v-cc6ef064"]]);var nc=lc;const rc={class:"orangehrm-modal-header"};function ic(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",rc,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.edit_subscriber")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.subscriber.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.subscriber.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.subscriber.email,"onUpdate:modelValue":t[1]||(t[1]=e=>n.subscriber.email=e),label:e.$t("general.email"),rules:n.rules.email,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const sc={name:"",email:""};var dc={name:"EditSubscriber",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>({})}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/email-subscriptions/${e.data.subscriptionId}/subscribers`);return{http:t}},data(){return{isLoading:!1,subscriber:{...sc},rules:{name:[jt,zt(100)],email:[jt,io,zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;return this.subscriber.name=t.name,this.subscriber.email=t.email,this.http.getAll()})).then((e=>{const{data:t}=e.data;t&&this.rules.email.push((e=>{const o=t.findIndex((t=>t.email==e));if(o>-1){const{id:e}=t[o];return e==this.data.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.subscriber}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.subscriber={...sc},this.$emit("close",!0)}}};const cc=(0,r.Z)(dc,[["render",ic],["__scopeId","data-v-36993096"]]);var mc=cc,uc={components:{"save-subscriber":nc,"edit-subscriber":mc,"delete-confirmation":Et},props:{subscriptionId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/email-subscriptions/${e.subscriptionId}/subscribers`),{showPaginator:o,currentPage:a,total:l,pages:n,pageSize:r,response:i,isLoading:s,execQuery:d}=wt(t);return{http:t,showPaginator:o,currentPage:a,isLoading:s,total:l,pages:n,pageSize:r,execQuery:d,items:i}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:"30%"}},{name:"email",title:this.$t("general.email"),style:{flex:"55%"}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:"15%"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{title(){return this.items.meta?this.items.meta?.name:""}},methods:{onClickAdd(){this.showSaveModal=!0},onClickEdit(e){this.editModalState={...e,subscriptionId:this.subscriptionId},this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.editModalState=null,this.showEditModal=!1,this.resetDataTable()},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const pc=(0,r.Z)(uc,[["render",Kd]]);var hc=pc;const gc={class:"orangehrm-background-container"},vc={class:"orangehrm-card-container"};function fc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",gc,[(0,a.createElementVNode)("div",vc,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.localization")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.configuration.language,"onUpdate:modelValue":t[0]||(t[0]=e=>n.configuration.language=e),label:e.$t("general.language"),type:"select","show-empty-selector":!1,options:o.languageList},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.configuration.dateFormat,"onUpdate:modelValue":t[1]||(t[1]=e=>n.configuration.dateFormat=e),label:e.$t("admin.date_format"),type:"select","show-empty-selector":!1,options:o.dateFormatList},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var yc={props:{dateFormatList:{type:Array,required:!0},languageList:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/localization");return{http:e}},data(){return{isLoading:!1,configuration:{language:null,dateFormat:null}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.configuration.language=this.languageList.find((e=>e.id===t.language)),this.configuration.dateFormat=this.dateFormatList.find((e=>e.id===t.dateFormat))})).finally((()=>this.isLoading=!1))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",url:"/api/v2/admin/localization",data:{language:this.configuration.language?.id,dateFormat:this.configuration.dateFormat?.id}}).then((()=>this.$toast.updateSuccess())).then((()=>A()))}}};const Cc=(0,r.Z)(yc,[["render",fc]]);var bc=Cc;const Vc=e=>((0,a.pushScopeId)("data-v-f2980770"),e=e(),(0,a.popScopeId)(),e),xc={class:"orangehrm-background-container"},wc={class:"orangehrm-card-container"},Nc=Vc((()=>(0,a.createElementVNode)("br",null,null,-1))),_c=Vc((()=>(0,a.createElementVNode)("br",null,null,-1))),kc={class:"orangehrm-sm-field"},Sc={class:"orangehrm-actions-group"};function Dc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("inline-color-input"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("file-upload-input"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xc,[(0,a.createElementVNode)("div",wc,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.corporate_branding")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{ref:"formRef",loading:e.isLoading,onSubmitValid:l.onFormSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.primaryColor,"onUpdate:modelValue":t[0]||(t[0]=t=>e.colors.primaryColor=t),rules:l.rules.color,label:e.$t("admin.primary_color"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-column-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.secondaryColor,"onUpdate:modelValue":t[1]||(t[1]=t=>e.colors.secondaryColor=t),rules:l.rules.color,label:e.$t("admin.secondary_color"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.primaryFontColor,"onUpdate:modelValue":t[2]||(t[2]=t=>e.colors.primaryFontColor=t),rules:l.rules.color,label:e.$t("admin.primary_font_color"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2 --offset-column-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.secondaryFontColor,"onUpdate:modelValue":t[3]||(t[3]=t=>e.colors.secondaryFontColor=t),rules:l.rules.color,label:e.$t("admin.secondary_font_color"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.primaryGradientStartColor,"onUpdate:modelValue":t[4]||(t[4]=t=>e.colors.primaryGradientStartColor=t),rules:l.rules.color,label:e.$t("admin.primary_gradient_color_one"),type:"color",required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-3 --offset-column-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.colors.primaryGradientEndColor,"onUpdate:modelValue":t[5]||(t[5]=t=>e.colors.primaryGradientEndColor=t),rules:l.rules.color,label:e.$t("admin.primary_gradient_color_two"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),Nc,(0,a.createVNode)(s),_c,(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{newFile:e.clientLogo.newAttachment,"onUpdate:newFile":t[6]||(t[6]=t=>e.clientLogo.newAttachment=t),method:e.clientLogo.method,"onUpdate:method":t[7]||(t[7]=t=>e.clientLogo.method=t),label:e.$t("admin.client_logo"),"button-label":e.$t("general.browse"),file:e.clientLogo.oldAttachment,rules:l.rules.clientLogo,hint:e.$t("general.accept_jpg_png_gif_upto_recommended_dimensions",{fileSize:"1MB",width:50,height:50}),"button-icon":"",url:"admin/theme/attachments/image"},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{newFile:e.clientBanner.newAttachment,"onUpdate:newFile":t[8]||(t[8]=t=>e.clientBanner.newAttachment=t),method:e.clientBanner.method,"onUpdate:method":t[9]||(t[9]=t=>e.clientBanner.method=t),label:e.$t("admin.client_banner"),"button-label":e.$t("general.browse"),file:e.clientBanner.oldAttachment,rules:l.rules.clientBanner,hint:e.$t("general.accept_jpg_png_gif_upto_recommended_dimensions",{fileSize:"1MB",width:182,height:50}),"button-icon":"",url:"admin/theme/attachments/image"},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{newFile:e.loginBanner.newAttachment,"onUpdate:newFile":t[10]||(t[10]=t=>e.loginBanner.newAttachment=t),method:e.loginBanner.method,"onUpdate:method":t[11]||(t[11]=t=>e.loginBanner.method=t),label:e.$t("admin.login_banner"),"button-label":e.$t("general.browse"),file:e.loginBanner.oldAttachment,rules:l.rules.loginBanner,hint:e.$t("general.accept_jpg_png_gif_upto_recommended_dimensions",{fileSize:"1MB",width:340,height:65}),"button-icon":"",url:"admin/theme/attachments/image"},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",kc,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-sm-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.social_media_images")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:e.showSocialMediaImages,"onUpdate:modelValue":t[12]||(t[12]=t=>e.showSocialMediaImages=t)},null,8,["modelValue"])])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createElementVNode)("div",Sc,[(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.reset_to_default"),onClick:l.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.preview"),onClick:l.onClickPreview},null,8,["label","onClick"]),(0,a.createVNode)(v,{type:"submit","display-type":"secondary",label:e.$t("general.publish")},null,8,["label"])])])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}function $c({refName:e="formRef"}={}){const t=(0,a.ref)(),o=()=>t.value?.onSubmit(new Event("submit")),l=()=>t.value?.onReset(),n=()=>t.value?.validate(),r=(0,a.computed)((()=>t.value?.isFromInvalid)),i=(0,a.computed)((()=>t.value?.errorbag));return{reset:l,submit:o,validate:n,[e]:t,errorbag:i,invalid:r}}function Ec(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-label"),s=(0,a.resolveComponent)("oxd-color-input"),d=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createBlock)(d,{class:"oxd-input-field-bottom-space",message:l.message,classes:l.classes},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:o.label,class:(0,a.normalizeClass)(l.classes.label)},null,8,["label","class"]),(0,a.createVNode)(s,(0,a.mergeProps)(e.$attrs,{disabled:o.disabled,"has-error":l.hasError,"model-value":o.modelValue,"dropdown-position":"left","onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t))}),null,16,["disabled","has-error","model-value"])])),_:1},8,["message","classes"])}var Tc={name:"InlineColorInput",components:{"oxd-label":q.OxdLabel,"oxd-color-input":q.OxdColorInput},inheritAttrs:!1,props:{label:{type:String,default:null,required:!1},rules:{type:Array,default:()=>[],required:!1},required:{type:Boolean,default:!1,required:!1},modelValue:{type:String,default:null,required:!1},disabled:{type:Boolean,default:!1,required:!1}},emits:["update:modelValue"],setup(e,t){const o=(0,a.toRef)(e,"disabled"),l=(0,a.toRef)(e,"modelValue"),n=l.value,r=async()=>{t.emit("update:modelValue",n),await(0,a.nextTick)()},{hasError:i,message:s}=(0,q.useField)({fieldLabel:e.label??"",rules:e.rules,modelValue:l,onReset:r,disabled:o}),d=(0,a.computed)((()=>({label:{"oxd-input-field-required":e.required},message:{"oxd-input-field-error-message":i},wrapper:{"orangehrm-color-input-wrapper":!0}})));return{classes:d,message:s,hasError:i}}};const Bc=(0,r.Z)(Tc,[["render",Ec],["__scopeId","data-v-9d33cb16"]]);var Ic=Bc;const Lc={primaryColor:null,primaryFontColor:null,secondaryColor:null,secondaryFontColor:null,primaryGradientStartColor:null,primaryGradientEndColor:null},Uc={oldAttachment:null,newAttachment:null,method:"keepCurrent"};var Ac={components:{"oxd-switch-input":q.OxdSwitchInput,"file-upload-input":To,"inline-color-input":Ic},props:{allowedImageTypes:{type:Array,required:!0},aspectRatios:{type:Object,required:!0},aspectRatioTolerance:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/admin/theme"),{saveSuccess:o}=yt(),{formRef:l,invalid:n,validate:r}=$c(),i=(0,a.reactive)({isLoading:!1,colors:{...Lc},clientLogo:{...Uc},clientBanner:{...Uc},loginBanner:{...Uc},showSocialMediaImages:!0}),s={color:[jt,fo],clientLogo:[e=>"replaceCurrent"!==i.clientLogo.method||jt(e),no(1048576),yo(e.aspectRatios.clientLogo,e.aspectRatioTolerance),ro(e.allowedImageTypes)],clientBanner:[e=>"replaceCurrent"!==i.clientBanner.method||jt(e),no(1048576),yo(e.aspectRatios.clientBanner,e.aspectRatioTolerance),ro(e.allowedImageTypes)],loginBanner:[e=>"replaceCurrent"!==i.loginBanner.method||jt(e),no(1048576),yo(e.aspectRatios.loginBanner,e.aspectRatioTolerance),ro(e.allowedImageTypes)]},d=()=>{const e=e=>{if(null===e.method||"replaceCurrent"===e.method)return e.newAttachment};i.isLoading=!0,t.request({method:"PUT",url:"/api/v2/admin/theme",data:{variables:i.colors,showSocialMediaImages:i.showSocialMediaImages,currentClientLogo:i.clientLogo.method,clientLogo:e(i.clientLogo),currentClientBanner:i.clientBanner.method,clientBanner:e(i.clientBanner),currentLoginBanner:i.loginBanner.method,loginBanner:e(i.loginBanner)}}).then((()=>o())).then((()=>A()))},c=()=>{i.isLoading=!0,t.request({method:"DELETE",url:"/api/v2/admin/theme"}).then((()=>A()))},m=()=>{r().then((()=>{!0!==n.value&&(i.isLoading=!0,t.request({method:"POST",url:"/api/v2/admin/theme/preview",data:{...i.colors}}).then((e=>{const{data:t}=e.data;for(const o in t){const e=t[o];document.documentElement.style.setProperty(o,e)}})).finally((()=>i.isLoading=!1)))}))};return(0,a.onBeforeMount)((()=>{i.isLoading=!0,t.getAll().then((e=>{const{data:t}=e.data,{clientLogo:o,clientBanner:a,loginBanner:l,showSocialMediaImages:n,variables:r}=t;i.colors=r,null===o?i.clientLogo.method=null:(i.clientLogo.oldAttachment=o,i.clientLogo.oldAttachment.id="clientLogo"),null===a?i.clientBanner.method=null:(i.clientBanner.oldAttachment=a,i.clientBanner.oldAttachment.id="clientBanner"),null===l?i.loginBanner.method=null:(i.loginBanner.oldAttachment=l,i.loginBanner.oldAttachment.id="loginBanner"),i.showSocialMediaImages=n})).finally((()=>i.isLoading=!1))})),{rules:s,formRef:l,onFormSubmit:d,onClickReset:c,onClickPreview:m,...(0,a.toRefs)(i)}}};const Pc=(0,r.Z)(Ac,[["render",Dc],["__scopeId","data-v-f2980770"]]);var qc=Pc;const Mc={class:"orangehrm-background-container"},Fc={class:"orangehrm-paper-container"},jc={class:"orangehrm-header-container"},zc={class:"orangehrm-container"},Rc={class:"orangehrm-bottom-container"};function Oc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("add-language-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Mc,[(0,a.createElementVNode)("div",Fc,[(0,a.createElementVNode)("div",jc,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.language_packages")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAddLanguage},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{loading:l.isLoading,total:l.total,selected:0},null,8,["loading","total"]),(0,a.createElementVNode)("div",zc,[(0,a.createVNode)(c,{order:l.sortDefinition,"onUpdate:order":t[0]||(t[0]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["order","headers","items","loading"])]),(0,a.createElementVNode)("div",Rc,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),n.showAddLanguageModal?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,onClose:r.onAddLanguageModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)])}const Gc={class:"orangehrm-modal-header"},Zc={class:"addlanguage-note"},Qc={class:"addlanguage-note-text"};function Hc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("languages-dropdown"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(g,{"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Gc,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.add_language_package")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(h,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language,"onUpdate:modelValue":t[0]||(t[0]=e=>n.language=e),rules:n.rules.language},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Zc,[(0,a.createElementVNode)("div",Qc,[(0,a.createVNode)(i,{class:"orangehrm-sub-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.note")),1)])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.translate_text_manually")),1)])),_:1})])])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,{class:"orangehrm-form-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(u,{"display-type":"secondary",label:e.$t("general.save"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}function Wc(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("general.name"),options:l.options,required:""},null,8,["label","options"])}var Yc={name:"LanguagesDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/admin/i18n/languages");return(0,a.onBeforeMount)((()=>{t.getAll({activeOnly:!1,limit:0}).then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.name})))}))})),{options:e}}};const Jc=(0,r.Z)(Yc,[["render",Wc]]);var Xc=Jc,Kc={name:"AddLanguageModal",components:{"oxd-dialog":q.OxdDialog,"languages-dropdown":Xc},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/i18n/languages");return{http:e}},data(){return{isLoading:!1,language:null,rules:{language:[jt]}}},methods:{onSave(){this.http.update(this.language.id,null).then((e=>{if(e)return this.$toast.saveSuccess()})).then((()=>{this.isLoading=!1,this.$emit("close")}))},onCancel(){this.$emit("close")}}};const em=(0,r.Z)(Kc,[["render",Hc],["__scopeId","data-v-08ca613a"]]);var tm=em;const om={languageName:""},am={languageName:"ASC"};var lm={name:"LanguagePackageList",components:{"add-language-modal":tm},setup(){const e=(0,a.ref)({...om}),{sortDefinition:t,sortOrder:o,onSort:l}=Tt({sortDefinition:am}),n=(0,a.computed)((()=>({sortOrder:o.value,activeOnly:!0}))),r=new P(window.appGlobal.baseUrl,"/api/v2/admin/i18n/languages"),{showPaginator:i,currentPage:s,total:d,pages:c,pageSize:m,response:u,isLoading:p,execQuery:h}=wt(r,{query:n});return l(h),{http:r,showPaginator:i,currentPage:s,isLoading:p,total:d,pages:c,pageSize:m,execQuery:h,items:u,filters:e,sortDefinition:t}},data(){return{showAddLanguageModal:!1,headers:[{name:"name",slot:"title",title:this.$t("general.language_packages"),sortField:"languageName",style:{flex:"70%"}},{name:"actions",slot:"footer",title:this.$t("general.actions"),cellType:"oxd-table-cell-actions",style:{flex:"30%"},cellConfig:{translate:{component:"oxd-button",onClick:this.onClickTranslate,props:{label:this.$t("admin.translate"),style:"Text",displayType:"text"}},export:{component:"oxd-button",props:{label:this.$t("admin.export"),displayType:"text",size:"medium"},onClick:this.onClickExport}}}]}},methods:{onClickAddLanguage(){this.showAddLanguageModal=!0},onAddLanguageModalClose(){this.showAddLanguageModal=!1,this.reloadLanguages()},onCancel(){U("/admin/languagePackage")},async reloadLanguages(){await this.execQuery()},onClickTranslate(e){U("/admin/languageCustomization/{id}",{id:e.id})},onClickExport(e){const t=L("/admin/viewLanguagePackage/languageId/{languageId}",{languageId:e.id});window.open(t,"_blank")}}};const nm=(0,r.Z)(lm,[["render",Oc],["__scopeId","data-v-745f4367"]]);var rm=nm;const im=e=>((0,a.pushScopeId)("data-v-1ad53bff"),e=e(),(0,a.popScopeId)(),e),sm={class:"orangehrm-background-container"},dm=im((()=>(0,a.createElementVNode)("br",null,null,-1))),cm={class:"orangehrm-paper-container"},mm={class:"orangehrm-header-container"},um={class:"orangehrm-bottom-container"};function pm(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("language-group-list-dropdown"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("oxd-pagination"),y=(0,a.resolveComponent)("table-header"),C=(0,a.resolveComponent)("edit-translations");return(0,a.openBlock)(),(0,a.createElementBlock)("div",sm,[(0,a.createVNode)(v,{"filter-title":e.$t("admin.translate_language_package")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:l.onSubmit,onReset:l.onReset},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{value:o.languagePackage,label:e.$t("admin.language_package"),disabled:""},null,8,["value","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{value:o.sourceLanguage,label:e.$t("admin.source_language"),disabled:""},null,8,["value","label"])])),_:1})])),_:1}),(0,a.createVNode)(d,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.groupId,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.groupId=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.sourceText,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.sourceText=e),label:e.$t("admin.source_text")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.translatedText,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.translatedText=e),label:e.$t("admin.translated_text")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.onlyTranslated,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.onlyTranslated=e),type:"select",label:e.$t("admin.show"),options:l.translationOptions},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.sortOrder,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.sortOrder=e),type:"select",label:e.$t("admin.order"),options:l.sortOptions},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(p,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),dm,(0,a.createElementVNode)("div",cm,[l.total>0?((0,a.openBlock)(),(0,a.createBlock)(g,{key:0,loading:l.isLoading,onSubmitValid:l.onSubmitLangString,onReset:l.onReset},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",mm,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(f,{key:l.currentPage,current:l.currentPage,"onUpdate:current":t[5]||(t[5]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(y,{loading:l.isLoading,total:l.total,selected:0},null,8,["loading","total"]),l.items?.data?((0,a.openBlock)(),(0,a.createBlock)(C,{key:0,langstrings:l.items.data,"onUpdate:langstrings":t[6]||(t[6]=e=>l.items.data=e)},null,8,["langstrings"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",um,[(0,a.createElementVNode)("div",null,[(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.cancel"),type:"reset"},null,8,["label"]),(0,a.createVNode)(p,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.save"),type:"submit"},null,8,["label"])])])])),_:1})])),_:1},8,["loading","onSubmitValid","onReset"])):(0,a.createCommentVNode)("",!0)])])}const hm={class:"orangehrm-translation-container"};function gm(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-divider"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid");return(0,a.openBlock)(),(0,a.createElementBlock)("div",hm,[(0,a.createVNode)(i),(0,a.createVNode)(m,{cols:3,class:"orangehrm-translation-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{class:"orangehrm-translation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.source_text")),1)])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-translation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.source_note")),1)])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-translation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.translated_text")),1)])),_:1})])),_:1}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.langstrings,((t,o)=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:o},[(0,a.createVNode)(d,{class:"orangehrm-translation-grid-text"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-translation-grid-langstring-header",type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.source_text")),1)])),_:1}),(0,a.createVNode)(s,{title:t.source},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.source),1)])),_:2},1032,["title"])])),_:2},1024),(0,a.createVNode)(d,{class:"orangehrm-translation-grid-text"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-translation-grid-langstring-header-note",type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.source_note")),1)])),_:1}),(0,a.createVNode)(s,{title:t.note,class:"orangehrm-translation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.note),1)])),_:2},1032,["title"])])),_:2},1024),(0,a.createVNode)(d,{class:"orangehrm-translation-grid-text"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-translation-grid-langstring-header",type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.translated_text")),1)])),_:1}),(0,a.createVNode)(c,{type:"input",placeholder:t.target,"model-value":t.target,rules:l.rules.langString,"onUpdate:modelValue":e=>l.onUpdateTranslation(e,o)},null,8,["placeholder","model-value","rules","onUpdate:modelValue"]),(0,a.createVNode)(i,{class:"orangehrm-translation-grid-langstring-header"})])),_:2},1024)],64)))),128))])),_:1}),(0,a.createVNode)(i)])}var vm={props:{langstrings:{type:Array,required:!0}},emits:["update:langstrings"],setup(e,t){const o=(o,a)=>{t.emit("update:langstrings",e.langstrings.map(((e,t)=>t===a?{...e,target:o,modified:!0}:e)))};return{onUpdateTranslation:o,rules:{langString:[Vo]}}}};const fm=(0,r.Z)(vm,[["render",gm],["__scopeId","data-v-5f0f9ef8"]]);var ym=fm;function Cm(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("admin.module"),options:l.options},null,8,["label","options"])}var bm={name:"GroupListDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/admin/i18n/groups");return(0,a.onBeforeMount)((()=>{t.getAll().then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.title})))}))})),{options:e}}};const Vm=(0,r.Z)(bm,[["render",Cm]]);var xm=Vm;const wm={sourceText:null,translatedText:null,groupId:null,sortOrder:null,onlyTranslated:null};var Nm={name:"LanguageTranslationList",components:{"language-group-list-dropdown":xm,"edit-translations":ym},props:{languageId:{type:Number,required:!0},languagePackage:{type:String,required:!0},sourceLanguage:{type:String,required:!0}},setup(e){const{$t:t}=Se(),{saveSuccess:o}=yt(),l=(0,a.ref)([{id:1,label:t("admin.all"),value:null},{id:2,label:t("admin.translated"),value:!0},{id:3,label:t("admin.not_translated"),value:!1}]),n=(0,a.ref)([{id:"ASC",label:t("general.ascending")},{id:"DESC",label:t("general.descending")}]),r=(0,a.ref)({...wm,sortOrder:n.value[0],onlyTranslated:l.value[0]}),i=(0,a.computed)((()=>({sourceText:r.value.sourceText,translatedText:r.value.translatedText,groupId:r.value.groupId?.id,sortOrder:r.value.sortOrder?.id,onlyTranslated:r.value.onlyTranslated?.value}))),s=new P(window.appGlobal.baseUrl,`/api/v2/admin/i18n/languages/${e.languageId}/translations`),{showPaginator:d,currentPage:c,total:m,pages:u,response:p,isLoading:h,execQuery:g}=wt(s,{query:i}),v=()=>{c.value=1,r.value={...wm,sortOrder:n.value[0]},g()},f=()=>{c.value=1,g()},y=()=>{h.value=!0,s.request({method:"PUT",url:`/api/v2/admin/i18n/languages/${e.languageId}/translations/bulk`,data:{data:p.value.data.filter((e=>null!==e.target&&1==e.modified)).map((e=>({langStringId:e.langStringId,translatedValue:e.target})))}}).then((()=>o())).then((()=>A()))};return{showPaginator:d,currentPage:c,isLoading:h,total:m,pages:u,items:p,filters:r,translationOptions:l,sortOptions:n,onReset:v,onSubmit:f,onSubmitLangString:y}}};const _m=(0,r.Z)(Nm,[["render",pm],["__scopeId","data-v-1ad53bff"]]);var km=_m;const Sm=e=>((0,a.pushScopeId)("data-v-89df999a"),e=e(),(0,a.popScopeId)(),e),Dm={class:"orangehrm-background-container"},$m={class:"orangehrm-card-container"},Em={class:"orangehrm-header-container"},Tm=Sm((()=>(0,a.createElementVNode)("br",null,null,-1)));function Bm(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-switch-input"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-icon"),g=(0,a.resolveComponent)("oxd-alert"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("ldap-test-connection-modal"),b=(0,a.resolveComponent)("ldap-sync-connection");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Dm,[(0,a.createElementVNode)("div",$m,[(0,a.createElementVNode)("div",Em,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.ldap_configuration")),1)])),_:1}),(0,a.createVNode)(s,{modelValue:n.configuration.enable,"onUpdate:modelValue":t[0]||(t[0]=e=>n.configuration.enable=e),"label-position":"left","option-label":e.$t("general.enable")},null,8,["modelValue","option-label"])]),(0,a.createVNode)(d),(0,a.createVNode)(y,{ref:"formRef",loading:n.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.server_settings")),1)])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.hostname,"onUpdate:modelValue":t[1]||(t[1]=e=>n.configuration.hostname=e),label:e.$t("admin.host"),rules:n.rules.hostname,required:""},null,8,["modelValue","label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.ldap_host_input_hint")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-column-half"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.port,"onUpdate:modelValue":t[2]||(t[2]=e=>n.configuration.port=e),label:e.$t("admin.port"),rules:n.rules.port,required:""},null,8,["modelValue","label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.port_input_hint")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.encryption,"onUpdate:modelValue":t[3]||(t[3]=e=>n.configuration.encryption=e),type:"select",options:n.encryptionOptions,label:e.$t("admin.encryption")},null,8,["modelValue","options","label"])])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.ldapImplementation,"onUpdate:modelValue":t[4]||(t[4]=e=>n.configuration.ldapImplementation=e),type:"select","show-empty-selector":!1,options:n.ldapImplementationOptions,label:e.$t("admin.ldap_implementation")},null,8,["modelValue","options","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-form-divider"}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.bind_settings")),1)])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-ldap-switch"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-ldap-switch-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.bind_anonymously")),1)])),_:1}),(0,a.createVNode)(s,{modelValue:n.configuration.bindAnonymously,"onUpdate:modelValue":t[5]||(t[5]=e=>n.configuration.bindAnonymously=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),n.configuration.bindAnonymously?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(p,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.bindUserDN,"onUpdate:modelValue":t[6]||(t[6]=e=>n.configuration.bindUserDN=e),label:e.$t("admin.distinguished_name"),rules:n.rules.bindUserDN,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.bindUserPassword,"onUpdate:modelValue":t[7]||(t[7]=e=>n.configuration.bindUserPassword=e),type:"password",label:e.$t("general.password"),placeholder:r.passwordPlaceHolder,rules:n.rules.bindUserPassword,required:!n.configuration.hasBindUserPassword},null,8,["modelValue","label","placeholder","rules","required"])])),_:1})])),_:1})])),_:1})),(0,a.createVNode)(d,{class:"orangehrm-form-divider"}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.user_lookup_settings")),1)])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.baseDistinguishedName,"onUpdate:modelValue":t[8]||(t[8]=e=>n.configuration.baseDistinguishedName=e),label:e.$t("admin.base_distinguished_name"),rules:n.rules.baseDistinguishedName,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.searchScope,"onUpdate:modelValue":t[9]||(t[9]=e=>n.configuration.searchScope=e),type:"select","show-empty-selector":!1,options:n.searchScopeOptions,label:e.$t("admin.search_scope")},null,8,["modelValue","options","label"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.search_scope_input_hint")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.userNameAttribute,"onUpdate:modelValue":t[10]||(t[10]=e=>n.configuration.userNameAttribute=e),label:e.$t("admin.user_name_attribute"),rules:n.rules.userNameAttribute,required:""},null,8,["modelValue","label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.user_name_input_hint")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-4"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.userSearchFilter,"onUpdate:modelValue":t[11]||(t[11]=e=>n.configuration.userSearchFilter=e),label:e.$t("admin.user_search_filter"),rules:n.rules.userSearchFilter,required:""},null,8,["modelValue","label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.user_search_filter_input_hint")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-5"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.userUniqueIdAttribute,"onUpdate:modelValue":t[12]||(t[12]=e=>n.configuration.userUniqueIdAttribute=e),label:e.$t("admin.user_unique_id_attribute"),rules:n.rules.userUniqueIdAttribute},null,8,["modelValue","label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.user_unique_attribute_input_hint")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-form-divider"}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.data_mapping")),1)])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-ldap-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.field_in_orangehrm")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.field_in_ldap_directory")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.use_this_field_as_the_employee_user_mapping_field")),1)])),_:1})])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"oxd-input-field-required"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.first_name")),1)])),_:1}),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.dataMapping.firstName,"onUpdate:modelValue":t[13]||(t[13]=e=>n.configuration.dataMapping.firstName=e),rules:n.rules.firstNameAttribute,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.middle_name")),1)])),_:1}),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.dataMapping.middleName,"onUpdate:modelValue":t[14]||(t[14]=e=>n.configuration.dataMapping.middleName=e),rules:n.rules.middleNameAttribute},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"oxd-input-field-required"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.last_name")),1)])),_:1}),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.dataMapping.lastName,"onUpdate:modelValue":t[15]||(t[15]=e=>n.configuration.dataMapping.lastName=e),rules:n.rules.lastNameAttribute},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.user_status")),1)])),_:1}),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.dataMapping.userStatus,"onUpdate:modelValue":t[16]||(t[16]=e=>n.configuration.dataMapping.userStatus=e),rules:n.rules.userStatusAttribute},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:(0,a.normalizeClass)(r.workEmailLabelClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.work_email")),1)])),_:1},8,["class"]),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(c,{key:n.configuration.employeeSelectorMapping,modelValue:n.configuration.dataMapping.workEmail,"onUpdate:modelValue":t[17]||(t[17]=e=>n.configuration.dataMapping.workEmail=e),rules:n.rules.workEmailAttribute},null,8,["modelValue","rules"]))])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:n.configuration.employeeSelectorMapping,"onUpdate:modelValue":t[18]||(t[18]=e=>n.configuration.employeeSelectorMapping=e),"true-value":"workEmail"},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-ldap-grid-content"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:(0,a.normalizeClass)(r.employeeIdLabelClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.employee_id")),1)])),_:1},8,["class"]),(0,a.createVNode)(h,{class:"orangehrm-ldap-grid-icon",name:"arrow-left"})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(c,{key:n.configuration.employeeSelectorMapping,modelValue:n.configuration.dataMapping.employeeId,"onUpdate:modelValue":t[19]||(t[19]=e=>n.configuration.dataMapping.employeeId=e),rules:n.rules.employeeIdAttribute},null,8,["modelValue","rules"]))])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:n.configuration.employeeSelectorMapping,"onUpdate:modelValue":t[20]||(t[20]=e=>n.configuration.employeeSelectorMapping=e),"true-value":"employeeId"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-form-divider"}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.additional_settings")),1)])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-ldap-switch --offset-row-1"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-ldap-switch-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.merge_ldap_users_with_existing_system_users")),1)])),_:1}),(0,a.createVNode)(s,{modelValue:n.configuration.mergeLDAPUsersWithExistingSystemUsers,"onUpdate:modelValue":t[21]||(t[21]=e=>n.configuration.mergeLDAPUsersWithExistingSystemUsers=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(m,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.configuration.syncInterval,"onUpdate:modelValue":t[22]||(t[22]=e=>n.configuration.syncInterval=e),label:e.$t("admin.sync_interval"),rules:n.rules.syncInterval,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g,{type:"warn",show:!0,message:e.$t("admin.ldap_configuration_warning_message")},null,8,["message"]),(0,a.createVNode)(d),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("admin.test_connection"),onClick:r.onClickTest},null,8,["label","onClick"]),(0,a.createVNode)(v,{type:"button",class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.save"),onClick:r.onClickSave},null,8,["label","onClick"])])),_:1})])),_:1},8,["loading"])]),n.testModalState?((0,a.openBlock)(),(0,a.createBlock)(C,{key:0,data:n.testModalState,onClose:r.onCloseTestModal},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0),Tm,o.showSync?((0,a.openBlock)(),(0,a.createBlock)(b,{key:1})):(0,a.createCommentVNode)("",!0)])}const Im={class:"orangehrm-paper-container"},Lm={class:"orangehrm-header-container"},Um={class:"orangehrm-ldap-sync"};function Am(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-loading-spinner"),d=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Im,[(0,a.createElementVNode)("div",Lm,[(0,a.createElementVNode)("div",Um,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.sync_connection")),1)])),_:1}),(0,a.withDirectives)((0,a.createVNode)(i,{type:"card-body",class:"orangehrm-ldap-sync-time"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" ("+(0,a.toDisplayString)(r.lastSync)+") ",1)])),_:1},512),[[a.vShow,r.lastSync]])]),n.isLoading?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"orangehrm-ldap-sync-loader"})):((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,"display-type":"secondary",class:"orangehrm-ldap-sync-button",label:e.$t("admin.sync_now"),onClick:r.onClickSync},null,8,["label","onClick"]))])])}var Pm={name:"LdapSyncConnection",components:{"oxd-loading-spinner":q.OxdSpinner},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/ldap/user-sync"),{jsDateFormat:t}=R();return{http:e,jsDateFormat:t}},data(){return{isLoading:!1,lastSyncDate:null,lastSyncTime:null,lastSyncStatus:null}},computed:{lastSync(){if(2===this.lastSyncStatus)return null;if(this.lastSyncDate&&this.lastSyncTime){const e=re(`${this.lastSyncDate} ${this.lastSyncTime} +00:00`,"yyyy-MM-dd HH:mm xxx");return this.$t(1===this.lastSyncStatus?"admin.last_synced_on_datetime":"admin.last_sync_failed_on_datetime",{datetime:ie(e,`hh:mm a ${this.jsDateFormat}`)})}return null}},beforeMount(){this.getLastSyncStatus()},methods:{getLastSyncStatus(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.lastSyncStatus=t.syncStatus,this.lastSyncDate=t.syncFinishedAt?.date||t.syncStartedAt?.date,this.lastSyncTime=t.syncFinishedAt?.time||t.syncStartedAt?.time})).finally((()=>{this.isLoading=!1}))},onClickSync(){this.isLoading=!0,this.http.create().then((e=>{const{data:t}=e.data;this.lastSyncStatus=t.syncStatus,this.lastSyncDate=t.syncFinishedAt?.date||t.syncStartedAt?.date,this.lastSyncTime=t.syncFinishedAt?.time||t.syncStartedAt?.time,this.$toast.success({title:this.$t("general.success"),message:this.$t("admin.synchronization_successful")})})).catch((()=>{this.getLastSyncStatus(),this.$toast.error({title:this.$t("general.error"),message:this.$t("admin.synchronization_failed")})})).finally((()=>{this.isLoading=!1}))}}};const qm=(0,r.Z)(Pm,[["render",Am],["__scopeId","data-v-0aa30e8a"]]);var Mm=qm;const Fm={class:"orangehrm-modal-header"};function jm(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(d,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Fm,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.connection_status")),1)])),_:1})]),(0,a.createVNode)(s),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.data,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:e,class:"orangehrm-ldap-test"},[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-ldap-test-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.category),1)])),_:2},1024),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.checks,((e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t,class:"orangehrm-ldap-test-row"},[(0,a.createVNode)(i,{class:"orangehrm-ldap-test-content"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)])),_:2},1024),(0,a.createVNode)(i,{class:(0,a.normalizeClass)(r.getClass(e.value.status))},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.value.message),1)])),_:2},1032,["class"])])))),128))])))),128))])),_:1},8,["onUpdate:show"])}var zm={name:"LdapTestConnectionModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Array,default:()=>[]}},emits:["close"],methods:{getClass(e){return 1===e?"orangehrm-ldap-test-value --success":"orangehrm-ldap-test-value --error"},onCancel(){this.$emit("close")}}};const Rm=(0,r.Z)(zm,[["render",jm],["__scopeId","data-v-7b76f5a0"]]);var Om=Rm;const Gm={enable:!1,hostname:"localhost",port:389,encryption:null,ldapImplementation:null,bindAnonymously:!0,bindUserDN:null,bindUserPassword:null,baseDistinguishedName:null,searchScope:null,userNameAttribute:"cn",userSearchFilter:"objectClass=person",userUniqueIdAttribute:null,mergeLDAPUsersWithExistingSystemUsers:!1,syncInterval:1,employeeSelectorMapping:"",hasBindUserPassword:!1},Zm={firstName:"givenName",lastName:"sn",middleName:null,userStatus:null,workEmail:null,employeeId:null};var Qm={components:{"oxd-icon":q.OxdIcon,"oxd-alert":q.OxdAlert,"oxd-switch-input":q.OxdSwitchInput,"ldap-sync-connection":Mm,"ldap-test-connection-modal":Om},props:{showSync:{type:Boolean,default:!1}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/ldap-config"),{formRef:t,invalid:o,validate:a}=$c();return{http:e,formRef:t,invalid:o,validate:a}},data(){return{isLoading:!1,configuration:{...Gm,dataMapping:{...Zm}},encryptionOptions:[{id:"tls",label:this.$t("admin.tls")},{id:"ssl",label:this.$t("admin.ssl")}],searchScopeOptions:[{id:"sub",label:this.$t("admin.subtree")},{id:"one",label:this.$t("admin.one_level")}],ldapImplementationOptions:[{id:"OpenLDAP",label:this.$t("admin.open_ldap_v3")},{id:"ActiveDirectory",label:this.$t("admin.ms_active_directory")}],rules:{hostname:[jt,wo,zt(255)],port:[jt,No(5,0,65535)],bindUserDN:[jt,zt(255)],bindUserPassword:[e=>this.configuration.hasBindUserPassword||jt(e),zt(255)],baseDistinguishedName:[jt,zt(255)],userNameAttribute:[jt,zt(100)],userSearchFilter:[jt,zt(100)],userUniqueIdAttribute:[zt(100)],firstNameAttribute:[jt,zt(100)],lastNameAttribute:[jt,zt(100)],syncInterval:[jt,Qt,vo(1,23)],middleNameAttribute:[zt(100)],userStatusAttribute:[zt(100)],workEmailAttribute:[e=>"workEmail"!==this.configuration.employeeSelectorMapping||jt(e),zt(100)],employeeIdAttribute:[e=>"employeeId"!==this.configuration.employeeSelectorMapping||jt(e),zt(100)]},testModalState:null}},computed:{passwordPlaceHolder(){return this.configuration.hasBindUserPassword?"********":null},workEmailLabelClasses(){return{"oxd-input-field-required":"workEmail"===this.configuration.employeeSelectorMapping}},employeeIdLabelClasses(){return{"oxd-input-field-required":"employeeId"===this.configuration.employeeSelectorMapping}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data,{userLookupSettings:o}=t,a=o[0];this.configuration.enable=t.enable,this.configuration.hostname=t.hostname,this.configuration.port=t.port,this.configuration.encryption=this.encryptionOptions.find((e=>e.id===t.encryption)),this.configuration.ldapImplementation=this.ldapImplementationOptions.find((e=>e.id===t.ldapImplementation))||this.ldapImplementationOptions[0],this.configuration.bindAnonymously=t.bindAnonymously,this.configuration.bindUserDN=t.bindUserDN,this.configuration.hasBindUserPassword=t.hasBindUserPassword,a&&(this.configuration.baseDistinguishedName=a?.baseDN,this.configuration.userNameAttribute=a?.userNameAttribute,this.configuration.userSearchFilter=a?.userSearchFilter,this.configuration.userUniqueIdAttribute=a?.userUniqueIdAttribute,Array.isArray(a?.employeeSelectorMapping)&&(0===a.employeeSelectorMapping.length?this.configuration.employeeSelectorMapping="":this.configuration.employeeSelectorMapping=a.employeeSelectorMapping[0]["field"])),this.configuration.searchScope=this.searchScopeOptions.find((e=>e.id===a?.searchScope))||this.searchScopeOptions[0],this.configuration.dataMapping=t.dataMapping,this.configuration.mergeLDAPUsersWithExistingSystemUsers=t.mergeLDAPUsersWithExistingSystemUsers,this.configuration.syncInterval=t.syncInterval})).finally((()=>{this.isLoading=!1}))},methods:{onClickTest(){this.validate().then((()=>{if(!0===this.invalid)return;this.isLoading=!0;const e=this.getRequestBody();delete e.enable,delete e.syncInterval,this.http.request({method:"POST",url:"/api/v2/admin/ldap-test-connection",data:e}).then((e=>{const{data:t}=e.data;this.testModalState=t})).finally((()=>this.isLoading=!1))}))},getRequestBody(){let e;return this.configuration.employeeSelectorMapping&&(e=[{field:this.configuration.employeeSelectorMapping,attributeName:this.configuration.dataMapping[this.configuration.employeeSelectorMapping]}]),{enable:this.configuration.enable,hostname:this.configuration.hostname,port:parseInt(this.configuration.port),encryption:this.configuration.encryption?.id||"none",ldapImplementation:this.configuration.ldapImplementation?.id,bindAnonymously:this.configuration.bindAnonymously,bindUserDN:this.configuration.bindUserDN,bindUserPassword:this.configuration.bindUserPassword,userLookupSettings:[{baseDN:this.configuration.baseDistinguishedName,searchScope:this.configuration.searchScope?.id,userNameAttribute:this.configuration.userNameAttribute,userSearchFilter:this.configuration.userSearchFilter,userUniqueIdAttribute:this.configuration.userUniqueIdAttribute,employeeSelectorMapping:e||[]}],dataMapping:this.configuration.dataMapping,mergeLDAPUsersWithExistingSystemUsers:this.configuration.mergeLDAPUsersWithExistingSystemUsers,syncInterval:parseInt(this.configuration.syncInterval)}},onClickSave(){this.validate().then((()=>{!0!==this.invalid&&(this.isLoading=!0,this.http.request({method:"PUT",data:this.getRequestBody()}).then((()=>this.$toast.updateSuccess())).finally((()=>A())))}))},onCloseTestModal(){this.testModalState=null}}};const Hm=(0,r.Z)(Qm,[["render",Bm],["__scopeId","data-v-89df999a"]]);var Wm=Hm,Ym={"job-title-list":At,"job-title-edit":Uo,"job-title-save":zo,"job-category-list":Jo,"job-category-edit":aa,"job-category-save":da,"qualification-education-list":Kl,"qualification-education-edit":nn,"qualification-education-save":un,"system-user-list":Sa,"system-user-edit":Ya,"system-user-save":Ra,"organization-structure":wl,"employment-status-list":ql,"employment-status-save":Ol,"employment-status-edit":$l,"qualification-skill-list":Vn,"qualification-skill-edit":Dn,"qualification-skill-save":Un,"license-list":or,"license-save":Qn,"license-edit":jn,"module-configuration-edit":md,"qualification-language-list":wr,"qualification-language-edit":sr,"qualification-language-save":hr,"qualification-membership-list":Br,"qualification-membership-edit":qr,"qualification-membership-save":Or,"organization-general-information-view":Jr,"nationality-list":ri,"nationality-edit":ui,"nationality-save":yi,"location-list":Fi,"location-save":Qi,"location-edit":es,"email-configuration-view":Si,"pay-grade-list":cs,"pay-grade-add":vs,"pay-grade-edit":Ws,"work-shift-list":bd,"work-shift-save":Td,"work-shift-edit":qd,"email-subscription-list":Qd,"email-subscription-edit":hc,"localization-configuration":bc,"corporate-branding":qc,"language-package-list":rm,"language-translation-edit":km,"ldap-configuration":Wm};const Jm={class:"orangehrm-background-container"},Xm={class:"orangehrm-card-container"},Km={class:"orangehrm-employee-container"},eu={class:"orangehrm-employee-image"},tu={class:"orangehrm-employee-form"};function ou(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("profile-image-input"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("oxd-input-group"),v=(0,a.resolveComponent)("password-input"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Jm,[(0,a.createElementVNode)("div",Xm,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_employee")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Km,[(0,a.createElementVNode)("div",eu,[(0,a.createVNode)(d,{modelValue:l.employee.empPicture,"onUpdate:modelValue":t[0]||(t[0]=e=>l.employee.empPicture=e),rules:n.rules.empPicture,"img-src":r.profilePicUrl},null,8,["modelValue","rules","img-src"])]),(0,a.createElementVNode)("div",tu,[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.employee.firstName,"onUpdate:modelValue":t[1]||(t[1]=e=>l.employee.firstName=e),label:e.$t("pim.employee_first_name")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.employee.lastName,"onUpdate:modelValue":t[2]||(t[2]=e=>l.employee.lastName=e),label:e.$t("pim.employee_last_name")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.employee.middleName,"onUpdate:modelValue":t[3]||(t[3]=e=>l.employee.middleName=e),label:e.$t("pim.employee_middle_name")},null,8,["modelValue","label"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.employee.employeeId,"onUpdate:modelValue":t[4]||(t[4]=e=>l.employee.employeeId=e),label:e.$t("general.employee_id"),rules:n.rules.employeeId},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,{class:"user-form-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"user-form-header-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.create_login_details")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.createLogin,"onUpdate:modelValue":t[5]||(t[5]=e=>n.createLogin=e)},null,8,["modelValue"])])),_:1}),n.createLogin?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.user.username,"onUpdate:modelValue":t[6]||(t[6]=e=>n.user.username=e),label:e.$t("general.username"),rules:n.rules.username,required:"",autocomplete:"off"},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{label:e.$t("general.status"),classes:{wrapper:"--status-grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.user.status,"onUpdate:modelValue":t[7]||(t[7]=e=>n.user.status=e),type:"radio","option-label":e.$t("general.enabled"),value:"1"},null,8,["modelValue","option-label"]),(0,a.createVNode)(c,{modelValue:n.user.status,"onUpdate:modelValue":t[8]||(t[8]=e=>n.user.status=e),type:"radio","option-label":e.$t("general.disabled"),value:"2"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,{password:n.user.password,"onUpdate:password":t[9]||(t[9]=e=>n.user.password=e),passwordConfirm:n.user.passwordConfirm,"onUpdate:passwordConfirm":t[10]||(t[10]=e=>n.user.passwordConfirm=e)},null,8,["password","passwordConfirm"])],64)):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(s),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(C)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const au={class:"employee-image-wrapper"},lu=["src"];function nu(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-input-field"),d=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,(0,a.mergeProps)({ref:"fileInput"},e.$attrs,{type:"file"}),{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",au,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:o.imgSrc},null,8,lu)]),(0,a.createVNode)(i,{name:"plus",role:"none","display-type":"solid-main",class:"employee-image-action"})])),_:1},16),(0,a.createVNode)(d,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accept_jpg_png_upto_1mb_recomended_dimentions_200px_x_200px")),1)])),_:1})],64)}var ru={name:"ProfileImageInput",inheritAttrs:!1,props:{imgSrc:{type:String,required:!0}}};const iu=(0,r.Z)(ru,[["render",nu],["__scopeId","data-v-b553055e"]]);var su=iu;function du(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createBlock)(s,{label:r.localizedLabel,classes:r.classes},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-firstname",name:"firstName",placeholder:e.$t("general.first_name"),"model-value":o.firstName,rules:o.rules.firstName,disabled:o.disabled,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:firstName",t))},null,8,["placeholder","model-value","rules","disabled"]),(0,a.createVNode)(i,{class:"orangehrm-middlename",name:"middleName","model-value":o.middleName,rules:o.rules.middleName,disabled:o.disabled,placeholder:o.showMiddleNamePlaceholder?e.$t("general.middle_name"):"","onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:middleName",t))},null,8,["model-value","rules","disabled","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-lastname",name:"lastName",placeholder:e.$t("general.last_name"),"model-value":o.lastName,rules:o.rules.lastName,disabled:o.disabled,"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update:lastName",t))},null,8,["placeholder","model-value","rules","disabled"])])),_:1},8,["label","classes"])}var cu={name:"FullNameInput",inheritAttrs:!1,props:{firstName:{type:String,required:!0},middleName:{type:String,required:!0},lastName:{type:String,required:!0},rules:{type:Object,required:!0},disabled:{type:Boolean,default:!1},showMiddleNamePlaceholder:{type:Boolean,default:!0},label:{type:String,default:null}},emits:["update:firstName","update:middleName","update:lastName"],computed:{classes(){return{label:{"oxd-input-field-required":!0},wrapper:{"--name-grouped-field":!0}}},localizedLabel(){return this.label?this.label:this.$t("general.employee_full_name")}}};const mu=(0,r.Z)(cu,[["render",du],["__scopeId","data-v-16292a35"]]);var uu=mu;const pu=`${window.appGlobal.publicPath}/images/default-photo.png`,hu={firstName:"",middleName:"",lastName:"",empPicture:null,employeeId:""},gu={username:"",userRoleId:2,empNumber:0,status:"1",password:"",passwordConfirm:""};var vu={components:{"oxd-switch-input":q.OxdSwitchInput,"profile-image-input":su,"password-input":Ma},props:{empId:{type:String,required:!0},allowedImageTypes:{type:Array,required:!0}},setup(e){const t=(0,a.ref)({...hu,employeeId:e.empId?e.empId:""}),o=new P(window.appGlobal.baseUrl,"/api/v2/pim/employees");return{http:o,employee:t}},data(){return{isLoading:!1,createLogin:!1,user:{...gu},empNumber:null,rules:{firstName:[jt,zt(30)],middleName:[zt(30)],lastName:[jt,zt(30)],employeeId:[zt(10)],empPicture:[no(1048576),ro(this.allowedImageTypes)],username:[jt,po(5),zt(40)],status:[jt]}}},computed:{profilePicUrl(){if(this.employee.empPicture){const e=this.employee.empPicture.base64,t=this.employee.empPicture.type,o=this.allowedImageTypes.findIndex((e=>e===t));return o>-1?`data:${t};base64,${e}`:pu}return pu}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;return this.rules.employeeId.push((e=>{const o=t.findIndex((t=>t.employeeId?.trim()&&String(t.employeeId).toLowerCase()==String(e).toLowerCase()));return!(o>-1)||this.$t("pim.employee_id_exists")})),this.http.request({method:"GET",url:"/api/v2/admin/users"})})).then((e=>{const{data:t}=e.data;this.rules.username.push((e=>{const o=t.findIndex((t=>String(t.userName).toLowerCase()==String(e).toLowerCase()));return!(o>-1)||this.$t("pim.username_already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/pim/viewEmployeeList")},onSave(){this.isLoading=!0,this.http.create({...this.employee}).then((e=>{const{data:t}=e;return t?.data&&(this.empNumber=t.data.empNumber),this.createLogin&&t?.data?this.http.request({method:"POST",url:"/api/v2/admin/users",data:{username:this.user.username,password:this.user.password,status:"1"==this.user.status,userRoleId:this.user.userRoleId,empNumber:t.data.empNumber}}):void 0})).then((()=>this.$toast.saveSuccess())).then((()=>{this.employee={...hu},this.user={...gu},this.empNumber?U(`/pim/viewPersonalDetails/empNumber/${this.empNumber}`):this.onCancel()}))}}};const fu=(0,r.Z)(vu,[["render",ou],["__scopeId","data-v-e2b6125c"]]);var yu=fu;const Cu=e=>((0,a.pushScopeId)("data-v-0065ac32"),e=e(),(0,a.popScopeId)(),e),bu={class:"orangehrm-background-container"},Vu=Cu((()=>(0,a.createElementVNode)("br",null,null,-1))),xu={class:"orangehrm-paper-container"},wu={key:0,class:"orangehrm-header-container"},Nu={class:"orangehrm-container"},_u={class:"orangehrm-bottom-container"};function ku(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("employment-status-dropdown"),m=(0,a.resolveComponent)("include-employee-dropdown"),u=(0,a.resolveComponent)("jobtitle-dropdown"),p=(0,a.resolveComponent)("subunit-dropdown"),h=(0,a.resolveComponent)("oxd-grid"),g=(0,a.resolveComponent)("oxd-form-row"),v=(0,a.resolveComponent)("oxd-divider"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form"),b=(0,a.resolveComponent)("oxd-table-filter"),V=(0,a.resolveComponent)("table-header"),x=(0,a.resolveComponent)("oxd-card-table"),w=(0,a.resolveComponent)("oxd-pagination"),N=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",bu,[(0,a.createVNode)(b,{"filter-title":e.$t("pim.employee_information")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(C,{onSubmitValid:r.filterItems,onReset:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:n.rules.employee,params:{includeEmployees:l.filters.includeEmployees?.param}},null,8,["modelValue","rules","params"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.employeeId,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.employeeId=e),label:e.$t("general.employee_id")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.empStatusId,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.empStatusId=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.includeEmployees,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.includeEmployees=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.supervisor,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.supervisor=e),rules:n.rules.supervisor,label:e.$t("pim.supervisor_name")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.jobTitleId,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.jobTitleId=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.subunitId,"onUpdate:modelValue":t[6]||(t[6]=e=>l.filters.subunitId=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(f,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),Vu,(0,a.createElementVNode)("div",xu,[e.$can.create("employee_list")?((0,a.openBlock)(),(0,a.createElementBlock)("div",wu,[(0,a.createVNode)(f,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(V,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Nu,[(0,a.createVNode)(x,{ref:"cardTable",selected:n.checkedItems,"onUpdate:selected":t[7]||(t[7]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[8]||(t[8]=e=>l.sortDefinition=e),headers:r.headers,items:l.items?.data,selectable:e.$can.delete("employee_list"),clickable:!0,loading:l.isLoading,class:"orangehrm-employee-list","row-decorator":"oxd-table-decorator-card",onClick:r.onClickEdit},null,8,["selected","order","headers","items","selectable","loading","onClick"])]),(0,a.createElementVNode)("div",_u,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(w,{key:0,current:l.currentPage,"onUpdate:current":t[9]||(t[9]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(N,{ref:"deleteDialog"},null,512)])}function Su(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("general.job_title"),options:l.options},null,8,["label","options"])}var Du={name:"JobtitleDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/admin/job-titles");return(0,a.onBeforeMount)((()=>{t.getAll({limit:0}).then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.title})))}))})),{options:e}}};const $u=(0,r.Z)(Du,[["render",Su]]);var Eu=$u;function Tu(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("general.sub_unit"),options:l.options},null,8,["label","options"])}var Bu={name:"SubunitDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/admin/subunits");return(0,a.onBeforeMount)((()=>{t.getAll().then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.name,_indent:e.level?e.level+1:1})))}))})),{options:e}}};const Iu=(0,r.Z)(Bu,[["render",Tu]]);var Lu=Iu;function Uu(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("general.employment_status"),options:l.options},null,8,["label","options"])}var Au={name:"EmploymentStatusDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/admin/employment-statuses");return(0,a.onBeforeMount)((()=>{t.getAll({limit:0}).then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.name})))}))})),{options:e}}};const Pu=(0,r.Z)(Au,[["render",Uu]]);var qu=Pu;function Mu(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("pim.include"),options:n.includeOpts,"show-empty-selector":!1},null,8,["label","options"])}var Fu={name:"IncludeEmployeeDropdown",data(){return{includeOpts:[{id:1,param:"onlyCurrent",label:this.$t("general.current_employees_only")},{id:2,param:"currentAndPast",label:this.$t("general.current_and_past_employees")},{id:3,param:"onlyPast",label:this.$t("general.past_employees_only")}]}}};const ju=(0,r.Z)(Fu,[["render",Mu]]);var zu=ju;const Ru={"employee.employeeId":"DEFAULT","employee.firstName":"ASC","jobTitle.jobTitleName":"DEFAULT","empStatus.name":"DEFAULT","subunit.name":"DEFAULT","supervisor.firstName":"DEFAULT"};var Ou={components:{"delete-confirmation":Et,"employee-autocomplete":Va,"jobtitle-dropdown":Eu,"subunit-dropdown":Lu,"employment-status-dropdown":qu,"include-employee-dropdown":zu},props:{unselectableEmpNumbers:{type:Array,default:()=>[]}},setup(e){const{$t:t}=Se(),o=o=>o.map((o=>{const a=e.unselectableEmpNumbers.findIndex((e=>e==o.empNumber));return{id:o.empNumber,employeeId:o.employeeId,firstAndMiddleName:`${o.firstName}`,jobTitle:o.jobTitle?.isDeleted?o.jobTitle.title+t("general.deleted"):o.jobTitle?.title,empStatus:o.empStatus?.name,subunit:o.subunit?.name,supervisor:o.supervisors?o.supervisors.map((e=>`${e.firstName} ${e.lastName}`)).join(","):"",isSelectable:-1===a}})),l=(0,a.ref)({employee:null,employeeId:"",empStatusId:null,supervisor:null,jobTitleId:null,subunitId:null,includeEmployees:{id:1,param:"onlyCurrent",label:t("general.current_employees_only")}}),{sortDefinition:n,sortField:r,sortOrder:i,onSort:s}=Tt({sortDefinition:Ru}),d=(0,a.computed)((()=>({model:"detailed",nameOrId:"string"===typeof l.value.employee?l.value.employee:void 0,empNumber:l.value.employee?.id,employeeId:l.value.employeeId,empStatusId:l.value.empStatusId?.id,includeEmployees:l.value.includeEmployees?.param,supervisorEmpNumbers:l.value.supervisor?[l.value.supervisor.id]:void 0,jobTitleId:l.value.jobTitleId?.id,subunitId:l.value.subunitId?.id,sortField:r.value,sortOrder:i.value}))),c=new P(window.appGlobal.baseUrl,"/api/v2/pim/employees"),{showPaginator:m,currentPage:u,total:p,pages:h,pageSize:g,response:v,isLoading:f,execQuery:y}=wt(c,{query:d,normalizer:o});return s(y),{http:c,showPaginator:m,currentPage:u,isLoading:f,total:p,pages:h,pageSize:g,execQuery:y,items:v,filters:l,sortDefinition:n}},data(){return{checkedItems:[],rules:{employee:[],supervisor:[xo]}}},computed:{headers(){return[{name:"employeeId",slot:"title",title:this.$t("general.id"),sortField:"employee.employeeId",style:{flex:1}},{name:"firstAndMiddleName",title:this.$t("pim.first_middle_name"),sortField:"employee.firstName",style:{flex:1}},{name:"jobTitle",title:this.$t("general.job_title"),sortField:"jobTitle.jobTitleName",style:{flex:1}},{name:"empStatus",title:this.$t("general.employment_status"),sortField:"empStatus.name",style:{flex:1}},{name:"subunit",title:this.$t("general.sub_unit"),sortField:"subunit.name",style:{flex:1}},{name:"supervisor",title:this.$t("pim.supervisor"),sortField:"supervisor.firstName",style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{...this.$can.delete("employee_list")&&{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}]}},methods:{onClickAdd(){U("/pim/addEmployee")},onClickEdit(e){const t=e.id?e.id:e.item?.id;U("/pim/viewPersonalDetails/empNumber/{id}",{id:t})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e,t){t.stopImmediatePropagation();const o=this.unselectableEmpNumbers.findIndex((t=>t==e.id));if(o>-1)return this.$toast.cannotDelete();this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()}}};const Gu=(0,r.Z)(Ou,[["render",ku],["__scopeId","data-v-0065ac32"]]);var Zu=Gu;const Qu={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Hu(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(C,{"employee-id":o.empNumber,screen:"personal"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Qu,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.personal_details")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.firstName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employee.firstName=e),label:e.$t("pim.employee_first_name"),rules:n.rules.firstName},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.lastName,"onUpdate:modelValue":t[1]||(t[1]=e=>n.employee.lastName=e),label:e.$t("pim.employee_last_name")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.middleName,"onUpdate:modelValue":t[2]||(t[2]=e=>n.employee.middleName=e),label:e.$t("pim.employee_middle_name")},null,8,["modelValue","label"])])),_:1})])),_:1}),o.showDeprecatedFields?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.nickname,"onUpdate:modelValue":t[3]||(t[3]=e=>n.employee.nickname=e),label:e.$t("pim.nickname"),rules:n.rules.nickname},null,8,["modelValue","label","rules"])])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.employeeId,"onUpdate:modelValue":t[4]||(t[4]=e=>n.employee.employeeId=e),label:e.$t("general.employee_id"),rules:n.rules.employeeId,disabled:!e.$can.update("personal_sensitive_information")},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.otherId,"onUpdate:modelValue":t[5]||(t[5]=e=>n.employee.otherId=e),label:e.$t("pim.other_id"),rules:n.rules.otherId},null,8,["modelValue","label","rules"])])),_:1})])),_:1}),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.drivingLicenseNo,"onUpdate:modelValue":t[6]||(t[6]=e=>n.employee.drivingLicenseNo=e),label:e.$t("pim.driver_license_number"),rules:n.rules.drivingLicenseNo,disabled:!e.$can.update("personal_sensitive_information")},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.employee.drivingLicenseExpiredDate,"onUpdate:modelValue":t[7]||(t[7]=e=>n.employee.drivingLicenseExpiredDate=e),rules:n.rules.drivingLicenseExpiredDate,label:e.$t("pim.license_expiry_date")},null,8,["modelValue","rules","label"])])),_:1})])),_:1}),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[o.showSsnField?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.ssnNumber,"onUpdate:modelValue":t[8]||(t[8]=e=>n.employee.ssnNumber=e),label:e.$t("pim.ssn_number"),rules:n.rules.ssnNumber,disabled:!e.$can.update("personal_sensitive_information")},null,8,["modelValue","label","rules","disabled"])])),_:1})):(0,a.createCommentVNode)("",!0),o.showSinField?((0,a.openBlock)(),(0,a.createBlock)(c,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.sinNumber,"onUpdate:modelValue":t[9]||(t[9]=e=>n.employee.sinNumber=e),label:e.$t("pim.sin_number"),rules:n.rules.sinNumber,disabled:!e.$can.update("personal_sensitive_information")},null,8,["modelValue","label","rules","disabled"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.nationality,"onUpdate:modelValue":t[10]||(t[10]=e=>n.employee.nationality=e),type:"select",label:e.$t("general.nationality"),clear:!1,options:o.nationalities},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.maritalStatus,"onUpdate:modelValue":t[11]||(t[11]=e=>n.employee.maritalStatus=e),type:"select",label:e.$t("pim.marital_status"),clear:!1,options:n.maritalStatuses},null,8,["modelValue","label","options"])])),_:1})])),_:1}),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.employee.birthday,"onUpdate:modelValue":t[12]||(t[12]=e=>n.employee.birthday=e),label:e.$t("pim.date_of_birth"),rules:n.rules.birthday,disabled:!e.$can.update("personal_sensitive_information")},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{label:e.$t("pim.gender"),classes:{wrapper:"--gender-grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.gender,"onUpdate:modelValue":t[13]||(t[13]=e=>n.employee.gender=e),type:"radio","option-label":e.$t("general.male"),value:"1"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.employee.gender,"onUpdate:modelValue":t[14]||(t[14]=e=>n.employee.gender=e),type:"radio","option-label":e.$t("general.female"),value:"2"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),o.showDeprecatedFields?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0})):(0,a.createCommentVNode)("",!0),o.showDeprecatedFields?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.militaryService,"onUpdate:modelValue":t[15]||(t[15]=e=>n.employee.militaryService=e),label:e.$t("pim.military_service"),rules:n.rules.militaryService},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee.smoker,"onUpdate:modelValue":t[16]||(t[16]=e=>n.employee.smoker=e),type:"checkbox",label:e.$t("pim.smoker"),"option-label":e.$t("general.yes")},null,8,["modelValue","label","option-label"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])),_:1},8,["employee-id"])}const Wu={class:"orangehrm-background-container"},Yu={class:"orangehrm-card-container"},Ju={class:"orangehrm-edit-employee"},Xu={class:"orangehrm-edit-employee-navigation"},Ku={class:"orangehrm-edit-employee-imagesection"},ep={class:"orangehrm-edit-employee-name"},tp={class:"orangehrm-edit-employee-image-wrapper"},op=["src"],ap={class:"orangehrm-edit-employee-content"};function lp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("tabs-navigation"),d=(0,a.resolveComponent)("profile-custom-fields"),c=(0,a.resolveComponent)("profile-attachments");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Wu,[(0,a.createElementVNode)("div",Yu,[(0,a.createElementVNode)("div",Ju,[(0,a.createElementVNode)("div",Xu,[(0,a.createElementVNode)("div",Ku,[(0,a.createElementVNode)("div",ep,[(0,a.createVNode)(i,{tag:"h6",class:"--strong"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeName),1)])),_:1}),l.isCurrentEmp?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.past_employee")),1)])),_:1}))]),(0,a.createElementVNode)("div",tp,[(0,a.createElementVNode)("div",{class:"orangehrm-edit-employee-image",onClick:t[0]||(t[0]=(...e)=>l.onClickProfilePic&&l.onClickProfilePic(...e))},[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:l.imgSrc},null,8,op)])])]),(0,a.createVNode)(s,{tabs:o.tabs},null,8,["tabs"])]),(0,a.createElementVNode)("div",ap,[(0,a.renderSlot)(e.$slots,"default",{},void 0,!0),"default"!==o.screen?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"employee-id":o.employeeId,screen:o.screen},null,8,["employee-id","screen"])):(0,a.createCommentVNode)("",!0),"default"!==o.screen?((0,a.openBlock)(),(0,a.createBlock)(c,{key:1,"employee-id":o.employeeId,"allowed-file-types":o.allowedFileTypes,"max-file-size":o.maxFileSize,screen:o.screen},null,8,["employee-id","allowed-file-types","max-file-size","screen"])):(0,a.createCommentVNode)("",!0)])])])])}const np={role:"tablist",class:"orangehrm-tabs"},rp=["href"];function ip(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",np,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.tabs,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:e,role:"tab",class:"orangehrm-tabs-wrapper"},[(0,a.createElementVNode)("a",{class:(0,a.normalizeClass)({"orangehrm-tabs-item":!0,"--active":e.active}),href:e.url},(0,a.toDisplayString)(e.name),11,rp)])))),128))])}var sp={name:"TabsNavigation",props:{tabs:{type:Array,required:!0}}};const dp=(0,r.Z)(sp,[["render",ip],["__scopeId","data-v-8cad1ea8"]]);var cp=dp;const mp={class:"orangehrm-attachment"},up={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},pp={class:"orangehrm-container"},hp={key:0,class:"orangehrm-bottom-container"};function gp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-divider"),s=(0,a.resolveComponent)("save-attachment"),d=(0,a.resolveComponent)("edit-attachment"),c=(0,a.resolveComponent)("profile-action-header"),m=(0,a.resolveComponent)("table-header"),u=(0,a.resolveComponent)("oxd-card-table"),p=(0,a.resolveComponent)("oxd-pagination"),h=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",mp,[(0,a.createVNode)(i),n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,http:l.http,"allowed-file-types":o.allowedFileTypes,"max-file-size":o.maxFileSize,onClose:r.onSaveModalClose},null,8,["http","allowed-file-types","max-file-size","onClose"])):n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,data:n.editModalState,http:l.http,"allowed-file-types":o.allowedFileTypes,"max-file-size":o.maxFileSize,onClose:r.onEditModalClose},null,8,["data","http","allowed-file-types","max-file-size","onClose"])):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createElementVNode)("div",up,[(0,a.createVNode)(c,{"action-button-shown":e.$can.create(`${o.screen}_attachment`),onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.attachments")),1)])),_:1},8,["action-button-shown","onClick"])]),(0,a.createVNode)(m,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",pp,[(0,a.createVNode)(u,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:r.tableHeaders,items:l.items?.data,selectable:e.$can.delete(`${o.screen}_attachment`),clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","loading"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",hp,[(0,a.createVNode)(p,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0)],64)),(0,a.createVNode)(h,{ref:"deleteDialog"},null,512)])}const vp=1,fp=1024,yp=1048576,Cp=1073741824,bp=function(e,t,o=!0){let a,l=vp,n="B";return a="number"===typeof e?e:parseInt(e,10),a>=Cp?(l=Cp,n="GB"):a>=yp?(l=yp,n="MB"):a>=fp&&(l=fp,n="kB"),(a/l).toFixed(t)+(o?" "+n:"")},Vp={class:"orangehrm-card-container"};function xp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Vp,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.attachment.attachment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attachment.attachment=e),type:"file",label:e.$t("general.select_file"),"button-label":e.$t("general.browse"),rules:n.rules.attachment,placeholder:e.$t("general.no_file_selected"),required:""},null,8,["modelValue","label","button-label","rules","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.attachment.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attachment.description=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const wp={attachment:null,description:""};var Np={name:"SaveAttachment",props:{http:{type:Object,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},emits:["close"],data(){return{isLoading:!1,attachment:{...wp},rules:{description:[zt(200)],attachment:[jt,no(this.maxFileSize),ro(this.allowedFileTypes)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.attachment}).then((()=>this.$toast.saveSuccess())).then((()=>{this.attachment={...wp},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const _p=(0,r.Z)(Np,[["render",xp]]);var kp=_p;const Sp={class:"orangehrm-card-container"};function Dp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-input-field"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Sp,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.current_file")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.currentFile),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.attachment.attachment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attachment.attachment=e),type:"file",label:e.$t("general.replace_with"),"button-label":e.$t("general.browse"),rules:n.rules.attachment,placeholder:e.$t("general.no_file_selected")},null,8,["modelValue","label","button-label","rules","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.attachment.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attachment.description=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const $p={attachment:null,description:""};var Ep={name:"EditAttachment",props:{http:{type:Object,required:!0},data:{type:Object,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},emits:["close"],data(){return{isLoading:!1,currentFile:"",attachment:{...$p},rules:{description:[zt(200)],attachment:[no(this.maxFileSize),ro(this.allowedFileTypes)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.currentFile=t.filename,this.attachment.description=t.description})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.attachment}).then((()=>this.$toast.updateSuccess())).then((()=>{this.attachment={...$p},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Tp=(0,r.Z)(Ep,[["render",Dp]]);var Bp=Tp;const Ip={class:"orangehrm-action-header"};function Lp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ip,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)])),_:3}),o.actionButtonShown?((0,a.openBlock)(),(0,a.createBlock)(s,(0,a.mergeProps)({key:0,label:e.$t("general.add"),"icon-name":"plus","display-type":"text"},e.$attrs),null,16,["label"])):(0,a.createCommentVNode)("",!0)])}var Up={name:"ProfileActionHeader",inheritAttrs:!1,props:{actionButtonShown:{type:Boolean,required:!1,default:!0}}};const Ap=(0,r.Z)(Up,[["render",Lp],["__scopeId","data-v-3dab643a"]]);var Pp=Ap,qp={name:"ProfileAttachments",components:{"save-attachment":kp,"edit-attachment":Bp,"profile-action-header":Pp,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0},screen:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/screen/${e.screen}/attachments`),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>({...e,attachedDate:ie(re(e.attachedDate),o,{locale:a}),size:bp(e.size,2)}))),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:l,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"filename",slot:"title",title:this.$t("general.file_name"),style:{flex:1}},{name:"description",title:this.$t("general.description"),style:{flex:1}},{name:"size",title:this.$t("general.size"),style:{flex:1}},{name:"fileType",title:this.$t("general.type"),style:{flex:1}},{name:"attachedDate",title:this.$t("pim.date_added"),style:{flex:1}},{name:"attachedByName",title:this.$t("pim.added_by"),style:{flex:1}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{tableHeaders(){const e={name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.update(`${this.screen}_attachment`)&&(e.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),this.$can.delete(`${this.screen}_attachment`)&&(e.cellConfig.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),this.$can.read(`${this.screen}_attachment`)&&(e.cellConfig.download={onClick:this.onClickDownload,props:{name:"download"}}),Object.keys(e.cellConfig).length>0?this.headers.concat([e]):this.headers}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onClickDownload(e){const t=`${window.appGlobal.baseUrl}/pim/viewAttachment/empNumber/${this.employeeId}/attachId/${e.id}`;window.open(t,"_blank")},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Mp=(0,r.Z)(qp,[["render",gp],["__scopeId","data-v-50e42520"]]);var Fp=Mp;const jp={key:0,class:"orangehrm-custom-fields"},zp={class:"orangehrm-card-container"};function Rp(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-divider"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return 0!==n.fields.length?((0,a.openBlock)(),(0,a.createElementBlock)("div",jp,[(0,a.createVNode)(i),(0,a.createElementVNode)("div",zp,[(0,a.createVNode)(s,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.custom_fields")),1)])),_:1}),(0,a.createVNode)(i),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.fields,(t=>((0,a.openBlock)(),(0,a.createBlock)(c,{key:t.id},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customFieldsModel[t.model],"onUpdate:modelValue":e=>n.customFieldsModel[t.model]=e,type:t.type,label:t.label,options:t.extraData,rules:n.rules.default,disabled:!e.$can.update(`${o.screen}_custom_fields`)},null,8,["modelValue","onUpdate:modelValue","type","label","options","rules","disabled"])])),_:2},1024)))),128))])),_:1})])),_:1}),e.$can.update(`${o.screen}_custom_fields`)?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(i),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p)])),_:1})],64)):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","onSubmitValid"])])])):(0,a.createCommentVNode)("",!0)}const Op=e=>"string"===typeof e?e.split(",").map(((e,t)=>({id:t,label:e}))).filter((e=>""!=e.label.trim())):[];var Gp={name:"ProfileCustomFields",props:{employeeId:{type:String,required:!0},screen:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/custom-fields?screen=${e.screen}`);return{http:t}},data(){return{isLoading:!1,fields:[],customFieldsModel:{},rules:{default:[zt(250)]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t,meta:o}=e.data;this.customFieldsModel={...t},o.fields&&o.fields.length>0&&(this.fields=o.fields.map((e=>{const o=Op(e.extraData),a=`custom${e.id}`;if(1==e.fieldType&&t[a]){const e=o.find((e=>e.label==t[a]));this.customFieldsModel[a]=e||null}return{id:e.id,label:e.fieldName,type:1==e.fieldType?"select":"input",model:a,extraData:o}})))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",url:`/api/v2/pim/employees/${this.employeeId}/custom-fields`,data:{...this.customFieldsModel},transformRequest:[e=>{for(const t in e)e[t]?.label&&(e[t]=e[t].label);return JSON.stringify(e)}]}).then((()=>{this.isLoading=!1,this.$toast.saveSuccess()}))}}};const Zp=(0,r.Z)(Gp,[["render",Rp]]);var Qp=Zp;const Hp=`${window.appGlobal.publicPath}/images/default-photo.png`;var Wp={name:"EditEmployeeLayout",components:{"tabs-navigation":cp,"profile-attachments":Fp,"profile-custom-fields":Qp},props:{employeeId:{type:String,required:!0},tabs:{type:Array,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0},screen:{type:String,default:"default",validator(e){return["default","personal","contact","emergency","dependents","immigration","qualifications","tax","salary","job","report-to","membership"].includes(e)}}},setup(e){const t=(0,a.ref)(""),o=(0,a.ref)(!0),l=new P(window.appGlobal.baseUrl,"/api/v2/pim/employees");l.get(e.employeeId).then((({data:e})=>{t.value=`${e.data.firstName} ${e.data.lastName}`,o.value=!e.data.terminationId}));const n=(0,a.computed)((()=>e.employeeId?`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.employeeId}`:Hp)),r=()=>{U("/pim/viewPhotograph/empNumber/{empNumber}",{empNumber:e.employeeId})};return{imgSrc:n,employeeName:t,isCurrentEmp:o,onClickProfilePic:r}}};const Yp=(0,r.Z)(Wp,[["render",lp],["__scopeId","data-v-0349f171"]]);var Jp=Yp;const Xp={firstName:"",middleName:"",lastName:"",employeeId:"",otherId:"",drivingLicenseNo:"",drivingLicenseExpiredDate:"",ssnNumber:"",sinNumber:"",nationality:[],maritalStatus:[],birthday:"",gender:"",nickname:"",smoker:"",militaryService:""};var Kp={components:{"edit-employee-layout":Jp},props:{empNumber:{type:String,required:!0},nationalities:{type:Array,default:()=>[]},showDeprecatedFields:{type:Boolean,default:!1},showSsnField:{type:Boolean,default:!1},showSinField:{type:Boolean,default:!1}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/personal-details`),{userDateFormat:o}=R();return{http:t,userDateFormat:o}},data(){return{isLoading:!1,employee:{...Xp},rules:{firstName:[jt,zt(30)],employeeId:[zt(10)],otherId:[zt(30)],drivingLicenseNo:[zt(30)],ssnNumber:[zt(30)],sinNumber:[zt(30)],nickname:[zt(30)],militaryService:[zt(30)],birthday:[Rt(this.userDateFormat)],drivingLicenseExpiredDate:[Rt(this.userDateFormat)]},maritalStatuses:[{id:"Single",label:"未婚"},{id:"Married",label:"已婚"},{id:"Other",label:"其他"}]}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>(this.updateModel(e),this.http.request({method:"GET",url:"/api/v2/pim/employees"})))).then((e=>{const{data:t}=e.data;this.rules.employeeId.push((e=>{const o=t.findIndex((t=>t.employeeId?.trim()&&String(t.employeeId).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{empNumber:e}=t[o];return e==this.empNumber||this.$t("pim.employee_id_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{lastName:this.employee.lastName+"",firstName:this.employee.firstName,middleName:this.employee.middleName,employeeId:this.employee.employeeId,otherId:this.employee.otherId,drivingLicenseNo:this.employee.drivingLicenseNo,drivingLicenseExpiredDate:this.employee.drivingLicenseExpiredDate,gender:this.employee.gender,maritalStatus:this.employee.maritalStatus?.id,birthday:this.employee.birthday,nationalityId:this.employee.nationality?.id,ssnNumber:this.showSsnField?this.employee.ssnNumber:void 0,sinNumber:this.showSinField?this.employee.sinNumber:void 0,nickname:this.showDeprecatedFields?this.employee.nickname:void 0,smoker:this.showDeprecatedFields?this.employee.smoker:void 0,militaryService:this.showDeprecatedFields?this.employee.militaryService:void 0}}).then((e=>(this.updateModel(e),this.$toast.updateSuccess()))).then((()=>{this.isLoading=!1}))},updateModel(e){const{data:t}=e.data;this.employee={...Xp,...t},this.employee.maritalStatus=this.maritalStatuses.find((e=>e.id===t.maritalStatus)),this.employee.nationality=this.nationalities.find((e=>e.id===t.nationality?.id))}}};const eh=(0,r.Z)(Kp,[["render",Hu],["__scopeId","data-v-305f88aa"]]);var th=eh;const oh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function ah(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(f,{"employee-id":o.empNumber,screen:"contact"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",oh,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.contact_details")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.address")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.street1,"onUpdate:modelValue":t[0]||(t[0]=e=>n.contact.street1=e),label:e.$t("pim.street1"),rules:n.rules.street1},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.street2,"onUpdate:modelValue":t[1]||(t[1]=e=>n.contact.street2=e),label:e.$t("pim.street2"),rules:n.rules.street2},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.city,"onUpdate:modelValue":t[2]||(t[2]=e=>n.contact.city=e),label:e.$t("general.city"),rules:n.rules.city},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.province,"onUpdate:modelValue":t[3]||(t[3]=e=>n.contact.province=e),label:e.$t("general.state_province"),rules:n.rules.province},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.zipCode,"onUpdate:modelValue":t[4]||(t[4]=e=>n.contact.zipCode=e),label:e.$t("general.zip_postal_code"),rules:n.rules.zipCode},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.countryCode,"onUpdate:modelValue":t[5]||(t[5]=e=>n.contact.countryCode=e),type:"select",label:e.$t("general.country"),options:o.countries},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.telephone")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.homeTelephone,"onUpdate:modelValue":t[6]||(t[6]=e=>n.contact.homeTelephone=e),modelModifiers:{trim:!0},label:e.$t("pim.home"),rules:n.rules.homeTelephone},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.mobile,"onUpdate:modelValue":t[7]||(t[7]=e=>n.contact.mobile=e),modelModifiers:{trim:!0},label:e.$t("general.mobile"),rules:n.rules.mobile},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.workTelephone,"onUpdate:modelValue":t[8]||(t[8]=e=>n.contact.workTelephone=e),modelModifiers:{trim:!0},label:e.$t("pim.work"),rules:n.rules.workTelephone},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.email")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.workEmail,"onUpdate:modelValue":t[9]||(t[9]=e=>n.contact.workEmail=e),label:e.$t("general.work_email"),rules:n.rules.workEmail},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.otherEmail,"onUpdate:modelValue":t[10]||(t[10]=e=>n.contact.otherEmail=e),label:e.$t("general.other_email"),rules:n.rules.otherEmail},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])),_:1},8,["employee-id"])}const lh={street1:"",street2:"",city:"",province:"",countryCode:[],zipCode:"",homeTelephone:"",workTelephone:"",mobile:"",workEmail:"",otherEmail:""};var nh={components:{"edit-employee-layout":Jp},props:{empNumber:{type:String,required:!0},countries:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employee/${e.empNumber}/contact-details`);return t.setIgnorePath("/api/v2/pim/employees/[0-9]+/contact-details/validation/(work-emails|other-emails)"),{http:t}},data(){return{isLoading:!1,contact:{...lh},rules:{street1:[zt(70)],street2:[zt(70)],city:[zt(70)],province:[zt(70)],zipCode:[zt(10)],homeTelephone:[zt(25),so],mobile:[zt(25),so],workTelephone:[zt(25),so],workEmail:[zt(50),io,(0,q.promiseDebounce)(this.validateWorkEmail,500)],otherEmail:[zt(50),io,(0,q.promiseDebounce)(this.validateOtherEmail,500)]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{this.updateModel(e)})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{...this.contact,countryCode:this.contact.countryCode?.id}}).then((e=>(this.updateModel(e),this.$toast.updateSuccess()))).then((()=>{this.isLoading=!1}))},validateWorkEmail(e){return new Promise((t=>{if(e){const e=this.contact.workEmail===this.contact.otherEmail;this.http.request({method:"GET",url:`/api/v2/pim/employees/${this.empNumber}/contact-details/validation/work-emails`,params:{workEmail:this.contact.workEmail}}).then((o=>{const{data:a}=o.data;return!0===a.valid?t(!e||this.$t("pim.work_email_and_other_email_cannot_be_the_same")):t(this.$t("general.already_exists"))}))}else t(!0)}))},validateOtherEmail(e){return new Promise((t=>{if(e){const e=this.contact.otherEmail===this.contact.workEmail;this.http.request({method:"GET",url:`/api/v2/pim/employees/${this.empNumber}/contact-details/validation/other-emails`,params:{otherEmail:this.contact.otherEmail}}).then((o=>{const{data:a}=o.data;return!0===a.valid?t(!e||this.$t("pim.work_email_and_other_email_cannot_be_the_same")):t(this.$t("general.already_exists"))}))}else t(!0)}))},validateEmailDifferent(e){return t=>{const o=e();return null===o||""===o||(t!==o||this.$t("pim.work_email_and_other_email_cannot_be_the_same"))}},updateModel(e){const{data:t}=e.data;this.contact={...lh,...t},this.contact.countryCode=this.countries.find((e=>e.id===t.countryCode))}}};const rh=(0,r.Z)(nh,[["render",ah]]);var ih=rh;const sh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},dh={class:"orangehrm-container"},ch={class:"orangehrm-bottom-container"};function mh(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-emergency-contact"),s=(0,a.resolveComponent)("edit-emergency-contact"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"emergency"},{default:(0,a.withCtx)((()=>[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,onClose:r.onSaveModalClose},null,8,["http","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",sh,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_emergency_contacts")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",dh,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","disabled","loading"])]),(0,a.createElementVNode)("div",ch,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])),_:1},8,["employee-id"])}const uh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function ph(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",uh,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.save_emergency_contact")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.contact.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.relationship,"onUpdate:modelValue":t[1]||(t[1]=e=>n.contact.relationship=e),label:e.$t("pim.relationship"),rules:n.rules.relationship,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.homePhone,"onUpdate:modelValue":t[2]||(t[2]=e=>n.contact.homePhone=e),modelModifiers:{trim:!0},label:e.$t("pim.home_telephone"),rules:n.rules.homePhone},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.mobilePhone,"onUpdate:modelValue":t[3]||(t[3]=e=>n.contact.mobilePhone=e),modelModifiers:{trim:!0},label:e.$t("general.mobile"),rules:n.rules.mobilePhone},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.officePhone,"onUpdate:modelValue":t[4]||(t[4]=e=>n.contact.officePhone=e),modelModifiers:{trim:!0},label:e.$t("pim.work_telephone"),rules:n.rules.officePhone},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const hh={name:"",relationship:"",homePhone:"",officePhone:"",mobilePhone:""};var gh={name:"SaveEmergencyContact",props:{http:{type:Object,required:!0}},emits:["close"],data(){return{isLoading:!1,contact:{...hh},rules:{name:[jt,zt(100)],relationship:[jt,zt(100)],homePhone:[so,zt(30),e=>""!==e||""!==this.contact.mobilePhone||""!==this.contact.officePhone||this.$t("pim.at_least_one_phone_number_is_required")],mobilePhone:[so,zt(30)],officePhone:[so,zt(30)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.contact}).then((()=>this.$toast.saveSuccess())).then((()=>{this.contact={...hh},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const vh=(0,r.Z)(gh,[["render",ph]]);var fh=vh;const yh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Ch(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",yh,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_emergency_contact")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.contact.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.relationship,"onUpdate:modelValue":t[1]||(t[1]=e=>n.contact.relationship=e),label:e.$t("pim.relationship"),rules:n.rules.relationship,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.homePhone,"onUpdate:modelValue":t[2]||(t[2]=e=>n.contact.homePhone=e),modelModifiers:{trim:!0},label:e.$t("pim.home_telephone"),rules:n.rules.homePhone},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.mobilePhone,"onUpdate:modelValue":t[3]||(t[3]=e=>n.contact.mobilePhone=e),modelModifiers:{trim:!0},label:e.$t("general.mobile"),rules:n.rules.mobilePhone},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contact.officePhone,"onUpdate:modelValue":t[4]||(t[4]=e=>n.contact.officePhone=e),modelModifiers:{trim:!0},label:e.$t("pim.work_telephone"),rules:n.rules.officePhone},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const bh={name:"",relationship:"",homePhone:"",officePhone:"",mobilePhone:""};var Vh={name:"EditEmergencyContact",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],data(){return{isLoading:!1,contact:{...bh},rules:{name:[jt,zt(100)],relationship:[jt,zt(100)],homePhone:[so,zt(30),e=>""!==e||""!==this.contact.mobilePhone||""!==this.contact.officePhone||this.$t("pim.at_least_one_phone_number_is_required")],mobilePhone:[so,zt(30)],officePhone:[so,zt(30)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.contact={...bh,...t}})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.contact}).then((()=>this.$toast.updateSuccess())).then((()=>{this.contact={...bh},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const xh=(0,r.Z)(Vh,[["render",Ch]]);var wh=xh,Nh={components:{"profile-action-header":Pp,"edit-employee-layout":Jp,"save-emergency-contact":fh,"edit-emergency-contact":wh,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},countries:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/emergency-contacts`),{showPaginator:o,currentPage:a,total:l,pages:n,pageSize:r,response:i,isLoading:s,execQuery:d}=wt(t,{toastNoRecords:!1});return{http:t,showPaginator:o,currentPage:a,isLoading:s,total:l,pages:n,pageSize:r,execQuery:d,items:i}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1}},{name:"relationship",title:this.$t("pim.relationship"),style:{flex:1}},{name:"homePhone",title:this.$t("pim.home_telephone"),style:{flex:1}},{name:"mobilePhone",title:this.$t("general.mobile"),style:{flex:1}},{name:"officePhone",title:this.$t("pim.work_telephone"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const _h=(0,r.Z)(Nh,[["render",mh],["__scopeId","data-v-f2414b96"]]);var kh=_h;const Sh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},Dh={class:"orangehrm-container"},$h={class:"orangehrm-bottom-container"};function Eh(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-dependent"),s=(0,a.resolveComponent)("edit-dependent"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"dependents"},{default:(0,a.withCtx)((()=>[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,onClose:r.onSaveModalClose},null,8,["http","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Sh,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_dependents")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Dh,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","disabled","loading"])]),(0,a.createElementVNode)("div",$h,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])),_:1},8,["employee-id"])}const Th={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Bh(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Th,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_dependent")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.dependent.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.relationshipType,"onUpdate:modelValue":t[1]||(t[1]=e=>n.dependent.relationshipType=e),type:"select",label:e.$t("pim.relationship"),rules:n.rules.relationshipType,options:n.relationshipOptions,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),r.showRelationship?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.relationship,"onUpdate:modelValue":t[2]||(t[2]=e=>n.dependent.relationship=e),label:e.$t("pim.please_specify"),rules:n.rules.relationship,required:""},null,8,["modelValue","label","rules"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.dependent.dateOfBirth,"onUpdate:modelValue":t[3]||(t[3]=e=>n.dependent.dateOfBirth=e),label:e.$t("pim.date_of_birth"),rules:n.rules.dateOfBirth},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Ih={name:"",relationshipType:null,relationship:"",dateOfBirth:""};var Lh={name:"SaveDependent",props:{http:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,dependent:{...Ih},rules:{name:[jt,zt(100)],relationshipType:[jt],relationship:[jt,zt(100)],dateOfBirth:[Rt(this.userDateFormat)]},relationshipOptions:[{id:"child",label:this.$t("pim.child")},{id:"other",label:this.$t("pim.other")}]}},computed:{showRelationship(){return"other"==this.dependent.relationshipType?.id}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.dependent,relationshipType:this.dependent.relationshipType?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.dependent={...Ih},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Uh=(0,r.Z)(Lh,[["render",Bh]]);var Ah=Uh;const Ph={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function qh(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Ph,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_dependent")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.dependent.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.relationshipType,"onUpdate:modelValue":t[1]||(t[1]=e=>n.dependent.relationshipType=e),type:"select",label:e.$t("pim.relationship"),rules:n.rules.relationshipType,options:n.relationshipOptions,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),r.showRelationship?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.dependent.relationship,"onUpdate:modelValue":t[2]||(t[2]=e=>n.dependent.relationship=e),label:e.$t("pim.please_specify"),rules:n.rules.relationship,required:""},null,8,["modelValue","label","rules"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.dependent.dateOfBirth,"onUpdate:modelValue":t[3]||(t[3]=e=>n.dependent.dateOfBirth=e),label:e.$t("pim.date_of_birth"),rules:n.rules.dateOfBirth},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Mh={name:"",relationshipType:null,relationship:"",dateOfBirth:""};var Fh={name:"EditDependent",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,dependent:{...Mh},rules:{name:[jt,zt(100)],relationshipType:[jt],relationship:[jt,zt(100)],dateOfBirth:[Rt(this.userDateFormat)]},relationshipOptions:[{id:"child",label:this.$t("pim.child")},{id:"other",label:this.$t("pim.other")}]}},computed:{showRelationship(){return"other"==this.dependent.relationshipType?.id}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.dependent={...Mh,...t},this.dependent.relationshipType=this.relationshipOptions.find((e=>e.id===t.relationshipType))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.dependent,relationshipType:this.dependent.relationshipType?.id}).then((()=>this.$toast.updateSuccess())).then((()=>{this.dependent={...Mh},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const jh=(0,r.Z)(Fh,[["render",qh]]);var zh=jh,Rh={components:{"profile-action-header":Pp,"edit-employee-layout":Jp,"save-dependent":Ah,"edit-dependent":zh,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},countries:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/dependents`),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>({id:e.id,name:e.name,dateOfBirth:ie(re(e.dateOfBirth),o,{locale:a}),relationship:"other"==e.relationshipType?e.relationship:"Child"}))),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:l,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1}},{name:"relationship",title:this.$t("pim.relationship"),style:{flex:1}},{name:"dateOfBirth",title:this.$t("pim.date_of_birth"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:"0.5"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Oh=(0,r.Z)(Rh,[["render",Eh]]);var Gh=Oh;const Zh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},Qh={class:"orangehrm-employee-picture"};function Hh(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("profile-image-input"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("submit-button"),u=(0,a.resolveComponent)("oxd-form-actions"),p=(0,a.resolveComponent)("oxd-form"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Zh,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.change_profile_picture")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Qh,[(0,a.createVNode)(d,{modelValue:n.empPicture,"onUpdate:modelValue":t[0]||(t[0]=e=>n.empPicture=e),rules:n.rules.empPicture,"img-src":r.profilePicUrl},null,8,["modelValue","rules","img-src"])])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])),_:1},8,["employee-id"])}const Wh=`${window.appGlobal.publicPath}/images/default-photo.png`;var Yh={components:{"profile-image-input":su,"edit-employee-layout":Jp},props:{empNumber:{type:String,required:!0},allowedImageTypes:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/picture`);return{http:t}},data(){return{isLoading:!1,empPicture:null,rules:{empPicture:[jt,no(1048576),ro(this.allowedImageTypes)]}}},computed:{profilePicUrl(){if(this.empPicture){const e=this.empPicture.base64,t=this.empPicture.type,o=this.allowedImageTypes.findIndex((e=>e===t));return o>-1?`data:${t};base64,${e}`:Wh}return Wh}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{empPicture:this.empPicture}}).then((()=>this.$toast.updateSuccess())).then((()=>{location.reload()}))}}};const Jh=(0,r.Z)(Yh,[["render",Hh],["__scopeId","data-v-c6fb612a"]]);var Xh=Jh;const Kh={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},eg={class:"orangehrm-container"},tg={class:"orangehrm-bottom-container"};function og(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-salary-component"),s=(0,a.resolveComponent)("edit-salary-component"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"salary"},{default:(0,a.withCtx)((()=>[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,paygrades:o.paygrades,"pay-frequencies":o.payFrequencies,currencies:o.currencies,"account-types":o.accountTypes,onClose:r.onSaveModalClose},null,8,["http","paygrades","pay-frequencies","currencies","account-types","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,paygrades:o.paygrades,"pay-frequencies":o.payFrequencies,currencies:o.currencies,"account-types":o.accountTypes,onClose:r.onEditModalClose},null,8,["http","data","paygrades","pay-frequencies","currencies","account-types","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Kh,[(0,a.createVNode)(d,{"action-button-shown":e.$can.update("salary_details"),onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_salary_components")),1)])),_:1},8,["action-button-shown","onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",eg,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:r.tableHeaders,items:l.items?.data,selectable:e.$can.delete("salary_details"),disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","disabled","loading"])]),(0,a.createElementVNode)("div",tg,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])),_:1},8,["employee-id"])}const ag={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function lg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-switch-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",ag,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" Add Salary Component ")])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.salaryComponent.name=e),label:e.$t("pim.salary_component"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.payGradeId,"onUpdate:modelValue":t[1]||(t[1]=e=>n.salaryComponent.payGradeId=e),type:"select",label:e.$t("general.pay_grade"),options:o.paygrades},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.payFrequencyId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.salaryComponent.payFrequencyId=e),type:"select",label:e.$t("pim.pay_frequency"),options:o.payFrequencies},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(d,{key:r.currenciesOpts,modelValue:n.salaryComponent.currencyId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.salaryComponent.currencyId=e),type:"select",label:e.$t("general.currency"),options:r.currenciesOpts,rules:n.rules.currencyId,required:""},null,8,["modelValue","label","options","rules"]))])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.salaryAmount,"onUpdate:modelValue":t[4]||(t[4]=e=>n.salaryComponent.salaryAmount=e),label:e.$t("pim.amount"),rules:n.rules.salaryAmount,required:""},null,8,["modelValue","label","rules"]),void 0!==r.minAmount||void 0!==r.maxAmount?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" Min: "+(0,a.toDisplayString)(r.minAmount??0)+" - Max: "+(0,a.toDisplayString)(r.maxAmount??0),1)])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.comment,"onUpdate:modelValue":t[5]||(t[5]=e=>n.salaryComponent.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,{class:"directdeposit-form-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"directdeposit-form-header-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.include_direct_deposit_details")),1)])),_:1}),(0,a.createVNode)(p,{modelValue:n.includeDirectDeposit,"onUpdate:modelValue":t[6]||(t[6]=e=>n.includeDirectDeposit=e)},null,8,["modelValue"])])),_:1}),n.includeDirectDeposit?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAccount,"onUpdate:modelValue":t[7]||(t[7]=e=>n.directDeposit.directDepositAccount=e),label:e.$t("pim.account_number"),rules:n.rules.directDepositAccount,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAccountType,"onUpdate:modelValue":t[8]||(t[8]=e=>n.directDeposit.directDepositAccountType=e),type:"select",label:e.$t("pim.account_type"),rules:n.rules.directDepositAccountType,options:o.accountTypes,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),r.showOptionalAccountType?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.accountType,"onUpdate:modelValue":t[9]||(t[9]=e=>n.accountType=e),label:e.$t("pim.please_specify"),rules:n.rules.accountType,required:""},null,8,["modelValue","label","rules"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositRoutingNumber,"onUpdate:modelValue":t[10]||(t[10]=e=>n.directDeposit.directDepositRoutingNumber=e),label:e.$t("pim.routing_number"),rules:n.rules.directDepositRoutingNumber,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAmount,"onUpdate:modelValue":t[11]||(t[11]=e=>n.directDeposit.directDepositAmount=e),label:e.$t("pim.amount"),rules:n.rules.directDepositAmount,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const ng={name:"",salaryAmount:"",comment:"",payGradeId:null,payFrequencyId:null,currencyId:null},rg={directDepositAccount:"",directDepositAccountType:null,directDepositRoutingNumber:"",directDepositAmount:""};var ig={name:"SaveSalaryComponent",components:{"oxd-switch-input":q.OxdSwitchInput},props:{http:{type:Object,required:!0},paygrades:{type:Array,default:()=>[]},payFrequencies:{type:Array,default:()=>[]},currencies:{type:Array,default:()=>[]},accountTypes:{type:Array,default:()=>[]}},emits:["close"],data(){return{isLoading:!1,includeDirectDeposit:!1,salaryComponent:{...ng},directDeposit:{...rg},accountType:"",usableCurrencies:[],rules:{name:[jt,zt(100)],salaryAmount:[jt,Wt,mo(1e9)],comment:[zt(250)],currencyId:[jt],directDepositAccount:[jt,zt(100)],directDepositAccountType:[jt],accountType:[jt,zt(20)],directDepositRoutingNumber:[jt,zt(9),Wt],directDepositAmount:[jt,Wt,mo(1e9)]}}},computed:{showOptionalAccountType(){return"OTHER"==this.directDeposit.directDepositAccountType?.id},minAmount(){return this.currencyInfo?.minAmount},maxAmount(){return this.currencyInfo?.maxAmount},currenciesOpts(){const e=this.salaryComponent.payGradeId?.id;return e?e&&this.usableCurrencies.length>0?this.currencies.filter((e=>this.usableCurrencies.findIndex((t=>t.id===e.id))>-1)):[]:this.currencies},currencyInfo(){return this.usableCurrencies.find((e=>e.id===this.salaryComponent.currencyId?.id))}},watch:{"salaryComponent.payGradeId":function(e){e?.id?(this.isLoading=!0,this.http.request({url:`/api/v2/admin/pay-grades/${e.id}/currencies`,method:"GET",params:{limit:0}}).then((e=>{const{data:t}=e.data;this.usableCurrencies=t.map((e=>({id:e.currencyType.id,name:e.currencyType.name,minAmount:e.minSalary,maxAmount:e.maxSalary})));const o=this.salaryComponent.currencyId,a=this.usableCurrencies.findIndex((e=>e.id===o?.id));this.salaryComponent.currencyId=-1===a?null:this.salaryComponent.currencyId})).then((()=>{this.isLoading=!1}))):this.usableCurrencies=[]}},mounted(){this.$nextTick((()=>{this.rules.salaryAmount.push((e=>{const t=this.minAmount?this.minAmount:0;return e>=t||this.$t("pim.should_be_within_min_max_values")})),this.rules.salaryAmount.push((e=>{const t=this.maxAmount?this.maxAmount:999999999;return e<=t||this.$t("pim.should_be_within_min_max_values")}))}))},methods:{onSave(){this.isLoading=!0;const e=this.showOptionalAccountType?this.accountType:this.directDeposit.directDepositAccountType?.id;this.http.create({salaryComponent:this.salaryComponent.name,salaryAmount:this.salaryComponent.salaryAmount,payGradeId:this.salaryComponent.payGradeId?.id,currencyId:this.salaryComponent.currencyId?.id,payFrequencyId:this.salaryComponent.payFrequencyId?.id,comment:this.salaryComponent.comment?this.salaryComponent.comment:null,addDirectDeposit:this.includeDirectDeposit,directDepositAccount:this.includeDirectDeposit?this.directDeposit.directDepositAccount:void 0,directDepositAccountType:this.includeDirectDeposit?e:void 0,directDepositAmount:this.includeDirectDeposit?this.directDeposit.directDepositAmount:void 0,directDepositRoutingNumber:this.includeDirectDeposit?this.directDeposit.directDepositRoutingNumber:void 0}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const sg=(0,r.Z)(ig,[["render",lg],["__scopeId","data-v-6c600350"]]);var dg=sg;const cg={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function mg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-switch-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",cg,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_salary_component")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.salaryComponent.name=e),label:e.$t("pim.salary_component"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.payGradeId,"onUpdate:modelValue":t[1]||(t[1]=e=>n.salaryComponent.payGradeId=e),type:"select",label:e.$t("general.pay_grade"),options:o.paygrades},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.payFrequencyId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.salaryComponent.payFrequencyId=e),type:"select",label:e.$t("pim.pay_frequency"),options:o.payFrequencies},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(d,{key:r.currenciesOpts,modelValue:n.salaryComponent.currencyId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.salaryComponent.currencyId=e),type:"select",label:e.$t("general.currency"),options:r.currenciesOpts,rules:n.rules.currencyId,required:""},null,8,["modelValue","label","options","rules"]))])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.salaryAmount,"onUpdate:modelValue":t[4]||(t[4]=e=>n.salaryComponent.salaryAmount=e),label:e.$t("pim.amount"),rules:n.rules.salaryAmount,required:""},null,8,["modelValue","label","rules"]),void 0!==r.minAmount||void 0!==r.maxAmount?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" Min: "+(0,a.toDisplayString)(r.minAmount??0)+" - Max: "+(0,a.toDisplayString)(r.maxAmount??0),1)])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.salaryComponent.comment,"onUpdate:modelValue":t[5]||(t[5]=e=>n.salaryComponent.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,{class:"directdeposit-form-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"directdeposit-form-header-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.include_direct_deposit_details")),1)])),_:1}),(0,a.createVNode)(p,{modelValue:n.includeDirectDeposit,"onUpdate:modelValue":t[6]||(t[6]=e=>n.includeDirectDeposit=e)},null,8,["modelValue"])])),_:1}),n.includeDirectDeposit?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAccount,"onUpdate:modelValue":t[7]||(t[7]=e=>n.directDeposit.directDepositAccount=e),label:e.$t("pim.account_number"),rules:n.rules.directDepositAccount,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAccountType,"onUpdate:modelValue":t[8]||(t[8]=e=>n.directDeposit.directDepositAccountType=e),type:"select",label:e.$t("pim.account_type"),rules:n.rules.directDepositAccountType,options:o.accountTypes,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),r.showOptionalAccountType?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.accountType,"onUpdate:modelValue":t[9]||(t[9]=e=>n.accountType=e),label:e.$t("pim.please_specify"),rules:n.rules.accountType,required:""},null,8,["modelValue","label","rules"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositRoutingNumber,"onUpdate:modelValue":t[10]||(t[10]=e=>n.directDeposit.directDepositRoutingNumber=e),label:e.$t("pim.routing_number"),rules:n.rules.directDepositRoutingNumber,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.directDeposit.directDepositAmount,"onUpdate:modelValue":t[11]||(t[11]=e=>n.directDeposit.directDepositAmount=e),label:e.$t("pim.amount"),rules:n.rules.directDepositAmount,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const ug={name:"",salaryAmount:"",comment:"",payGradeId:null,payFrequencyId:null,currencyId:null},pg={directDepositAccount:"",directDepositAccountType:null,directDepositRoutingNumber:"",directDepositAmount:""};var hg={name:"EditSalaryComponent",components:{"oxd-switch-input":q.OxdSwitchInput},props:{http:{type:Object,required:!0},data:{type:Object,required:!0},paygrades:{type:Array,default:()=>[]},payFrequencies:{type:Array,default:()=>[]},currencies:{type:Array,default:()=>[]},accountTypes:{type:Array,default:()=>[]}},emits:["close"],data(){return{isLoading:!1,includeDirectDeposit:!1,salaryComponent:{...ug},directDeposit:{...pg},accountType:"",usableCurrencies:[],rules:{name:[jt,zt(100)],salaryAmount:[jt,Wt,mo(1e9)],comment:[zt(250)],currencyId:[jt],directDepositAccount:[jt,zt(100)],directDepositAccountType:[jt],accountType:[jt,zt(20)],directDepositRoutingNumber:[jt,zt(9),Wt],directDepositAmount:[jt,Wt,mo(1e9)]}}},computed:{showOptionalAccountType(){return"OTHER"==this.directDeposit.directDepositAccountType?.id},minAmount(){return this.currencyInfo?.minAmount},maxAmount(){return this.currencyInfo?.maxAmount},currenciesOpts(){const e=this.salaryComponent.payGradeId?.id;return e?e&&this.usableCurrencies.length>0?this.currencies.filter((e=>this.usableCurrencies.findIndex((t=>t.id===e.id))>-1)):[]:this.currencies},currencyInfo(){return this.usableCurrencies.find((e=>e.id===this.salaryComponent.currencyId?.id))}},watch:{"salaryComponent.payGradeId":function(e){e?.id?(this.isLoading=!0,this.http.request({url:`/api/v2/admin/pay-grades/${e.id}/currencies`,method:"GET",params:{limit:0}}).then((e=>{const{data:t}=e.data;this.usableCurrencies=t.map((e=>({id:e.currencyType.id,name:e.currencyType.name,minAmount:e.minSalary,maxAmount:e.maxSalary})));const o=this.salaryComponent.currencyId,a=this.usableCurrencies.findIndex((e=>e.id===o?.id));this.salaryComponent.currencyId=-1===a?[]:this.salaryComponent.currencyId})).then((()=>{this.isLoading=!1}))):this.usableCurrencies=[]}},mounted(){this.$nextTick((()=>{this.rules.salaryAmount.push((e=>{const t=this.minAmount?this.minAmount:0;return e>=t||this.$t("pim.should_be_within_min_max_values")})),this.rules.salaryAmount.push((e=>{const t=this.maxAmount?this.maxAmount:999999999;return e<=t||this.$t("pim.should_be_within_min_max_values")}))}))},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;if(this.salaryComponent.name=t.salaryName,this.salaryComponent.salaryAmount=t.amount,this.salaryComponent.comment=t.comment?t.comment:"",this.salaryComponent.payGradeId=this.paygrades.find((e=>e.id===t.payGrade?.id)),this.salaryComponent.payFrequencyId=this.payFrequencies.find((e=>e.id===t.payPeriod?.id)),this.salaryComponent.currencyId=this.currencies.find((e=>e.id===t.currencyType?.id)),null!==t.directDebit.id){this.includeDirectDeposit=!0,this.directDeposit.directDepositAccount=t.directDebit.account;const e=this.accountTypes.find((e=>e.id===t.directDebit.accountType));this.directDeposit.directDepositAccountType=e||{id:"OTHER",label:this.$t("pim.other")},this.accountType=0===e.length?t.directDebit.accountType:"",this.directDeposit.directDepositRoutingNumber=t.directDebit.routingNumber,this.directDeposit.directDepositAmount=t.directDebit.amount}})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e=this.showOptionalAccountType?this.accountType:this.directDeposit.directDepositAccountType?.id;this.http.update(this.data.id,{salaryComponent:this.salaryComponent.name,salaryAmount:this.salaryComponent.salaryAmount,payGradeId:this.salaryComponent.payGradeId?.id,currencyId:this.salaryComponent.currencyId?.id,payFrequencyId:this.salaryComponent.payFrequencyId?.id,comment:this.salaryComponent.comment?this.salaryComponent.comment:null,addDirectDeposit:this.includeDirectDeposit,directDepositAccount:this.includeDirectDeposit?this.directDeposit.directDepositAccount:void 0,directDepositAccountType:this.includeDirectDeposit?e:void 0,directDepositAmount:this.includeDirectDeposit?this.directDeposit.directDepositAmount:void 0,directDepositRoutingNumber:this.includeDirectDeposit?this.directDeposit.directDepositRoutingNumber:void 0}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const gg=(0,r.Z)(hg,[["render",mg],["__scopeId","data-v-e3ac8428"]]);var vg=gg;const fg=e=>e.map((e=>({id:e.id,name:e.salaryName,amount:e.amount,currency:e.currencyType?.name,frequency:e.payPeriod?.name,depositAmount:e.directDebit?.amount})));var yg={components:{"profile-action-header":Pp,"edit-employee-layout":Jp,"save-salary-component":dg,"edit-salary-component":vg,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},paygrades:{type:Array,default:()=>[]},payFrequencies:{type:Array,default:()=>[]},currencies:{type:Array,default:()=>[]},accountTypes:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/salary-components`),{showPaginator:o,currentPage:a,total:l,pages:n,pageSize:r,response:i,isLoading:s,execQuery:d}=wt(t,{normalizer:fg,toastNoRecords:!1});return{http:t,showPaginator:o,currentPage:a,isLoading:s,total:l,pages:n,pageSize:r,execQuery:d,items:i}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("pim.salary_component"),style:{flex:1}},{name:"amount",title:this.$t("pim.amount"),style:{flex:1}},{name:"currency",title:this.$t("general.currency"),style:{flex:1}},{name:"frequency",title:this.$t("pim.pay_frequency"),style:{flex:1}},{name:"depositAmount",title:this.$t("pim.direct_deposit_amount"),style:{flex:1}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal},tableHeaders(){const e={name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.delete("salary_details")&&(e.cellConfig.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),this.$can.update("salary_details")&&(e.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),Object.keys(e.cellConfig).length>0?this.headers.concat([e]):this.headers}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Cg=(0,r.Z)(yg,[["render",og]]);var bg=Cg;const Vg={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},xg={key:1,class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function wg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("date-input"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("job-spec-download"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("oxd-switch-input"),v=(0,a.resolveComponent)("file-upload-input"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form"),b=(0,a.resolveComponent)("profile-action-header"),V=(0,a.resolveComponent)("terminate-modal"),x=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(x,{screen:"job","employee-id":o.empNumber,"max-file-size":o.maxFileSize,"allowed-file-types":o.allowedFileTypes},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Vg,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.job_details")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.job.joinedDate,"onUpdate:modelValue":t[0]||(t[0]=e=>n.job.joinedDate=e),label:e.$t("general.joined_date"),rules:n.rules.joinedDate,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.job.jobTitleId,"onUpdate:modelValue":t[1]||(t[1]=e=>n.job.jobTitleId=e),type:"select",label:e.$t("general.job_title"),options:r.normalizedJobTitles,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(u,{key:`jobspec-${r.selectedJobTitleId}`,"resource-id":r.selectedJobTitleId},null,8,["resource-id"]))])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.job.jobCategoryId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.job.jobCategoryId=e),type:"select",label:e.$t("general.job_category"),options:o.jobCategories,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.job.subunitId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.job.subunitId=e),type:"select",label:e.$t("general.sub_unit"),options:o.subunits,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.job.locationId,"onUpdate:modelValue":t[4]||(t[4]=e=>n.job.locationId=e),type:"select",label:e.$t("general.location"),options:o.locations,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.job.empStatusId,"onUpdate:modelValue":t[5]||(t[5]=e=>n.job.empStatusId=e),type:"select",label:e.$t("general.employment_status"),options:o.employmentStatuses,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","options","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{class:"user-form-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"user-form-header-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.include_employment_contract_details")),1)])),_:1}),(0,a.createVNode)(g,{modelValue:n.showContractDetails,"onUpdate:modelValue":t[6]||(t[6]=e=>n.showContractDetails=e)},null,8,["modelValue"])])),_:1}),n.showContractDetails?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contract.startDate,"onUpdate:modelValue":t[7]||(t[7]=e=>n.contract.startDate=e),label:e.$t("pim.contract_start_date"),rules:n.rules.startDate,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.contract.endDate,"onUpdate:modelValue":t[8]||(t[8]=e=>n.contract.endDate=e),label:e.$t("pim.contract_end_date"),rules:n.rules.endDate,disabled:!r.hasUpdatePermissions},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{newFile:n.contract.newAttachment,"onUpdate:newFile":t[9]||(t[9]=e=>n.contract.newAttachment=e),method:n.contract.method,"onUpdate:method":t[10]||(t[10]=e=>n.contract.method=e),label:e.$t("pim.contract_details"),"button-label":e.$t("general.browse"),file:n.contract.oldAttachment,rules:n.rules.contractAttachment,url:`pim/viewAttachment/empNumber/${o.empNumber}/attachId`,hint:"Accepts up to 1MB",disabled:!r.hasUpdatePermissions},null,8,["newFile","method","label","button-label","file","rules","url","disabled"])])),_:1})])),_:1})])),_:1})],64)):(0,a.createCommentVNode)("",!0),r.hasUpdatePermissions?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f)])),_:1})],64)):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","onSubmitValid"])]),r.hasUpdatePermissions&&!n.isLoading?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0})):(0,a.createCommentVNode)("",!0),r.hasUpdatePermissions&&!n.isLoading?((0,a.openBlock)(),(0,a.createElementBlock)("div",xg,[(0,a.createVNode)(b,{"icon-name":"","display-type":r.terminationActionType,label:r.terminationActionLabel,title:r.terminationActionLabel,class:"--termination-button",onClick:r.onClickTerminate},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.employee_termination_activation"))+" ",1),n.termination&&n.termination.id?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,tag:"p",class:"orangehrm-terminate-date",onClick:r.openTerminateModal},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.terminated_on"))+": "+(0,a.toDisplayString)(r.terminationDate),1)])),_:1},8,["onClick"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["display-type","label","title","onClick"])])):(0,a.createCommentVNode)("",!0),n.showTerminateModal?((0,a.openBlock)(),(0,a.createBlock)(V,{key:2,"employee-id":o.empNumber,"termination-reasons":o.terminationReasons,"termination-id":n.termination.id,onClose:r.closeTerminateModal},null,8,["employee-id","termination-reasons","termination-id","onClose"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["employee-id","max-file-size","allowed-file-types"])}function Ng(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon-button"),d=(0,a.resolveComponent)("oxd-loading-spinner"),c=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createBlock)(c,{label:e.$t("general.job_specification")},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)({"input-container":!0,"--disabled":!e.file.id})},[(0,a.createVNode)(i,{class:"input-container-filename",tag:"p",title:e.file.filename,onClick:l.downloadFile},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.file.id?e.file.filename:"Not Defined"),1)])),_:1},8,["title","onClick"]),!e.isLoading&&e.file.id?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"input-container-icon",name:"download",onClick:l.downloadFile},null,8,["onClick"])):(0,a.createCommentVNode)("",!0),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,class:"input-container-loader","with-container":!1})):(0,a.createCommentVNode)("",!0)],2)])),_:1},8,["label"])}var _g={name:"JobSpecDownload",components:{"oxd-loading-spinner":q.OxdSpinner},props:{resourceId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/admin/job-titles/${e.resourceId}/specification`),o=(0,a.reactive)({isLoading:!1,file:{id:"",filename:"",fileType:"",fileSize:0}}),l=async()=>{o.isLoading=!0,t.request({method:"GET",validateStatus:e=>e>=200&&e<300||404==e}).then((({data:e})=>{o.file={...e.data}})).finally((()=>{o.isLoading=!1}))},n=()=>{if(!o.file.id)return;const e=`${window.appGlobal.baseUrl}/admin/viewJobSpecification/attachId/${o.file.id}`;window.open(e,"_blank")};return e.resourceId&&(0,a.onBeforeMount)(l),{...(0,a.toRefs)(o),downloadFile:n}}};const kg=(0,r.Z)(_g,[["render",Ng],["__scopeId","data-v-6dc7b054"]]);var Sg=kg;const Dg={class:"orangehrm-modal-header"};function $g(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("date-input"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(f,{class:"orangehrm-dialog-modal","onUpdate:show":t[4]||(t[4]=e=>r.onCancel(!1))},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Dg,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.terminate_employment")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.termination.date,"onUpdate:modelValue":t[0]||(t[0]=e=>n.termination.date=e),label:e.$t("pim.termination_date"),rules:n.rules.date,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.termination.terminationReason,"onUpdate:modelValue":t[1]||(t[1]=e=>n.termination.terminationReason=e),type:"select",label:e.$t("pim.termination_reason"),rules:n.rules.terminationReason,options:o.terminationReasons,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.termination.note,"onUpdate:modelValue":t[2]||(t[2]=e=>n.termination.note=e),type:"textarea",label:e.$t("general.note"),placeholder:e.$t("general.type_here"),rules:n.rules.note},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:t[3]||(t[3]=e=>r.onCancel(!1))},null,8,["label"]),(0,a.createVNode)(h)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1})}const Eg={terminationReason:null,date:"",note:null};var Tg={name:"TerminateModal",components:{"oxd-dialog":q.OxdDialog},props:{employeeId:{type:String,required:!0},terminationReasons:{type:Array,required:!0},terminationId:{type:Number,required:!1,default:null}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/terminations`),{userDateFormat:o}=R();return{http:t,userDateFormat:o}},data(){return{isLoading:!1,termination:{...Eg},rules:{terminationReason:[jt],date:[jt,Rt(this.userDateFormat)],note:[zt(250)]}}},beforeMount(){this.terminationId&&(this.isLoading=!0,this.http.get(this.terminationId).then((e=>{const{data:t}=e.data;this.termination.terminationReason=this.terminationReasons.find((e=>e.id===t.terminationReason?.id)),this.termination.date=t.date,this.termination.note=t.note})).finally((()=>{this.isLoading=!1})))},methods:{onSave(){this.isLoading=!0;const e={date:this.termination.date,note:this.termination.note,terminationReasonId:this.termination.terminationReason?.id};this.submitData(e,this.terminationId).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel(!0)}))},async submitData(e,t){return t?this.http.update(t,e):this.http.create(e)},onCancel(e){this.$emit("close",e)}}};const Bg=(0,r.Z)(Tg,[["render",$g]]);var Ig=Bg;const Lg={joinedDate:"",jobTitleId:[],empStatusId:[],jobCategoryId:[],subunitId:[],locationId:[]},Ug={startDate:"",endDate:"",oldAttachment:null,newAttachment:null,method:"keepCurrent"};var Ag={components:{"edit-employee-layout":Jp,"oxd-switch-input":q.OxdSwitchInput,"job-spec-download":Sg,"file-upload-input":To,"profile-action-header":Pp,"terminate-modal":Ig},props:{empNumber:{type:String,required:!0},locations:{type:Array,default:()=>[]},jobTitles:{type:Array,default:()=>[]},jobCategories:{type:Array,default:()=>[]},subunits:{type:Array,default:()=>[]},employmentStatuses:{type:Array,default:()=>[]},terminationReasons:{type:Array,default:()=>[]},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/job-details`),{jsDateFormat:o,userDateFormat:a}=R(),{locale:l}=De();return{http:t,locale:l,jsDateFormat:o,userDateFormat:a}},data(){return{isLoading:!1,showContractDetails:!1,job:{...Lg},contract:{...Ug},termination:null,showTerminateModal:!1,rules:{joinedDate:[Rt(this.userDateFormat)],startDate:[Rt(this.userDateFormat)],endDate:[Rt(this.userDateFormat),eo((()=>this.contract.startDate))],contractAttachment:[e=>"replaceCurrent"!=this.contract.method||jt(e),ro(this.allowedFileTypes),no(this.maxFileSize)]}}},computed:{selectedJobTitleId(){const e=this.job.jobTitleId?.id;return e||0},terminationActionLabel(){return this.termination?.id?this.$t("pim.activate_employment"):this.$t("pim.terminate_employment")},terminationActionType(){return this.termination?.id?"ghost-success":"label-danger"},hasUpdatePermissions(){return this.$can.update("job_details")},normalizedJobTitles(){return this.jobTitles.map((e=>({id:e.id,label:e?.deleted?e.label+this.$t("general.deleted"):e.label})))},terminationDate(){return this.termination?.date?ie(re(this.termination.date),this.jsDateFormat,{locale:this.locale}):null}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{this.updateJobModel(e)})).then((()=>this.http.request({method:"GET",url:`/api/v2/pim/employees/${this.empNumber}/employment-contract`}))).then((e=>{this.updateContractModel(e)})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{...this.job,jobTitleId:this.job.jobTitleId?.id,jobCategoryId:this.job.jobCategoryId?.id,subunitId:this.job.subunitId?.id,empStatusId:this.job.empStatusId?.id,locationId:this.job.locationId?.id}}).then((e=>(this.updateJobModel(e),this.http.request({method:"PUT",url:`/api/v2/pim/employees/${this.empNumber}/employment-contract`,data:{startDate:this.contract.startDate,endDate:this.contract.endDate,currentContractAttachment:this.contract.oldAttachment?this.contract.method:void 0,contractAttachment:this.contract.newAttachment?this.contract.newAttachment:void 0}})))).then((e=>(e&&this.updateContractModel(e),this.$toast.updateSuccess()))).then((()=>{this.isLoading=!1}))},onClickTerminate(){this.termination?.id?(this.isLoading=!0,this.http.request({method:"DELETE",url:`/api/v2/pim/employees/${this.empNumber}/terminations`}).then((()=>this.$toast.updateSuccess())).then((()=>{location.reload()}))):this.openTerminateModal()},openTerminateModal(){this.showTerminateModal=!0},closeTerminateModal(e){this.showTerminateModal=!1,e&&location.reload()},updateContractModel(e){const{data:t}=e.data;this.contract.startDate=t.startDate,this.contract.endDate=t.endDate,this.contract.oldAttachment=t.contractAttachment?.id?t.contractAttachment:null,this.contract.newAttachment=null,this.contract.method="keepCurrent",t.startDate||t.endDate||t.contractAttachment?.id?this.showContractDetails=!0:this.showContractDetails=!1},updateJobModel(e){const{data:t}=e.data;this.job.joinedDate=t.joinedDate,this.job.jobTitleId=this.normalizedJobTitles.find((e=>e.id===t.jobTitle?.id)),this.job.jobCategoryId=this.jobCategories.find((e=>e.id===t.jobCategory?.id)),this.job.subunitId=this.subunits.find((e=>e.id===t.subunit?.id)),this.job.empStatusId=this.employmentStatuses.find((e=>e.id===t.empStatus?.id)),this.job.locationId=this.locations.find((e=>e.id===t.location?.id)),this.termination=t.employeeTerminationRecord}}};const Pg=(0,r.Z)(Ag,[["render",wg],["__scopeId","data-v-1dfb2fdc"]]);var qg=Pg;const Mg={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function Fg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-work-experience"),c=(0,a.resolveComponent)("employee-education"),m=(0,a.resolveComponent)("employee-skills"),u=(0,a.resolveComponent)("employee-languages"),p=(0,a.resolveComponent)("employee-license"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"qualifications"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Mg,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.qualifications")),1)])),_:1}),(0,a.createVNode)(s)]),(0,a.createVNode)(d,{"employee-id":o.empNumber},null,8,["employee-id"]),(0,a.createVNode)(c,{"employee-id":o.empNumber},null,8,["employee-id"]),(0,a.createVNode)(m,{"employee-id":o.empNumber},null,8,["employee-id"]),(0,a.createVNode)(u,{"employee-id":o.empNumber,fluencies:o.fluencies,competencies:o.competencies},null,8,["employee-id","fluencies","competencies"]),(0,a.createVNode)(p,{"employee-id":o.empNumber},null,8,["employee-id"])])),_:1},8,["employee-id"])}const jg={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},zg={class:"orangehrm-container"},Rg={key:2,class:"orangehrm-bottom-container"};function Og(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-skill"),s=(0,a.resolveComponent)("edit-skill"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,api:l.skillsEndpoint,onClose:r.onSaveModalClose},null,8,["http","api","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",jg,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.skills")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",zg,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,disabled:r.isDisabled,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading","disabled"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Rg,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const Gg={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function Zg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("qualification-dropdown"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Gg,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_skill")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.skillId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.skill.skillId=e),label:e.$t("pim.skill"),rules:n.rules.skillId,api:o.api,required:""},null,8,["modelValue","label","rules","api"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.skill.yearsOfExperience,"onUpdate:modelValue":t[1]||(t[1]=e=>n.skill.yearsOfExperience=e),label:e.$t("pim.years_of_experience"),rules:n.rules.yearsOfExperience},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.skill.comments,"onUpdate:modelValue":t[2]||(t[2]=e=>n.skill.comments=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comments},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}function Qg(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",options:l.options},null,8,["options"])}var Hg={name:"QualificationDropdown",props:{api:{type:String,required:!0}},setup(e){const t=(0,a.ref)([]),o=new P(window.appGlobal.baseUrl,e.api);return(0,a.onBeforeMount)((()=>{o.getAll({limit:0}).then((({data:e})=>{t.value=e.data.map((e=>({id:e.id,label:e.name})))}))})),{options:t}}};const Wg=(0,r.Z)(Hg,[["render",Qg]]);var Yg=Wg;const Jg={yearsOfExperience:"",comments:"",skillId:null};var Xg={name:"SaveSkill",components:{"qualification-dropdown":Yg},props:{http:{type:Object,required:!0},api:{type:String,required:!0}},emits:["close"],data(){return{isLoading:!1,skill:{...Jg},rules:{skillId:[jt],yearsOfExperience:[Qt,Zt(100)],comments:[zt(100)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({skillId:this.skill.skillId?.id,yearsOfExperience:parseInt(this.skill.yearsOfExperience),comments:""!==this.skill.comments?this.skill.comments:" "}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Kg=(0,r.Z)(Xg,[["render",Zg]]);var ev=Kg;const tv={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function ov(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",tv,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_skill")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.skill.name=e),label:e.$t("pim.skill"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.yearsOfExperience,"onUpdate:modelValue":t[1]||(t[1]=e=>n.skill.yearsOfExperience=e),label:e.$t("pim.years_of_experience"),rules:n.rules.yearsOfExperience},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.skill.comments,"onUpdate:modelValue":t[2]||(t[2]=e=>n.skill.comments=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comments},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const av={yearsOfExperience:0,comments:"",name:""};var lv={name:"EditSkill",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],data(){return{isLoading:!1,skill:{...av},rules:{yearsOfExperience:[Qt,Zt(100)],comments:[zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.skill.name=t.skill.name,this.skill.comments=t.comments,this.skill.yearsOfExperience=t.yearsOfExperience})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{yearsOfExperience:parseInt(this.skill.yearsOfExperience),comments:""!==this.skill.comments?this.skill.comments:" "}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const nv=(0,r.Z)(lv,[["render",ov]]);var rv=nv;const iv=e=>e.map((e=>({id:e.skill.id,name:e.skill.name,yearsOfExperience:e.yearsOfExperience,comments:e.comments})));var sv={name:"EmployeeSkills",components:{"profile-action-header":Pp,"save-skill":ev,"edit-skill":rv,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/skills`),o=`/api/v2/pim/employees/${e.employeeId}/skills/allowed`,{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(t,{normalizer:iv,toastNoRecords:!1});return{http:t,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s,skillsEndpoint:o}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("pim.skill"),style:{flex:1}},{name:"yearsOfExperience",title:this.$t("pim.years_of_experience"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-basis":"10em"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const dv=(0,r.Z)(sv,[["render",Og]]);var cv=dv;const mv={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},uv={class:"orangehrm-container"},pv={key:2,class:"orangehrm-bottom-container"};function hv(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-education"),s=(0,a.resolveComponent)("edit-education"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,api:l.educationEndpoint,onClose:r.onSaveModalClose},null,8,["http","api","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",mv,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.education")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",uv,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,disabled:r.isDisabled,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading","disabled"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",pv,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const gv={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function vv(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("qualification-dropdown"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",gv,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_education")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.educationId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.education.educationId=e),label:e.$t("general.level"),rules:n.rules.educationId,api:o.api,required:""},null,8,["modelValue","label","rules","api"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.education.institute,"onUpdate:modelValue":t[1]||(t[1]=e=>n.education.institute=e),label:e.$t("pim.institute"),rules:n.rules.institute},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.education.major,"onUpdate:modelValue":t[2]||(t[2]=e=>n.education.major=e),label:e.$t("pim.major_specialization"),rules:n.rules.major},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.education.year,"onUpdate:modelValue":t[3]||(t[3]=e=>n.education.year=e),label:e.$t("general.year"),rules:n.rules.year},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.education.score,"onUpdate:modelValue":t[4]||(t[4]=e=>n.education.score=e),label:e.$t("pim.gpa_score"),rules:n.rules.score},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.education.startDate,"onUpdate:modelValue":t[5]||(t[5]=e=>n.education.startDate=e),label:e.$t("general.start_date"),rules:n.rules.startDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.education.endDate,"onUpdate:modelValue":t[6]||(t[6]=e=>n.education.endDate=e),label:e.$t("general.end_date"),rules:n.rules.endDate},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const fv={educationId:null,institute:"",major:"",year:"",score:"",startDate:"",endDate:""};var yv={name:"SaveEducation",components:{"qualification-dropdown":Yg},props:{http:{type:Object,required:!0},api:{type:String,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,education:{...fv},rules:{educationId:[jt],institute:[zt(100)],major:[zt(100)],score:[zt(25)],year:[zt(4),Qt],startDate:[Rt(this.userDateFormat)],endDate:[Rt(this.userDateFormat),eo((()=>this.education.startDate))]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.education,educationId:this.education.educationId?.id,year:parseInt(this.education.year)}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Cv=(0,r.Z)(yv,[["render",vv]]);var bv=Cv;const Vv={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function xv(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Vv,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_education")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.education.name=e),label:e.$t("general.level"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.institute,"onUpdate:modelValue":t[1]||(t[1]=e=>n.education.institute=e),label:e.$t("pim.institute"),rules:n.rules.institute},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.major,"onUpdate:modelValue":t[2]||(t[2]=e=>n.education.major=e),label:e.$t("pim.major_specialization"),rules:n.rules.major},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.year,"onUpdate:modelValue":t[3]||(t[3]=e=>n.education.year=e),label:e.$t("general.year"),rules:n.rules.year},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.education.score,"onUpdate:modelValue":t[4]||(t[4]=e=>n.education.score=e),label:e.$t("pim.gpa_score"),rules:n.rules.score},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.education.startDate,"onUpdate:modelValue":t[5]||(t[5]=e=>n.education.startDate=e),label:e.$t("general.start_date"),rules:n.rules.startDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.education.endDate,"onUpdate:modelValue":t[6]||(t[6]=e=>n.education.endDate=e),label:e.$t("general.end_date"),rules:n.rules.endDate},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const wv={name:"",institute:"",major:"",year:"",score:"",startDate:"",endDate:""};var Nv={name:"EditEducation",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,education:{...wv},rules:{institute:[zt(100)],major:[zt(100)],score:[zt(25)],year:[zt(4),Qt],startDate:[Rt(this.userDateFormat)],endDate:[Rt(this.userDateFormat),eo((()=>this.education.startDate))]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.education.name=t.education.name,this.education.institute=t.institute,this.education.major=t.major,this.education.year=t.year?t.year:"",this.education.score=t.score,this.education.startDate=t.startDate?t.startDate:"",this.education.endDate=t.endDate?t.endDate:""})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{institute:this.education.institute,major:this.education.major,year:parseInt(this.education.year),score:this.education.score,startDate:this.education.startDate,endDate:this.education.endDate}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const _v=(0,r.Z)(Nv,[["render",xv]]);var kv=_v;const Sv=e=>e.map((e=>({id:e.id,level:e.education.name,year:e.year,score:e.score})));var Dv={name:"EmployeeEducation",components:{"profile-action-header":Pp,"save-education":bv,"edit-education":kv,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/educations`),o="/api/v2/admin/educations",{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(t,{normalizer:Sv,toastNoRecords:!1});return{http:t,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s,educationEndpoint:o}},data(){return{headers:[{name:"level",slot:"title",title:this.$t("general.level"),style:{flex:1}},{name:"year",title:this.$t("general.year"),style:{flex:1}},{name:"score",title:this.$t("pim.gpa_score"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-basis":"10em"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const $v=(0,r.Z)(Dv,[["render",hv]]);var Ev=$v;const Tv={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},Bv={class:"orangehrm-container"},Iv={key:2,class:"orangehrm-bottom-container"};function Lv(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-language"),s=(0,a.resolveComponent)("edit-language"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,api:l.languagesEndpoint,fluencies:o.fluencies,competencies:o.competencies,onClose:r.onSaveModalClose},null,8,["http","api","fluencies","competencies","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,"employee-id":o.employeeId,competencies:o.competencies,onClose:r.onEditModalClose},null,8,["http","data","employee-id","competencies","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Tv,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.languages")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Bv,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,disabled:r.isDisabled,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","disabled","loading"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Iv,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const Uv={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function Av(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Uv,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_language")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(d,{key:r.allowedLanguages,modelValue:n.language.languageId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.language.languageId=e),type:"select",label:e.$t("general.language"),options:r.allowedLanguages,rules:n.rules.languageId,clear:!1,required:""},null,8,["modelValue","label","options","rules"]))])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(d,{key:r.allowedFluencies,modelValue:n.language.fluencyId,"onUpdate:modelValue":t[1]||(t[1]=e=>n.language.fluencyId=e),type:"select",label:e.$t("pim.fluency"),options:r.allowedFluencies,rules:n.rules.fluencyId,clear:!1,required:""},null,8,["modelValue","label","options","rules"]))])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.competencyId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.language.competencyId=e),type:"select",label:e.$t("pim.competency"),options:o.competencies,rules:n.rules.competencyId,clear:!1,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.comment,"onUpdate:modelValue":t[3]||(t[3]=e=>n.language.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const Pv={languageId:null,fluencyId:null,competencyId:null,comment:""};var qv={name:"SaveLanguage",props:{http:{type:Object,required:!0},fluencies:{type:Array,required:!0},competencies:{type:Array,required:!0},api:{type:String,required:!0}},emits:["close"],data(){return{isLoading:!1,language:{...Pv},languages:[],rules:{languageId:[jt],fluencyId:[jt],competencyId:[jt],comment:[zt(100)]}}},computed:{allowedLanguages(){return this.languages},allowedFluencies(){const e=this.languages.findIndex((e=>e.id===this.language.languageId?.id));if(e>-1){const t=this.languages[e];return this.fluencies.filter((e=>t.allowedFluencyIds.includes(e.id)))}return[]}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:this.api,params:{limit:0}}).then((e=>{const{data:t}=e.data;Array.isArray(t)&&(this.languages=t.map((e=>({id:e.id,label:e.name,allowedFluencyIds:e.allowedFluencyIds?e.allowedFluencyIds:[]}))))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({languageId:this.language.languageId?.id,fluencyId:this.language.fluencyId?.id,competencyId:this.language.competencyId?.id,comment:this.language.comment}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Mv=(0,r.Z)(qv,[["render",Av]]);var Fv=Mv;const jv={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function zv(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",jv,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_language")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.language.name=e),label:e.$t("general.language"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.fluency,"onUpdate:modelValue":t[1]||(t[1]=e=>n.language.fluency=e),label:e.$t("pim.fluency"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.competencyId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.language.competencyId=e),type:"select",label:e.$t("pim.competency"),options:o.competencies,rules:n.rules.competencyId,clear:!1,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.language.comment,"onUpdate:modelValue":t[3]||(t[3]=e=>n.language.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const Rv={name:"",fluency:"",competencyId:null,comment:""};var Ov={name:"EditLanguage",props:{http:{type:Object,required:!0},employeeId:{type:String,required:!0},data:{type:Object,required:!0},competencies:{type:Array,required:!0}},emits:["close"],data(){return{isLoading:!1,language:{...Rv},rules:{competencyId:[jt],comment:[zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:`/api/v2/pim/employees/${this.employeeId}/languages/${this.data.languageId}/fluencies/${this.data.fluencyId}`}).then((e=>{const{data:t}=e.data;this.language.name=t.language.name,this.language.fluency=t.fluency.name,this.language.comment=t.comment?t.comment:"",this.language.competencyId=this.competencies.find((e=>e.id===t.competency?.id))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",url:`/api/v2/pim/employees/${this.employeeId}/languages/${this.data.languageId}/fluencies/${this.data.fluencyId}`,data:{competencyId:this.language.competencyId.id,comment:this.language.comment}}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Gv=(0,r.Z)(Ov,[["render",zv]]);var Zv=Gv;const Qv=e=>e.map((e=>({language:e.language.name,languageId:e.language.id,fluency:e.fluency.name,fluencyId:e.fluency.id,competency:e.competency.name,comments:e.comment})));var Hv={name:"EmployeeLanguages",components:{"profile-action-header":Pp,"save-language":Fv,"edit-language":Zv,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0},fluencies:{type:Array,required:!0},competencies:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/languages`),o=`/api/v2/pim/employees/${e.employeeId}/languages/allowed`,{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(t,{normalizer:Qv,toastNoRecords:!1});return{http:t,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s,languagesEndpoint:o}},data(){return{headers:[{name:"language",slot:"title",title:this.$t("general.language"),style:{flex:1}},{name:"fluency",title:this.$t("pim.fluency"),style:{flex:1}},{name:"competency",title:this.$t("pim.competency"),style:{flex:1}},{name:"comments",title:this.$t("general.comments"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-basis":"10em"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>({languageId:this.items?.data[e].languageId,fluencyId:this.items?.data[e].fluencyId})));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([{languageId:e.languageId,fluencyId:e.fluencyId}])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Wv=(0,r.Z)(Hv,[["render",Lv]]);var Yv=Wv;const Jv={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},Xv={class:"orangehrm-container"},Kv={key:2,class:"orangehrm-bottom-container"};function ef(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-work-experience"),s=(0,a.resolveComponent)("edit-work-experience"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,onClose:r.onSaveModalClose},null,8,["http","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Jv,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.work_experience")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Xv,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,disabled:r.isDisabled,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading","disabled"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Kv,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const tf={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function of(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",tf,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_work_experience")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.company,"onUpdate:modelValue":t[0]||(t[0]=e=>n.workExperience.company=e),label:e.$t("pim.company"),rules:n.rules.company,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.workExperience.jobTitle=e),label:e.$t("general.job_title"),rules:n.rules.jobTitle,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workExperience.fromDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.workExperience.fromDate=e),label:e.$t("general.from"),rules:n.rules.fromDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workExperience.toDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.workExperience.toDate=e),label:e.$t("general.to"),rules:n.rules.toDate},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.comment,"onUpdate:modelValue":t[4]||(t[4]=e=>n.workExperience.comment=e),type:"textarea",label:e.$t("general.comment"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const af={company:"",jobTitle:"",fromDate:"",toDate:"",comment:""};var lf={name:"SaveWorkExperience",props:{http:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,workExperience:{...af},rules:{company:[jt,zt(100)],jobTitle:[jt,zt(100)],fromDate:[Rt(this.userDateFormat)],toDate:[Rt(this.userDateFormat),eo((()=>this.workExperience.fromDate),this.$t("general.to_date_should_be_after_from_date"))],comment:[zt(200)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.workExperience}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const nf=(0,r.Z)(lf,[["render",of]]);var rf=nf;const sf={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function df(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",sf,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" Edit Work Experience ")])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.company,"onUpdate:modelValue":t[0]||(t[0]=e=>n.workExperience.company=e),label:e.$t("pim.company"),rules:n.rules.company,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.workExperience.jobTitle=e),label:e.$t("general.job_title"),rules:n.rules.jobTitle,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workExperience.fromDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.workExperience.fromDate=e),label:e.$t("general.from"),rules:n.rules.fromDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.workExperience.toDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.workExperience.toDate=e),label:e.$t("general.to"),rules:n.rules.toDate},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workExperience.comment,"onUpdate:modelValue":t[4]||(t[4]=e=>n.workExperience.comment=e),type:"textarea",label:e.$t("general.comment"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const cf={company:"",jobTitle:"",fromDate:"",toDate:"",comment:""};var mf={name:"EditWorkExperience",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,workExperience:{...cf},rules:{company:[jt,zt(100)],jobTitle:[jt,zt(100)],fromDate:[Rt(this.userDateFormat)],toDate:[Rt(this.userDateFormat),eo((()=>this.workExperience.fromDate),this.$t("general.to_date_should_be_after_from_date"))],comment:[zt(200)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.workExperience={...t}})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{...this.workExperience}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const uf=(0,r.Z)(mf,[["render",df]]);var pf=uf,hf={name:"EmployeeWorkExperience",components:{"profile-action-header":Pp,"save-work-experience":rf,"edit-work-experience":pf,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/work-experiences`),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>({...e,fromDate:ie(re(e.fromDate),o,{locale:a}),toDate:ie(re(e.toDate),o,{locale:a})}))),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{toastNoRecords:!1,normalizer:l});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"company",slot:"title",title:this.$t("pim.company"),style:{flex:1}},{name:"jobTitle",title:this.$t("general.job_title"),style:{flex:1}},{name:"fromDate",title:this.$t("general.from"),style:{flex:1}},{name:"toDate",title:this.$t("general.to"),style:{flex:1}},{name:"comment",title:this.$t("general.comment"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-basis":"10em"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const gf=(0,r.Z)(hf,[["render",ef]]);var vf=gf;const ff={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},yf={class:"orangehrm-container"},Cf={key:2,class:"orangehrm-bottom-container"};function bf(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-license"),s=(0,a.resolveComponent)("edit-license"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,api:l.licenceEndpoint,onClose:r.onSaveModalClose},null,8,["http","api","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",ff,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.license")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",yf,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,disabled:r.isDisabled,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading","disabled"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Cf,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const Vf={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function xf(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("qualification-dropdown"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Vf,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_license")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.license.licenseId,"onUpdate:modelValue":t[0]||(t[0]=e=>n.license.licenseId=e),label:e.$t("pim.license_type"),rules:n.rules.licenseId,api:o.api,required:""},null,8,["modelValue","label","rules","api"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.license.licenseNo,"onUpdate:modelValue":t[1]||(t[1]=e=>n.license.licenseNo=e),label:e.$t("pim.license_number"),rules:n.rules.licenseNo},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.license.issuedDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.license.issuedDate=e),label:e.$t("pim.issued_date"),rules:n.rules.issuedDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.license.expiryDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.license.expiryDate=e),label:e.$t("general.expiry_date"),rules:n.rules.expiryDate,years:n.yearArray},null,8,["modelValue","label","rules","years"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const wf=function(e=100,t=(new Date).getFullYear()){const o=new Array(e);for(let a=0;athis.license.issuedDate),this.$t("pim.expiry_date_should_be_after_issued_date"))]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.license,licenseId:this.license.licenseId?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const kf=(0,r.Z)(_f,[["render",xf]]);var Sf=kf;const Df={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function $f(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Df,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_license")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.license.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.license.name=e),label:e.$t("pim.license_type"),required:"",readonly:"",disabled:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.license.licenseNo,"onUpdate:modelValue":t[1]||(t[1]=e=>n.license.licenseNo=e),label:e.$t("pim.license_number"),rules:n.rules.licenseNo},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.license.issuedDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.license.issuedDate=e),label:e.$t("pim.issued_date"),rules:n.rules.issuedDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.license.expiryDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.license.expiryDate=e),label:e.$t("general.expiry_date"),rules:n.rules.expiryDate,years:n.yearArray},null,8,["modelValue","label","rules","years"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const Ef={name:"",licenseNo:"",issuedDate:"",expiryDate:""};var Tf={name:"EditLicense",props:{http:{type:Object,required:!0},data:{type:Object,required:!0}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,license:{...Ef},yearArray:[...wf()],rules:{licenseNo:[zt(50)],issuedDate:[Rt(this.userDateFormat)],expiryDate:[Rt(this.userDateFormat),eo((()=>this.license.issuedDate),this.$t("pim.expiry_date_should_be_after_issued_date"))]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.license.name=t.license.name,this.license.licenseNo=t.licenseNo?t.licenseNo:"",this.license.issuedDate=t.issuedDate,this.license.expiryDate=t.expiryDate})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{licenseNo:this.license.licenseNo,issuedDate:this.license.issuedDate,expiryDate:this.license.expiryDate}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Bf=(0,r.Z)(Tf,[["render",$f]]);var If=Bf,Lf={name:"EmployeeLicense",components:{"profile-action-header":Pp,"save-license":Sf,"edit-license":If,"delete-confirmation":Et},props:{employeeId:{type:String,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.employeeId}/licenses`),{jsDateFormat:o}=R(),{locale:a}=De(),l=`/api/v2/pim/employees/${e.employeeId}/licenses/allowed`,n=e=>e.map((e=>({id:e.license.id,type:e.license.name,licenseNo:e.licenseNo,issuedDate:ie(re(e.issuedDate),o,{locale:a}),expiryDate:ie(re(e.expiryDate),o,{locale:a})}))),{showPaginator:r,currentPage:i,total:s,pages:d,pageSize:c,response:m,isLoading:u,execQuery:p}=wt(t,{normalizer:n,toastNoRecords:!1});return{http:t,showPaginator:r,currentPage:i,isLoading:u,total:s,pages:d,pageSize:c,execQuery:p,items:m,licenceEndpoint:l}},data(){return{headers:[{name:"type",slot:"title",title:this.$t("pim.license_type"),style:{flex:1}},{name:"issuedDate",title:this.$t("pim.issued_date"),style:{flex:1}},{name:"expiryDate",title:this.$t("general.expiry_date"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-basis":"10em"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Uf=(0,r.Z)(Lf,[["render",bf]]);var Af=Uf,Pf={components:{"edit-employee-layout":Jp,"employee-skills":cv,"employee-education":Ev,"employee-languages":Yv,"employee-work-experience":vf,"employee-license":Af},props:{empNumber:{type:String,required:!0},fluencies:{type:Array,required:!0},competencies:{type:Array,required:!0}}};const qf=(0,r.Z)(Pf,[["render",Fg]]);var Mf=qf;const Ff={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},jf={class:"orangehrm-container"},zf={class:"orangehrm-bottom-container"};function Rf(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-immigration"),s=(0,a.resolveComponent)("edit-immigration"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"immigration"},{default:(0,a.withCtx)((()=>[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,countries:o.countries,onClose:r.onSaveModalClose},null,8,["http","countries","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,countries:o.countries,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","countries","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Ff,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_immigration_records")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",jf,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","disabled","loading"])]),(0,a.createElementVNode)("div",zf,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])),_:1},8,["employee-id"])}const Of={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Gf(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-input-group"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Of,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_immigration")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{label:e.$t("pim.document"),classes:{wrapper:"--gender-grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.type,"onUpdate:modelValue":t[0]||(t[0]=e=>n.immigration.type=e),type:"radio","option-label":e.$t("pim.passport"),value:"1"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.immigration.type,"onUpdate:modelValue":t[1]||(t[1]=e=>n.immigration.type=e),type:"radio","option-label":e.$t("pim.visa"),value:"2"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.number,"onUpdate:modelValue":t[2]||(t[2]=e=>n.immigration.number=e),label:e.$t("pim.number"),rules:n.rules.number,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.issuedDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.immigration.issuedDate=e),label:e.$t("pim.issued_date"),rules:n.rules.issuedDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.expiryDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.immigration.expiryDate=e),label:e.$t("general.expiry_date"),years:n.yearArray,rules:n.rules.expiryDate},null,8,["modelValue","label","years","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.status,"onUpdate:modelValue":t[5]||(t[5]=e=>n.immigration.status=e),label:e.$t("pim.eligible_status"),rules:n.rules.status},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.countryCode,"onUpdate:modelValue":t[6]||(t[6]=e=>n.immigration.countryCode=e),type:"select",label:e.$t("pim.issued_by"),options:o.countries},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.reviewDate,"onUpdate:modelValue":t[7]||(t[7]=e=>n.immigration.reviewDate=e),label:e.$t("pim.eligible_review_date"),rules:n.rules.reviewDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.comment,"onUpdate:modelValue":t[8]||(t[8]=e=>n.immigration.comment=e),type:"textarea",label:e.$t("general.comments"),placeholder:e.$t("general.type_comments_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Zf={number:"",issuedDate:"",expiryDate:"",type:1,status:"",reviewDate:"",countryCode:null,comment:""};var Qf={name:"SaveImmigration",props:{http:{type:Object,required:!0},countries:{type:Array,default:()=>[]}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,immigration:{...Zf},yearArray:[...wf()],rules:{number:[jt,zt(30)],expiryDate:[Rt(this.userDateFormat),eo((()=>this.immigration.issuedDate),this.$t("pim.expiry_date_should_be_after_issued_date"))],status:[zt(30)],issuedDate:[Rt(this.userDateFormat)],reviewDate:[Rt(this.userDateFormat)],comment:[zt(250)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.immigration,countryCode:this.immigration.countryCode?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.immigration={...Zf},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Hf=(0,r.Z)(Qf,[["render",Gf]]);var Wf=Hf;const Yf={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Jf(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-input-group"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Yf,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_immigration")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{label:"Document",classes:n.immigrationTypeClasses},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.type,"onUpdate:modelValue":t[0]||(t[0]=e=>n.immigration.type=e),type:"radio","option-label":e.$t("pim.passport"),value:"1"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.immigration.type,"onUpdate:modelValue":t[1]||(t[1]=e=>n.immigration.type=e),type:"radio","option-label":e.$t("pim.visa"),value:"2"},null,8,["modelValue","option-label"])])),_:1},8,["classes"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.number,"onUpdate:modelValue":t[2]||(t[2]=e=>n.immigration.number=e),label:e.$t("pim.number"),rules:n.rules.number,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.issuedDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.immigration.issuedDate=e),label:e.$t("pim.issued_date"),rules:n.rules.issuedDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.expiryDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.immigration.expiryDate=e),label:e.$t("general.expiry_date"),years:n.yearArray,rules:n.rules.expiryDate},null,8,["modelValue","label","years","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.status,"onUpdate:modelValue":t[5]||(t[5]=e=>n.immigration.status=e),label:e.$t("pim.eligible_status"),rules:n.rules.status},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.countryCode,"onUpdate:modelValue":t[6]||(t[6]=e=>n.immigration.countryCode=e),type:"select",label:e.$t("pim.issued_by"),options:o.countries},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.immigration.reviewDate,"onUpdate:modelValue":t[7]||(t[7]=e=>n.immigration.reviewDate=e),label:e.$t("pim.eligible_review_date"),rules:n.rules.reviewDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.immigration.comment,"onUpdate:modelValue":t[8]||(t[8]=e=>n.immigration.comment=e),type:"textarea",label:e.$t("general.comments"),placeholder:e.$t("general.type_comments_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Xf={number:"",issuedDate:"",expiryDate:"",type:1,status:"",reviewDate:"",countryCode:null,comment:""};var Kf={name:"EditImmigration",props:{http:{type:Object,required:!0},data:{type:Object,required:!0},countries:{type:Array,default:()=>[]}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,immigration:{...Xf},yearArray:[...wf()],rules:{number:[jt,zt(30)],expiryDate:[Rt(this.userDateFormat),eo((()=>this.immigration.issuedDate),this.$t("pim.expiry_date_should_be_after_issued_date"))],status:[zt(30)],issuedDate:[Rt(this.userDateFormat)],reviewDate:[Rt(this.userDateFormat)],comment:[zt(250)]},immigrationTypeClasses:{wrapper:"--gender-grouped-field",label:{"oxd-input-field-required":!0}}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.immigration={...Xf,...t},this.immigration.countryCode=this.countries.find((e=>e.id===t.country?.code))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{number:this.immigration.number,issuedDate:this.immigration.issuedDate,expiryDate:this.immigration.expiryDate,type:this.immigration.type,status:this.immigration.status,reviewDate:this.immigration.reviewDate,comment:this.immigration.comment,countryCode:this.immigration.countryCode?.id}).then((()=>this.$toast.updateSuccess())).then((()=>{this.immigration={...Xf},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const ey=(0,r.Z)(Kf,[["render",Jf]]);var ty=ey,oy={components:{"profile-action-header":Pp,"edit-employee-layout":Jp,"save-immigration":Wf,"edit-immigration":ty,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},countries:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/immigrations`),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>({id:e.id,type:1==e.type?"Passport":"VISA",number:e.number,countryCode:e.country.code,countryName:e.country.name,issuedDate:ie(re(e.issuedDate),o,{locale:a}),expiryDate:ie(re(e.expiryDate),o,{locale:a})}))),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:l,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"type",slot:"title",title:this.$t("pim.document"),style:{flex:1}},{name:"number",title:this.$t("pim.number"),style:{flex:1}},{name:"countryName",title:this.$t("pim.issued_by"),style:{flex:1}},{name:"issuedDate",title:this.$t("pim.issued_date"),style:{flex:1}},{name:"expiryDate",title:this.$t("general.expiry_date"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const ay=(0,r.Z)(oy,[["render",Rf],["__scopeId","data-v-1f0dcd51"]]);var ly=ay;const ny={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function ry(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-supervisors"),c=(0,a.resolveComponent)("employee-subordinates"),m=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(m,{"employee-id":o.empNumber,screen:"report-to"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",ny,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.report_to")),1)])),_:1}),(0,a.createVNode)(s)]),(0,a.createVNode)(d,{"emp-number":o.empNumber,"reporting-methods":o.reportingMethods},null,8,["emp-number","reporting-methods"]),(0,a.createVNode)(c,{"emp-number":o.empNumber,"reporting-methods":o.reportingMethods},null,8,["emp-number","reporting-methods"])])),_:1},8,["employee-id"])}const iy={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},sy={class:"orangehrm-container"},dy={key:2,class:"orangehrm-bottom-container"};function cy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-employee-report-to"),s=(0,a.resolveComponent)("edit-employee-report-to"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,"reporting-methods":o.reportingMethods,type:"Supervisor","emp-number":o.empNumber,onClose:r.onSaveModalClose},null,8,["http","reporting-methods","emp-number","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,"emp-number":o.empNumber,data:n.editModalState,type:"Supervisor",api:l.supervisorEndpoint,"reporting-methods":o.reportingMethods,onClose:r.onEditModalClose},null,8,["http","emp-number","data","api","reporting-methods","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",iy,[(0,a.createVNode)(d,{"action-button-shown":e.$can.create("supervisor"),onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_supervisors")),1)])),_:1},8,["action-button-shown","onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",sy,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:r.tableHeaders,items:l.items?.data,selectable:e.$can.delete("supervisor"),disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","disabled","loading"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",dy,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}const my={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function uy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("report-to-employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",my,["Supervisor"===o.type?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_supervisor")),1)])),_:1})):(0,a.createCommentVNode)("",!0),"Subordinate"===o.type?((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_subordinate")),1)])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.reportTo.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.reportTo.employee=e),rules:n.rules.employee,api:l.api,required:""},null,8,["modelValue","rules","api"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.reportTo.reportingMethod,"onUpdate:modelValue":t[1]||(t[1]=e=>n.reportTo.reportingMethod=e),type:"select",label:e.$t("pim.reporting_method"),rules:n.rules.reportingMethod,options:o.reportingMethods,required:""},null,8,["modelValue","label","rules","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:"Cancel",onClick:r.onCancel},null,8,["onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const py={key:0,class:"past-employee-tag"};function hy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",label:e.$t("general.name"),clear:!1,"create-options":r.loadEmployees},{afterSelected:(0,a.withCtx)((({data:t})=>[t.isPastEmployee?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.past_employee")),1)],64)):(0,a.createCommentVNode)("",!0)])),option:(0,a.withCtx)((({data:t})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(t.label),1),t.isPastEmployee?((0,a.openBlock)(),(0,a.createElementBlock)("div",py,(0,a.toDisplayString)(e.$t("general.past_employee")),1)):(0,a.createCommentVNode)("",!0)])),_:1},8,["label","create-options"])}var gy={name:"ReportToEmployeeAutocomplete",props:{api:{type:String,required:!0},params:{type:Object,default:()=>({})}},setup(e){const t=new P(window.appGlobal.baseUrl,e.api);return{http:t}},methods:{async loadEmployees(e){return new Promise((t=>{e.trim()?this.http.getAll({nameOrId:e.trim(),...this.params}).then((({data:e})=>{t(e.data.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId}))))})):t([])}))}}};const vy=(0,r.Z)(gy,[["render",hy]]);var fy=vy;const yy={employee:null,reportingMethod:null};var Cy={name:"SaveEmployeeReportTo",components:{"report-to-employee-autocomplete":fy},props:{http:{type:Object,required:!0},reportingMethods:{type:Array,required:!0},type:{type:String,required:!0},empNumber:{type:String,required:!0}},emits:["close"],setup(e){const t=`/api/v2/pim/employees/${e.empNumber}/report-to/allowed`;return{api:t}},data(){return{isLoading:!1,reportTo:{...yy},rules:{employee:[jt,xo],reportingMethod:[jt]}}},methods:{onSave(){this.isLoading=!0,this.http.create({empNumber:this.reportTo.employee?.id,reportingMethodId:this.reportTo.reportingMethod?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const by=(0,r.Z)(Cy,[["render",uy]]);var Vy=by;const xy={class:"orangehrm-horizontal-padding orangehrm-top-padding"};function wy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("report-to-employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xy,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit"))+" "+(0,a.toDisplayString)(o.type),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.reportTo.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.reportTo.employee=e),required:"",disabled:"",api:l.allowedEmployeesApi,rules:n.rules.employee,clear:!1},null,8,["modelValue","api","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.reportTo.reportingMethod,"onUpdate:modelValue":t[1]||(t[1]=e=>n.reportTo.reportingMethod=e),type:"select",label:e.$t("pim.reporting_method"),rules:n.rules.reportingMethod,options:o.reportingMethods,required:""},null,8,["modelValue","label","rules","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"]),(0,a.createVNode)(s)])}const Ny={employee:null,reportingMethod:null};var _y={name:"EditEmployeeReportTo",components:{"report-to-employee-autocomplete":fy},props:{http:{type:Object,required:!0},data:{type:Object,required:!0},reportingMethods:{type:Array,required:!0},type:{type:String,required:!0},empNumber:{type:String,required:!0},api:{type:String,required:!0}},emits:["close"],setup(e){const t=`/api/v2/pim/employees/${e.empNumber}/report-to/allowed`;return{allowedEmployeesApi:t}},data(){return{isLoading:!1,reportTo:{...Ny},rules:{employee:[jt,xo],reportingMethod:[jt]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:"Supervisor"===this.type?`${this.api}${this.data.supervisorEmpNumber}`:`${this.api}${this.data.subordinateEmpNumber}`}).then((e=>{const{data:t}=e.data;this.reportTo.employee={id:"Supervisor"===this.type?t.supervisor.empNumber:t.subordinate.empNumber,label:"Supervisor"===this.type?`${t.supervisor.firstName} ${t.supervisor.middleName} ${t.supervisor.lastName}`:`${t.subordinate.firstName} ${t.subordinate.middleName} ${t.subordinate.lastName}`,isPastEmployee:"Supervisor"===this.type?t.supervisor.terminationId:t.subordinate.terminationId},this.reportTo.reportingMethod=this.reportingMethods.find((e=>e.id===t.reportingMethod.id))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e="Supervisor"===this.type?this.data.supervisorEmpNumber:this.data.subordinateEmpNumber;this.http.update(e,{reportingMethodId:this.reportTo.reportingMethod?.id}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const ky=(0,r.Z)(_y,[["render",wy]]);var Sy=ky,Dy={name:"EmployeeSupervisors",components:{"edit-employee-report-to":Sy,"profile-action-header":Pp,"save-employee-report-to":Vy,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},reportingMethods:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/supervisors`),{$t:o}=Se(),a=e=>e.map((e=>({name:`${e.supervisor?.firstName} ${e.supervisor?.lastName} ${e.supervisor.terminationId?o("general.past_employee"):""}`,reportingMethod:e.reportingMethod.name,supervisorEmpNumber:e.supervisor.empNumber}))),l=`/api/v2/pim/employees/${e.empNumber}/supervisors/`,{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:a,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c,supervisorEndpoint:l}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1}},{name:"reportingMethod",title:this.$t("pim.reporting_method"),style:{flex:1}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal},tableHeaders(){const e={name:"actions",slot:"action",title:"Actions",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.delete("supervisor")&&(e.cellConfig.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),this.$can.update("supervisor")&&(e.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),Object.keys(e.cellConfig).length>0?this.headers.concat([e]):this.headers}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].supervisorEmpNumber));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.supervisorEmpNumber])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const $y=(0,r.Z)(Dy,[["render",cy]]);var Ey=$y;const Ty={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},By={class:"orangehrm-container"},Iy={key:2,class:"orangehrm-bottom-container"};function Ly(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-employee-report-to"),s=(0,a.resolveComponent)("edit-employee-report-to"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,type:"Subordinate","emp-number":o.empNumber,"reporting-methods":o.reportingMethods,onClose:r.onSaveModalClose},null,8,["http","emp-number","reporting-methods","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,"emp-number":o.empNumber,data:n.editModalState,type:"Subordinate",api:l.subordinateEndpoint,"reporting-methods":o.reportingMethods,onClose:r.onEditModalClose},null,8,["http","emp-number","data","api","reporting-methods","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Ty,[(0,a.createVNode)(d,{"action-button-shown":e.$can.create("subordinates"),onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_subordinates")),1)])),_:1},8,["action-button-shown","onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",By,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:r.tableHeaders,items:l.items?.data,selectable:e.$can.delete("subordinates"),disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","disabled","loading"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Iy,[(0,a.createVNode)(u,{current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])}var Uy={name:"EmployeeSubordinates",components:{"edit-employee-report-to":Sy,"save-employee-report-to":Vy,"profile-action-header":Pp,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},reportingMethods:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/subordinates`),{$t:o}=Se(),a=e=>e.map((e=>({name:`${e.subordinate?.firstName} ${e.subordinate?.lastName} ${e.subordinate.terminationId?o("general.past_employee"):""}`,reportingMethod:e.reportingMethod.name,subordinateEmpNumber:e.subordinate.empNumber}))),l=`/api/v2/pim/employees/${e.empNumber}/subordinates/`,{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:a,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c,subordinateEndpoint:l}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:1}},{name:"reportingMethod",title:this.$t("pim.reporting_method"),style:{flex:1}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal},tableHeaders(){const e={name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.delete("subordinates")&&(e.cellConfig.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),this.$can.update("subordinates")&&(e.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),Object.keys(e.cellConfig).length>0?this.headers.concat([e]):this.headers}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].subordinateEmpNumber));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.subordinateEmpNumber])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const Ay=(0,r.Z)(Uy,[["render",Ly]]);var Py=Ay,qy={components:{"edit-employee-layout":Jp,"employee-supervisors":Ey,"employee-subordinates":Py},props:{empNumber:{type:String,required:!0},reportingMethods:{type:Array,required:!0}}};const My=(0,r.Z)(qy,[["render",ry]]);var Fy=My;const jy={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},zy={class:"orangehrm-container"},Ry={class:"orangehrm-bottom-container"};function Oy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-membership"),s=(0,a.resolveComponent)("edit-membership"),d=(0,a.resolveComponent)("profile-action-header"),c=(0,a.resolveComponent)("table-header"),m=(0,a.resolveComponent)("oxd-card-table"),u=(0,a.resolveComponent)("oxd-pagination"),p=(0,a.resolveComponent)("delete-confirmation"),h=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(h,{"employee-id":o.empNumber,screen:"membership"},{default:(0,a.withCtx)((()=>[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,currencies:o.currencies,"paid-by":o.paidBy,memberships:o.memberships,onClose:r.onSaveModalClose},null,8,["http","currencies","paid-by","memberships","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,currencies:o.currencies,"paid-by":o.paidBy,memberships:o.memberships,data:n.editModalState,onClose:r.onEditModalClose},null,8,["http","currencies","paid-by","memberships","data","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",jy,[(0,a.createVNode)(d,{onClick:r.onClickAdd},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.assigned_memberships")),1)])),_:1},8,["onClick"])]),(0,a.createVNode)(c,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",zy,[(0,a.createVNode)(m,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,disabled:r.isDisabled,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","disabled","loading"])]),(0,a.createElementVNode)("div",Ry,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(p,{ref:"deleteDialog"},null,512)])),_:1},8,["employee-id"])}const Gy={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Zy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Gy,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_membership")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.membership,"onUpdate:modelValue":t[0]||(t[0]=e=>n.membership.membership=e),type:"select",label:e.$t("pim.membership"),options:o.memberships,rules:n.rules.membership,required:""},null,8,["modelValue","label","options","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.subscriptionPaidBy,"onUpdate:modelValue":t[1]||(t[1]=e=>n.membership.subscriptionPaidBy=e),type:"select",label:e.$t("pim.subscription_paid_by"),options:o.paidBy},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.subscriptionFee,"onUpdate:modelValue":t[2]||(t[2]=e=>n.membership.subscriptionFee=e),label:e.$t("pim.subscription_amount"),rules:n.rules.subscriptionFee},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.currencyType,"onUpdate:modelValue":t[3]||(t[3]=e=>n.membership.currencyType=e),type:"select",label:e.$t("general.currency"),options:o.currencies},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.membership.subscriptionCommenceDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.membership.subscriptionCommenceDate=e),label:e.$t("pim.subscription_commence_date"),rules:n.rules.subscriptionCommenceDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.membership.subscriptionRenewalDate,"onUpdate:modelValue":t[5]||(t[5]=e=>n.membership.subscriptionRenewalDate=e),label:e.$t("pim.subscription_renewal_date"),years:n.yearArray,rules:n.rules.subscriptionRenewalDate},null,8,["modelValue","label","years","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Qy={membershipId:[],subscriptionFee:"",subscriptionPaidBy:null,currencyTypeId:[],subscriptionCommenceDate:"",subscriptionRenewalDate:""};var Hy={name:"SaveMembership",props:{http:{type:Object,required:!0},currencies:{type:Array,default:()=>[]},paidBy:{type:Array,default:()=>[]},memberships:{type:Array,default:()=>[]}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,membership:{...Qy},yearArray:[...wf()],rules:{membership:[jt],subscriptionCommenceDate:[Rt(this.userDateFormat)],subscriptionRenewalDate:[Rt(this.userDateFormat),eo((()=>this.membership.subscriptionCommenceDate),this.$t("pim.renewal_date_should_be_after_the_commencing_date"))],subscriptionFee:[Wt,mo(1e9)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({subscriptionFee:this.membership.subscriptionFee,subscriptionCommenceDate:this.membership.subscriptionCommenceDate,subscriptionRenewalDate:this.membership.subscriptionRenewalDate,membershipId:this.membership.membership.id,subscriptionPaidBy:this.membership.subscriptionPaidBy?.id,currencyTypeId:this.membership.currencyType?.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.membership={...Qy},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const Wy=(0,r.Z)(Hy,[["render",Zy]]);var Yy=Wy;const Jy={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Xy(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Jy,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_membership")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.membership,"onUpdate:modelValue":t[0]||(t[0]=e=>n.membership.membership=e),type:"select",label:e.$t("pim.membership"),options:o.memberships,rules:n.rules.membership,required:""},null,8,["modelValue","label","options","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.subscriptionPaidBy,"onUpdate:modelValue":t[1]||(t[1]=e=>n.membership.subscriptionPaidBy=e),type:"select",label:e.$t("pim.subscription_paid_by"),options:o.paidBy},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.subscriptionFee,"onUpdate:modelValue":t[2]||(t[2]=e=>n.membership.subscriptionFee=e),label:e.$t("pim.subscription_amount"),rules:n.rules.subscriptionFee},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.membership.currencyType,"onUpdate:modelValue":t[3]||(t[3]=e=>n.membership.currencyType=e),type:"select",label:e.$t("general.currency"),options:o.currencies},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.membership.subscriptionCommenceDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.membership.subscriptionCommenceDate=e),label:e.$t("pim.subscription_commence_date"),rules:n.rules.subscriptionCommenceDate},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.membership.subscriptionRenewalDate,"onUpdate:modelValue":t[5]||(t[5]=e=>n.membership.subscriptionRenewalDate=e),label:e.$t("pim.subscription_renewal_date"),years:n.yearArray,rules:n.rules.subscriptionRenewalDate},null,8,["modelValue","label","years","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(s)],64)}const Ky={membership:[],subscriptionFee:"",subscriptionPaidBy:null,currencyType:[],subscriptionCommenceDate:"",subscriptionRenewalDate:""};var eC={name:"EditMembership",props:{http:{type:Object,required:!0},data:{type:Object,required:!0},currencies:{type:Array,default:()=>[]},paidBy:{type:Array,default:()=>[]},memberships:{type:Array,default:()=>[]}},emits:["close"],setup(){const{userDateFormat:e}=R();return{userDateFormat:e}},data(){return{isLoading:!1,membership:{...Ky},yearArray:[...wf()],rules:{membership:[jt],subscriptionCommenceDate:[Rt(this.userDateFormat)],subscriptionRenewalDate:[Rt(this.userDateFormat),eo((()=>this.membership.subscriptionCommenceDate),this.$t("pim.renewal_date_should_be_after_the_commencing_date"))],subscriptionFee:[Wt,mo(1e9)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.membership.subscriptionFee=t.subscriptionFee,this.membership.subscriptionCommenceDate=t.subscriptionCommenceDate,this.membership.subscriptionRenewalDate=t.subscriptionRenewalDate,this.membership.membership=this.memberships.find((e=>e.id===t.membership.id)),this.membership.subscriptionPaidBy=this.paidBy.find((e=>e.id===t.subscriptionPaidBy)),this.membership.currencyType=this.currencies.find((e=>e.id===t.currencyType?.id))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{subscriptionFee:this.membership.subscriptionFee,subscriptionCommenceDate:this.membership.subscriptionCommenceDate,subscriptionRenewalDate:this.membership.subscriptionRenewalDate,membershipId:this.membership.membership.id,subscriptionPaidBy:this.membership.subscriptionPaidBy?.id,currencyTypeId:this.membership.currencyType?.id}).then((()=>this.$toast.updateSuccess())).then((()=>{this.membership={...Ky},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const tC=(0,r.Z)(eC,[["render",Xy]]);var oC=tC,aC={components:{"profile-action-header":Pp,"edit-employee-layout":Jp,"save-membership":Yy,"edit-membership":oC,"delete-confirmation":Et},props:{empNumber:{type:String,required:!0},currencies:{type:Array,default:()=>[]},paidBy:{type:Array,default:()=>[]},memberships:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/memberships`),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>({id:e.id,membershipId:e.membership.id,membershipName:e.membership.name,subscriptionPaidBy:e.subscriptionPaidBy,subscriptionFee:e.subscriptionFee,subscriptionTypeId:e.currencyType.id,subscriptionCurrencyName:e.currencyType.name,subscriptionCommenceDate:ie(re(e.subscriptionCommenceDate),o,{locale:a}),subscriptionRenewalDate:ie(re(e.subscriptionRenewalDate),o,{locale:a})}))),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(t,{normalizer:l,toastNoRecords:!1});return{http:t,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"membershipName",slot:"title",title:this.$t("pim.membership"),style:{flex:1}},{name:"subscriptionPaidBy",title:this.$t("pim.subscription_paid_by"),style:{flex:1}},{name:"subscriptionFee",title:this.$t("pim.subscription_amount"),style:{flex:1}},{name:"subscriptionCurrencyName",title:this.$t("general.currency"),style:{flex:1}},{name:"subscriptionCommenceDate",title:this.$t("pim.subscription_commence_date"),style:{flex:1}},{name:"subscriptionRenewalDate",title:this.$t("pim.subscription_renewal_date"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},computed:{isDisabled(){return this.showSaveModal||this.showEditModal}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showEditModal=!1,this.editModalState=null,this.showSaveModal=!0},onClickEdit(e){this.showSaveModal=!1,this.editModalState=e,this.showEditModal=!0},onSaveModalClose(){this.showSaveModal=!1,this.resetDataTable()},onEditModalClose(){this.showEditModal=!1,this.editModalState=null,this.resetDataTable()}}};const lC=(0,r.Z)(aC,[["render",Oy],["__scopeId","data-v-3b144a72"]]);var nC=lC;const rC={class:"orangehrm-background-container"},iC={class:"orangehrm-paper-container"},sC={class:"orangehrm-header-container"},dC={class:"orangehrm-container"},cC={class:"orangehrm-bottom-container"};function mC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rC,[(0,a.createElementVNode)("div",iC,[(0,a.createElementVNode)("div",sC,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.termination_reasons")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",dC,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",cC,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var uC={components:{"delete-confirmation":Et},props:{unselectableIds:{type:Array,default:()=>[]}},setup(e){const t=t=>t.map((t=>{const o=e.unselectableIds.findIndex((e=>e==t.id));return{id:t.id,name:t.name,isSelectable:-1===o}})),o=new P(window.appGlobal.baseUrl,"/api/v2/pim/termination-reasons"),{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(o,{normalizer:t});return{http:o,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/pim/saveTerminationReasons")},onClickEdit(e){U("/pim/saveTerminationReasons/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("pim.termination_reasons_in_use")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const pC=(0,r.Z)(uC,[["render",mC]]);var hC=pC;const gC={class:"orangehrm-background-container"},vC={class:"orangehrm-card-container"};function fC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",gC,[(0,a.createElementVNode)("div",vC,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_termination_reason")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.termination.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.termination.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var yC={props:{terminationReasonId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/termination-reasons");return{http:e}},data(){return{isLoading:!1,termination:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.get(this.terminationReasonId).then((e=>{const{data:t}=e.data;return this.termination.id=t.id,this.termination.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name===e));if(o>-1){const{id:e}=t[o];return e===this.termination.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.terminationReasonId,{name:this.termination.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/viewTerminationReasons")}}};const CC=(0,r.Z)(yC,[["render",fC]]);var bC=CC;const VC={class:"orangehrm-background-container"},xC={class:"orangehrm-card-container"};function wC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",VC,[(0,a.createElementVNode)("div",xC,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_termination_reason")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.termination.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.termination.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var NC={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/termination-reasons");return{http:e}},data(){return{isLoading:!1,termination:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name===e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.termination.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/viewTerminationReasons")}}};const _C=(0,r.Z)(NC,[["render",wC]]);var kC=_C;const SC={class:"orangehrm-background-container"},DC={class:"orangehrm-paper-container"},$C={class:"orangehrm-header-container"},EC={class:"orangehrm-container"},TC={class:"orangehrm-bottom-container"};function BC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",SC,[(0,a.createElementVNode)("div",DC,[(0,a.createElementVNode)("div",$C,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.reporting_methods")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",EC,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",TC,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var IC={components:{"delete-confirmation":Et},props:{unselectableIds:{type:Array,default:()=>[]}},setup(e){const t=t=>t.map((t=>{const o=e.unselectableIds.findIndex((e=>e==t.id));return{id:t.id,name:t.name,isSelectable:-1===o}})),o=new P(window.appGlobal.baseUrl,"/api/v2/pim/reporting-methods"),{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(o,{normalizer:t});return{http:o,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{"flex-basis":"80%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/pim/saveReportingMethod")},onClickEdit(e){U("/pim/saveReportingMethod/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("pim.reporting_methods_in_use")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const LC=(0,r.Z)(IC,[["render",BC]]);var UC=LC;const AC={class:"orangehrm-background-container"},PC={class:"orangehrm-card-container"};function qC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",AC,[(0,a.createElementVNode)("div",PC,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_reporting_method")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.reportingMethod.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.reportingMethod.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var MC={props:{reportingMethodId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/reporting-methods");return{http:e}},data(){return{isLoading:!1,reportingMethod:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.get(this.reportingMethodId).then((e=>{const{data:t}=e.data;return this.reportingMethod.id=t.id,this.reportingMethod.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name===e));if(o>-1){const{id:e}=t[o];return e===this.reportingMethod.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.reportingMethodId,{name:this.reportingMethod.name}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/viewReportingMethods")}}};const FC=(0,r.Z)(MC,[["render",qC]]);var jC=FC;const zC={class:"orangehrm-background-container"},RC={class:"orangehrm-card-container"};function OC(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",zC,[(0,a.createElementVNode)("div",RC,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_reporting_method")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.reportingMethod.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.reportingMethod.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var GC={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/reporting-methods");return{http:e}},data(){return{isLoading:!1,reportingMethod:{id:"",name:""},rules:{name:[jt,zt(100)]}}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name===e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.reportingMethod.name}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/viewReportingMethods")}}};const ZC=(0,r.Z)(GC,[["render",OC]]);var QC=ZC;const HC={class:"orangehrm-background-container"},WC={class:"orangehrm-paper-container"},YC={class:"orangehrm-header-container"},JC={class:"orangehrm-custom-field-title"},XC={class:"orangehrm-container"},KC={class:"orangehrm-bottom-container"};function eb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",HC,[(0,a.createElementVNode)("div",WC,[(0,a.createElementVNode)("div",YC,[(0,a.createElementVNode)("div",JC,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.custom_fields")),1)])),_:1}),l.isLoading?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[r.remainingFields>0?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,class:"--infotext",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.remaining_no_of_custom_fields"))+" "+(0,a.toDisplayString)(r.remainingFields),1)])),_:1})):((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,class:"--infotext",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.all_custom_fields_in_use")),1)])),_:1}))],64))]),r.remainingFields>0?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",XC,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",KC,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var tb={components:{"delete-confirmation":Et},props:{customFieldLimit:{type:Number,required:!0},screenList:{type:Array,required:!0},fieldTypeList:{type:Array,required:!0},unselectableIds:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/pim/custom-fields"),o=t=>t.map((t=>{const o=e.unselectableIds.findIndex((e=>e==t.id));return{id:t.id,fieldName:t.fieldName,screen:e.screenList.filter((e=>t.screen===e.id))[0].label,fieldType:e.fieldTypeList.filter((e=>t.fieldType===e.id))[0].label,extraData:t.extraData,isSelectable:-1===o}})),{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(t,{normalizer:o});return{http:t,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s}},data(){return{screenWidth:screen.width,headers:[{name:"fieldName",slot:"title",title:this.$t("pim.custom_field_name"),style:{flex:2}},{name:"screen",title:this.$t("pim.screen"),style:{flex:2}},{name:"fieldType",title:this.$t("pim.field_type"),style:{flex:2}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},computed:{isLoaded(){return!this.isLoading},remainingFields(){return this.customFieldLimit-this.items?.data?.length}},methods:{onClickAdd(){U("/pim/saveCustomFields")},onClickEdit(e){U("/pim/saveCustomFields/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("pim.custom_fields_in_use")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const ob=(0,r.Z)(tb,[["render",eb],["__scopeId","data-v-5c47f79e"]]);var ab=ob;const lb={class:"orangehrm-background-container"},nb={class:"orangehrm-card-container"};function rb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",lb,[(0,a.createElementVNode)("div",nb,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_custom_field")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.fieldName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.customField.fieldName=e),label:e.$t("pim.field_name"),rules:n.rules.fieldName,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.screen,"onUpdate:modelValue":t[1]||(t[1]=e=>n.customField.screen=e),type:"select",label:e.$t("pim.screen"),rules:n.rules.screen,options:o.screenList,required:""},null,8,["modelValue","label","rules","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.fieldType,"onUpdate:modelValue":t[2]||(t[2]=e=>n.customField.fieldType=e),type:"select",label:e.$t("general.type"),rules:n.rules.fieldType,options:o.fieldTypeList,required:"",disabled:o.fieldInUse},null,8,["modelValue","label","rules","options","disabled"])])),_:1}),r.isDropDownField?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.extraData,"onUpdate:modelValue":t[3]||(t[3]=e=>n.customField.extraData=e),label:e.$t("pim.select_options"),rules:n.rules.extraData,required:r.isDropDownField},null,8,["modelValue","label","rules","required"]),(0,a.createVNode)(i,{tag:"p",class:"select-options-hint"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.enter_allowed_options_separated_by_commas")),1)])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const ib={id:null,fieldName:"",screen:"",fieldType:"",extraData:""};var sb={props:{customFieldId:{type:Number,required:!0},screenList:{type:Array,required:!0},fieldTypeList:{type:Array,required:!0},fieldInUse:{type:Boolean,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/custom-fields");return{http:e}},data(){return{isLoading:!1,customField:{...ib},rules:{fieldName:[jt,zt(250)],screen:[jt,zt(100)],fieldType:[jt,zt(15)],extraData:[jt,zt(250)]}}},computed:{isDropDownField(){return 1===this.customField.fieldType?.id}},created(){this.isLoading=!0,this.http.get(this.customFieldId).then((e=>{const{data:t}=e.data;return this.customField.fieldName=t.fieldName,""!==t.screen&&null!==t.screen&&(this.customField.screen=this.screenList.find((e=>e.id===t.screen))),""!==t.fieldType&&null!==t.fieldType&&(this.customField.fieldType=this.fieldTypeList.find((e=>e.id===t.fieldType))),this.customField.extraData=t.extraData,this.http.getAll()})).then((e=>{const{data:t}=e.data;this.rules.fieldName.push((e=>{const o=t.findIndex((t=>t.fieldName===e));if(o>-1){const e=t[o].id;return e==this.customFieldId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.customFieldId,{fieldName:this.customField.fieldName,screen:this.customField.screen.id,fieldType:this.customField.fieldType.id,extraData:this.customField.extraData}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/listCustomFields")}}};const db=(0,r.Z)(sb,[["render",rb],["__scopeId","data-v-9f2c1100"]]);var cb=db;const mb={class:"orangehrm-background-container"},ub={class:"orangehrm-card-container"};function pb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",mb,[(0,a.createElementVNode)("div",ub,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_custom_field")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.fieldName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.customField.fieldName=e),label:e.$t("pim.field_name"),rules:n.rules.fieldName,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.screen,"onUpdate:modelValue":t[1]||(t[1]=e=>n.customField.screen=e),type:"select",label:e.$t("pim.screen"),rules:n.rules.screen,options:o.screenList,required:""},null,8,["modelValue","label","rules","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"organization-name-container"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.fieldType,"onUpdate:modelValue":t[2]||(t[2]=e=>n.customField.fieldType=e),type:"select",label:e.$t("general.type"),rules:n.rules.fieldType,options:o.fieldTypeList,required:""},null,8,["modelValue","label","rules","options"])])),_:1}),r.isDropDownField?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customField.extraData,"onUpdate:modelValue":t[3]||(t[3]=e=>n.customField.extraData=e),label:e.$t("pim.select_options"),rules:n.rules.extraData,required:r.isDropDownField},null,8,["modelValue","label","rules","required"]),(0,a.createVNode)(i,{tag:"p",class:"select-options-hint"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.enter_allowed_options_separated_by_commas")),1)])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const hb={fieldName:"",screen:"",fieldType:"",extraData:""};var gb={props:{screenList:{type:Array,required:!0},fieldTypeList:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/custom-fields");return{http:e}},data(){return{isLoading:!1,customField:{...hb},rules:{fieldName:[jt,zt(250)],screen:[jt,zt(100)],fieldType:[jt,zt(15)],extraData:[jt,zt(250)]}}},computed:{isDropDownField(){return 1===this.customField.fieldType?.id}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.rules.fieldName.push((e=>{const o=t.findIndex((t=>t.fieldName==e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e=this.customField.fieldType.id;this.http.create({fieldName:this.customField.fieldName,screen:this.customField.screen.id,fieldType:e,extraData:1===e?this.customField.extraData:null}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/pim/listCustomFields")}}};const vb=(0,r.Z)(gb,[["render",pb],["__scopeId","data-v-2b25acf8"]]);var fb=vb;const yb={class:"orangehrm-background-container"},Cb={class:"orangehrm-card-container"},bb={class:"orangehrm-optional-field-row"},Vb={class:"orangehrm-optional-field-row"},xb={class:"orangehrm-optional-field-row"},wb={class:"orangehrm-optional-field-row"};function Nb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-switch-input"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("submit-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",yb,[(0,a.createElementVNode)("div",Cb,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.optional_fields")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.show_deprecated_fields")),1)])),_:1}),(0,a.createVNode)(c,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",bb,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.show_nick_name_smoker_and_military_service_in_personal_details")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.optionalField.pimShowDeprecatedFields,"onUpdate:modelValue":t[0]||(t[0]=e=>n.optionalField.pimShowDeprecatedFields=e)},null,8,["modelValue"])])])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.country_specific_information")),1)])),_:1}),(0,a.createVNode)(c,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Vb,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.show_ssn_field_in_personal_details")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.optionalField.showSSN,"onUpdate:modelValue":t[1]||(t[1]=e=>n.optionalField.showSSN=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",xb,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.show_sin_field_in_personal_details")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.optionalField.showSIN,"onUpdate:modelValue":t[2]||(t[2]=e=>n.optionalField.showSIN=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",wb,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-optional-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.show_us_tax_exemptions_menu")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.optionalField.showTaxExemptions,"onUpdate:modelValue":t[3]||(t[3]=e=>n.optionalField.showTaxExemptions=e)},null,8,["modelValue"])])])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const _b={pimShowDeprecatedFields:!1,showSSN:!1,showSIN:!1,showTaxExemptions:!1};var kb={components:{"oxd-switch-input":q.OxdSwitchInput},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/optional-field");return{http:e}},data(){return{isLoading:!1,optionalField:{..._b}}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.optionalField={...t}})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{...this.optionalField}}).then((e=>{const{data:t}=e.data;this.optionalField={...t},this.$toast.saveSuccess(),this.isLoading=!1}))}}};const Sb=(0,r.Z)(kb,[["render",Nb],["__scopeId","data-v-6f084a70"]]);var Db=Sb;const $b={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function Eb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("edit-employee-layout");return(0,a.openBlock)(),(0,a.createBlock)(v,{"employee-id":o.empNumber,screen:"tax"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",$b,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.tax_exemptions")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.federal_income_tax")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.federalStatus,"onUpdate:modelValue":t[0]||(t[0]=e=>n.taxExemption.federalStatus=e),type:"select",label:e.$t("general.status"),options:o.statuses,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.federalExemptions,"onUpdate:modelValue":t[1]||(t[1]=e=>n.taxExemption.federalExemptions=e),label:e.$t("pim.exemptions"),rules:n.rules.federalExemptions,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.state_income_tax")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.taxState,"onUpdate:modelValue":t[2]||(t[2]=e=>n.taxExemption.taxState=e),type:"select",label:e.$t("general.state"),options:o.provinces,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.stateStatus,"onUpdate:modelValue":t[3]||(t[3]=e=>n.taxExemption.stateStatus=e),type:"select",label:e.$t("general.status"),options:o.statuses,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.stateExemptions,"onUpdate:modelValue":t[4]||(t[4]=e=>n.taxExemption.stateExemptions=e),label:e.$t("pim.exemptions"),rules:n.rules.stateExemptions,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.unemploymentState,"onUpdate:modelValue":t[5]||(t[5]=e=>n.taxExemption.unemploymentState=e),type:"select",label:e.$t("pim.unemployment_state"),options:o.provinces,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","options","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.taxExemption.workState,"onUpdate:modelValue":t[6]||(t[6]=e=>n.taxExemption.workState=e),type:"select",label:e.$t("pim.work_state"),options:o.provinces,disabled:!e.$can.update("tax_exemptions")},null,8,["modelValue","label","options","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[e.$can.update("tax_exemptions")?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])),_:1},8,["employee-id"])}const Tb={federalStatus:null,federalExemptions:null,taxStateCode:[],stateStatus:null,stateExemptions:null,unemploymentStateCode:[],workStateCode:[]};var Bb={components:{"edit-employee-layout":Jp},props:{empNumber:{type:String,required:!0},provinces:{type:Array,default:()=>[]},statuses:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/pim/employees/${e.empNumber}/tax-exemption`);return{http:t}},data(){return{isLoading:!1,taxExemption:{...Tb},rules:{federalExemptions:[e=>null!==e.match(/^\d*\.?\d*$/)||this.$t("general.should_be_a_positive_number"),zt(2)],stateExemptions:[e=>null!==e.match(/^\d*\.?\d*$/)||this.$t("general.should_be_a_positive_number"),zt(2)]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{this.updateModel(e)})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{federalStatus:this.taxExemption.federalStatus?.id,federalExemptions:this.taxExemption.federalExemptions,taxStateCode:this.taxExemption.taxState?.id,stateStatus:this.taxExemption.stateStatus?.id,stateExemptions:this.taxExemption.stateExemptions,unemploymentStateCode:this.taxExemption.unemploymentState?.id,workStateCode:this.taxExemption.workState?.id}}).then((e=>(this.updateModel(e),this.$toast.updateSuccess()))).then((()=>{this.isLoading=!1}))},updateModel(e){const{data:t}=e.data;this.taxExemption.federalExemptions=t.federalExemptions,this.taxExemption.stateExemptions=t.stateExemptions,this.taxExemption.taxState=this.provinces.find((e=>e.id===t.taxState.code)),this.taxExemption.unemploymentState=this.provinces.find((e=>e.id===t.unemploymentState.code)),this.taxExemption.workState=this.provinces.find((e=>e.id===t.workState.code)),this.taxExemption.federalStatus=this.statuses.find((e=>e.id===t.federalStatus)),this.taxExemption.stateStatus=this.statuses.find((e=>e.id===t.stateStatus))}}};const Ib=(0,r.Z)(Bb,[["render",Eb]]);var Lb=Ib;const Ub=e=>((0,a.pushScopeId)("data-v-ad061e70"),e=e(),(0,a.popScopeId)(),e),Ab={class:"orangehrm-background-container"},Pb={class:"orangehrm-card-container"},qb={class:"orangehrm-information-card-container"},Mb=Ub((()=>(0,a.createElementVNode)("br",null,null,-1)));function Fb(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("employee-data-import-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ab,[(0,a.createElementVNode)("div",Pb,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.data_import")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",qb,[(0,a.createVNode)(i,{class:"orangehrm-sub-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.note"))+": ",1)])),_:1}),(0,a.createElementVNode)("ul",null,[(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.column_order_should_not_be_changed")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.first_name_and_last_name_are_compulsory")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.all_date_fields_should_be_in_yyyy_mm_dd_format")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.gender_specified_value_should_be_either_m_or_f")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.each_import_file_should_be_configured_for_100_records_or_less")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.multiple_import_files_may_be_required")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(i,{class:"orangehrm-information-card-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.sample_csv_file"))+" : ",1),(0,a.createElementVNode)("a",{href:"#",class:"download-link",onClick:t[0]||(t[0]=(0,a.withModifiers)(((...e)=>r.onClickDownload&&r.onClickDownload(...e)),["prevent"]))},(0,a.toDisplayString)(e.$t("general.download")),1)])),_:1})])])]),Mb,(0,a.createVNode)(v,{ref:"formRef",loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.attachment.attachment,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attachment.attachment=e),type:"file",rules:n.rules.attachment,label:e.$t("general.select_file"),"button-label":e.$t("general.browse"),placeholder:e.$t("general.no_file_selected"),required:""},null,8,["modelValue","rules","label","button-label","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{label:e.$t("general.upload")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])]),n.importModalState?((0,a.openBlock)(),(0,a.createBlock)(f,{key:0,data:n.importModalState,onClose:r.onImportModalClose},null,8,["data","onClose"])):(0,a.createCommentVNode)("",!0)])}const jb={class:"orangehrm-modal-header"},zb={class:"orangehrm-text-center-align"},Rb={class:"orangehrm-modal-footer"};function Ob(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(d,{class:"orangehrm-dialog-popup","onUpdate:show":r.onClose},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",jb,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.import_details")),1)])),_:1})]),(0,a.createElementVNode)("div",zb,[(0,a.createVNode)(i,{type:"card-body",class:(0,a.normalizeClass)({"orangehrm-success-message":o.data.success>0})},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.n_records_successfully_imported",{count:o.data.success})),1)])),_:1},8,["class"]),o.data.failed>0?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(i,{type:"card-body",class:"orangehrm-error-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.n_records_failed_to_import",{count:o.data.failed})),1)])),_:1}),(0,a.createVNode)(i,{type:"card-body",class:"orangehrm-error-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.failed_rows")),1)])),_:1}),(0,a.createVNode)(i,{type:"card-body",class:"orangehrm-error-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.data.failedRows.toString()),1)])),_:1})],64)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",Rb,[(0,a.createVNode)(s,{"display-type":"text",label:e.$t("general.ok"),onClick:r.onClose},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])}var Gb={name:"EmployeeDataImportModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,required:!0}},emits:["close"],methods:{onClose(){this.$emit("close",!0)}}};const Zb=(0,r.Z)(Gb,[["render",Ob],["__scopeId","data-v-b8d15eb4"]]);var Qb=Zb;const Hb={attachment:null};var Wb={components:{"employee-data-import-modal":Qb},props:{allowedFileTypes:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/csv-import"),{formRef:t,reset:o}=$c();return{http:e,reset:o,formRef:t}},data(){return{isLoading:!1,attachment:{...Hb},rules:{attachment:[jt,no(1048576),ro(this.allowedFileTypes)]},importModalState:null}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.attachment}).then((e=>{const{meta:t}=e.data;this.importModalState=t})).finally((()=>{this.reset(),this.isLoading=!1}))},onClickDownload(){const e=`${window.appGlobal.baseUrl}/pim/sampleCsvDownload`;window.open(e,"_blank")},onImportModalClose(){this.importModalState=null}}};const Yb=(0,r.Z)(Wb,[["render",Fb],["__scopeId","data-v-ad061e70"]]);var Jb=Yb;const Xb={class:"orangehrm-background-container"},Kb=(0,a.createElementVNode)("br",null,null,-1),eV={class:"orangehrm-paper-container"},tV={class:"orangehrm-header-container"},oV={class:"orangehrm-container"},aV={class:"orangehrm-bottom-container"};function lV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("report-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-table-filter"),v=(0,a.resolveComponent)("table-header"),f=(0,a.resolveComponent)("oxd-card-table"),y=(0,a.resolveComponent)("oxd-pagination"),C=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Xb,[(0,a.createVNode)(g,{"filter-title":e.$t("general.employee_reports")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.report,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.report=e),rules:n.rules.report},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(u,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),Kb,(0,a.createElementVNode)("div",eV,[(0,a.createElementVNode)("div",tV,[(0,a.createVNode)(u,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(v,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",oV,[(0,a.createVNode)(f,{selected:n.checkedItems,"onUpdate:selected":t[1]||(t[1]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[2]||(t[2]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",aV,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(C,{ref:"deleteDialog"},null,512)])}function nV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",label:e.$t("general.report_name"),clear:!1,"create-options":r.loadReports},{option:(0,a.withCtx)((({data:e})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.label),1)])),_:1},8,["label","create-options"])}var rV={name:"ReportAutocomplete",setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/pim/reports/defined");return{http:e}},methods:{async loadReports(e){return new Promise((t=>{e.trim()?this.http.getAll({name:e}).then((({data:e})=>{t(e.data.map((e=>({id:e.id,label:e.name}))))})):t([])}))}}};const iV=(0,r.Z)(rV,[["render",nV]]);var sV=iV;const dV={report:null},cV={"report.name":"ASC"};var mV={components:{"delete-confirmation":Et,"report-autocomplete":sV},setup(){const{sortDefinition:e,sortField:t,sortOrder:o,onSort:l}=Tt({sortDefinition:cV}),n=(0,a.ref)({...dV}),r=(0,a.computed)((()=>({reportId:n.value.report?.id,sortField:t.value,sortOrder:o.value}))),i=new P(window.appGlobal.baseUrl,"/api/v2/pim/reports/defined"),{showPaginator:s,currentPage:d,total:c,pages:m,pageSize:u,response:p,isLoading:h,execQuery:g}=wt(i,{query:r});return l(g),{http:i,showPaginator:s,currentPage:d,isLoading:h,total:c,pages:m,pageSize:u,execQuery:g,items:p,filters:n,sortDefinition:e}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:"85%"},sortField:"report.name"},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:"15%"},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}},view:{onClick:this.onClickView,props:{name:"file-text-fill"}}}}],checkedItems:[],rules:{report:[xo]}}},methods:{onClickAdd(){U("/pim/definePredefinedReport")},onClickEdit(e){U("/pim/definePredefinedReport/{id}",{id:e.id})},onClickView(e){U("/pim/displayPredefinedReport/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onClickReset(){this.filters={...dV},this.filterItems()}}};const uV=(0,r.Z)(mV,[["render",lV]]);var pV=uV;const hV={class:"orangehrm-background-container"},gV={class:"orangehrm-card-container"};function vV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-icon-button"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("report-criterion"),v=(0,a.resolveComponent)("report-display-field"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",hV,[(0,a.createElementVNode)("div",gV,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.add_report")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.name,"onUpdate:modelValue":t[0]||(t[0]=e=>l.report.name=e),label:e.$t("general.report_name"),placeholder:e.$t("general.type_here_message"),rules:n.rules.name,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.selection_criteria")),1)])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-report-criteria --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.criterion,"onUpdate:modelValue":t[1]||(t[1]=e=>l.report.criterion=e),type:"select",label:e.$t("pim.selection_criteria"),options:l.availableCriteria},null,8,["modelValue","label","options"]),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-report-icon",name:"plus",onClick:l.addCriterion},null,8,["onClick"])])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.includeEmployees,"onUpdate:modelValue":t[2]||(t[2]=e=>l.report.includeEmployees=e),type:"select",label:e.$t("pim.include"),options:n.includeOpts,"show-empty-selector":!1},null,8,["modelValue","label","options"])])),_:1}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.report.criteriaSelected,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(g,{key:e,operator:l.report.criteriaFieldValues[e.id].operator,"onUpdate:operator":t=>l.report.criteriaFieldValues[e.id].operator=t,valueX:l.report.criteriaFieldValues[e.id].valueX,"onUpdate:valueX":t=>l.report.criteriaFieldValues[e.id].valueX=t,valueY:l.report.criteriaFieldValues[e.id].valueY,"onUpdate:valueY":t=>l.report.criteriaFieldValues[e.id].valueY=t,criterion:e,onDelete:e=>l.removeCriterion(t)},null,8,["operator","onUpdate:operator","valueX","onUpdate:valueX","valueY","onUpdate:valueY","criterion","onDelete"])))),128))])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.display_fields")),1)])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.fieldGroup,"onUpdate:modelValue":t[3]||(t[3]=e=>l.report.fieldGroup=e),type:"select",label:e.$t("pim.select_display_field_group"),options:l.availableFieldGroups},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,{class:"orangehrm-report-criteria --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.displayField,"onUpdate:modelValue":t[4]||(t[4]=e=>l.report.displayField=e),type:"select",label:e.$t("pim.select_display_field"),options:l.availableDisplyFields},null,8,["modelValue","label","options"]),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-report-icon",name:"plus",onClick:l.addDisplayField},null,8,["onClick"])])),_:1})])),_:1}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.report.fieldGroupSelected,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(v,{key:e,includeHeader:l.report.displayFieldSelected[e.id].includeHeader,"onUpdate:includeHeader":t=>l.report.displayFieldSelected[e.id].includeHeader=t,"field-group":e,"selected-fields":l.report.displayFieldSelected[e.id].fields,onDelete:e=>l.removeDisplayFieldGroup(t),onDeleteChip:e=>l.removeDisplayField(e,t)},null,8,["includeHeader","onUpdate:includeHeader","field-group","selected-fields","onDelete","onDeleteChip"])))),128))])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(C)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}function fV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-grid-item");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(d,{class:"orangehrm-report-criteria --offset-column-1"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{name:"trash-fill",onClick:l.onClickDelete},null,8,["onClick"]),(0,a.createVNode)(s,{class:"orangehrm-report-criteria-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.criterion.label),1)])),_:1})])),_:1}),((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(l.field.component),(0,a.mergeProps)(e.$attrs,{api:l.field.api,label:l.field.name,options:l.field.options}),null,16,["api","label","options"]))],64)}function yV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item");return(0,a.openBlock)(),(0,a.createBlock)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,(0,a.mergeProps)(e.$attrs,{params:{includeEmployees:"currentAndPast"},rules:l.rules,"model-value":o.valueX,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:valueX",t))}),null,16,["rules","model-value"])])),_:1})}var CV={name:"ReportCriterionAutocomplete",components:{"employee-autocomplete":Va},inheritAttrs:!1,props:{operator:{type:Object,required:!1,default:()=>null},valueX:{type:Object,required:!1,default:()=>null}},emits:["update:valueX","update:operator"],setup(e,t){const o=[jt,xo];return t.emit("update:operator",{id:"eq",label:"Equal"}),{rules:o}}};const bV=(0,r.Z)(CV,[["render",yV],["__scopeId","data-v-36b7c266"]]);var VV=bV;function xV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item");return(0,a.openBlock)(),(0,a.createBlock)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,(0,a.mergeProps)(e.$attrs,{type:"select",rules:l.rules,options:l.opts,"model-value":o.valueX,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:valueX",t))}),null,16,["rules","options","model-value"])])),_:1})}var wV={name:"ReportCriterionSelect",inheritAttrs:!1,props:{api:{type:String,required:!1,default:null},options:{type:Array,default:()=>[]},valueX:{type:Object,required:!1,default:()=>null}},emits:["update:valueX","update:operator"],setup(e,t){const o=(0,a.ref)(e.options),l=[jt];if(e.api){const t=new P(window.appGlobal.baseUrl,e.api);(0,a.onBeforeMount)((()=>{t.getAll({..."/api/v2/admin/subunits"!==e.api&&{limit:0}}).then((({data:e})=>{o.value=e.data.map((e=>({id:e.id,label:e.name?e.name:e.title,_indent:e.level?e.level+1:1})))}))}))}return"/api/v2/admin/locations"===e.api||"/api/v2/admin/subunits"===e.api?t.emit("update:operator",{id:"in",label:"Equal"}):t.emit("update:operator",{id:"eq",label:"Equal"}),{opts:o,rules:l}}};const NV=(0,r.Z)(wV,[["render",xV],["__scopeId","data-v-20f3e4a9"]]);var _V=NV;function kV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"select",rules:l.rules.operator,options:l.operators,"model-value":o.operator,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:operator",t))},null,8,["rules","options","model-value"])])),_:1}),o.operator&&"between"===o.operator.id?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"orangehrm-report-range"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{rules:l.rules.valueX,"model-value":o.valueX,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:valueX",t))},null,8,["rules","model-value"]),(0,a.createVNode)(d,{class:"orangehrm-report-range-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("to")])),_:1}),(0,a.createVNode)(i,{rules:l.rules.valueY,"model-value":o.valueY,"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update:valueY",t))},null,8,["rules","model-value"])])),_:1})):o.operator?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{rules:l.rules.valueXOnly,"model-value":o.valueX,"onUpdate:modelValue":t[3]||(t[3]=t=>e.$emit("update:valueX",t))},null,8,["rules","model-value"])])),_:1})):(0,a.createCommentVNode)("",!0)],64)}var SV={name:"ReportCriterionRange",inheritAttrs:!1,props:{operator:{type:Object,required:!1,default:()=>null},valueX:{type:String,required:!1,default:null},valueY:{type:String,required:!1,default:null}},emits:["update:valueX","update:valueY","update:operator"],setup(e){const{$t:t}=Se(),o=(0,a.ref)([{id:"lt",label:t("general.less_than")},{id:"gt",label:t("general.greater_than")},{id:"between",label:t("general.range")}]),l={operator:[jt],valueXOnly:[jt,Qt,Zt(100)],valueX:[jt,Qt,Zt(100),o=>!parseInt(e.valueY)||(parseInt(o)!parseInt(e.valueX)||(parseInt(o)>parseInt(e.valueX)||t("general.should_be_greater_than_lower_bound"))]};return{rules:l,operators:o}}};const DV=(0,r.Z)(SV,[["render",kV],["__scopeId","data-v-d3b88ca8"]]);var $V=DV;function EV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"select",rules:l.rules.operator,options:l.operators,"model-value":o.operator,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:operator",t))},null,8,["rules","options","model-value"])])),_:1}),o.operator&&"between"===o.operator.id?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"orangehrm-report-daterange --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"date",rules:l.rules.valueX,"model-value":o.valueX,placeholder:l.userDateFormat,"display-format":l.jsDateFormat,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:valueX",t))},null,8,["rules","model-value","placeholder","display-format"]),(0,a.createVNode)(d,{class:"orangehrm-report-range-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("to")])),_:1}),(0,a.createVNode)(i,{type:"date",rules:l.rules.valueY,"model-value":o.valueY,placeholder:l.userDateFormat,"display-format":l.jsDateFormat,"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update:valueY",t))},null,8,["rules","model-value","placeholder","display-format"])])),_:1})):o.operator?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"date",rules:l.rules.valueXOnly,"model-value":o.valueX,placeholder:l.userDateFormat,"display-format":l.jsDateFormat,"onUpdate:modelValue":t[3]||(t[3]=t=>e.$emit("update:valueX",t))},null,8,["rules","model-value","placeholder","display-format"])])),_:1})):(0,a.createCommentVNode)("",!0)],64)}var TV={name:"ReportCriterionDateRange",inheritAttrs:!1,props:{operator:{type:Object,required:!1,default:()=>null},valueX:{type:String,required:!1,default:null},valueY:{type:String,required:!1,default:null}},emits:["update:valueX","update:valueY","update:operator"],setup(e){const{$t:t}=Se(),{jsDateFormat:o,userDateFormat:l}=R(),n=(0,a.ref)([{id:"lt",label:"Joined before"},{id:"gt",label:"Joined after"},{id:"between",label:"Joined in between"}]),r={operator:[jt],valueXOnly:[jt,Rt(l)],valueX:[jt,Rt(l),co((()=>e.valueY),t("general.from_date_should_be_before_to_date"))],valueY:[jt,Rt(l),eo((()=>e.valueX),t("general.to_date_should_be_after_from_date"))]};return{rules:r,operators:n,jsDateFormat:o,userDateFormat:l}}};const BV=(0,r.Z)(TV,[["render",EV],["__scopeId","data-v-2ea02c55"]]);var IV=BV,LV={name:"ReportCriterion",components:{"report-criterion-autocomplete":VV,"report-criterion-select":_V,"report-criterion-range":$V,"report-criterion-date-range":IV},inheritAttrs:!1,props:{criterion:{type:Object,required:!0}},emits:["delete"],setup(e,t){const o=(0,a.ref)(null);switch(e.criterion.key){case"employee_name":o.value={name:e.criterion.label,component:"report-criterion-autocomplete",api:null,options:[]};break;case"pay_grade":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/pay-grades",options:[]};break;case"education":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/educations",options:[]};break;case"employment_status":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/employment-statuses",options:[]};break;case"service_period":o.value={name:e.criterion.label,component:"report-criterion-range",api:null,options:[]};break;case"joined_date":o.value={name:e.criterion.label,component:"report-criterion-date-range",api:null,options:[]};break;case"job_title":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/job-titles",options:[]};break;case"language":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/languages",options:[]};break;case"skill":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/skills",options:[]};break;case"age_group":o.value={name:e.criterion.label,component:"report-criterion-range",api:null,options:[]};break;case"sub_unit":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/subunits",options:[]};break;case"location":o.value={name:e.criterion.label,component:"report-criterion-select",api:"/api/v2/admin/locations",options:[]};break;default:o.value={name:e.criterion.label,component:"report-criterion-select",api:null,options:[{id:1,label:"Male"},{id:2,label:"Female"}]}}const l=e=>{t.emit("delete",e)};return{field:o,onClickDelete:l}}};const UV=(0,r.Z)(LV,[["render",fV],["__scopeId","data-v-b010db64"]]);var AV=UV;function PV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-multiselect-chips"),m=(0,a.resolveComponent)("oxd-switch-input");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(d,{class:"orangehrm-report-field --offset-column-1"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{name:"trash-fill",onClick:l.onClickDelete},null,8,["onClick"]),(0,a.createVNode)(s,{class:"orangehrm-report-field-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.fieldGroup.label),1)])),_:1})])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{selected:o.selectedFields,onChipRemoved:l.onRemoveSelected},null,8,["selected","onChipRemoved"])])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-report-field"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-report-field-header",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.include_header")),1)])),_:1}),(0,a.createVNode)(m,{"model-value":o.includeHeader,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:includeHeader",t))},null,8,["model-value"])])),_:1})],64)}var qV={name:"ReportDisplayField",components:{"oxd-switch-input":q.OxdSwitchInput,"oxd-multiselect-chips":q.OxdMultiSelectChips},props:{fieldGroup:{type:Object,required:!0},selectedFields:{type:Array,default:()=>[]},includeHeader:{type:Boolean,required:!0}},emits:["delete","deleteChip","update:includeHeader"],setup(e,t){const o=e=>{t.emit("delete",e)},a=e=>{t.emit("deleteChip",e)};return{onClickDelete:o,onRemoveSelected:a}}};const MV=(0,r.Z)(qV,[["render",PV],["__scopeId","data-v-3c97086a"]]);var FV=MV;const jV={name:"",includeEmployees:{id:1,key:"onlyCurrent",label:"仅当前人员"},criterion:null,criteriaSelected:[],criteriaFieldValues:{},fieldGroup:null,fieldGroupSelected:[],displayField:null,displayFieldSelected:{}};function zV(e,t,o){const l=(0,a.reactive)({report:{...jV}}),n=e=>{const o=t.find((t=>t.field_group_id===e));return o?o.fields:[]},r=e=>{const t=l.report.displayFieldSelected[e],o=t?t.fields:[];return n(e).filter((e=>!o.find((t=>t.id===e.id))))},i=()=>{const e=l.report.criterion;e&&(l.report.criteriaSelected.push(e),l.report.criteriaFieldValues[e.id]={valueX:null,valueY:null,operator:null},l.report.criterion=null)},s=e=>{const t=l.report.criteriaSelected.splice(e,1);delete l.report.criteriaFieldValues[t[0].id]},d=()=>{const e=l.report.fieldGroup,t=l.report.displayField;if(e){const o=l.report.fieldGroupSelected.findIndex((t=>t.id===e.id));-1===o&&(l.report.fieldGroupSelected.push(e),l.report.displayFieldSelected[e.id]={fields:[],includeHeader:!1}),t?(l.report.displayFieldSelected[e.id].fields.push(t),l.report.displayField=null):r(e.id).forEach((t=>{l.report.displayFieldSelected[e.id].fields.push(t)})),0===r(e.id).length&&(l.report.fieldGroup=null)}},c=e=>{const t=l.report.fieldGroupSelected[e];l.report.fieldGroupSelected.splice(e,1),delete l.report.displayFieldSelected[t.id]},m=(e,t)=>{const o=l.report.fieldGroupSelected[t],a=l.report.displayFieldSelected[o.id].fields;l.report.displayFieldSelected[o.id].fields=a.filter((t=>t.id!==e.id)),0===l.report.displayFieldSelected[o.id].fields.length&&c(t)},u=e=>{const t={name:e.name,include:e.includeEmployees.key,criteria:{},fieldGroup:{}};return e.fieldGroupSelected.forEach((o=>{const a=e.displayFieldSelected[o.id].fields,l=e.displayFieldSelected[o.id].includeHeader;t.fieldGroup[o.id]={fields:a.map((e=>e.id)),includeHeader:l}})),e.criteriaSelected.forEach((o=>{const a=e.criteriaFieldValues[o.id];t.criteria[o.id]={operator:a.operator?a.operator.id:"",x:"object"===typeof a.valueX?String(a.valueX?.id):a.valueX,y:"object"===typeof a.valueY?String(a.valueY?.id):a.valueY}})),t},p=(0,a.computed)((()=>e.filter((e=>!l.report.criteriaSelected.find((t=>t.id===e.id)))))),h=(0,a.computed)((()=>o.filter((e=>0!==r(e.id).length)))),g=(0,a.computed)((()=>{const e=l.report.fieldGroup?.id;return e?r(e):[]}));return{...(0,a.toRefs)(l),addCriterion:i,serializeBody:u,addDisplayField:d,removeCriterion:s,removeDisplayField:m,removeDisplayFieldGroup:c,availableCriteria:p,availableFieldGroups:h,availableDisplyFields:g}}var RV={components:{"report-criterion":AV,"report-display-field":FV},props:{selectionCriteria:{type:Array,required:!0},displayFieldGroups:{type:Array,required:!0},displayFields:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/pim/reports/defined"),{report:o,addCriterion:a,serializeBody:l,addDisplayField:n,removeCriterion:r,removeDisplayField:i,removeDisplayFieldGroup:s,availableCriteria:d,availableFieldGroups:c,availableDisplyFields:m}=zV(e.selectionCriteria,e.displayFields,e.displayFieldGroups);return{http:t,report:o,addCriterion:a,serializeBody:l,addDisplayField:n,removeCriterion:r,removeDisplayField:i,removeDisplayFieldGroup:s,availableCriteria:d,availableFieldGroups:c,availableDisplyFields:m}},data(){return{isLoading:!1,rules:{name:[jt,zt(250)],includeEmployees:[jt]},includeOpts:[{id:1,key:"onlyCurrent",label:this.$t("general.current_employees_only")},{id:2,key:"currentAndPast",label:this.$t("general.current_and_past_employees")},{id:3,key:"onlyPast",label:this.$t("general.past_employees_only")}]}},beforeMount(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/pim/viewDefinedPredefinedReports")},onSave(){if(0===Object.keys(this.report.displayFieldSelected).length)return this.$toast.warn({title:this.$t("general.warning"),message:this.$t("pim.at_least_one_display_field_should_be_added")});this.isLoading=!0;let e=null;const t=this.serializeBody(this.report);this.http.create(t).then((t=>{const{data:o}=t.data;return e=o.id,this.$toast.saveSuccess()})).then((()=>{e&&U("/pim/displayPredefinedReport/{id}",{id:e})}))}}};const OV=(0,r.Z)(RV,[["render",vV],["__scopeId","data-v-f66184da"]]);var GV=OV;const ZV={class:"orangehrm-card-container"},QV=(0,a.createElementVNode)("br",null,null,-1);function HV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(s,{module:"pim",name:"pim_defined",prefetch:!0,filters:l.filters},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",ZV,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.reportName),1)])),_:1})]),QV])),_:1},8,["filters"])}const WV={class:"orangehrm-background-container"},YV={key:0,class:"orangehrm-paper-container"};function JV(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-pagination"),d=(0,a.resolveComponent)("oxd-report-table");return(0,a.openBlock)(),(0,a.createElementBlock)("div",WV,[(0,a.renderSlot)(e.$slots,"default",{generateReport:l.generateReport},void 0,!0),0!==l.headers.length?((0,a.openBlock)(),(0,a.createElementBlock)("div",YV,[(0,a.createVNode)(d,{items:l.items,headers:l.headers,loading:l.isLoading,"column-count":l.colCount},{pagination:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"oxd-text--count",tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_found",{count:l.total})),1)])),_:1}),l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])),footer:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"oxd-text--footer",tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.renderSlot)(e.$slots,"footer",{data:l.response},void 0,!0)])),_:3})])),_:3},8,["items","headers","loading","column-count"])])):(0,a.createCommentVNode)("",!0)])}var XV={name:"ReportsTable",components:{"oxd-report-table":q.OxdReportTable},props:{name:{type:String,required:!0},module:{type:String,required:!0},prefetch:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},columnCount:{type:Number,default:null,required:!1}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/${e.module}/reports/data`),o=(0,a.ref)([]),l=(0,a.ref)(e.columnCount?e.columnCount:0),n=(0,a.computed)((()=>({...e.filters,name:e.name,_dateFormattingEnabled:!0}))),{total:r,pages:i,response:s,isLoading:d,currentPage:c,showPaginator:m,execQuery:u}=wt(t,{query:n,prefetch:!1}),p=(0,a.computed)((()=>{const e=Array.isArray(s.value.data)?s.value.data:[];return e.map((e=>{let t=0;for(const o in e){const a=e[o];Array.isArray(a)&&a.length>t&&(t=a.length)}return{...e,_rows:t}}))})),h=e=>{delete e["size"];const{type:t,...o}=e.cellProperties??{},a=function({prop:e,model:t}){const a=t?._url?t?._url[e]:void 0;return{...o,onClick:a?()=>U(a):void 0}};return{...e,cellProperties:a,cellTemplate:"list"===t?(0,q.CellAdapter)(q.OxdMultilineCell):void 0}},g=async()=>{d.value=!0,t.request({method:"GET",url:`/api/v2/${e.module}/reports`,params:{name:n.value.name,reportId:n.value?.reportId}}).then((e=>{const{data:t,meta:a}=e.data;o.value=t.headers.map((e=>e?.children&&Array.isArray(e.children)?(e.children=e.children.map((e=>h(e))),e):h(e))),a.headers?.columnCount&&(l.value=a.headers.columnCount),d.value=!1}))},v=async()=>{0===o.value.length&&await g(),await u()};return(0,a.watch)((()=>e.name),(()=>{o.value=[]})),e.prefetch&&(0,a.onBeforeMount)((()=>v())),{total:r,pages:i,items:p,headers:o,colCount:l,response:s,isLoading:d,currentPage:c,showPaginator:m,generateReport:v}}};const KV=(0,r.Z)(XV,[["render",JV],["__scopeId","data-v-32e798aa"]]);var ex=KV,tx={components:{"reports-table":ex},props:{reportId:{type:String,required:!0},reportName:{type:String,required:!0}},setup(e){const t=(0,a.ref)({reportId:e.reportId});return{filters:t}}};const ox=(0,r.Z)(tx,[["render",HV]]);var ax=ox;const lx={class:"orangehrm-background-container"},nx={class:"orangehrm-card-container"};function rx(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-icon-button"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("report-criterion"),v=(0,a.resolveComponent)("report-display-field"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",lx,[(0,a.createElementVNode)("div",nx,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.edit_report")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.name,"onUpdate:modelValue":t[0]||(t[0]=e=>l.report.name=e),label:e.$t("general.report_name"),placeholder:e.$t("general.type_here_message"),rules:n.rules.name,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.selection_criteria")),1)])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-report-criteria --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.criterion,"onUpdate:modelValue":t[1]||(t[1]=e=>l.report.criterion=e),type:"select",label:e.$t("pim.selection_criteria"),options:l.availableCriteria},null,8,["modelValue","label","options"]),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-report-icon",name:"plus",onClick:l.addCriterion},null,8,["onClick"])])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.includeEmployees,"onUpdate:modelValue":t[2]||(t[2]=e=>l.report.includeEmployees=e),type:"select",label:e.$t("pim.include"),options:n.includeOpts,"show-empty-selector":!1},null,8,["modelValue","label","options"])])),_:1}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.report.criteriaSelected,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(g,{key:e,operator:l.report.criteriaFieldValues[e.id].operator,"onUpdate:operator":t=>l.report.criteriaFieldValues[e.id].operator=t,valueX:l.report.criteriaFieldValues[e.id].valueX,"onUpdate:valueX":t=>l.report.criteriaFieldValues[e.id].valueX=t,valueY:l.report.criteriaFieldValues[e.id].valueY,"onUpdate:valueY":t=>l.report.criteriaFieldValues[e.id].valueY=t,criterion:e,onDelete:e=>l.removeCriterion(t)},null,8,["operator","onUpdate:operator","valueX","onUpdate:valueX","valueY","onUpdate:valueY","criterion","onDelete"])))),128))])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.display_fields")),1)])),_:1}),(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.fieldGroup,"onUpdate:modelValue":t[3]||(t[3]=e=>l.report.fieldGroup=e),type:"select",label:e.$t("pim.select_display_field_group"),options:l.availableFieldGroups},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(c,{class:"orangehrm-report-criteria --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.report.displayField,"onUpdate:modelValue":t[4]||(t[4]=e=>l.report.displayField=e),type:"select",label:e.$t("pim.select_display_field"),options:l.availableDisplyFields},null,8,["modelValue","label","options"]),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-report-icon",name:"plus",onClick:l.addDisplayField},null,8,["onClick"])])),_:1})])),_:1}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.report.fieldGroupSelected,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(v,{key:e,includeHeader:l.report.displayFieldSelected[e.id].includeHeader,"onUpdate:includeHeader":t=>l.report.displayFieldSelected[e.id].includeHeader=t,"field-group":e,"selected-fields":l.report.displayFieldSelected[e.id].fields,onDelete:e=>l.removeDisplayFieldGroup(t),onDeleteChip:e=>l.removeDisplayField(e,t)},null,8,["includeHeader","onUpdate:includeHeader","field-group","selected-fields","onDelete","onDeleteChip"])))),128))])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(C)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var ix={components:{"report-criterion":AV,"report-display-field":FV},props:{selectionCriteria:{type:Array,required:!0},displayFieldGroups:{type:Array,required:!0},displayFields:{type:Array,required:!0},reportId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/pim/reports/defined"),{report:o,addCriterion:a,serializeBody:l,addDisplayField:n,removeCriterion:r,removeDisplayField:i,removeDisplayFieldGroup:s,availableCriteria:d,availableFieldGroups:c,availableDisplyFields:m}=zV(e.selectionCriteria,e.displayFields,e.displayFieldGroups);return{http:t,report:o,addCriterion:a,serializeBody:l,addDisplayField:n,removeCriterion:r,removeDisplayField:i,removeDisplayFieldGroup:s,availableCriteria:d,availableFieldGroups:c,availableDisplyFields:m}},data(){return{isLoading:!1,rules:{name:[jt,zt(250)],includeEmployees:[jt]},includeOpts:[{id:1,key:"onlyCurrent",label:this.$t("general.current_employees_only")},{id:2,key:"currentAndPast",label:this.$t("general.current_and_past_employees")},{id:3,key:"onlyPast",label:this.$t("general.past_employees_only")}]}},beforeMount(){this.isLoading=!0,this.http.get(this.reportId).then((e=>{const{data:t}=e.data;this.report.name=t.name,this.report.includeEmployees=this.includeOpts.find((e=>e.key===t.include));const o=[{id:"eq",label:"Equal"},{id:"lt",label:"Less Than"},{id:"gt",label:"Greater Than"},{id:"between",label:"Range"}];for(const a in t.fieldGroup){const e=this.displayFields.find((e=>e.field_group_id==a));this.report.fieldGroupSelected.push(this.displayFieldGroups.find((e=>e.id==a))),this.report.displayFieldSelected[a]={fields:t.fieldGroup[a].fields.map((t=>e.fields.find((e=>e.id===t)))),includeHeader:t.fieldGroup[a].includeHeader}}for(const a in t.criteria){const e=this.selectionCriteria.find((e=>e.id==a));this.report.criteriaSelected.push(e),this.report.criteriaFieldValues[a]={valueX:t.criteria[a].x,valueY:"undefined"===t.criteria[a].y?null:t.criteria[a].y,operator:o.find((e=>e.id===t.criteria[a].operator))}}return this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e));if(o>-1){const{id:e}=t[o];return e==this.reportId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/pim/viewDefinedPredefinedReports")},onSave(){if(0===Object.keys(this.report.displayFieldSelected).length)return this.$toast.warn({title:this.$t("general.warning"),message:this.$t("pim.at_least_one_display_field_should_be_added")});this.isLoading=!0;const e=this.serializeBody(this.report);this.http.update(this.reportId,e).then((()=>this.$toast.updateSuccess())).then((()=>{U("/pim/displayPredefinedReport/{id}",{id:this.reportId})}))}}};const sx=(0,r.Z)(ix,[["render",rx],["__scopeId","data-v-0b4140eb"]]);var dx=sx;const cx={class:"orangehrm-background-container"},mx={class:"orangehrm-card-container"};function ux(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("password-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",cx,[(0,a.createElementVNode)("div",mx,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.update_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{ref:"formRef",loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.username")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-user-name",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.userName),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.user.currentPassword,"onUpdate:modelValue":t[0]||(t[0]=e=>n.user.currentPassword=e),type:"password",label:e.$t("pim.current_password"),rules:n.rules.currentPassword,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,{password:n.user.password,"onUpdate:password":t[1]||(t[1]=e=>n.user.password=e),passwordConfirm:n.user.passwordConfirm,"onUpdate:passwordConfirm":t[2]||(t[2]=e=>n.user.passwordConfirm=e)},null,8,["password","passwordConfirm"]),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const px={currentPassword:"",password:"",passwordConfirm:""};var hx={components:{"password-input":Ma},props:{userName:{type:String,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/core/update-password"),{formRef:t,reset:o}=$c();return{http:e,formRef:t,reset:o}},data(){return{isLoading:!1,user:{...px},rules:{currentPassword:[jt,zt(64)]}}},methods:{onCancel(){window.history.back()},onSave(){this.isLoading=!0,this.http.request({method:"PUT",url:"/api/v2/pim/update-password",data:{newPassword:this.user.password,currentPassword:this.user.currentPassword},validateStatus:e=>e>=200&&e<300||422===e}).then((e=>200===e.status?(this.reset(),this.$toast.saveSuccess()):this.$toast.error({title:this.$t("general.error"),message:this.$t("pim.current_password_is_incorrect")}))).finally((()=>this.isLoading=!1))}}};const gx=(0,r.Z)(hx,[["render",ux],["__scopeId","data-v-1cb899de"]]);var vx=gx,fx={"employee-save":yu,"employee-list":Zu,"employee-personal-details":th,"employee-contact-details":ih,"employee-emergency-contacts":kh,"employee-dependents":Gh,"employee-profile-picture":Xh,"employee-salary":bg,"employee-job":qg,"employee-qualifications":Mf,"employee-immigration":ly,"employee-membership":nC,"termination-reason-list":hC,"termination-reason-edit":bC,"termination-reason-save":kC,"reporting-method-list":UC,"reporting-method-edit":jC,"reporting-method-save":QC,"employee-report-to":Fy,"custom-field-list":ab,"custom-field-edit":cb,"custom-field-save":fb,"optional-field-list":Db,"employee-tax-exemption":Lb,"employee-data-import":Jb,"employee-report-list":pV,"employee-report-save":GV,"employee-report-view":ax,"employee-report-edit":dx,"update-password":vx};const yx=e=>((0,a.pushScopeId)("data-v-510cfbbc"),e=e(),(0,a.popScopeId)(),e),Cx={class:"orangehrm-background-container"},bx={class:"orangehrm-card-container"},Vx=yx((()=>(0,a.createElementVNode)("br",null,null,-1))),xx={class:"orangehrm-support"},wx=["src"],Nx=yx((()=>(0,a.createElementVNode)("a",{class:"orangehrm-support-link",href:"mailto:ossupport@jingweiht.com"}," ossupport@jingweiht.com ",-1)));function _x(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-grid");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Cx,[(0,a.createElementVNode)("div",bx,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("help.getting_started_with_orangehrm")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-support-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("help.getting_started_with_orangehrm_message_1")),1)])),_:1}),Vx,(0,a.createVNode)(i,{tag:"p",class:"orangehrm-support-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("help.getting_started_with_orangehrm_message_2")),1)])),_:1}),(0,a.createElementVNode)("div",xx,[(0,a.createVNode)(c,{cols:2,class:"orangehrm-support-channel --mail"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("img",{src:n.helpImgSrc,alt:"help image"},null,8,wx)])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-sub-title",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("help.customer_support")),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-support-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("help.contact_us_on_message"))+" ",1),Nx,(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("help.we_will_be_delighted_to_help")),1)])),_:1})])),_:1})])),_:1})])])])}var kx={data(){return{helpImgSrc:`${window.appGlobal.publicPath}/images/help.png`}}};const Sx=(0,r.Z)(kx,[["render",_x],["__scopeId","data-v-510cfbbc"]]);var Dx=Sx,$x={"view-support":Dx};const Ex={class:"orangehrm-background-container"},Tx={class:"orangehrm-card-container"};function Bx(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ex,[(0,a.createElementVNode)("div",Tx,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.timesheet_period_config")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.timeSheetPeriod.startDay,"onUpdate:modelValue":t[0]||(t[0]=e=>n.timeSheetPeriod.startDay=e),type:"select",label:e.$t("time.add_timesheet_period_config"),options:r.days,rules:n.rules.startDay,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Ix={startDay:null};var Lx={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/time-sheet-period"),{locale:t}=De();return{http:e,locale:t}},data(){return{isLoading:!1,timeSheetPeriod:{...Ix},rules:{startDay:[jt]}}},computed:{days(){return Array(7).fill("").map(((...[,e])=>({id:0===e?7:e,label:this.locale.localize.day(e,{width:"wide"})})))}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET"}).then((e=>{const{data:t}=e.data;this.updateTimeSheetPeriodModel(parseInt(t.startDay))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{startDay:this.timeSheetPeriod.startDay?.id}}).then((()=>this.$toast.saveSuccess())).then((()=>{U("/time/viewEmployeeTimesheet")}))},updateTimeSheetPeriodModel(e){this.timeSheetPeriod.startDay=this.days.find((t=>t.id===e))}}};const Ux=(0,r.Z)(Lx,[["render",Bx]]);var Ax=Ux;const Px={class:"orangehrm-background-container"},qx={class:"orangehrm-paper-container"},Mx={class:"orangehrm-header-container"},Fx={class:"orangehrm-container"},jx={class:"orangehrm-bottom-container"};function zx(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Px,[(0,a.createElementVNode)("div",qx,[(0,a.createElementVNode)("div",Mx,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.customers")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Fx,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[1]||(t[1]=e=>l.sortDefinition=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","loading","headers","items"])]),(0,a.createElementVNode)("div",jx,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[2]||(t[2]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}const Rx={"customer.name":"ASC"};var Ox={components:{"delete-confirmation":Et},props:{unselectableIds:{type:Array,default:()=>[]}},setup(e){const t=t=>t.map((t=>{const o=e.unselectableIds.findIndex((e=>e==t.id));return{id:t.id,name:t.name,description:t.description,isSelectable:-1===o}})),{sortDefinition:o,sortField:l,sortOrder:n,onSort:r}=Tt({sortDefinition:Rx}),i=(0,a.computed)((()=>({sortField:l.value,sortOrder:n.value}))),s=new P(window.appGlobal.baseUrl,"/api/v2/time/customers"),{showPaginator:d,currentPage:c,total:m,pages:u,pageSize:p,response:h,isLoading:g,execQuery:v}=wt(s,{query:i,normalizer:t});return r(v),{http:s,showPaginator:d,currentPage:c,isLoading:g,total:m,pages:u,pageSize:p,execQuery:v,items:h,sortDefinition:o}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),sortField:"customer.name",style:{flex:2}},{name:"description",title:this.$t("general.description"),style:{flex:4}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/time/addCustomer")},onClickEdit(e){U("/time/addCustomer/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("time.not_allowed_to_delete_customer_who_have_time_logged_against")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const Gx=(0,r.Z)(Ox,[["render",zx]]);var Zx=Gx;const Qx={class:"orangehrm-background-container"},Hx={class:"orangehrm-card-container"};function Wx(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Qx,[(0,a.createElementVNode)("div",Hx,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.add_customer")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.customer.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.customer.description=e),type:"textarea",label:e.$t("general.description"),placeholder:"Type description here",rules:n.rules.description},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Yx={id:"",name:"",description:""};var Jx={setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/customers");return e.setIgnorePath("/api/v2/time/validation/customer-name"),{http:e}},data(){return{isLoading:!1,customer:{...Yx},rules:{name:[jt,zt(50),(0,q.promiseDebounce)(this.validateCustomerName,500)],description:[zt(255)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.customer.name,description:this.customer.description}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/time/viewCustomers")},validateCustomerName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/time/validation/customer-name",params:{customerName:this.customer.name.trim()}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const Xx=(0,r.Z)(Jx,[["render",Wx]]);var Kx=Xx;const ew={class:"orangehrm-background-container"},tw={class:"orangehrm-card-container"};function ow(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ew,[(0,a.createElementVNode)("div",tw,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.edit_customer")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.customer.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.customer.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const aw={id:"",name:"",description:""};var lw={props:{customerId:{type:String,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/customers");return e.setIgnorePath("/api/v2/time/validation/customer-name"),{http:e}},data(){return{isLoading:!1,customer:{...aw},rules:{name:[jt,zt(50),(0,q.promiseDebounce)(this.validateCustomerName,500)],description:[zt(255)]}}},created(){this.isLoading=!0,this.http.get(this.customerId).then((e=>{const{data:t}=e.data;this.customer.id=t.id,this.customer.name=t.name,this.customer.description=t.description})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.customerId,{name:this.customer.name,description:this.customer.description}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/time/viewCustomers")},validateCustomerName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/time/validation/customer-name",params:{customerName:this.customer.name.trim(),customerId:this.customerId}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const nw=(0,r.Z)(lw,[["render",ow]]);var rw=nw;const iw={class:"orangehrm-background-container"},sw=(0,a.createElementVNode)("br",null,null,-1);function dw(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("timesheet-period"),d=(0,a.resolveComponent)("oxd-button"),c=(0,a.resolveComponent)("timesheet"),m=(0,a.resolveComponent)("timesheet-actions");return(0,a.openBlock)(),(0,a.createElementBlock)("div",iw,[(0,a.createVNode)(c,{loading:e.isLoading,columns:e.timesheetColumns,records:e.timesheetRecords,"timesheet-id":e.timesheetId,subtotal:e.timesheetSubtotal},{"header-title":(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.my_timesheet")),1)])),_:1})])),"header-options":(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:e.date,"onUpdate:modelValue":t[0]||(t[0]=t=>e.date=t),value:l.timesheetPeriod,onPrevious:l.onClickPrevious,onNext:l.onClickNext},null,8,["modelValue","value","onPrevious","onNext"])])),"footer-title":(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.status"))+": "+(0,a.toDisplayString)(r.myTimesheetStatus),1)])),_:1},512),[[a.vShow,e.timesheetStatus]])])),"footer-options":(0,a.withCtx)((()=>[l.showCreateTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"display-type":"secondary",disabled:l.canCreateTimesheet,label:e.$t("time.create_timesheet"),onClick:l.onClickCreateTimesheet},null,8,["disabled","label","onClick"])):(0,a.createCommentVNode)("",!0),l.canEditTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,"display-type":"ghost",label:e.$t("general.edit"),onClick:l.onClickEdit},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),l.canSubmitTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:2,"display-type":"secondary",label:e.$t("general.submit"),onClick:l.onClickSubmit},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","columns","records","timesheet-id","subtotal"]),sw,e.timesheetId?((0,a.openBlock)(),(0,a.createBlock)(m,{key:e.timesheetId,"timesheet-id":e.timesheetId},null,8,["timesheet-id"])):(0,a.createCommentVNode)("",!0)])}const cw=e=>((0,a.pushScopeId)("data-v-425cbc6c"),e=e(),(0,a.popScopeId)(),e),mw={class:"orangehrm-timesheet-header"},uw={class:"orangehrm-timesheet-header--title"},pw={class:"orangehrm-timesheet-header--options"},hw={key:0,class:"orangehrm-timesheet-loader"},gw={key:1,class:"orangehrm-timesheet-body-message"},vw={key:2,class:"orangehrm-timesheet-body"},fw={class:"orangehrm-timesheet-table-header"},yw={class:"orangehrm-timesheet-table-header-row"},Cw={class:"orangehrm-timesheet-table-header-cell"},bw={class:"--day"},Vw={key:0,class:"orangehrm-timesheet-table-header-cell --center --freeze-right"},xw={class:"orangehrm-timesheet-table-body"},ww={key:1},Nw={class:"orangehrm-timesheet-table-body-cell"},_w={key:1},kw={key:1},Sw={key:0,class:"orangehrm-timesheet-table-body-cell --center --freeze-right --highlight"},Dw={key:1,class:"orangehrm-timesheet-table-body-cell --flex"},$w={key:0,class:"orangehrm-timesheet-table-body-row --total"},Ew={class:"orangehrm-timesheet-table-body-cell --freeze-left --highlight"},Tw=cw((()=>(0,a.createElementVNode)("td",null,null,-1))),Bw={class:"orangehrm-timesheet-table-body-cell --center --freeze-right --highlight-2"},Iw={key:1,class:"orangehrm-timesheet-table-body-row"},Lw={class:"orangehrm-timesheet-table-body-cell --flex"},Uw={key:2,class:"orangehrm-timesheet-table-body-row"},Aw={colspan:"9",class:"orangehrm-timesheet-table-body-cell"},Pw={class:"orangehrm-timesheet-footer"},qw={class:"orangehrm-timesheet-footer--title"},Mw={class:"orangehrm-timesheet-footer--options"};function Fw(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-loading-spinner"),s=(0,a.resolveComponent)("oxd-alert"),d=(0,a.resolveComponent)("project-autocomplete"),c=(0,a.resolveComponent)("activity-dropdown"),m=(0,a.resolveComponent)("oxd-icon-button"),u=(0,a.resolveComponent)("oxd-input-field"),p=(0,a.resolveComponent)("oxd-text"),h=(0,a.resolveComponent)("timesheet-comment-modal"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createBlock)(g,{class:"orangehrm-paper-container"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",mw,[(0,a.createElementVNode)("div",uw,[(0,a.renderSlot)(e.$slots,"header-title",{},void 0,!0)]),(0,a.createElementVNode)("div",pw,[(0,a.renderSlot)(e.$slots,"header-options",{},void 0,!0)])]),o.loading?((0,a.openBlock)(),(0,a.createElementBlock)("div",hw,[(0,a.createVNode)(i)])):o.loading||o.columns?((0,a.openBlock)(),(0,a.createElementBlock)("div",vw,[(0,a.createElementVNode)("table",{class:(0,a.normalizeClass)(r.tableClasses)},[(0,a.createElementVNode)("thead",fw,[(0,a.createElementVNode)("tr",yw,[(0,a.createElementVNode)("th",{class:(0,a.normalizeClass)(r.fixedColumnClasses)},(0,a.toDisplayString)(e.$t("time.project")),3),(0,a.createElementVNode)("th",Cw,(0,a.toDisplayString)(e.$t("time.activity")),1),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.daysOfWeek,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("th",{key:e.id,class:"orangehrm-timesheet-table-header-cell --center"},[(0,a.createElementVNode)("span",bw,(0,a.toDisplayString)(e.day),1),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.title),1)])))),128)),o.editable?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("th",Vw,(0,a.toDisplayString)(e.$t("general.total")),1))])]),(0,a.createElementVNode)("tbody",xw,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.records,((e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("tr",{key:e,class:"orangehrm-timesheet-table-body-row"},[(0,a.createElementVNode)("td",{class:(0,a.normalizeClass)(r.fixedCellClasses)},[o.editable?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"only-allowed":!1,rules:n.rules.project,"model-value":r.getProject(e),"onUpdate:modelValue":e=>r.updateProject(e,t)},null,8,["rules","model-value","onUpdate:modelValue"])):((0,a.openBlock)(),(0,a.createElementBlock)("span",ww,(0,a.toDisplayString)(e.project?`${e.customer.name} - ${e.project.name}`:""),1))],2),(0,a.createElementVNode)("td",Nw,[o.editable?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,rules:n.rules.activity,"project-id":e.project&&e.project.id,"model-value":r.getActivity(e.activity),"onUpdate:modelValue":e=>r.updateActivity(e,t)},null,8,["rules","project-id","model-value","onUpdate:modelValue"])):((0,a.openBlock)(),(0,a.createElementBlock)("span",_w,(0,a.toDisplayString)(e.activity&&e.activity.name),1))]),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.columns,((l,n)=>((0,a.openBlock)(),(0,a.createElementBlock)("td",{key:`${e.project}_${e.activity}_${n}`,class:(0,a.normalizeClass)({"orangehrm-timesheet-table-body-cell":!0,"--center":!0,"--duration-input":o.editable,"--highlight-3":!o.editable&&l.workday})},[(0,a.withDirectives)((0,a.createVNode)(m,{"display-type":"secondary",class:"orangehrm-timesheet-icon-comment",name:r.getCommentIcon(e.dates[n]),onMousedown:o=>r.viewComment(e,e.dates[n],t,n)},null,8,["name","onMousedown"]),[[a.vShow,r.isCommentVisible(e.dates[n],t,n)]]),o.editable?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,autocomplete:"off",rules:r.validateDuration(n),"model-value":r.getDuration(e.dates[n]),onBlur:r.onDurationBlur,onFocus:e=>r.onDurationFocus(t,n),"onUpdate:modelValue":e=>r.updateTime(e,t,n)},null,8,["rules","model-value","onBlur","onFocus","onUpdate:modelValue"])):((0,a.openBlock)(),(0,a.createElementBlock)("span",kw,(0,a.toDisplayString)(r.getDuration(e.dates[n])??"00:00"),1))],2)))),128)),o.editable?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("td",Sw,(0,a.toDisplayString)(e.total.label),1)),o.editable?((0,a.openBlock)(),(0,a.createElementBlock)("td",Dw,[(0,a.createVNode)(m,{name:"trash",class:"orangehrm-timesheet-icon",onClick:e=>r.deleteRow(t)},null,8,["onClick"])])):(0,a.createCommentVNode)("",!0)])))),128)),!o.editable&&o.records.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("tr",$w,[(0,a.createElementVNode)("td",Ew,(0,a.toDisplayString)(e.$t("general.total")),1),Tw,((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.columns,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("td",{key:`total-${e}`,class:"orangehrm-timesheet-table-body-cell --center"},(0,a.toDisplayString)(e.total.label),1)))),128)),(0,a.createElementVNode)("td",Bw,(0,a.toDisplayString)(o.subtotal),1)])):(0,a.createCommentVNode)("",!0),o.editable?((0,a.openBlock)(),(0,a.createElementBlock)("tr",Iw,[(0,a.createElementVNode)("td",Lw,[(0,a.createVNode)(m,{name:"plus",class:"orangehrm-timesheet-icon",onClick:r.addRow},null,8,["onClick"]),(0,a.createVNode)(p,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.add_row")),1)])),_:1})])])):(0,a.createCommentVNode)("",!0),0===o.records.length?((0,a.openBlock)(),(0,a.createElementBlock)("tr",Uw,[(0,a.createElementVNode)("td",Aw,(0,a.toDisplayString)(e.$t("general.no_records_found")),1)])):(0,a.createCommentVNode)("",!0)])],2)])):((0,a.openBlock)(),(0,a.createElementBlock)("div",gw,[(0,a.createVNode)(s,{type:"warn",show:!0,message:e.$t("time.no_timesheets_found")},null,8,["message"])])),(0,a.createElementVNode)("div",Pw,[(0,a.createElementVNode)("div",qw,[(0,a.renderSlot)(e.$slots,"footer-title",{},void 0,!0)]),(0,a.createElementVNode)("div",Mw,[(0,a.renderSlot)(e.$slots,"footer-options",{},void 0,!0)])]),n.showCommentModal?((0,a.openBlock)(),(0,a.createBlock)(h,{key:3,editable:o.editable,data:n.commentModalState,"timesheet-id":o.timesheetId,onClose:r.onCommentModalClose},null,8,["editable","data","timesheet-id","onClose"])):(0,a.createCommentVNode)("",!0)])),_:3})}function jw(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",options:l.options},null,8,["options"])}var zw={name:"ActivityDropdown",props:{projectId:{type:Number,required:!1,default:null}},setup(e){const t=(0,a.ref)([]),o=new P(window.appGlobal.baseUrl,"");return(0,a.watchEffect)((async()=>{e.projectId?o.request({method:"GET",url:`/api/v2/time/project/${e.projectId}/activities`,params:{limit:0}}).then((({data:e})=>{t.value=e.data.map((e=>({id:e.id,label:e.name,isDeleted:e.deleted})))})):t.value=[]})),{options:t}}};const Rw=(0,r.Z)(zw,[["render",jw],["__scopeId","data-v-51ddd696"]]);var Ow=Rw;function Gw(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",clear:!1,label:e.$t("time.project"),"create-options":r.loadProjects},{option:(0,a.withCtx)((({data:e})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.label),1)])),_:1},8,["label","create-options"])}var Zw={name:"ProjectAutocomplete",props:{onlyAllowed:{type:Boolean,required:!1,default:!0},excludeProjectIds:{type:Array,required:!1,default:()=>[]},excludeCustomerName:{type:Boolean,default:!1}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/projects");return{http:e}},methods:{async loadProjects(e){return new Promise((t=>{if(e.trim()){const o={name:this.excludeCustomerName?e.trim():void 0,onlyAllowed:this.onlyAllowed,model:"detailed",excludeProjectIds:this.excludeProjectIds.length>0?this.excludeProjectIds:void 0,customerOrProjectName:this.excludeCustomerName?void 0:e.trim()};this.http.getAll(o).then((({data:e})=>{t(e.data.map((e=>({id:e.id,label:this.excludeCustomerName?e.name:`${e.customer?.name} - ${e.name}`,_customer:e.customer}))))}))}else t([])}))}}};const Qw=(0,r.Z)(Zw,[["render",Gw],["__scopeId","data-v-35991936"]]);var Hw=Qw;const Ww={class:"orangehrm-modal-header"};function Yw(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{style:{width:"90%",maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",Ww,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.comment")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:2,class:"orangehrm-timesheet-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.project"))+": ",1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.projectName),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.activity"))+": ",1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.data.activity.name),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.date"))+": ",1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timesheet-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.commentDate),1)])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.comment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.comment=e),type:"textarea",placeholder:e.$t("general.comment_here"),rules:n.rules.comment,disabled:!o.editable},null,8,["modelValue","placeholder","rules","disabled"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.withDirectives)((0,a.createVNode)(p,null,null,512),[[a.vShow,o.editable]])])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}var Jw={name:"TimesheetCommentModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,required:!0},editable:{type:Boolean,required:!0},timesheetId:{type:Number,required:!0}},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/timesheets"),{locale:t}=De(),{jsDateFormat:o}=R();return{http:e,locale:t,jsDateFormat:o}},data(){return{isLoading:!1,comment:null,rules:{comment:[zt(2e3)]}}},computed:{projectName(){const{project:e,customer:t}=this.data;return e?.label?e.label:`${t?.name} - ${e?.name}`},commentDate(){const{date:e}=this.data;return e?ie(re(e),this.jsDateFormat,{locale:this.locale}):null}},beforeMount(){this.data?.id&&(this.isLoading=!0,this.http.request({method:"GET",url:`/api/v2/time/timesheets/${this.timesheetId}/entries/${this.data.id}/comment`}).then((e=>{const{data:t}=e.data;this.comment=t?.comment})).finally((()=>{this.isLoading=!1})))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",url:`/api/v2/time/timesheets/${this.timesheetId}/entries/comment`,data:{date:this.data.date,comment:this.comment,projectId:this.data.project.id,activityId:this.data.activity.id}}).then((e=>{const{data:t}=e.data;this.$toast.saveSuccess(),this.$emit("close",t)}))},onCancel(){this.comment=null,this.$emit("close")}}};const Xw=(0,r.Z)(Jw,[["render",Yw],["__scopeId","data-v-4867abf0"]]);var Kw=Xw,eN={name:"Timesheet",components:{"oxd-alert":q.OxdAlert,"oxd-loading-spinner":q.OxdSpinner,"activity-dropdown":Ow,"project-autocomplete":Hw,"timesheet-comment-modal":Kw},props:{records:{type:Array,default:()=>[]},columns:{type:Object,required:!1,default:()=>null},subtotal:{type:String,required:!1,default:null},editable:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},timesheetId:{type:Number,default:null}},emits:["update:records"],data(){return{focusedField:null,showCommentModal:!1,commentModalState:null,rules:{project:[xo,e=>null!==e||this.$t("time.select_a_project")],activity:[e=>null!==e||this.$t("time.select_an_activity"),e=>this.records.filter((t=>t.activity?.id===e?.id)).length<2||this.$t("time.duplicate_record")]}}},computed:{days(){return this.columns?Object.keys(this.columns):[]},dailyTotals(){const e={};for(const t in this.columns)e[t]=this.records.reduce(((e,o)=>{const a=fe(o.dates[t]?.duration);return a>0?e+a:e}),0);return e},daysOfWeek(){const e=[this.$t("general.sun"),this.$t("general.mon"),this.$t("general.tue"),this.$t("general.wed"),this.$t("general.thu"),this.$t("general.fri"),this.$t("general.sat")];return this.days.map((t=>{const o=re(t,"yyyy-MM-dd");return{id:o.valueOf(),day:o.getDate(),title:e[o.getDay()]}}))},tableClasses(){return{"orangehrm-timesheet-table":!0,"--editable":this.editable}},fixedColumnClasses(){return{"orangehrm-timesheet-table-header-cell":!0,"--freeze-left":!this.editable}},fixedCellClasses(){return{"orangehrm-timesheet-table-body-cell":!0,"--freeze-left":!this.editable}}},methods:{deleteRow(e){const t=this.records.filter(((t,o)=>o!==e));this.syncRecords(t),this.$nextTick().then((()=>{0===t.length&&this.addRow()}))},addRow(){const e=[...this.records,{project:null,activity:null,dates:{}}];this.syncRecords(e)},updateTime(e,t,o){const a=this.records.map(((a,l)=>{if(l===t){const t={[o]:{date:o,duration:e,id:a.dates[o]?.id,comment:a.dates[o]?.comment}};a.dates={...a.dates,...t}}return a}));this.syncRecords(a)},updateComment(e,t,o,a){const l=this.records.map(((l,n)=>{if(n===o){const o={[a]:{id:e,date:a,comment:t,duration:l.dates[a]?.duration}};l.dates={...l.dates,...o}}return l}));this.syncRecords(l)},updateProject(e,t){const o=this.records.map(((o,a)=>(a===t&&(o.project=e||null,o.customer=e?._customer?e._customer:null),o)));this.updateActivity(null,t),this.syncRecords(o)},updateActivity(e,t){const o=this.records.map(((o,a)=>(a===t&&(o.activity=e?{id:e.id,name:e.label}:null),o)));this.syncRecords(o)},syncRecords(e){this.editable&&this.$emit("update:records",e)},viewComment(e,t,o,a){e.project?.id&&e.activity?.id?(this.commentModalState={date:a,index:o,id:t?.id,project:e.project,activity:e.activity,customer:e.customer},this.showCommentModal=!0):this.$toast.warn({title:this.$t("general.warning"),message:this.$t("time.select_a_project_and_an_activity")})},onCommentModalClose(e){if(e){const{id:t,comment:o}=e,{index:a,date:l}=this.commentModalState;this.updateComment(t,o,a,l)}this.showCommentModal=!1,this.commentModalState=null},getProject(e){const{project:t,customer:o}=e;return t&&t.label?t:t&&o?{id:t.id,label:`${o.name} - ${t.name}`}:null},getActivity(e){return e?{id:e.id,label:e.name}:null},getDuration(e){return e?.duration?e.duration:null},getCommentIcon(e){return e?.comment?"chat-dots-fill":"chat-dots"},isCommentVisible(e,t,o){return!!e?.comment||!!this.editable&&(this.focusedField&&this.focusedField.index===t&&this.focusedField.date===o)},onDurationFocus(e,t){this.focusedField={index:e,date:t}},onDurationBlur(){this.focusedField=null},validateDuration(e){const t=e=>""===e||null===e||fe(e)>=0||this.$t("time.should_be_less_than_24_and_in_hh_mm_or_decimal_format"),o=()=>!(this.dailyTotals[e]>86400)||this.$t("time.total_should_be_less_than_24_hours");return[t,o]}}};const tN=(0,r.Z)(eN,[["render",Fw],["__scopeId","data-v-425cbc6c"]]);var oN=tN;function aN(e){const t=(0,a.reactive)({isLoading:!1,employee:null,timesheet:null,timesheetId:null,timesheetRecords:[],timesheetStatus:null,timesheetColumns:null,timesheetSubtotal:null,timesheetAllowedActions:[],date:null}),o=(t,o)=>e.request({method:"GET",url:"/api/v2/time/timesheets/default",params:{date:t,empNumber:o}}),l=(t,o,a,l)=>e.request({method:"PUT",url:l?`/api/v2/time/employees/${l}/timesheets/${t}`:`/api/v2/time/timesheets/${t}`,data:{action:o,comment:a||void 0}}),n=(t,o)=>new Promise((a=>{e.request({method:"GET",url:o?`/api/v2/time/employees/timesheets/${t}/entries`:`/api/v2/time/timesheets/${t}/entries`}).then((e=>{const{data:t,meta:o}=e.data,{timesheet:l,allowedActions:n}=o;a({data:t,meta:o,timesheet:l,allowedActions:n})}))})),r=(t,o,a)=>e.request({method:"PUT",url:a?`/api/v2/time/employees/timesheets/${t}/entries`:`/api/v2/time/timesheets/${t}/entries`,data:{...o}});return{state:t,fetchTimesheet:o,updateTimesheet:l,fetchTimesheetEntries:n,updateTimesheetEntries:r}}function lN(e,t,o){const{state:l,fetchTimesheet:n,updateTimesheet:r,fetchTimesheetEntries:i}=aN(e),{noRecordsFound:s,success:d}=yt(),{$t:c}=Se(),{jsDateFormat:m}=R(),{locale:u}=De();l.date=t||ie(ne(),"yyyy-MM-dd");const p=e=>{e&&null===re(e)||(l.isLoading=!0,n(e,o).then((e=>{const{data:t}=e.data;return l.timesheet=t,l.timesheetId=t.id,t.id?i(t.id,void 0!==o):null})).then((e=>{if(null!==e){const{data:t,meta:o,timesheet:a,allowedActions:n}=e;l.timesheetRecords=t,l.employee=o.employee,l.timesheetColumns=o.columns,l.timesheetSubtotal=o.sum.label,l.timesheetStatus=a.status.name,l.timesheetAllowedActions=n,0===t.length&&s()}else l.employee=null,l.timesheetRecords=[],l.timesheetColumns=null,l.timesheetStatus=null,l.timesheetSubtotal=null,l.timesheetAllowedActions=[]})).finally((()=>{l.isLoading=!1})))};(0,a.watchEffect)((async()=>l.date&&p(l.date)));const h=()=>{const e=re(String(l.date),"yyyy-MM-dd")??ne();e.setDate(e.getDate()-7),l.date=ie(e,"yyyy-MM-dd")},g=()=>{const e=re(String(l.date),"yyyy-MM-dd")??ne();e.setDate(e.getDate()+7),l.date=ie(e,"yyyy-MM-dd")},v=()=>{l.timesheetId&&U("/time/editTimesheet/{id}",{id:l.timesheetId})},f=()=>{l.timesheetId&&(l.isLoading=!0,r(l.timesheetId,"SUBMIT",null,o).then((()=>{d({title:c("general.success"),message:c("time.timesheet_submitted")}),l.timesheetId=null,p(l.date)})))},y=()=>{l.timesheetId&&(l.isLoading=!0,r(l.timesheetId,"RESET",null,o).then((()=>{d({title:c("general.success"),message:c("time.timesheet_reset")}),l.timesheetId=null,p(l.date)})))},C=e=>{l.timesheetId&&(l.isLoading=!0,r(l.timesheetId,"APPROVE",e,o).then((()=>{d({title:c("general.success"),message:c("time.timesheet_approved")}),l.timesheetId=null,p(l.date)})))},b=e=>{l.timesheetId&&(l.isLoading=!0,r(l.timesheetId,"REJECT",e,o).then((()=>{d({title:c("general.success"),message:c("time.timesheet_rejected")}),l.timesheetId=null,p(l.date)})))},V=()=>{l.isLoading=!0,e.request({method:"POST",url:o?`/api/v2/time/employees/${o}/timesheets`:"/api/v2/time/timesheets",data:{date:l.date}}).then((()=>{d({title:c("general.success"),message:c("time.timesheet_successfully_created")}),p(l.date)}))},x=(0,a.computed)((()=>!l.isLoading&&!l.timesheetId)),w=(0,a.computed)((()=>l.timesheetAllowedActions.find((e=>"SUBMIT"===e.action)))),N=(0,a.computed)((()=>l.timesheetAllowedActions.find((e=>"APPROVE"===e.action)))),_=(0,a.computed)((()=>l.timesheetAllowedActions.find((e=>"REJECT"===e.action)))),k=(0,a.computed)((()=>l.timesheetAllowedActions.find((e=>"RESET"===e.action)))),S=(0,a.computed)((()=>l.timesheetAllowedActions.find((e=>"MODIFY"===e.action)))),D=(0,a.computed)((()=>{const e=re(String(l.date),"yyyy-MM-dd")??ne();return e>ne()})),$=(0,a.computed)((()=>{const e=re(l.timesheet?.startDate||""),t=re(l.timesheet?.endDate||"");return e&&t?`${ie(e,m,{locale:u})} ${c("general.to").toLowerCase()} ${ie(t,m,{locale:u})}`:null}));return{state:l,onClickEdit:v,onClickNext:g,onClickReset:y,onClickSubmit:f,onClickReject:b,onClickApprove:C,onClickPrevious:h,timesheetPeriod:$,canEditTimesheet:S,canResetTimesheet:k,canSubmitTimesheet:w,canRejectTimesheet:_,canCreateTimesheet:D,canApproveTimesheet:N,showCreateTimesheet:x,onClickCreateTimesheet:V}}const nN={class:"orangehrm-timeperiod-picker"};function rN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon-button"),d=(0,a.resolveComponent)("date-input");return(0,a.openBlock)(),(0,a.createElementBlock)("div",nN,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-timeperiod-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.timesheet_period")),1)])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-timeperiod-icon --prev",name:"chevron-left",onClick:t[0]||(t[0]=t=>e.$emit("previous",t))}),(0,a.createVNode)(d,(0,a.normalizeProps)((0,a.guardReactiveProps)(e.$attrs)),null,16),(0,a.createVNode)(s,{class:"orangehrm-timeperiod-icon --next",name:"chevron-right",onClick:t[1]||(t[1]=t=>e.$emit("next",t))})])}var iN={name:"TimesheetPeriod",inheritAttrs:!1,emits:["previous","next"]};const sN=(0,r.Z)(iN,[["render",rN],["__scopeId","data-v-e0a5176c"]]);var dN=sN;const cN={key:0,class:"orangehrm-paper-container"},mN={class:"orangehrm-header-container"},uN={class:"orangehrm-container"},pN={class:"orangehrm-bottom-container"},hN={key:1};function gN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-card-table"),d=(0,a.resolveComponent)("oxd-pagination");return l.total>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",cN,[(0,a.createElementVNode)("div",mN,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.actions_performed_on_the_timesheet")),1)])),_:1})]),(0,a.createElementVNode)("div",uN,[(0,a.createVNode)(s,{headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items","loading"])]),(0,a.createElementVNode)("div",pN,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])):((0,a.openBlock)(),(0,a.createElementBlock)("div",hN))}var vN={name:"TimesheetActions",props:{timesheetId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/time/timesheets/${e.timesheetId}/action-logs`),{$t:o}=Se(),{jsDateFormat:a}=R(),{locale:l}=De(),n=e=>e.map((e=>{let t,n=e.action?.label;const r=e.performedEmployee?.firstName,i=e.performedEmployee?.lastName;switch(n){case"Submitted":n=o("time.submitted");break;case"Rejected":n=o("leave.rejected");break;case"Not Submitted":n=o("time.not_submitted");break;case"Approved":n=o("time.approved");break}return t=r&&i?`${r} ${i}`:o("general.purged_employee"),e.performedEmployee?.terminationId&&(t+=` (${o("general.past_employee")})`),{id:e.id,action:n,date:ie(re(e.date),a,{locale:l}),comment:e.comment,performedBy:t}})),{showPaginator:r,currentPage:i,total:s,pages:d,pageSize:c,response:m,isLoading:u,execQuery:p}=wt(t,{toastNoRecords:!1,normalizer:n});return{http:t,showPaginator:r,currentPage:i,isLoading:u,total:s,pages:d,pageSize:c,execQuery:p,items:m}},data(){return{headers:[{name:"action",slot:"title",title:this.$t("general.actions"),style:{flex:1}},{name:"performedBy",title:this.$t("general.performed_by"),style:{flex:1}},{name:"date",title:this.$t("general.date"),style:{flex:1}},{name:"comment",cellType:"oxd-table-cell-truncate",title:this.$t("general.comment"),style:{flex:1}}]}}};const fN=(0,r.Z)(vN,[["render",gN]]);var yN=fN,CN={components:{timesheet:oN,"timesheet-period":dN,"timesheet-actions":yN},props:{startDate:{type:String,required:!1,default:null}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/time/timesheets"),{state:o,onClickEdit:l,onClickNext:n,onClickSubmit:r,onClickPrevious:i,timesheetPeriod:s,canEditTimesheet:d,canSubmitTimesheet:c,canCreateTimesheet:m,showCreateTimesheet:u,onClickCreateTimesheet:p}=lN(t,e.startDate);return{onClickEdit:l,onClickNext:n,onClickSubmit:r,onClickPrevious:i,...(0,a.toRefs)(o),timesheetPeriod:s,canEditTimesheet:d,canSubmitTimesheet:c,canCreateTimesheet:m,showCreateTimesheet:u,onClickCreateTimesheet:p}},data(){return{statuses:[{id:1,label:this.$t("time.submitted"),name:"Submitted"},{id:2,label:this.$t("leave.rejected"),name:"Rejected"},{id:3,label:this.$t("time.not_submitted"),name:"Not Submitted"},{id:4,label:this.$t("time.approved"),name:"Approved"}]}},computed:{myTimesheetStatus(){return this.statuses.find((e=>e.name===this.timesheetStatus))?.label||null}}};const bN=(0,r.Z)(CN,[["render",dw]]);var VN=bN;const xN={class:"orangehrm-background-container"};function wN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("timesheet");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xN,[(0,a.createVNode)(d,{records:e.timesheetRecords,"onUpdate:records":t[0]||(t[0]=t=>e.timesheetRecords=t),editable:!0,loading:e.isLoading,"timesheet-id":o.timesheetId,columns:e.timesheetColumns,onSubmitValid:l.onSave},{"header-title":(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.title),1)])),_:1})])),"header-options":(0,a.withCtx)((()=>[r.timesheetDateRange?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,tag:"p",class:"orangehrm-timeperiod-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.timesheet_period")),1)])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.timesheetDateRange),1)])),_:1})])),"footer-options":(0,a.withCtx)((()=>[(0,a.createVNode)(s,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:l.onClickCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{"display-type":"ghost",label:e.$t("general.reset"),onClick:l.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(s,{type:"submit","display-type":"secondary",label:e.$t("general.save")},null,8,["label"])])),_:1},8,["records","loading","timesheet-id","columns","onSubmitValid"])])}var NN={components:{timesheet:oN},props:{myTimesheet:{type:Boolean,default:!1},timesheetId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/time/timesheets");t.setIgnorePath("/api/v2/time/timesheets/[0-9]+/entries");let o=[];const{saveSuccess:l}=yt(),{state:n,fetchTimesheetEntries:r,updateTimesheetEntries:i}=aN(t),{jsDateFormat:s}=R(),{locale:d}=De(),{$tEmpName:c}=xa(),m=()=>{n.isLoading=!0,o=[],n.timesheetRecords=[],r(e.timesheetId,!e.myTimesheet).then((e=>{const{data:t,meta:a,timesheet:l,allowedActions:r}=e;n.timesheet=l,n.employee=a.employee,n.timesheetColumns=a.columns,n.timesheetSubtotal=a.sum.label,n.timesheetStatus=l.status.name,n.timesheetAllowedActions=r,t.length>0?(n.timesheetRecords=t,o=JSON.parse(JSON.stringify(t))):(n.timesheetRecords.push({project:null,activity:null,dates:{}}),o.push({project:null,activity:null,dates:{}})),n.isLoading=!1}))},u=()=>m(),p=()=>{e.myTimesheet?U("/time/viewMyTimesheet",{},{startDate:n.timesheet.startDate}):U("/time/viewTimesheet/employeeId/{id}",{id:n.employee?.empNumber},{startDate:n.timesheet.startDate})},h=()=>{n.isLoading=!0;const t={entries:n.timesheetRecords.map((e=>{const t={};for(const o in e.dates){const a=fe(e.dates[o].duration);t[o]={duration:a>0?ve(a):"00:00"}}return{projectId:e.project.id,activityId:e.activity.id,dates:t}})),deletedEntries:o.filter((e=>!!e.project&&n.timesheetRecords.findIndex((t=>t.project.id===e.project.id&&t.activity.id===e.activity.id))<0)).map((e=>({projectId:e.project.id,activityId:e.activity.id})))};i(e.timesheetId,t,!e.myTimesheet).then((()=>l())).catch((()=>l())).then((()=>{p()}))};return(0,a.onBeforeMount)((()=>m())),{onSave:h,onClickReset:u,onClickCancel:p,...(0,a.toRefs)(n),jsDateFormat:s,locale:d,translateEmpName:c}},computed:{title(){if(this.myTimesheet)return this.$t("time.edit_timesheet");if(this.employee){const e=this.translateEmpName(this.employee,{includeMiddle:!1,excludePastEmpTag:!1});return`${this.$t("time.edit_timesheet_for")} ${e}`}return""},timesheetDateRange(){if(!this.timesheet)return"";const e=ie(re(this.timesheet.startDate),this.jsDateFormat,{locale:this.locale}),t=ie(re(this.timesheet.endDate),this.jsDateFormat,{locale:this.locale});return`${e} - ${t}`}}};const _N=(0,r.Z)(NN,[["render",wN],["__scopeId","data-v-54f42850"]]);var kN=_N;const SN={class:"orangehrm-background-container"},DN=(0,a.createElementVNode)("br",null,null,-1),$N={class:"orangehrm-paper-container"},EN={key:0,class:"orangehrm-header-container"},TN={class:"orangehrm-container"},BN={class:"orangehrm-bottom-container"};function IN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("customer-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("project-autocomplete"),c=(0,a.resolveComponent)("project-admin-autocomplete"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-divider"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("oxd-table-filter"),C=(0,a.resolveComponent)("table-header"),b=(0,a.resolveComponent)("oxd-card-table"),V=(0,a.resolveComponent)("oxd-pagination"),x=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",SN,[(0,a.createVNode)(y,{"filter-title":e.$t("general.projects")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{onSubmitValid:r.filterItems,onReset:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.customer,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.customer=e),rules:n.rules.customer},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.project,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.project=e),"exclude-customer-name":!0,rules:n.rules.project},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.projectAdmin,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.projectAdmin=e),"show-delete":!1,rules:n.rules.projectAdmin},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{type:"reset","display-type":"ghost",label:e.$t("general.reset")},null,8,["label"]),(0,a.createVNode)(g,{label:e.$t("general.search")},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),DN,(0,a.createElementVNode)("div",$N,[e.$can.create("time_projects")?((0,a.openBlock)(),(0,a.createElementBlock)("div",EN,[(0,a.createVNode)(h,{"icon-name":"plus","display-type":"secondary",label:e.$t("general.add"),onClick:r.onClickAdd},null,8,["label","onClick"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(C,{selected:n.checkedItems.length,loading:l.isLoading,total:l.total,"show-divider":e.$can.create("time_projects"),onDelete:r.onClickDeleteSelected},null,8,["selected","loading","total","show-divider","onDelete"]),(0,a.createElementVNode)("div",TN,[(0,a.createVNode)(b,{selected:n.checkedItems,"onUpdate:selected":t[3]||(t[3]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[4]||(t[4]=e=>l.sortDefinition=e),headers:r.headers,items:l.items?.data,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card",selectable:e.$can.delete("time_projects")},null,8,["selected","order","headers","items","loading","selectable"])]),(0,a.createElementVNode)("div",BN,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,current:l.currentPage,"onUpdate:current":t[5]||(t[5]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(x,{ref:"deleteDialog"},null,512)])}function LN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",clear:!1,label:e.$t("time.customer_name"),"create-options":r.loadCustomers},{option:(0,a.withCtx)((({data:e})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.label),1)])),_:1},8,["label","create-options"])}var UN={name:"CustomerAutocomplete",setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/customers");return{http:e}},methods:{async loadCustomers(e){return new Promise((t=>{e.trim()?this.http.getAll({name:e.trim()}).then((({data:e})=>{t(e.data.map((e=>({id:e.id,label:e.name}))))})):t([])}))}}};const AN=(0,r.Z)(UN,[["render",LN]]);var PN=AN;const qN={class:"orangehrm-project-admin-input"};function MN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-icon-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",qN,[(0,a.createVNode)(i,(0,a.mergeProps)({label:o.showDelete?null:e.$t("time.project_admin"),"api-path":"/api/v2/time/project-admins",params:{includeEmployees:o.includeEmployees}},e.$attrs),null,16,["label","params"]),o.showDelete?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,name:"trash-fill",class:"orangehrm-project-delete-icon","with-container":!1,onClick:r.remove},null,8,["onClick"])):(0,a.createCommentVNode)("",!0)])}var FN={name:"ProjectAdminAutocomplete",components:{"employee-autocomplete":Va},inheritAttrs:!1,props:{showDelete:{type:Boolean,required:!0},includeEmployees:{type:String,default:"currentAndPast"}},emits:["remove"],methods:{remove(){this.$emit("remove")}}};const jN=(0,r.Z)(FN,[["render",MN],["__scopeId","data-v-78aa890e"]]);var zN=jN;const RN={customer:null,project:null,projectAdmin:null},ON={"project.name":"ASC","customer.name":"DEFAULT","employee.lastName":"DEFAULT"};var GN={components:{"project-autocomplete":Hw,"customer-autocomplete":PN,"delete-confirmation":Et,"project-admin-autocomplete":zN},props:{unselectableIds:{type:Array,default:()=>[]}},setup(e){const{$t:t}=Se(),{$tEmpName:o}=xa(),l=a=>a.map((a=>{const l=e.unselectableIds.findIndex((e=>e==a.id));return{id:a.id,project:a.name,customer:a.customer?.deleted?a.customer?.name+t("general.deleted"):a.customer?.name,projectAdmins:a.projectAdmins?.map((e=>o(e))).join(", "),isSelectable:-1===l}})),n=(0,a.ref)({...RN}),{sortDefinition:r,sortField:i,sortOrder:s,onSort:d}=Tt({sortDefinition:ON}),c=(0,a.computed)((()=>({customerId:n.value.customer?.id,projectId:n.value.project?.id,empNumber:n.value.projectAdmin?.id,sortField:i.value,sortOrder:s.value,model:"detailed"}))),m=new P(window.appGlobal.baseUrl,"/api/v2/time/projects"),{showPaginator:u,currentPage:p,total:h,pages:g,pageSize:v,response:f,isLoading:y,execQuery:C}=wt(m,{query:c,normalizer:l});return d(C),{http:m,showPaginator:u,currentPage:p,isLoading:y,total:h,pages:g,pageSize:v,execQuery:C,items:f,filters:n,sortDefinition:r}},data(){return{checkedItems:[],rules:{project:[xo],customer:[xo],projectAdmin:[xo]}}},computed:{headers(){const e=[{name:"customer",title:this.$t("time.customer_name"),sortField:"customer.name",style:{flex:"15%"}},{name:"project",slot:"title",title:this.$t("time.project"),sortField:"project.name",style:{flex:"15%"}},{name:"projectAdmins",title:this.$t("time.project_admins"),style:{flex:"20%"}}],t={name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.delete("time_projects")&&(t.cellConfig.delete={onClick:this.onClickDelete,props:{name:"trash"}}),this.$can.update("time_project_activities")&&(t.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),Object.keys(t.cellConfig).length>0&&e.push(t),e}},methods:{onClickAdd(){U("/time/saveProject")},onClickEdit(e){U("/time/saveProject/{id}",{id:e.id})},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("time.not_allowed_to_delete_projects_which_have_time_logged")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData([e.id])}))},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData(e)}))},async deleteData(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()}}};const ZN=(0,r.Z)(GN,[["render",IN]]);var QN=ZN;const HN={class:"orangehrm-background-container"},WN={class:"orangehrm-card-container"},YN=(0,a.createElementVNode)("br",null,null,-1);function JN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("customer-autocomplete"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("project-admin-autocomplete"),g=(0,a.resolveComponent)("oxd-form-row"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form"),b=(0,a.resolveComponent)("add-customer-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",HN,[(0,a.createElementVNode)("div",WN,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.add_project")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.project.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.project.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(m,{key:n.project.customer,modelValue:n.project.customer,"onUpdate:modelValue":t[1]||(t[1]=e=>n.project.customer=e),rules:n.rules.customer,label:e.$t("time.customer_name"),required:""},null,8,["modelValue","rules","label"])),(0,a.createVNode)(u,{"icon-name":"plus","display-type":"text",class:"orangehrm-input-field-bottom-space",label:e.$t("time.add_customer"),onClick:r.onClickAddCustomer},null,8,["label","onClick"])])),_:1})])),_:1}),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.project.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.project.description=e),type:"textarea",label:e.$t("general.description"),rules:n.rules.description,placeholder:e.$t("general.type_description_here")},null,8,["modelValue","label","rules","placeholder"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.projectAdmins,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(h,{key:t,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,"show-delete":t>0,rules:n.rules.projectAdmin,"include-employees":"onlyCurrent",onRemove:e=>r.onRemoveAdmin(t)},null,8,["modelValue","onUpdate:modelValue","show-delete","rules","onRemove"])))),128)),n.projectAdmins.length<5?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"icon-name":"plus","display-type":"text",label:e.$t("general.add_another"),onClick:r.onAddAnother},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})])),_:1}),YN,(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),n.showCustomerModal?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0,onClose:r.onCustomerModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)])}const XN={class:"orangehrm-modal-header"};function KN(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(g,{style:{width:"90%",maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",XN,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.add_customer")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(h,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.customer.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.customer.description,"onUpdate:modelValue":t[1]||(t[1]=e=>n.customer.description=e),type:"textarea",label:e.$t("general.description"),placeholder:"Type description here",rules:n.rules.description},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,{class:"orangehrm-form-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(u,{"display-type":"secondary",label:e.$t("general.save"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const e_={id:"",name:"",description:""};var t_={name:"AddCustomerModal",components:{"oxd-dialog":q.OxdDialog},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/customers");return e.setIgnorePath("/api/v2/time/validation/customer-name"),{http:e}},data(){return{isLoading:!1,customer:{...e_},rules:{name:[jt,zt(50),(0,q.promiseDebounce)(this.validateCustomerName,500)],description:[zt(255)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.customer.name,description:this.customer.description}).then((e=>{const{data:t}=e.data;this.$toast.saveSuccess(),this.$emit("close",t)}))},onCancel(){this.$emit("close")},validateCustomerName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/time/validation/customer-name",params:{customerName:this.customer.name.trim()}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const o_=(0,r.Z)(t_,[["render",KN]]);var a_=o_;const l_={name:null,customer:null,description:null,projectAdminEmpNumbers:[]};var n_={name:"ProjectSave",components:{"add-customer-modal":a_,"customer-autocomplete":PN,"project-admin-autocomplete":zN},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/projects");return e.setIgnorePath("/api/v2/time/validation/project-name"),{http:e}},data(){return{isLoading:!1,showCustomerModal:!1,projectAdmins:[{value:null}],project:{...l_},projectId:null,rules:{name:[jt,zt(50),(0,q.promiseDebounce)(this.validateProjectName,500)],description:[zt(255)],customer:[jt,xo],projectAdmin:[xo,e=>this.projectAdmins.filter((({value:t})=>t&&t.id===e?.id)).length<2||this.$t("general.already_exists")]}}},methods:{onClickAddCustomer(){this.showCustomerModal=!0},onCustomerModalClose(e){if(void 0!==e){const{id:t,name:o}=e;this.project.customer={id:t,label:o}}this.showCustomerModal=!1},onAddAnother(){this.projectAdmins.length<5&&this.projectAdmins.push({value:null})},onRemoveAdmin(e){this.projectAdmins.splice(e,1)},onCancel(){U("/time/viewProjects")},onSave(){this.isLoading=!0,this.http.create({name:this.project.name,description:this.project.description,customerId:this.project.customer.id,projectAdminsEmpNumbers:this.projectAdmins.map((({value:e})=>e&&e.id)).filter(Number)}).then((e=>(this.projectId=e.data?.data.id,this.$toast.saveSuccess()))).then((()=>{U("/time/saveProject/{id}",{id:this.projectId})}))},validateProjectName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/time/validation/project-name",params:{projectName:this.project.name.trim(),customerId:this.project.customer?.id}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const r_=(0,r.Z)(n_,[["render",JN]]);var i_=r_;const s_={class:"orangehrm-background-container"},d_={class:"orangehrm-card-container"},c_=(0,a.createElementVNode)("br",null,null,-1),m_=(0,a.createElementVNode)("br",null,null,-1);function u_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("customer-autocomplete"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("project-admin-autocomplete"),g=(0,a.resolveComponent)("oxd-form-row"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form"),b=(0,a.resolveComponent)("activities"),V=(0,a.resolveComponent)("add-customer-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",s_,[(0,a.createElementVNode)("div",d_,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.edit_project")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.project.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.project.name=e),label:e.$t("general.name"),rules:n.rules.name,disabled:!e.$can.update("time_projects"),required:""},null,8,["modelValue","label","rules","disabled"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(m,{key:n.project.customer,modelValue:n.project.customer,"onUpdate:modelValue":t[1]||(t[1]=e=>n.project.customer=e),label:e.$t("time.customer_name"),rules:n.rules.customer,disabled:!e.$can.update("time_projects"),required:""},null,8,["modelValue","label","rules","disabled"])),e.$can.update("time_projects")?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"icon-name":"plus","display-type":"text",class:"orangehrm-input-field-bottom-space",label:e.$t("time.add_customer"),onClick:r.onClickAddCustomer},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.project.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.project.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),disabled:!e.$can.update("time_projects"),rules:n.rules.description},null,8,["modelValue","label","placeholder","disabled","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.projectAdmins,((t,o)=>((0,a.openBlock)(),(0,a.createBlock)(h,{key:o,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,rules:n.rules.projectAdmin,"show-delete":o>0&&e.$can.update("time_projects"),disabled:!e.$can.update("time_projects"),"include-employees":"onlyCurrent",onRemove:e=>r.onRemoveAdmin(o)},null,8,["modelValue","onUpdate:modelValue","rules","show-delete","disabled","onRemove"])))),128)),n.projectAdmins.length<5&&e.$can.update("time_projects")?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"icon-name":"plus","display-type":"text",label:e.$t("general.add_another"),onClick:r.onAddAnother},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})])),_:1}),c_,(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),e.$can.update("time_projects")?((0,a.openBlock)(),(0,a.createBlock)(f,{key:0})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),m_,(0,a.createVNode)(b,{"project-id":o.projectId,"unselectable-ids":o.unselectableIds},null,8,["project-id","unselectable-ids"]),n.showCustomerModal?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,onClose:r.onCustomerModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)])}const p_={class:"orangehrm-paper-container"},h_={class:"orangehrm-header-container"},g_={class:"orangehrm-main-actions"},v_={class:"orangehrm-container"},f_={class:"orangehrm-bottom-container"};function y_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation"),p=(0,a.resolveComponent)("copy-activity-modal"),h=(0,a.resolveComponent)("save-activity-modal"),g=(0,a.resolveComponent)("edit-activity-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",p_,[(0,a.createElementVNode)("div",h_,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.activities")),1)])),_:1}),(0,a.createElementVNode)("div",g_,[(0,a.createVNode)(s,{label:e.$t("time.copy_from"),"display-type":"ghost",onClick:r.onClickCopyFrom},null,8,["label","onClick"]),(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{total:l.total,loading:l.isLoading,selected:n.checkedItems.length,onDelete:r.onClickDeleteSelected},null,8,["total","loading","selected","onDelete"]),(0,a.createElementVNode)("div",v_,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",f_,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512),n.showCopyFromModal?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,"project-id":o.projectId,onClose:r.onCloseModal},null,8,["project-id","onClose"])):(0,a.createCommentVNode)("",!0),n.showSaveActivityModal?((0,a.openBlock)(),(0,a.createBlock)(h,{key:1,"project-id":o.projectId,onClose:r.onCloseModal},null,8,["project-id","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditActivityModal?((0,a.openBlock)(),(0,a.createBlock)(g,{key:2,"project-id":o.projectId,"activity-id":n.editActivityModalState,onClose:r.onCloseModal},null,8,["project-id","activity-id","onClose"])):(0,a.createCommentVNode)("",!0)])}const C_={class:"orangehrm-modal-header"};function b_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("project-autocomplete"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid-item"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(C,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",C_,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.copy_activity")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.project,"onUpdate:modelValue":t[0]||(t[0]=e=>n.project=e),rules:n.rules.project,"only-allowed":!1,label:e.$t("time.project_name"),"exclude-project-ids":[o.projectId],required:""},null,8,["modelValue","rules","label","exclude-project-ids"])])),_:1}),n.activities&&n.activities.length>0?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(s),(0,a.createVNode)(p,{cols:2,class:"orangehrm-activites-container"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.activities,(e=>((0,a.openBlock)(),(0,a.createBlock)(u,{key:e.id},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.selectedActivities,"onUpdate:modelValue":t[1]||(t[1]=e=>n.selectedActivities=e),type:"checkbox",value:e.id,disabled:!e.unique,"option-label":e.name},null,8,["modelValue","value","disabled","option-label"])])),_:2},1024)))),128))])),_:1})],64)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}var V_={name:"CopyActivityModal",components:{"oxd-dialog":q.OxdDialog,"project-autocomplete":Hw},props:{projectId:{type:Number,required:!0}},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"");return{http:e}},data(){return{isLoading:!1,project:null,activities:null,selectedActivities:[],rules:{project:[jt,xo,()=>{if(null!==this.activities&&0===this.activities.length)return this.$t("time.no_assigned_activities");if(Array.isArray(this.activities)&&0===this.selectedActivities.length){const e=this.activities.find((e=>!0===e.unique));return e?this.$t("time.no_activities_selected"):this.$t("general.already_exists")}return!0}]}}},watch:{project(e){this.activities=null,this.selectedActivities=[],e&&(this.isLoading=!0,this.http.request({method:"GET",url:`/api/v2/time/projects/${this.projectId}/activities/copy/${e.id}`,params:{limit:0}}).then((e=>{const{data:t}=e.data;this.activities=t,this.selectedActivities=Array.isArray(t)?t.filter((e=>!0===e.unique)).map((e=>e.id)):[],this.isLoading=!1})))}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"POST",url:`/api/v2/time/projects/${this.projectId}/activities/copy/${this.project.id}`,data:{activityIds:this.selectedActivities}}).then((()=>{this.$toast.updateSuccess(),this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const x_=(0,r.Z)(V_,[["render",b_],["__scopeId","data-v-789130a9"]]);var w_=x_;const N_={class:"orangehrm-modal-header"};function __(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",N_,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.add_project_activity")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}var k_={name:"SaveActivityModal",components:{"oxd-dialog":q.OxdDialog},props:{projectId:{type:Number,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/time/project/${e.projectId}/activities`);return{http:t}},data(){return{isLoading:!1,name:"",rules:{name:[jt,zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;t&&this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));return!(o>-1)||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.name}).then((()=>{this.$toast.saveSuccess(),this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const S_=(0,r.Z)(k_,[["render",__]]);var D_=S_;const $_={class:"orangehrm-modal-header"};function E_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("required-text"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",$_,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.edit_project_activity")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}var T_={name:"SaveActivityModal",components:{"oxd-dialog":q.OxdDialog},props:{projectId:{type:Number,required:!0},activityId:{type:Number,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/time/project/${e.projectId}/activities`);return{http:t}},data(){return{isLoading:!1,name:"",rules:{name:[jt,zt(100)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.activityId).then((e=>{const{data:t}=e.data;return this.name=t.name,this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>String(t.name).toLowerCase()==String(e).toLowerCase()));if(o>-1){const{id:e}=t[o];return e==this.activityId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.activityId,{name:this.name}).then((()=>{this.$toast.updateSuccess(),this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const B_=(0,r.Z)(T_,[["render",E_]]);var I_=B_,L_={name:"Activities",components:{"copy-activity-modal":w_,"save-activity-modal":D_,"edit-activity-modal":I_,"delete-confirmation":Et},props:{projectId:{type:Number,required:!0},unselectableIds:{type:Array,default:()=>[]}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/time/project/${e.projectId}/activities`),o=t=>t.map((t=>{const o=e.unselectableIds.findIndex((e=>e==t.id));return{...t,isSelectable:-1===o}})),{showPaginator:a,currentPage:l,total:n,pages:r,pageSize:i,response:s,isLoading:d,execQuery:c}=wt(t,{normalizer:o});return{http:t,showPaginator:a,currentPage:l,isLoading:d,total:n,pages:r,pageSize:i,execQuery:c,items:s}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("time.activity_name"),style:{"flex-basis":"80%"}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{"flex-shrink":1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],showCopyFromModal:!1,showSaveActivityModal:!1,showEditActivityModal:!1,editActivityModalState:null}},methods:{onClickAdd(){this.showSaveActivityModal=!0},onClickEdit(e){this.editActivityModalState=e.id,this.showEditActivityModal=!0},onClickCopyFrom(){this.showCopyFromModal=!0},onCloseModal(){this.showCopyFromModal=!1,this.showSaveActivityModal=!1,this.showEditActivityModal=!1,this.resetDataTable()},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.error({title:this.$t("general.error"),message:this.$t("time.not_allowed_to_delete_project_activities_which_have_time_logged_against")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>{this.$toast.deleteSuccess(),this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const U_=(0,r.Z)(L_,[["render",y_],["__scopeId","data-v-78f3e421"]]);var A_=U_;const P_={name:null,customer:{id:null,label:null},description:null,projectAdminEmpNumbers:[]};var q_={name:"ProjectEdit",components:{activities:A_,"add-customer-modal":a_,"customer-autocomplete":PN,"project-admin-autocomplete":zN},props:{projectId:{type:Number,required:!0},unselectableIds:{type:Array,default:()=>[]}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/projects");return e.setIgnorePath("/api/v2/time/validation/project-name"),{http:e}},data(){return{isLoading:!1,projectAdmins:[{value:null}],project:{...P_},showCustomerModal:!1,rules:{name:[jt,zt(50)],description:[zt(255)],customer:[jt,xo],projectAdmin:[xo,e=>this.projectAdmins.filter((({value:t})=>t&&t.id===e?.id)).length<2||this.$t("general.already_exists")]}}},beforeMount(){this.isLoading=!0;const{$tEmpName:e}=xa();this.http.get(this.projectId,{model:"detailed"}).then((t=>{const{data:o}=t.data;this.project.name=o.name,this.project.description=o.description,this.project.customer={id:o.customer.id,label:o.customer.name},Array.isArray(o.projectAdmins)&&o.projectAdmins.length>0&&(this.projectAdmins=o.projectAdmins.map((t=>({value:{id:t.empNumber,label:e(t,{includeMiddle:!0,excludePastEmpTag:!0}),isPastEmployee:!!t.terminationId}}))))})).finally((()=>{this.rules.name.push((0,q.promiseDebounce)(this.validateProjectName,500)),this.isLoading=!1}))},methods:{onClickAddCustomer(){this.showCustomerModal=!0},onCustomerModalClose(e){if(void 0!==e){const{id:t,name:o}=e;this.project.customer={id:t,label:o}}this.showCustomerModal=!1},onAddAnother(){this.projectAdmins.length<5&&this.projectAdmins.push({value:null})},onRemoveAdmin(e){this.projectAdmins.splice(e,1)},onCancel(){U("/time/viewProjects")},onSave(){this.isLoading=!0,this.http.update(this.projectId,{name:this.project.name,description:this.project.description,customerId:this.project.customer.id,projectAdminsEmpNumbers:this.projectAdmins.map((({value:e})=>e&&e.id)).filter(Number)}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},validateProjectName(e){return new Promise((t=>{e?this.http.request({method:"GET",url:"/api/v2/time/validation/project-name",params:{projectId:this.projectId,projectName:this.project.name.trim(),customerId:this.project.customer?.id}}).then((e=>{const{data:o}=e.data;return!0===o.valid?t(!0):t(this.$t("general.already_exists"))})):t(!0)}))}}};const M_=(0,r.Z)(q_,[["render",u_]]);var F_=M_;const j_={class:"orangehrm-background-container"},z_={class:"orangehrm-card-container"},R_=(0,a.createElementVNode)("br",null,null,-1);function O_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("timesheet-pending-actions");return(0,a.openBlock)(),(0,a.createElementBlock)("div",j_,[(0,a.createElementVNode)("div",z_,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.select_employee")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{onSubmitValid:r.viewTimesheet},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employee=e),rules:n.rules.employee,params:{includeEmployees:"currentAndPast"},required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{label:e.$t("general.view")},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])]),R_,(0,a.createVNode)(f)])}const G_={class:"orangehrm-paper-container"},Z_={class:"orangehrm-header-container"},Q_={class:"orangehrm-container"},H_={class:"orangehrm-bottom-container"};function W_(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table"),c=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",G_,[(0,a.createElementVNode)("div",Z_,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.timesheets_pending_action")),1)])),_:1})]),(0,a.createVNode)(s,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",Q_,[(0,a.createVNode)(d,{headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items","loading"])]),(0,a.createElementVNode)("div",H_,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])}var Y_={name:"TimesheetPendingActions",setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/time/employees/timesheets/list"),{$t:t}=Se(),{jsDateFormat:o}=R(),{locale:a}=De(),l=e=>e.map((e=>{const l=ie(re(e.startDate),o,{locale:a}),n=ie(re(e.endDate),o,{locale:a}),r=`${e.employee?.firstName} ${e.employee?.middleName} ${e.employee?.lastName}`;return e.employee?.terminationId&&t("general.past_employee"),{id:e.id,startDate:e.startDate,empNumber:e.employee.empNumber,period:`${l} - ${n}`,employee:r}})),{showPaginator:n,currentPage:r,total:i,pages:s,pageSize:d,response:c,isLoading:m,execQuery:u}=wt(e,{normalizer:l});return{http:e,showPaginator:n,currentPage:r,isLoading:m,total:i,pages:s,pageSize:d,execQuery:u,items:c}},data(){return{headers:[{name:"employee",slot:"title",title:this.$t("general.employee_name"),style:{flex:"40%"}},{name:"period",title:this.$t("time.timesheet_period"),style:{flex:"40%"}},{name:"actions",slot:"footer",title:this.$t("general.actions"),style:{flex:"20%"},cellType:"oxd-table-cell-actions",cellConfig:{view:{onClick:this.onClickView,component:"oxd-button",props:{label:this.$t("general.view"),displayType:"text",size:"medium"}}}}]}},methods:{onClickView(e){U("/time/viewTimesheet/employeeId/{empNumber}",{empNumber:e.empNumber},{startDate:e.startDate})}}};const J_=(0,r.Z)(Y_,[["render",W_],["__scopeId","data-v-1a8cbf98"]]);var X_=J_,K_={components:{"employee-autocomplete":Va,"timesheet-pending-actions":X_},data(){return{employee:null,rules:{employee:[jt,xo]}}},methods:{viewTimesheet(){U("/time/viewTimesheet/employeeId/{id}",{id:this.employee?.id})}}};const ek=(0,r.Z)(K_,[["render",O_]]);var tk=ek;const ok={class:"orangehrm-background-container"},ak=(0,a.createElementVNode)("br",null,null,-1),lk=(0,a.createElementVNode)("br",null,null,-1);function nk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("timesheet-period"),d=(0,a.resolveComponent)("oxd-button"),c=(0,a.resolveComponent)("timesheet"),m=(0,a.resolveComponent)("save-timesheet-action"),u=(0,a.resolveComponent)("timesheet-actions");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ok,[(0,a.createVNode)(c,{loading:e.isLoading,columns:e.timesheetColumns,records:e.timesheetRecords,"timesheet-id":e.timesheetId,subtotal:e.timesheetSubtotal},{"header-title":(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.title),1)])),_:1})])),"header-options":(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:e.date,"onUpdate:modelValue":t[0]||(t[0]=t=>e.date=t),value:l.timesheetPeriod,onNext:l.onClickNext,onPrevious:l.onClickPrevious},null,8,["modelValue","value","onNext","onPrevious"])])),"footer-title":(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.status"))+": "+(0,a.toDisplayString)(r.employeeTimesheetStatus),1)])),_:1},512),[[a.vShow,e.timesheetStatus]])])),"footer-options":(0,a.withCtx)((()=>[l.showCreateTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"display-type":"secondary",disabled:l.canCreateTimesheet,label:e.$t("time.create_timesheet"),onClick:l.onClickCreateTimesheet},null,8,["disabled","label","onClick"])):(0,a.createCommentVNode)("",!0),l.canEditTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,"display-type":"ghost",label:e.$t("general.edit"),onClick:l.onClickEdit},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),l.canResetTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:2,"display-type":"ghost",label:e.$t("general.reset"),onClick:l.onClickReset},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),l.canSubmitTimesheet?((0,a.openBlock)(),(0,a.createBlock)(d,{key:3,"display-type":"secondary",label:e.$t("general.submit"),onClick:l.onClickSubmit},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","columns","records","timesheet-id","subtotal"]),ak,e.timesheetId&&(l.canRejectTimesheet||l.canApproveTimesheet)?((0,a.openBlock)(),(0,a.createBlock)(m,{key:e.timesheetId,"is-loading":e.isLoading,"reject-timesheet":l.onClickReject,"approve-timesheet":l.onClickApprove,"can-reject-timesheet":!!l.canRejectTimesheet,"can-approve-timesheet":!!l.canApproveTimesheet},null,8,["is-loading","reject-timesheet","approve-timesheet","can-reject-timesheet","can-approve-timesheet"])):(0,a.createCommentVNode)("",!0),lk,e.timesheetId?((0,a.openBlock)(),(0,a.createBlock)(u,{key:e.timesheetId,"timesheet-id":e.timesheetId},null,8,["timesheet-id"])):(0,a.createCommentVNode)("",!0)])}const rk={class:"orangehrm-card-container"};function ik(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rk,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.timesheet_action")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,{ref:"formRef",loading:o.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.comment,"onUpdate:modelValue":t[0]||(t[0]=e=>l.comment=e),type:"textarea",placeholder:e.$t("general.type_here_message"),rules:l.rules.comment,label:e.$t("general.comment")},null,8,["modelValue","placeholder","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[o.canRejectTimesheet?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,label:e.$t("general.reject"),"display-type":"danger",onClick:l.onClickReject},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),o.canApproveTimesheet?((0,a.openBlock)(),(0,a.createBlock)(p,{key:1,label:e.$t("general.approve"),"display-type":"success",class:"orangehrm-left-space",onClick:l.onClickApprove},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1},8,["loading"])])}var sk={name:"SaveTimesheetAction",props:{isLoading:{type:Boolean,required:!0},rejectTimesheet:{type:Function,required:!0},approveTimesheet:{type:Function,required:!0},canRejectTimesheet:{type:Boolean,required:!0},canApproveTimesheet:{type:Boolean,required:!0}},setup(e){const{formRef:t,invalid:o,validate:l}=$c(),n=(0,a.ref)(""),r={comment:[zt(250)]},i=()=>{l().then((()=>!1===o.value&&e.approveTimesheet(n.value)))},s=()=>{l().then((()=>!1===o.value&&e.rejectTimesheet(n.value)))};return{rules:r,comment:n,formRef:t,onClickReject:s,onClickApprove:i}}};const dk=(0,r.Z)(sk,[["render",ik]]);var ck=dk,mk={components:{timesheet:oN,"timesheet-period":dN,"timesheet-actions":yN,"save-timesheet-action":ck},props:{employee:{type:Object,required:!0},startDate:{type:String,required:!1,default:null}},setup(e){const t=new P(window.appGlobal.baseUrl,"/api/v2/time/timesheets"),{state:o,onClickEdit:l,onClickNext:n,onClickReset:r,onClickSubmit:i,onClickReject:s,onClickApprove:d,onClickPrevious:c,timesheetPeriod:m,canEditTimesheet:u,canResetTimesheet:p,canSubmitTimesheet:h,canRejectTimesheet:g,canCreateTimesheet:v,canApproveTimesheet:f,showCreateTimesheet:y,onClickCreateTimesheet:C}=lN(t,e.startDate,e.employee.empNumber),{employee:b,...V}=(0,a.toRefs)(o),{$tEmpName:x}=xa();return{...V,onClickEdit:l,onClickNext:n,onClickReset:r,onClickSubmit:i,onClickReject:s,onClickApprove:d,onClickPrevious:c,timesheetPeriod:m,canEditTimesheet:u,canResetTimesheet:p,canSubmitTimesheet:h,canRejectTimesheet:g,canCreateTimesheet:v,canApproveTimesheet:f,showCreateTimesheet:y,onClickCreateTimesheet:C,translateEmpName:x}},data(){return{statuses:[{id:1,label:this.$t("time.submitted"),name:"Submitted"},{id:2,label:this.$t("leave.rejected"),name:"Rejected"},{id:3,label:this.$t("time.not_submitted"),name:"Not Submitted"},{id:4,label:this.$t("time.approved"),name:"Approved"}]}},computed:{title(){const e=this.translateEmpName(this.employee,{includeMiddle:!1,excludePastEmpTag:!1});return`${this.$t("time.timesheet_for")} ${e}`},employeeTimesheetStatus(){return this.statuses.find((e=>e.name===this.timesheetStatus))?.label||null}}};const uk=(0,r.Z)(mk,[["render",nk]]);var pk=uk;const hk=e=>((0,a.pushScopeId)("data-v-17d6a43f"),e=e(),(0,a.popScopeId)(),e),gk=hk((()=>(0,a.createElementVNode)("br",null,null,-1)));function vk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("project-autocomplete"),u=(0,a.resolveComponent)("activity-dropdown"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("oxd-text"),g=(0,a.resolveComponent)("oxd-switch-input"),v=(0,a.resolveComponent)("oxd-divider"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("oxd-table-filter"),x=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(x,{module:"time",name:"employee",filters:l.serializedFilters,"column-count":3},{default:(0,a.withCtx)((({generateReport:o})=>[(0,a.createVNode)(V,{"filter-title":e.$t("time.employee_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(b,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:l.rules.employee,params:{includeEmployees:"currentAndPast"},required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.project,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.project=e),rules:l.rules.project,label:e.$t("time.project_name"),"only-allowed":!1},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.activity,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.activity=e),label:e.$t("time.activity_name"),"project-id":l.filters.project&&l.filters.project.id},null,8,["modelValue","label","project-id"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.fromDate=e),placeholder:e.$t("general.from"),rules:l.rules.fromDate,label:e.$t("time.project_date_range")},null,8,["modelValue","placeholder","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.toDate=e),label:" ",placeholder:e.$t("general.to"),rules:l.rules.toDate},null,8,["modelValue","placeholder","rules"])])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-switch-filter --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{class:"orangehrm-switch-filter-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.only_include_approved_timesheets")),1)])),_:1}),(0,a.createVNode)(g,{modelValue:l.filters.timesheetState,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.timesheetState=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(v),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{type:"submit","display-type":"secondary",label:e.$t("general.view")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),gk])),footer:(0,a.withCtx)((({data:t})=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(t.meta?t.meta.sum.label:"0.00"),1)])),_:1},8,["filters"])}const fk={employee:null,project:null,activity:null,fromDate:null,toDate:null,timesheetState:!1};var yk={components:{"reports-table":ex,"oxd-switch-input":q.OxdSwitchInput,"activity-dropdown":Ow,"project-autocomplete":Hw,"employee-autocomplete":Va},setup(){const e=(0,a.ref)({...fk}),{$t:t}=Se(),{userDateFormat:o}=R(),l={project:[xo],employee:[jt,xo],fromDate:[Rt(o),co((()=>e.value.toDate),t("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(o),eo((()=>e.value.fromDate),t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]},n=(0,a.computed)((()=>({empNumber:e.value.employee?.id,projectId:e.value.project?.id,activityId:e.value.activity?.id,fromDate:e.value.fromDate,toDate:e.value.toDate,timesheetState:e.value.timesheetState?"onlyApproved":"all"})));return{rules:l,filters:e,serializedFilters:n}}};const Ck=(0,r.Z)(yk,[["render",vk],["__scopeId","data-v-17d6a43f"]]);var bk=Ck;const Vk=e=>((0,a.pushScopeId)("data-v-e0465754"),e=e(),(0,a.popScopeId)(),e),xk=Vk((()=>(0,a.createElementVNode)("br",null,null,-1)));function wk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("project-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("oxd-text"),p=(0,a.resolveComponent)("oxd-switch-input"),h=(0,a.resolveComponent)("oxd-divider"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("oxd-table-filter"),b=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(b,{module:"time",name:"project",prefetch:null!==o.project,filters:l.serializedFilters,"column-count":2},{default:(0,a.withCtx)((({generateReport:o})=>[(0,a.createVNode)(C,{"filter-title":e.$t("time.project_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.project,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.project=e),rules:l.rules.project,label:e.$t("time.project_name"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.fromDate=e),placeholder:e.$t("general.from"),rules:l.rules.fromDate,label:e.$t("time.project_date_range")},null,8,["modelValue","placeholder","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.toDate=e),label:" ",placeholder:e.$t("general.to"),rules:l.rules.toDate},null,8,["modelValue","placeholder","rules"])])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-switch-filter --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{class:"orangehrm-switch-filter-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.only_include_approved_timesheets")),1)])),_:1}),(0,a.createVNode)(p,{modelValue:l.filters.includeTimesheet,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.includeTimesheet=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"submit","display-type":"secondary",label:e.$t("general.view")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),xk])),footer:(0,a.withCtx)((({data:t})=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(t.meta?t.meta.sum.label:"0.00"),1)])),_:1},8,["prefetch","filters"])}const Nk={project:null,fromDate:null,toDate:null,includeTimesheet:!1};var _k={components:{"reports-table":ex,"oxd-switch-input":q.OxdSwitchInput,"project-autocomplete":Hw},props:{project:{type:Object,required:!1,default:null},fromDate:{type:String,required:!1,default:null},toDate:{type:String,required:!1,default:null},includeTimesheet:{type:Boolean,default:!1}},setup(e){const t=(0,a.ref)({...Nk,fromDate:e.fromDate,toDate:e.toDate,includeTimesheet:e.includeTimesheet,...e.project&&{project:e.project}}),{$t:o}=Se(),{userDateFormat:l}=R(),n={project:[jt,xo],fromDate:[Rt(l),co((()=>t.value.toDate),o("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(l),eo((()=>t.value.fromDate),o("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]},r=(0,a.computed)((()=>({projectId:t.value.project?.id,fromDate:t.value.fromDate,toDate:t.value.toDate,includeTimesheet:t.value.includeTimesheet?"onlyApproved":"all"})));return{rules:n,filters:t,serializedFilters:r}}};const kk=(0,r.Z)(_k,[["render",wk],["__scopeId","data-v-e0465754"]]);var Sk=kk;const Dk=e=>((0,a.pushScopeId)("data-v-b9b0d77c"),e=e(),(0,a.popScopeId)(),e),$k=Dk((()=>(0,a.createElementVNode)("br",null,null,-1)));function Ek(e,t,o,l,n,r){const i=(0,a.resolveComponent)("project-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("activity-dropdown"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("date-input"),p=(0,a.resolveComponent)("oxd-text"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("oxd-table-filter"),x=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(x,{module:"time",name:"activity_detailed",prefetch:!0,filters:l.serializedFilters,"column-count":2},{default:(0,a.withCtx)((({generateReport:o})=>[(0,a.createVNode)(V,{"filter-title":e.$t("time.project_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(b,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.project,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.project=e),rules:l.rules.project,label:e.$t("time.project_name"),required:"",disabled:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.activity,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.activity=e),rules:l.rules.activity,label:e.$t("time.activity_name"),"project-id":l.filters.project&&l.filters.project.id,required:""},null,8,["modelValue","rules","label","project-id"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.fromDate=e),placeholder:e.$t("general.from"),rules:l.rules.fromDate,label:e.$t("time.project_date_range"),disabled:""},null,8,["modelValue","placeholder","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.toDate=e),label:" ",placeholder:e.$t("general.to"),rules:l.rules.toDate,disabled:""},null,8,["modelValue","placeholder","rules"])])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-switch-filter --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-switch-filter-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.only_include_approved_timesheets")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:l.filters.includeTimesheet,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.includeTimesheet=e),disabled:""},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.back"),onClick:l.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(y,{label:e.$t("general.view")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),$k])),footer:(0,a.withCtx)((({data:t})=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(t.meta?t.meta.sum.label:"0.00"),1)])),_:1},8,["filters"])}const Tk={project:null,activity:null,fromDate:null,toDate:null,includeTimesheet:!1};var Bk={components:{"reports-table":ex,"oxd-switch-input":q.OxdSwitchInput,"activity-dropdown":Ow,"project-autocomplete":Hw},props:{project:{type:Object,required:!0},activity:{type:Object,required:!0},fromDate:{type:String,required:!1,default:null},toDate:{type:String,required:!1,default:null},includeTimesheet:{type:Boolean,default:!1}},setup(e){const{$t:t}=Se(),o=(0,a.ref)({...Tk,fromDate:e.fromDate,toDate:e.toDate,includeTimesheet:e.includeTimesheet,...e.project&&{project:e.project},...e.activity&&{activity:e.activity}}),{userDateFormat:l}=R(),n={project:[jt],activity:[jt,xo],fromDate:[Rt(l),co((()=>o.value.toDate),t("attendance.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(l),eo((()=>o.value.fromDate),t("attendance.to_date_should_be_after_from_date"),{allowSameDate:!0})]},r=(0,a.computed)((()=>({projectId:o.value.project?.id,activityId:o.value.activity?.id,fromDate:o.value.fromDate,toDate:o.value.toDate,includeTimesheet:o.value.includeTimesheet?"onlyApproved":"all"}))),i=()=>{U("/time/displayProjectReportCriteria",void 0,{projectId:e.project.id,fromDate:e.fromDate,toDate:e.fromDate,includeTimesheet:e.includeTimesheet?"onlyApproved":"all"})};return{rules:n,filters:o,onClickBack:i,serializedFilters:r}}};const Ik=(0,r.Z)(Bk,[["render",Ek],["__scopeId","data-v-b9b0d77c"]]);var Lk=Ik,Uk={"time-sheet-period":Ax,"customer-list":Zx,"customer-save":Kx,"customer-edit":rw,"my-timesheet":VN,"edit-timesheet":kN,"project-list":QN,"project-save":i_,"project-edit":F_,"employee-timesheet":tk,"view-employee-timesheet":pk,"employee-time-report":bk,"project-activity-report":Sk,"activity-details-report":Lk};const Ak={class:"orangehrm-background-container"},Pk={class:"orangehrm-card-container"};function qk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-input-group"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Ak,[(0,a.createElementVNode)("div",Pk,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.leave_period")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leavePeriod.startMonth,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leavePeriod.startMonth=e),type:"select",options:r.months,rules:n.rules.startMonth,label:e.$t("leave.start_month"),required:""},null,8,["modelValue","options","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leavePeriod.startDay,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leavePeriod.startDay=e),type:"select",options:r.dates,rules:n.rules.startDay,label:e.$t("general.start_date"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{label:e.$t("general.end_date")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2",class:"orangehrm-leave-period"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.endDay),1)])),_:1})])),_:1},8,["label"])])),_:1}),n.leavePeriod.currentPeriod?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{label:e.$t("leave.current_leave_period")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2",class:"orangehrm-leave-period"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.leavePeriod.currentPeriod),1)])),_:1})])),_:1},8,["label"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const Mk={startMonth:null,startDay:null,currentPeriod:null};var Fk={props:{monthDates:{type:Object,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-period"),{jsDateFormat:t}=R(),{locale:o}=De();return{http:e,jsDateFormat:t,locale:o}},data(){return{isLoading:!1,leavePeriod:{...Mk},leavePeriodDefined:!0,rules:{startMonth:[jt],startDay:[jt]}}},computed:{months(){return Array(12).fill("").map(((...[,e])=>({id:e+1,label:this.locale.localize.month(e,{width:"wide"})})))},dates(){return(this.monthDates[this.leavePeriod.startMonth?.id]??[]).map((e=>({id:e,label:String(e).padStart(2,"0")})))},endDay(){const e=this.leavePeriod.startMonth?.id,t=this.leavePeriod.startDay?.id,o=(new Date).getFullYear();if(e&&t){const a=(0,oe.Z)(new Date(o,e-1,t),364),l=a.getFullYear()>o;return ie(a,"LLLL dd",{locale:this.locale})+(l?` (${this.$t("leave.following_year")})`:"")}return"-"}},watch:{"leavePeriod.startMonth":function(){this.leavePeriod.startDay=this.dates.length>0?this.dates[0]:null}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET"}).then((e=>{const{data:t,meta:o}=e.data;this.updateLeavePeriodModel(t),this.defineLeavePeriod(o),this.resetLeavePeriod()})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{startMonth:this.leavePeriod.startMonth?.id,startDay:this.leavePeriod.startDay?.id}}).then((e=>{const{data:t,meta:o}=e.data;return this.updateLeavePeriodModel(t),this.defineLeavePeriod(o),this.resetLeavePeriod(),this.$toast.saveSuccess()})).then((()=>{this.isLoading=!1,this.leavePeriodDefined||A()}))},onClickReset(){this.resetLeavePeriod()},resetLeavePeriod(){this.leavePeriod.startMonth=Mk.startMonth,this.$nextTick((()=>{this.leavePeriod.startDay=Mk.startDay}))},updateLeavePeriodModel(e){Mk.startMonth=this.months.find((t=>t.id===e.startMonth)),this.$nextTick((()=>{Mk.startDay=this.dates.find((t=>t.id===e.startDay))}))},defineLeavePeriod(e){if(!0===e.leavePeriodDefined){this.leavePeriodDefined=e.leavePeriodDefined;const t=ie(re(e.currentLeavePeriod.startDate),this.jsDateFormat,{locale:this.locale}),o=ie(re(e.currentLeavePeriod.endDate),this.jsDateFormat,{locale:this.locale});this.leavePeriod.currentPeriod=`${t} ${this.$t("general.to").toLowerCase()} ${o}`}else this.leavePeriodDefined=!1}}};const jk=(0,r.Z)(Fk,[["render",qk],["__scopeId","data-v-36501732"]]);var zk=jk;const Rk={class:"orangehrm-background-container"},Ok={class:"orangehrm-card-container"};function Gk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("leave-conflict"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("leave-balance"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("date-input"),v=(0,a.resolveComponent)("leave-duration-input"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Rk,[n.showLeaveConflict?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,"workshift-exceeded":n.isWorkShiftExceeded,data:n.leaveConflictData},null,8,["workshift-exceeded","data"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",Ok,[(0,a.createVNode)(s,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.apply_leave")),1)])),_:1}),(0,a.createVNode)(d),n.isLoading||0!==n.leaveTypes.length?((0,a.openBlock)(),(0,a.createBlock)(b,{key:1,ref:"formRef",loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.leave.type,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leave.type=e),type:"select",rules:n.rules.type,options:n.leaveTypes,label:e.$t("leave.leave_type"),required:""},null,8,["modelValue","rules","options","label"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"leave-data":n.leave},null,8,["leave-data"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.leave.fromDate,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leave.fromDate=e),label:e.$t("general.from_date"),rules:n.rules.fromDate,years:n.yearsArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.leave.toDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leave.toDate=e),label:e.$t("general.to_date"),rules:n.rules.toDate,years:n.yearsArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1})])),_:1})])),_:1}),1==r.appliedLeaveDuration?((0,a.openBlock)(),(0,a.createBlock)(h,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{duration:n.leave.duration.type,"onUpdate:duration":t[3]||(t[3]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[4]||(t[4]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[5]||(t[5]=e=>n.leave.duration.toTime=e),label:e.$t("general.duration"),"work-shift":o.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),r.appliedLeaveDuration>1?((0,a.openBlock)(),(0,a.createBlock)(h,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.leave.partialOptions,"onUpdate:modelValue":t[6]||(t[6]=e=>n.leave.partialOptions=e),type:"select",label:e.$t("leave.partial_days"),options:n.partialOptions},null,8,["modelValue","label","options"])])),_:1}),r.showDuration?((0,a.openBlock)(),(0,a.createBlock)(v,{key:0,duration:n.leave.duration.type,"onUpdate:duration":t[7]||(t[7]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[8]||(t[8]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[9]||(t[9]=e=>n.leave.duration.toTime=e),partial:!0,label:e.$t("general.duration"),"work-shift":o.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0),r.showStartDay?((0,a.openBlock)(),(0,a.createBlock)(v,{key:1,duration:n.leave.duration.type,"onUpdate:duration":t[10]||(t[10]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[11]||(t[11]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[12]||(t[12]=e=>n.leave.duration.toTime=e),partial:!0,label:e.$t("leave.start_day"),"work-shift":o.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0),r.showEndDay?((0,a.openBlock)(),(0,a.createBlock)(v,{key:2,duration:n.leave.endDuration.type,"onUpdate:duration":t[13]||(t[13]=e=>n.leave.endDuration.type=e),fromTime:n.leave.endDuration.fromTime,"onUpdate:fromTime":t[14]||(t[14]=e=>n.leave.endDuration.fromTime=e),toTime:n.leave.endDuration.toTime,"onUpdate:toTime":t[15]||(t[15]=e=>n.leave.endDuration.toTime=e),partial:!0,label:e.$t("leave.end_day"),"work-shift":o.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.leave.comment,"onUpdate:modelValue":t[16]||(t[16]=e=>n.leave.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{label:e.$t("general.apply")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])):((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.no_leave_types_with_leave_balance")),1)])),_:1}))])])}function Zk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("time-range"),c=(0,a.resolveComponent)("oxd-text"),m=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,{style:{"grid-column-start":"1"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,(0,a.mergeProps)({type:"select"},e.$attrs,{options:r.options,"model-value":o.duration,rules:n.rules.duration,"show-empty-selector":o.partial,required:o.partial,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:duration",t))}),null,16,["options","model-value","rules","show-empty-selector","required"])])),_:1}),o.duration&&4===o.duration.id?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(d,{rules:n.rules,"from-time":o.fromTime,"to-time":o.toTime,"work-shift":o.workShift,"onUpdate:fromTime":t[1]||(t[1]=t=>e.$emit("update:fromTime",t)),"onUpdate:toTime":t[2]||(t[2]=t=>e.$emit("update:toTime",t))},null,8,["rules","from-time","to-time","work-shift"]),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{label:e.$t("general.duration")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-leave-duration",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.selectedTimeDuration),1)])),_:1})])),_:1},8,["label"])])),_:1})],64)):(0,a.createCommentVNode)("",!0)],64)}function Qk(e,t,o,l,n,r){const i=(0,a.resolveComponent)("time-input"),s=(0,a.resolveComponent)("oxd-grid-item");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:e.$t("general.from"),"model-value":o.fromTime,rules:o.rules.fromTime,required:"","onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:fromTime",t))},null,8,["label","model-value","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:e.$t("general.to"),"model-value":o.toTime,rules:o.rules.toTime,required:"","onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:toTime",t))},null,8,["label","model-value","rules"])])),_:1})],64)}var Hk={name:"TimeRange",inheritAttrs:!1,props:{fromTime:{type:String,required:!1,default:null},toTime:{type:String,required:!1,default:null},rules:{type:Object,required:!0,default:()=>({})},workShift:{type:Object,required:!0,default:()=>({})}},emits:["update:fromTime","update:toTime"],mounted(){this.workShift?.startTime&&this.$emit("update:fromTime",this.workShift.startTime),this.workShift?.endTime&&this.$emit("update:toTime",this.workShift.endTime)}};const Wk=(0,r.Z)(Hk,[["render",Qk]]);var Yk=Wk,Jk={name:"LeaveDurationInput",components:{"time-range":Yk},inheritAttrs:!1,props:{duration:{type:Object,required:!1,default:()=>null},fromTime:{type:String,required:!1,default:null},toTime:{type:String,required:!1,default:null},partial:{type:Boolean,default:!1},workShift:{type:Object,required:!0,default:()=>({})}},emits:["update:fromTime","update:toTime","update:duration"],data(){return{rules:{duration:[jt],fromTime:[jt,Gt,uo((()=>this.toTime),this.$t("general.from_time_should_be_before_to_time"))],toTime:[jt,Gt,lo((()=>this.fromTime),this.$t("general.to_time_should_be_after_from_time")),e=>{if(e){const t=ge(this.workShift.startTime,this.workShift.endTime),o=ge(this.fromTime,e);if(o>t)return this.$t("leave.duration_should_be_less_than_work_shift_length")}return!0}]}}},computed:{selectedTimeDuration(){const e=ge(this.fromTime,this.toTime);return(e/3600).toFixed(2)},options(){const e=[{id:1,label:this.$t("leave.full_day"),key:"full_day"},{id:2,label:this.$t("leave.half_day_morning"),key:"half_day_morning"},{id:3,label:this.$t("leave.half_day_evening"),key:"half_day_afternoon"},{id:4,label:this.$t("leave.specify_time"),key:"specify_time"}];return this.partial?e.filter((e=>1!=e.id)):e}}};const Xk=(0,r.Z)(Jk,[["render",Zk],["__scopeId","data-v-75ca43d6"]]);var Kk=Xk;const eS={class:"orangehrm-leave-balance"};function tS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-label"),s=(0,a.resolveComponent)("oxd-icon-button"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-input-group");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(c,null,{label:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",eS,[(0,a.createVNode)(i,{label:e.$t("leave.leave_balance")},null,8,["label"]),o.leaveData.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"--help",name:"question-circle","with-container":!1,onClick:l.onModalOpen},null,8,["onClick"])):(0,a.createCommentVNode)("",!0)])])),default:(0,a.withCtx)((()=>[e.balance>=0?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.leaveBalance),1)])),_:1})):((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,class:"orangehrm-leave-balance-text --error",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.balance_not_sufficient")),1)])),_:1}))])),_:1}),e.showModal?((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(l.leaveBalanceModal),{key:0,data:e.data,meta:e.meta,onClose:l.onModalClose},null,40,["data","meta","onClose"])):(0,a.createCommentVNode)("",!0)],64)}const oS={class:"orangehrm-dialog-header-container"},aS={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"},lS={class:"orangehrm-container"},nS={class:"orangehrm-horizontal-padding orangehrm-vertical-padding"};function rS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-card-table"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(g,{gutters:!1,class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",oS,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.leave_balance_details")),1)])),_:1}),(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.as_of_date"))+" - "+(0,a.toDisplayString)(r.asAtDate),1)])),_:1})]),(0,a.createVNode)(s,{class:"orangehrm-dialog-horizontal-margin orangehrm-clear-margins"}),(0,a.createElementVNode)("div",aS,[(0,a.createVNode)(m,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.employee_name")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.employeeName),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{class:"--offset-column-1",label:e.$t("leave.leave_type")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.leaveType),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("leave.total_entitlement")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.totalEntitlement),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("leave.balance")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.leaveBalance),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})]),(0,a.createElementVNode)("div",lS,[(0,a.createVNode)(u,{headers:n.headers,items:r.items,clickable:!1,class:"orangehrm-horizontal-padding","row-decorator":"oxd-table-decorator-card"},null,8,["headers","items"])]),(0,a.createElementVNode)("div",nS,[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{type:"submit","display-type":"secondary",label:e.$t("general.ok"),onClick:r.onCancel},null,8,["label","onClick"])])),_:1})])])),_:1},8,["onUpdate:show"])}var iS={name:"LeaveBalanceModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>null},meta:{type:Object,default:()=>null}},emits:["close"],setup(){const{jsDateFormat:e}=R(),{locale:t}=De();return{locale:t,jsDateFormat:e}},data(){return{headers:[{title:this.$t("leave.leave_status"),name:"status",slot:"left",style:{flex:1}},{title:this.$t("leave.days"),name:"days",slot:"right",style:{flex:1,textAlign:"right",justifyContent:"flex-end"}}]}},computed:{items(){if(this.data){const{taken:e,scheduled:t,pending:o}=this.data;return[{status:this.$t("leave.taken"),days:e.toFixed(2)},{status:this.$t("leave.scheduled"),days:t.toFixed(2)},{status:this.$t("leave.pending_approval"),days:o.toFixed(2)}]}return[]},asAtDate(){return ie(re(this.data?.asAtDate),this.jsDateFormat,{locale:this.locale})},leaveType(){return this.meta?.leaveType?.name},employeeName(){const e=this.meta?.employee;return e?`${e.firstName} ${e.lastName}\n ${e.terminationId?this.$t("general.past_employee"):""}`:""},totalEntitlement(){return this.data?.entitled?`${parseFloat(this.data.entitled).toFixed(2)} Day(s)`:"0.00 Day(s)"},leaveBalance(){return this.data?.balance?`${parseFloat(this.data.balance).toFixed(2)} Day(s)`:"0.00 Day(s)"}},methods:{onCancel(){this.$emit("close",!0)}}};const sS=(0,r.Z)(iS,[["render",rS],["__scopeId","data-v-a21fbcb8"]]);var dS=sS;const cS={class:"orangehrm-dialog-header-container"},mS={class:"orangehrm-dialog-horizontal-padding orangehrm-dialog-vertical-padding"},uS={class:"orangehrm-container"},pS={class:"orangehrm-dialog-horizontal-padding orangehrm-dialog-vertical-padding"};function hS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-card-table"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(g,{gutters:!1,class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",cS,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.insufficient_leave_balance")),1)])),_:1})]),(0,a.createVNode)(s,{class:"orangehrm-dialog-horizontal-margin orangehrm-clear-margins"}),(0,a.createElementVNode)("div",mS,[(0,a.createVNode)(m,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.employee_name")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.employeeName),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("leave.leave_type")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.leaveType),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("leave.balance")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-balance-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.leaveBalance),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})]),(0,a.createElementVNode)("div",uS,[(0,a.createVNode)(u,{headers:n.headers,items:r.items,clickable:!1,class:"orangehrm-horizontal-padding","row-decorator":"oxd-table-decorator-card"},null,8,["headers","items"])]),(0,a.createElementVNode)("div",pS,[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{type:"submit","display-type":"secondary",label:e.$t("general.ok"),onClick:r.onCancel},null,8,["label","onClick"])])),_:1})])])),_:1},8,["onUpdate:show"])}var gS={name:"LeaveBalanceInsufficientModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Array,required:!0},meta:{type:Object,default:()=>null}},emits:["close"],setup(){const{jsDateFormat:e}=R(),{locale:t}=De();return{locale:t,jsDateFormat:e}},data(){return{headers:[{title:this.$t("leave.leave_period"),name:"period",style:{flex:1}},{title:this.$t("general.date"),name:"date",style:{flex:1}},{title:this.$t("leave.available_balance"),name:"balance",style:{flex:1}}]}},computed:{items(){if(this.data.length>0){const e=this.data.map((e=>e.period));return e.flatMap(((e,t)=>this.data[t].leaves.map((t=>{const o=ie(re(e.startDate),this.jsDateFormat,{locale:this.locale}),a=ie(re(e.endDate),this.jsDateFormat,{locale:this.locale}),l=ie(re(t.date),this.jsDateFormat,{locale:this.locale});return{period:`${o} - ${a}`,date:l,balance:t.status?.name||t.balance.toFixed(2)}}))))}return[]},leaveType(){return this.meta?.leaveType?.name},employeeName(){const e=this.meta?.employee;return e?`${e.firstName} ${e.lastName}\n ${e.terminationId?this.$t("general.past_employee"):""}`:""},leaveBalance(){return this.data[0]?.balance?`${parseFloat(this.data[0].balance.balance).toFixed(2)} Day(s)`:"0.00 Day(s)"}},methods:{onCancel(){this.$emit("close",!0)}}};const vS=(0,r.Z)(gS,[["render",hS],["__scopeId","data-v-94b8006c"]]);var fS=vS;function yS(e){const t=e=>{const t={leaveTypeId:e.type?e.type.id:1,fromDate:e.fromDate?e.fromDate:"",toDate:e.toDate?e.toDate:"",comment:""===e.comment?null:e.comment,empNumber:e.employee?e.employee.id:void 0};if(e.duration.type){const o={type:e.duration.type?.key};"specify_time"===o.type&&(e.duration.fromTime&&(o.fromTime=e.duration.fromTime),e.duration.toTime&&(o.toTime=e.duration.toTime)),t.duration=o}const o=he(t.fromDate,t.toDate);if(o>1&&e.partialOptions&&(t.partialOption=e.partialOptions.key,e.endDuration.type)){const o={type:e.endDuration.type.key};e.endDuration.fromTime&&(o.fromTime=e.endDuration.fromTime),e.endDuration.toTime&&(o.toTime=e.endDuration.toTime),"start_end"===t.partialOption?t.endDuration=o:"end"===t.partialOption&&(t.duration=o)}return"specify_time"!==t.duration?.type&&(t.duration?.fromTime||t.duration?.toTime)&&(t.duration.fromTime=void 0,t.duration.toTime=void 0),"specify_time"!==t.endDuration?.type&&(t.endDuration?.fromTime||t.endDuration?.toTime)&&(t.endDuration.fromTime=void 0,t.endDuration.toTime=void 0),t},o=e=>{const t={fromDate:void 0,toDate:void 0,partialOption:void 0,empNumber:e.employee?.id};if(e.duration.type&&(t["duration[type]"]=e.duration.type.key,"specify_time"===t["duration[type]"]&&(e.duration.fromTime&&(t["duration[fromTime]"]=e.duration.fromTime),e.duration.toTime&&(t["duration[toTime]"]=e.duration.toTime))),e.fromDate&&e.toDate){t.fromDate=e.fromDate,t.toDate=e.toDate;const o=he(e.fromDate,e.toDate);o>1&&e.partialOptions&&(t.partialOption=e.partialOptions.key,e.endDuration.type&&("start_end"===t.partialOption?(t["endDuration[type]"]=e.endDuration.type.key,e.endDuration.fromTime&&(t["endDuration[fromTime]"]=e.endDuration.fromTime),e.endDuration.toTime&&(t["endDuration[toTime]"]=e.endDuration.toTime)):"end"===t.partialOption&&(t["duration[type]"]=e.endDuration.type.key,e.endDuration.fromTime&&(t["duration[fromTime]"]=e.endDuration.fromTime),e.endDuration.toTime&&(t["duration[toTime]"]=e.endDuration.toTime))))}return"specify_time"!==t["duration[type]"]&&(t["duration[fromTime]"]||t["duration[toTime]"])&&(t["duration[fromTime]"]=void 0,t["duration[toTime]"]=void 0),"specify_time"!==t["endDuration[type]"]&&(t["endDuration[fromTime]"]||t["endDuration[toTime]"])&&(t["endDuration[fromTime]"]=void 0,t["endDuration[toTime]"]=void 0),t},a=t=>new Promise(((a,l)=>{e.request({method:"GET",url:"/api/v2/leave/overlap-leaves",params:o(t)}).then((e=>{const{data:t,meta:o}=e.data;Array.isArray(t)&&t.length>0?a({isConflict:!0,isOverWorkshift:!0===o.isWorkShiftLengthExceeded,data:t}):a({isConflict:!1,isOverWorkshift:!1,data:[]})})).catch((e=>{l(e)}))})),l=t=>new Promise(((a,l)=>{e.request({method:"GET",url:`/api/v2/leave/leave-balance/leave-type/${t.type?.id}`,params:o(t)}).then((e=>{let t=0,o=null,l=null;if(200===e.status){const{data:a,meta:n}=e.data;l=n,a.balance?(o=a.balance,t=a.balance?.balance):a.breakdown&&!1===a.negative?(o=a.breakdown[0].balance,t=a.breakdown[0].balance?.balance):a.breakdown&&!0===a.negative?(o=a.breakdown,t=-1):(o=null,t=0)}a({balance:t,breakdown:o,metaData:l})})).catch((e=>{l(e)}))}));return{serializeBody:t,serializeParams:o,validateLeaveBalance:l,validateOverlapLeaves:a}}var CS={name:"LeaveBalance",components:{"oxd-label":q.OxdLabel,"leave-balance-modal":dS,"leave-balance-insufficient-modal":fS},inheritAttrs:!1,props:{leaveData:{type:Object,default:()=>({})}},setup(e){const t=(0,a.reactive)({data:null,meta:null,balance:0,showModal:!1}),o=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-balance/leave-type");o.setIgnorePath("/api/v2/leave/leave-balance/leave-type");const{validateLeaveBalance:l}=yS(o),n=(0,a.computed)((()=>e.leaveData.type?.id?`${t.balance.toFixed(2)} Day(s)`:"0.00 Day(s)")),r=()=>{t.showModal=!0},i=()=>{t.showModal=!1},s=(0,a.computed)((()=>Array.isArray(t.data)?"leave-balance-insufficient-modal":"leave-balance-modal"));return(0,a.watchPostEffect)((async()=>{e.leaveData.type?.id&&l(e.leaveData).then((({balance:e,breakdown:o,metaData:a})=>{t.balance=e,o&&(t.data=o),a&&(t.meta=a)})).catch((()=>{t.data=null,t.meta=null,t.balance=0}))})),{...(0,a.toRefs)(t),leaveBalance:n,onModalOpen:r,onModalClose:i,leaveBalanceModal:s}}};const bS=(0,r.Z)(CS,[["render",tS],["__scopeId","data-v-56c2fc4a"]]);var VS=bS;const xS={class:"orangehrm-paper-container"},wS={class:"orangehrm-header-container"},NS={class:"orangehrm-container"},_S=(0,a.createElementVNode)("div",{class:"orangehrm-bottom-container"},null,-1),kS=(0,a.createElementVNode)("br",null,null,-1);function SS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",xS,[(0,a.createElementVNode)("div",wS,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.header),1)])),_:1})]),(0,a.createVNode)(s,{loading:!1,selected:0,total:o.data.length},null,8,["total"]),(0,a.createElementVNode)("div",NS,[(0,a.createVNode)(d,{headers:n.headers,items:r.items,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items"])]),_S]),kS],64)}var DS={name:"LeaveConflict",props:{workshiftExceeded:{type:Boolean,default:!1},data:{type:Array,required:!0}},setup(){const{jsDateFormat:e}=R(),{locale:t}=De();return{locale:t,jsDateFormat:e}},data(){return{headers:[{name:"date",title:this.$t("general.date"),style:{flex:1}},{name:"hours",title:this.$t("leave.no_of_hours"),style:{flex:1}},{name:"type",title:this.$t("leave.leave_type"),style:{flex:1}},{name:"status",title:this.$t("general.status"),style:{flex:1}},{name:"comments",title:this.$t("general.comments"),style:{flex:1}}]}},computed:{header(){return this.workshiftExceeded?this.$t("leave.workshift_length_exceeded_due_to_the_following_leave_request"):this.$t("leave.overlapping_leave_request_found")},items(){return this.data.map((e=>({date:ie(re(e.date),this.jsDateFormat,{locale:this.locale}),hours:parseFloat(e.lengthHours).toFixed(2),type:e.leaveType?.name,status:e.status?.name,comments:e.lastComment?.comment})))}}};const $S=(0,r.Z)(DS,[["render",SS]]);var ES=$S;const TS={type:null,fromDate:null,toDate:null,comment:"",partialOptions:null,duration:{type:null,fromTime:null,toTime:null},endDuration:{type:null,fromTime:null,toTime:null}};var BS={name:"LeaveApply",components:{"leave-duration-input":Kk,"leave-balance":VS,"leave-conflict":ES},props:{workShift:{type:Object,default:()=>({})}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-requests"),{serializeBody:t,validateOverlapLeaves:o}=yS(e),{formRef:a,reset:l}=$c(),{userDateFormat:n}=R();return{http:e,reset:l,formRef:a,serializeBody:t,userDateFormat:n,validateOverlapLeaves:o}},data(){return{isLoading:!1,leave:{...TS},rules:{type:[jt],fromDate:[jt,Rt(this.userDateFormat)],toDate:[jt,Rt(this.userDateFormat),eo((()=>this.leave.fromDate),this.$t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})],comment:[zt(250)]},partialOptions:[{id:1,label:this.$t("leave.all_days"),key:"all"},{id:2,label:this.$t("leave.start_day_only"),key:"start"},{id:3,label:this.$t("leave.end_day_only"),key:"end"},{id:4,label:this.$t("leave.start_and_end_day"),key:"start_end"}],showLeaveConflict:!1,isWorkShiftExceeded:!1,leaveConflictData:null,yearsArray:[...wf()],leaveTypes:[]}},computed:{appliedLeaveDuration(){return he(this.leave.fromDate,this.leave.toDate)},showDuration(){const e=this.leave.partialOptions?.id;return e&&1===e},showStartDay(){const e=this.leave.partialOptions?.id;return e&&(2===e||4===e)},showEndDay(){const e=this.leave.partialOptions?.id;return e&&(3===e||4===e)}},watch:{appliedLeaveDuration:function(e){this.leave.duration.type=1===e?{id:1,label:"Full Day",key:"full_day"}:null},"leave.fromDate":function(e){e&&!this.leave.toDate&&(this.leave.toDate=e)}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:"/api/v2/leave/leave-types/eligible"}).then((e=>{const{data:t}=e.data;this.leaveTypes=t.map((e=>({id:e.id,label:e.name})))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.showLeaveConflict=!1,this.leaveConflictData=null,this.validateOverlapLeaves(this.leave).then((({isConflict:e,isOverWorkshift:t,data:o})=>e?(this.leaveConflictData=o,this.showLeaveConflict=!0,this.isWorkShiftExceeded=t,Promise.reject()):this.http.create(this.serializeBody(this.leave)))).then((()=>{this.$toast.saveSuccess(),this.reset()})).catch((()=>{this.showLeaveConflict&&this.$toast.warn({title:this.$t("general.warning"),message:this.$t("leave.failed_to_submit")})})).finally((()=>{this.isLoading=!1}))}}};const IS=(0,r.Z)(BS,[["render",Gk]]);var LS=IS;const US={class:"orangehrm-background-container"},AS={class:"orangehrm-card-container"};function PS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("leave-conflict"),s=(0,a.resolveComponent)("leave-assign-confirm-modal"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-divider"),m=(0,a.resolveComponent)("employee-autocomplete"),u=(0,a.resolveComponent)("oxd-grid-item"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("leave-type-dropdown"),v=(0,a.resolveComponent)("leave-balance"),f=(0,a.resolveComponent)("date-input"),y=(0,a.resolveComponent)("leave-duration-input"),C=(0,a.resolveComponent)("oxd-input-field"),b=(0,a.resolveComponent)("required-text"),V=(0,a.resolveComponent)("submit-button"),x=(0,a.resolveComponent)("oxd-form-actions"),w=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",US,[n.showLeaveConflict?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,"workshift-exceeded":n.isWorkShiftExceeded,data:n.leaveConflictData},null,8,["workshift-exceeded","data"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s,{ref:"confirmDialog"},null,512),(0,a.createElementVNode)("div",AS,[(0,a.createVNode)(d,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.assign_leave")),1)])),_:1}),(0,a.createVNode)(c),(0,a.createVNode)(w,{ref:"formRef",loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.leave.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leave.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.leave.type,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leave.type=e),rules:n.rules.type,"eligible-only":!1,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{"leave-data":n.leave},null,8,["leave-data"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{modelValue:n.leave.fromDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leave.fromDate=e),label:e.$t("general.from_date"),rules:n.rules.fromDate,years:n.yearsArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{modelValue:n.leave.toDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.leave.toDate=e),label:e.$t("general.to_date"),rules:n.rules.toDate,years:n.yearsArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1})])),_:1})])),_:1}),1==r.appliedLeaveDuration?((0,a.openBlock)(),(0,a.createBlock)(h,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y,{duration:n.leave.duration.type,"onUpdate:duration":t[4]||(t[4]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[5]||(t[5]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[6]||(t[6]=e=>n.leave.duration.toTime=e),label:e.$t("general.duration"),"work-shift":n.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),r.appliedLeaveDuration>1?((0,a.openBlock)(),(0,a.createBlock)(h,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(C,{modelValue:n.leave.partialOptions,"onUpdate:modelValue":t[7]||(t[7]=e=>n.leave.partialOptions=e),type:"select",label:e.$t("leave.partial_days"),options:n.partialOptions},null,8,["modelValue","label","options"])])),_:1}),r.showDuration?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,duration:n.leave.duration.type,"onUpdate:duration":t[8]||(t[8]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[9]||(t[9]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[10]||(t[10]=e=>n.leave.duration.toTime=e),partial:!0,label:e.$t("general.duration"),"work-shift":n.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0),r.showStartDay?((0,a.openBlock)(),(0,a.createBlock)(y,{key:1,duration:n.leave.duration.type,"onUpdate:duration":t[11]||(t[11]=e=>n.leave.duration.type=e),fromTime:n.leave.duration.fromTime,"onUpdate:fromTime":t[12]||(t[12]=e=>n.leave.duration.fromTime=e),toTime:n.leave.duration.toTime,"onUpdate:toTime":t[13]||(t[13]=e=>n.leave.duration.toTime=e),partial:!0,label:e.$t("leave.start_day"),"work-shift":n.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0),r.showEndDay?((0,a.openBlock)(),(0,a.createBlock)(y,{key:2,duration:n.leave.endDuration.type,"onUpdate:duration":t[14]||(t[14]=e=>n.leave.endDuration.type=e),fromTime:n.leave.endDuration.fromTime,"onUpdate:fromTime":t[15]||(t[15]=e=>n.leave.endDuration.fromTime=e),toTime:n.leave.endDuration.toTime,"onUpdate:toTime":t[16]||(t[16]=e=>n.leave.endDuration.toTime=e),partial:!0,label:e.$t("leave.end_day"),"work-shift":n.workShift},null,8,["duration","fromTime","toTime","label","work-shift"])):(0,a.createCommentVNode)("",!0)])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(C,{modelValue:n.leave.comment,"onUpdate:modelValue":t[17]||(t[17]=e=>n.leave.comment=e),type:"textarea",label:e.$t("general.comments"),rules:n.rules.comment},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(c),(0,a.createVNode)(x,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(b),(0,a.createVNode)(V,{label:e.$t("leave.assign")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const qS={key:0,class:"deleted-tag"};function MS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("leave.leave_type"),options:l.options,"show-empty-selector":o.showEmptySelector},{option:(0,a.withCtx)((({data:t})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(t.label),1),t.isDeleted?((0,a.openBlock)(),(0,a.createElementBlock)("div",qS,(0,a.toDisplayString)(e.$t("general.deleted")),1)):(0,a.createCommentVNode)("",!0)])),_:1},8,["label","options","show-empty-selector"])}var FS={name:"LeaveTypeDropdown",props:{eligibleOnly:{type:Boolean,default:!0},employeeId:{type:Number,required:!1,default:null},showEmptySelector:{type:Boolean,default:!0},includeAllocated:{type:Boolean,default:!1}},setup(e,t){const o=(0,a.ref)([]),l=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-types"+(e.eligibleOnly?"/eligible":""));return(0,a.watchEffect)((async()=>{!e.eligibleOnly&&e.includeAllocated&&console.error("`includeAllocated` prop can true only if `eligibleOnly` prop true"),l.getAll({empNumber:e.employeeId,includeAllocated:!(!e.eligibleOnly||!e.includeAllocated)||void 0,...!1===e.eligibleOnly&&{limit:0}}).then((({data:a})=>{o.value=a.data.map((e=>({id:e.id,label:e.name,isDeleted:e.deleted}))),!e.showEmptySelector&&o.value.length>0&&t.emit("update:modelValue",o.value[0])}))})),{options:o}}};const jS=(0,r.Z)(FS,[["render",MS],["__scopeId","data-v-dcd26948"]]);var zS=jS;const RS={class:"orangehrm-modal-header"},OS={class:"orangehrm-text-center-align"},GS={class:"orangehrm-modal-footer"};function ZS(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,style:{maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",RS,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.confirm_leave_assignment")),1)])),_:1})]),(0,a.createElementVNode)("div",OS,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.employee_does_not_have_enough_balance_for_leave_request"))+" "+(0,a.toDisplayString)(e.$t("leave.click_ok_to_confirm_leave_assignment")),1)])),_:1})]),(0,a.createElementVNode)("div",GS,[(0,a.createVNode)(s,{"display-type":"ghost",class:"orangehrm-button-margin",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{"display-type":"secondary",class:"orangehrm-button-margin",label:e.$t("general.ok"),onClick:r.onConfirm},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var QS={name:"LeaveAssignConfirmModal",components:{"oxd-dialog":q.OxdDialog},data(){return{show:!1,reject:null,resolve:null}},methods:{showDialog(){return new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const HS=(0,r.Z)(QS,[["render",ZS],["__scopeId","data-v-19c585fa"]]);var WS=HS;const YS={employee:null,type:null,fromDate:null,toDate:null,comment:"",partialOptions:null,duration:{type:null,fromTime:null,toTime:null},endDuration:{type:null,fromTime:null,toTime:null}},JS={startTime:"9:00",endTime:"17:00"};var XS={name:"LeaveAssign",components:{"leave-type-dropdown":zS,"leave-duration-input":Kk,"leave-balance":VS,"employee-autocomplete":Va,"leave-conflict":ES,"leave-assign-confirm-modal":WS},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/employees/leave-requests"),{serializeBody:t,validateLeaveBalance:o,validateOverlapLeaves:a}=yS(e),{formRef:l,reset:n}=$c(),{userDateFormat:r}=R();return{http:e,reset:n,formRef:l,serializeBody:t,userDateFormat:r,validateLeaveBalance:o,validateOverlapLeaves:a}},data(){return{isLoading:!1,leave:{...YS},rules:{type:[jt],fromDate:[jt,Rt(this.userDateFormat)],toDate:[jt,Rt(this.userDateFormat),eo((()=>this.leave.fromDate),this.$t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})],comment:[zt(250)],employee:[jt,xo]},partialOptions:[{id:1,label:this.$t("leave.all_days"),key:"all"},{id:2,label:this.$t("leave.start_day_only"),key:"start"},{id:3,label:this.$t("leave.end_day_only"),key:"end"},{id:4,label:this.$t("leave.start_and_end_day"),key:"start_end"}],showLeaveConflict:!1,isWorkShiftExceeded:!1,leaveConflictData:null,yearsArray:[...wf()],workShift:{...JS}}},computed:{appliedLeaveDuration(){return he(this.leave.fromDate,this.leave.toDate)},showDuration(){const e=this.leave.partialOptions?.id;return e&&1===e},showStartDay(){const e=this.leave.partialOptions?.id;return e&&(2===e||4===e)},showEndDay(){const e=this.leave.partialOptions?.id;return e&&(3===e||4===e)}},watch:{"leave.employee":function(e){e?.id?this.http.request({method:"GET",url:`/api/v2/pim/employees/${e.id}/work-shift`}).then((e=>{const{data:t}=e.data;this.workShift=t})):this.workShift={...JS}},appliedLeaveDuration:function(e){this.leave.duration.type=1===e?{id:1,label:"Full Day",key:"full_day"}:null},"leave.fromDate":function(e){e&&!this.leave.toDate&&(this.leave.toDate=e)}},methods:{onSave(){this.isLoading=!0,this.leaveConflictData=null,this.showLeaveConflict=!1,this.validateLeaveBalance(this.leave).then((async({balance:e})=>{if(e<=0){const e=await this.$refs.confirmDialog.showDialog();if("ok"!==e)return Promise.reject()}return this.validateOverlapLeaves(this.leave)})).then((({isConflict:e,isOverWorkshift:t,data:o})=>e?(this.leaveConflictData=o,this.showLeaveConflict=!0,this.isWorkShiftExceeded=t,Promise.reject()):this.http.create(this.serializeBody(this.leave)))).then((()=>{this.$toast.saveSuccess(),this.reset()})).catch((()=>{this.showLeaveConflict&&this.$toast.warn({title:this.$t("general.warning"),message:this.$t("leave.failed_to_submit")})})).finally((()=>{this.isLoading=!1}))}}};const KS=(0,r.Z)(XS,[["render",PS]]);var eD=KS;const tD={class:"orangehrm-background-container"},oD={class:"orangehrm-paper-container"},aD={class:"orangehrm-header-container"},lD={class:"orangehrm-container"},nD={class:"orangehrm-bottom-container"};function rD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",tD,[(0,a.createElementVNode)("div",oD,[(0,a.createElementVNode)("div",aD,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.leave_types")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",lD,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),loading:l.isLoading,headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","loading","headers","items"])]),(0,a.createElementVNode)("div",nD,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var iD={components:{"delete-confirmation":Et},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-types"),{showPaginator:t,currentPage:o,total:a,pages:l,pageSize:n,response:r,isLoading:i,execQuery:s}=wt(e);return{http:e,showPaginator:t,currentPage:o,isLoading:i,total:a,pages:l,pageSize:n,execQuery:s,items:r}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:6}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/leave/defineLeaveType")},onClickEdit(e){U("/leave/defineLeaveType/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const sD=(0,r.Z)(iD,[["render",rD]]);var dD=sD;const cD={class:"orangehrm-background-container"},mD={class:"orangehrm-card-container"},uD={class:"label-is-entitlement-situational"};function pD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-label"),u=(0,a.resolveComponent)("oxd-icon-button"),p=(0,a.resolveComponent)("oxd-input-group"),h=(0,a.resolveComponent)("oxd-grid-item"),g=(0,a.resolveComponent)("oxd-grid"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("entitlement-situational-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",cD,[(0,a.createElementVNode)("div",mD,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.edit_leave_type")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveType.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leaveType.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{classes:{wrapper:"--status-grouped-field"}},{label:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",uD,[(0,a.createVNode)(m,{label:e.$t("leave.is_entitlement_situational")},null,8,["label"]),(0,a.createVNode)(u,{class:"--help",name:"exclamation-circle","with-container":!1,onClick:r.onModalOpen},null,8,["onClick"])])])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveType.situational,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leaveType.situational=e),type:"radio","option-label":e.$t("general.yes"),value:!0},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.leaveType.situational,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leaveType.situational=e),type:"radio","option-label":e.$t("general.no"),value:!1},null,8,["modelValue","option-label"])])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"]),n.showModal?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,onClose:r.onModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)])])}const hD={class:"orangehrm-modal-header"},gD={class:"orangehrm-text-center-align"},vD={class:"orangehrm-modal-footer"};function fD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-form-actions"),c=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(c,{class:"orangehrm-dialog-popup","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",hD,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.situational_leave")),1)])),_:1})]),(0,a.createElementVNode)("div",gD,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.entitlement_situational_description")),1)])),_:1})]),(0,a.createElementVNode)("div",vD,[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{type:"submit","display-type":"secondary",label:e.$t("general.ok"),onClick:r.onCancel},null,8,["label","onClick"])])),_:1})])])),_:1},8,["onUpdate:show"])}var yD={name:"EntitlementSituationalModal",components:{"oxd-dialog":q.OxdDialog},emits:["close"],methods:{onCancel(){this.$emit("close",!0)}}};const CD=(0,r.Z)(yD,[["render",fD],["__scopeId","data-v-68838f5c"]]);var bD=CD;const VD={id:"",name:"",situational:""};var xD={components:{"oxd-label":q.OxdLabel,"entitlement-situational-modal":bD},props:{leaveTypeId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-types");return{http:e}},data(){return{showModal:!1,isLoading:!1,leaveType:{...VD},rules:{name:[jt,zt(50)]}}},created(){this.isLoading=!0,this.http.get(this.leaveTypeId).then((e=>{const{data:t}=e.data;return this.leaveType.id=t.id,this.leaveType.name=t.name,this.leaveType.situational=t.situational,this.http.getAll()})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e));if(o>-1){const{id:e}=t[o];return e==this.leaveTypeId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.leaveTypeId,{name:this.leaveType.name,situational:this.leaveType.situational}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/leave/leaveTypeList")},onModalOpen(){this.showModal=!0},onModalClose(){this.showModal=!1}}};const wD=(0,r.Z)(xD,[["render",pD],["__scopeId","data-v-a7f7cce0"]]);var ND=wD;const _D={class:"orangehrm-background-container"},kD={class:"orangehrm-card-container"},SD={class:"label-is-entitlement-situational"};function DD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-label"),u=(0,a.resolveComponent)("oxd-icon-button"),p=(0,a.resolveComponent)("oxd-input-group"),h=(0,a.resolveComponent)("oxd-grid-item"),g=(0,a.resolveComponent)("oxd-grid"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("entitlement-situational-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",_D,[(0,a.createElementVNode)("div",kD,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.add_leave_type")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveType.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leaveType.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{classes:{wrapper:"--status-grouped-field"}},{label:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",SD,[(0,a.createVNode)(m,{label:e.$t("leave.is_entitlement_situational")},null,8,["label"]),(0,a.createVNode)(u,{class:"--help",name:"exclamation-circle","with-container":!1,onClick:r.onModalOpen},null,8,["onClick"])])])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveType.situational,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leaveType.situational=e),type:"radio","option-label":e.$t("general.yes"),value:!0},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.leaveType.situational,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leaveType.situational=e),type:"radio","option-label":e.$t("general.no"),value:!1},null,8,["modelValue","option-label"])])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"]),n.showModal?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,onClose:r.onModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)])])}const $D={id:"",name:"",situational:!1};var ED={components:{"oxd-label":q.OxdLabel,"entitlement-situational-modal":bD},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-types");return{http:e}},data(){return{showModal:!1,isLoading:!1,leaveType:{...$D},rules:{name:[jt,zt(50)]},errors:[]}},created(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.leaveType.name,situational:this.leaveType.situational}).then((()=>this.$toast.saveSuccess())).then((()=>{this.leaveType={...$D},this.onCancel()}))},onCancel(){U("/leave/leaveTypeList")},onModalOpen(){this.showModal=!0},onModalClose(){this.showModal=!1}}};const TD=(0,r.Z)(ED,[["render",DD],["__scopeId","data-v-3acf3120"]]);var BD=TD;const ID={class:"orangehrm-background-container"},LD={class:"orangehrm-card-container"};function UD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-input-group"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("employee-autocomplete"),g=(0,a.resolveComponent)("leave-type-dropdown"),v=(0,a.resolveComponent)("leave-period-dropdown"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form"),x=(0,a.resolveComponent)("entitlement-update-modal"),w=(0,a.resolveComponent)("entitlement-bulk-update-modal"),N=(0,a.resolveComponent)("entitlement-no-match-modal");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ID,[(0,a.createElementVNode)("div",LD,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.add_leave_entitlement")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{label:e.$t("leave.add_to"),classes:{wrapper:"--grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.bulkAssign,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leaveEntitlement.bulkAssign=e),type:"radio","option-label":e.$t("leave.individual_employee"),value:"0"},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.bulkAssign,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leaveEntitlement.bulkAssign=e),type:"radio","option-label":e.$t("leave.multiple_employees"),value:"1"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),0==n.leaveEntitlement.bulkAssign?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.leaveEntitlement.employee,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leaveEntitlement.employee=e),params:{includeEmployees:"currentAndPast"},rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1})):((0,a.openBlock)(),(0,a.createBlock)(p,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.location,"onUpdate:modelValue":t[3]||(t[3]=e=>n.leaveEntitlement.location=e),type:"select",label:e.$t("general.location"),options:o.locations},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.subunit,"onUpdate:modelValue":t[4]||(t[4]=e=>n.leaveEntitlement.subunit=e),type:"select",label:e.$t("general.sub_unit"),options:o.subunits},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-leave-entitled"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-entitled-text",type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.matches_emp_count_employees",{empMatchCount:n.empMatchCount})),1)])),_:1})])),_:1})])),_:1})])),_:1})),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.leaveEntitlement.leaveType,"onUpdate:modelValue":t[5]||(t[5]=e=>n.leaveEntitlement.leaveType=e),"empty-text":e.$t("leave.no_leave_types_defined"),rules:n.rules.leaveType,"eligible-only":!1,required:""},null,8,["modelValue","empty-text","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{modelValue:n.leaveEntitlement.leavePeriod,"onUpdate:modelValue":t[6]||(t[6]=e=>n.leaveEntitlement.leavePeriod=e),rules:n.rules.leavePeriod,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.entitlement,"onUpdate:modelValue":t[7]||(t[7]=e=>n.leaveEntitlement.entitlement=e),rules:n.rules.entitlement,label:e.$t("leave.entitlement"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(C)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(x,{ref:"updateModal",data:n.leaveEntitlement},null,8,["data"]),(0,a.createVNode)(w,{ref:"bulkUpdateModal",data:n.leaveEntitlement},null,8,["data"]),(0,a.createVNode)(N,{ref:"noMatchModal"},null,512)])}function AD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("leave.leave_period"),options:l.options,"model-value":l.selectedPeriod,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t))},null,8,["label","options","model-value"])}var PD={name:"LeavePeriodDropdown",props:{modelValue:{type:Object,default:null}},emits:["update:modelValue"],setup(e){const t=(0,a.ref)([]),o=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-periods"),{jsDateFormat:l}=R(),{locale:n}=De();(0,a.onBeforeMount)((()=>{o.getAll().then((({data:e})=>{t.value=e.data.map((e=>{const t=ie(re(e.startDate),l,{locale:n}),o=ie(re(e.endDate),l,{locale:n});return{id:`${e.startDate}_${e.endDate}`,label:`${t} - ${o}`,startDate:e.startDate,endDate:e.endDate}}))}))}));const r=(0,a.computed)((()=>t.value.find((t=>t.id===e.modelValue?.id))));return{options:t,selectedPeriod:r}}};const qD=(0,r.Z)(PD,[["render",AD]]);var MD=qD;const FD={class:"orangehrm-modal-header"},jD={class:"orangehrm-text-center-align"},zD={class:"orangehrm-modal-footer"};function RD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,style:{maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",FD,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.updating_entitlement")),1)])),_:1})]),(0,a.createElementVNode)("div",jD,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.entitlement_value_confirmation_message",{oldvalue:n.current,newvalue:n.updateAs})),1)])),_:1})]),(0,a.createElementVNode)("div",zD,[(0,a.createVNode)(s,{"display-type":"ghost",class:"orangehrm-button-margin",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{"display-type":"secondary",class:"orangehrm-button-margin",label:e.$t("general.confirm"),onClick:r.onConfirm},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var OD={name:"EntitlementUpdateModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"");return{http:e}},data(){return{show:!1,reject:null,resolve:null,current:"0.00",updateAs:"0.00"}},methods:{showDialog(){return this.http.request({method:"GET",url:`/api/v2/leave/employees/${this.data.employee?.id}/leave-entitlements`,params:{leaveTypeId:this.data.leaveType?.id,fromDate:this.data.leavePeriod?.startDate,toDate:this.data.leavePeriod?.endDate,entitlement:this.data.entitlement}}).then((e=>{const{data:t}=e.data;return this.current=t.entitlement?.current?parseFloat(t.entitlement.current).toFixed(2):"0.00",this.updateAs=t.entitlement?.updateAs?parseFloat(t.entitlement.updateAs).toFixed(2):"0.00",new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))}))},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const GD=(0,r.Z)(OD,[["render",RD],["__scopeId","data-v-e36392b4"]]);var ZD=GD;const QD={class:"orangehrm-dialog-header-container"},HD={class:"orangehrm-dialog-horizontal-padding orangehrm-dialog-vertical-padding"},WD={class:"orangehrm-container"},YD={class:"orangehrm-dialog-horizontal-padding orangehrm-dialog-vertical-padding"};function JD(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-card-table"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("submit-button"),u=(0,a.resolveComponent)("oxd-form-actions"),p=(0,a.resolveComponent)("oxd-dialog");return n.show?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,gutters:!1,class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",QD,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.updating_entitlement"))+" - "+(0,a.toDisplayString)(e.$t("leave.matching_employees")),1)])),_:1})]),(0,a.createVNode)(s,{class:"orangehrm-dialog-horizontal-margin orangehrm-clear-margins"}),(0,a.createElementVNode)("div",HD,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.selected_leave_entitlement_applied_to_following_employees")),1)])),_:1})]),(0,a.createElementVNode)("div",WD,[(0,a.createVNode)(d,{headers:n.headers,items:n.items,clickable:!1,class:"orangehrm-horizontal-padding","row-decorator":"oxd-table-decorator-card"},null,8,["headers","items"])]),(0,a.createElementVNode)("div",YD,[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(m,{label:e.$t("general.confirm"),onClick:r.onConfirm},null,8,["label","onClick"])])),_:1})])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)}var XD={name:"EntitlementBulkUpdateModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/employees/leave-entitlements");return{http:e}},data(){return{show:!1,reject:null,resolve:null,headers:[{title:this.$t("general.employee"),name:"employee",slot:"title",style:{flex:1}},{title:this.$t("leave.old_entitlement"),name:"current",style:{flex:1}},{title:this.$t("leave.new_entitlement"),name:"updateAs",style:{flex:1}}],items:[]}},methods:{showDialog(){return this.http.getAll({leaveTypeId:this.data.leaveType?.id,fromDate:this.data.leavePeriod?.startDate,toDate:this.data.leavePeriod?.endDate,entitlement:this.data.entitlement,locationId:this.data.location?.id,subunitId:this.data.subunit?.id}).then((e=>{const{data:t}=e.data;return this.items=Array.isArray(t)?t.map((e=>({employee:`${e.firstName} ${e.lastName}`,current:e.entitlement?.current?parseFloat(e.entitlement.current).toFixed(2):"0.00",updateAs:e.entitlement?.updateAs?parseFloat(e.entitlement.updateAs).toFixed(2):"0.00"}))):[],new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))}))},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const KD=(0,r.Z)(XD,[["render",JD],["__scopeId","data-v-6f8e0531"]]);var e$=KD;const t$={class:"orangehrm-modal-header"},o$={class:"orangehrm-text-center-align"},a$={class:"orangehrm-modal-footer"};function l$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,style:{maxWidth:"450px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",t$,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.no_matching_employees")),1)])),_:1})]),(0,a.createElementVNode)("div",o$,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.no_employees_match_filters")),1)])),_:1})]),(0,a.createElementVNode)("div",a$,[(0,a.createVNode)(s,{"display-type":"secondary",label:e.$t("general.ok"),onClick:r.onCancel},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var n$={name:"EntitlementNoMatchModal",components:{"oxd-dialog":q.OxdDialog},data(){return{show:!1}},methods:{showDialog(){this.show=!0},onCancel(){this.show=!1}}};const r$=(0,r.Z)(n$,[["render",l$],["__scopeId","data-v-0233dcca"]]);var i$=r$;const s$={bulkAssign:0,employee:null,leaveType:null,leavePeriod:null,entitlement:"",subunit:null,location:null};var d$={components:{"leave-type-dropdown":zS,"leave-period-dropdown":MD,"employee-autocomplete":Va,"entitlement-update-modal":ZD,"entitlement-bulk-update-modal":e$,"entitlement-no-match-modal":i$},props:{locations:{type:Array,default:()=>[]},subunits:{type:Array,default:()=>[]},leavePeriod:{type:Object,required:!1,default:()=>null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-entitlements");return{http:e}},data(){return{isLoading:!1,leaveEntitlement:{...s$},leavePeriodDefined:!1,rules:{employee:[jt,xo],leaveType:[jt],leavePeriod:[jt],entitlement:[jt,e=>/^\d+(\.\d{1,2})?$/.test(e)||this.$t("leave.should_be_a_number_with_2_decimal_places"),Zt(1e4)]},empMatchCount:0}},watch:{"leaveEntitlement.location":"fetchEmployeeCount","leaveEntitlement.subunit":"fetchEmployeeCount"},beforeMount(){this.fetchEmployeeCount(),this.leavePeriod&&(this.leaveEntitlement.leavePeriod=this.leavePeriod)},methods:{onCancel(){U("/leave/viewLeaveEntitlements")},async onSave(){let e=null;this.isLoading=!0;const t=1==this.leaveEntitlement.bulkAssign;if(t){if(0===this.empMatchCount)return this.isLoading=!1,this.$refs.noMatchModal.showDialog();e=await this.$refs.bulkUpdateModal.showDialog()}else e=await this.$refs.updateModal.showDialog();if("ok"!==e)return void(this.isLoading=!1);const o={empNumber:void 0,bulkAssign:void 0,locationId:void 0,subunitId:void 0,leaveTypeId:this.leaveEntitlement.leaveType?.id,fromDate:this.leaveEntitlement.leavePeriod?.startDate,toDate:this.leaveEntitlement.leavePeriod?.endDate,entitlement:this.leaveEntitlement.entitlement};t?(o.bulkAssign=!0,o.locationId=this.leaveEntitlement.location?.id,o.subunitId=this.leaveEntitlement.subunit?.id):o.empNumber=this.leaveEntitlement.employee?.id,this.http.create(o).then((e=>{let t=null,o=null;const{data:a}=e.data;return Array.isArray(a)?t=this.$toast.success({title:this.$t("general.success"),message:this.$t("leave.entitlement_added_to_n_employees",{count:a.length})}):(o={empNumber:a.employee.empNumber,leaveTypeId:a.leaveType.id,startDate:a.fromDate,endDate:a.toDate},t=this.$toast.saveSuccess()),new Promise((e=>{t.then((()=>{e(o)}))}))})).then((e=>{e?U("/leave/viewLeaveEntitlements",void 0,e):U("/leave/viewLeaveEntitlements")}))},async fetchEmployeeCount(){this.http.request({method:"GET",url:"/api/v2/pim/employees/count",params:{locationId:this.leaveEntitlement.location?.id,subunitId:this.leaveEntitlement.subunit?.id}}).then((e=>{const{data:t}=e.data;this.empMatchCount=parseInt(t.count)}))}}};const c$=(0,r.Z)(d$,[["render",UD],["__scopeId","data-v-7e1993c4"]]);var m$=c$;const u$={class:"orangehrm-background-container"},p$={class:"orangehrm-card-container"};function h$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("leave-type-dropdown"),h=(0,a.resolveComponent)("oxd-input-field"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",u$,[(0,a.createElementVNode)("div",p$,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.edit_leave_entitlement")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.leaveEntitlement.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.leaveEntitlement.employee=e),disabled:"",required:""},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.leaveEntitlement.leaveType,"onUpdate:modelValue":t[1]||(t[1]=e=>n.leaveEntitlement.leaveType=e),"eligible-only":!1,required:"",disabled:""},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.leaveEntitlement.leavePeriod,"onUpdate:modelValue":t[2]||(t[2]=e=>n.leaveEntitlement.leavePeriod=e),type:"select",label:e.$t("leave.leave_period"),options:n.leavePeriods,rules:n.rules.leavePeriod,required:""},null,8,["modelValue","label","options","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.leaveEntitlement.entitlement,"onUpdate:modelValue":t[3]||(t[3]=e=>n.leaveEntitlement.entitlement=e),rules:n.rules.entitlement,label:e.$t("leave.entitlement"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const g$={employee:null,leaveType:null,leavePeriod:null,entitlement:""};var v$={components:{"leave-type-dropdown":zS,"employee-autocomplete":Va},props:{entitlementId:{type:String,required:!0},employee:{type:Object,default:()=>({})}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-entitlements");e.setIgnorePath("/api/v2/leave/leave-entitlements/[0-9]+/validation/entitlements");const{jsDateFormat:t}=R(),{locale:o}=De();return{http:e,jsDateFormat:t,locale:o}},data(){return{isLoading:!1,leaveEntitlement:{...g$},rules:{employee:[jt,xo],leaveType:[jt],leavePeriod:[jt],entitlement:[jt,e=>/^\d+(\.\d{1,2})?$/.test(e)||this.$t("leave.should_be_a_number_with_2_decimal_places"),Zt(1e4),(0,q.promiseDebounce)(this.validateEntitlement,500)]},leavePeriods:[]}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:"/api/v2/leave/leave-periods"}).then((({data:e})=>(this.leavePeriods=e.data.map((e=>{const t=ie(re(e.startDate),this.jsDateFormat,{locale:this.locale}),o=ie(re(e.endDate),this.jsDateFormat,{locale:this.locale});return{id:`${e.startDate}_${e.endDate}`,label:`${t} - ${o}`,startDate:e.startDate,endDate:e.endDate}})),this.http.get(this.entitlementId)))).then((e=>{const{data:t}=e.data;this.leaveEntitlement.employee={id:t.employee.empNumber,label:`${t.employee.firstName} ${t.employee.lastName}`,isPastEmployee:t.employee.terminationId},this.leaveEntitlement.leaveType={id:t.leaveType.id,label:t.leaveType.name},this.leaveEntitlement.leavePeriod=this.leavePeriods.find((e=>e.id===`${t.fromDate}_${t.toDate}`)),this.leaveEntitlement.entitlement=t.entitlement})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/leave/viewLeaveEntitlements",void 0,{empNumber:this.leaveEntitlement.employee?.id,leaveTypeId:this.leaveEntitlement.leaveType?.id,startDate:this.leaveEntitlement.leavePeriod?.startDate,endDate:this.leaveEntitlement.leavePeriod?.endDate})},onSave(){this.isLoading=!0;const e={fromDate:this.leaveEntitlement.leavePeriod?.startDate,toDate:this.leaveEntitlement.leavePeriod?.endDate,entitlement:this.leaveEntitlement.entitlement};this.http.update(this.entitlementId,e).then((()=>{this.$toast.updateSuccess(),this.onCancel()}))},validateEntitlement(e){const t=parseFloat(e);return new Promise((e=>{isNaN(t)?e(!0):this.http.request({method:"GET",url:`/api/v2/leave/leave-entitlements/${this.entitlementId}/validation/entitlements`,params:{entitlement:t}}).then((t=>{const{data:o}=t.data;return!0===o.valid?e(!0):e(this.$t("leave.used_amount_exceeds_the_current_amount"))}))}))}}};const f$=(0,r.Z)(v$,[["render",h$]]);var y$=f$;function C$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("leave-type-dropdown"),c=(0,a.resolveComponent)("leave-period-dropdown"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-divider"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("oxd-table-filter"),C=(0,a.resolveComponent)("leave-entitlement-table");return(0,a.openBlock)(),(0,a.createBlock)(C,{prefetch:!1},{default:(0,a.withCtx)((({filters:t,filterItems:o})=>[(0,a.createVNode)(y,{"filter-title":e.$t("leave.leave_entitlements")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.employee,"onUpdate:modelValue":e=>t.employee=e,rules:n.rules.employee,params:{includeEmployees:"currentAndPast"},required:""},null,8,["modelValue","onUpdate:modelValue","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:t.leaveType,"onUpdate:modelValue":e=>t.leaveType=e,"eligible-only":!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:t.leavePeriod,"onUpdate:modelValue":e=>t.leavePeriod=e,"show-empty-selector":!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(p),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"])])),_:1})}const b$={class:"orangehrm-background-container"},V$=(0,a.createElementVNode)("br",null,null,-1),x$={key:0,class:"orangehrm-paper-container"},w$={class:"orangehrm-header-container"},N$={class:"orangehrm-container"},_$={class:"orangehrm-bottom-container"};function k$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-button"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",b$,[(0,a.renderSlot)(e.$slots,"default",{filters:l.filters,filterItems:r.filterItems}),V$,l.showDatatable?((0,a.openBlock)(),(0,a.createElementBlock)("div",x$,[(0,a.createElementVNode)("div",w$,[(0,a.createElementVNode)("div",null,[e.$can.create("leave_entitlements")?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(s,{tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.totalEntitlements),1)])),_:1})]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",N$,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:r.headers,items:l.items?.data,selectable:e.$can.delete("leave_entitlements"),clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","loading"])]),(0,a.createElementVNode)("div",_$,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var S$={name:"LeaveEntitlementTable",components:{"delete-confirmation":Et},props:{prefetch:{type:Boolean,default:!0},employee:{type:Object,required:!1,default:()=>null},leaveType:{type:Object,required:!1,default:()=>null},leavePeriod:{type:Object,required:!1,default:()=>null}},setup(e){const t=(0,a.ref)({leaveType:e.leaveType?e.leaveType:null,leavePeriod:e.leavePeriod?e.leavePeriod:null,employee:e.employee?{id:e.employee.empNumber,label:`${e.employee.firstName} ${e.employee.middleName} ${e.employee.lastName}`,isPastEmployee:e.employee.terminationId}:null}),o=(0,a.computed)((()=>({empNumber:t.value.employee?.id,leaveTypeId:t.value.leaveType?.id,fromDate:t.value.leavePeriod?.startDate,toDate:t.value.leavePeriod?.endDate}))),l=new P(window.appGlobal.baseUrl,"/api/v2/leave/leave-entitlements"),{$t:n}=Se(),{jsDateFormat:r}=R(),{locale:i}=De(),s=e=>e.map((e=>({id:e.id,leaveType:e.leaveType.name+`${e.leaveType.deleted?n("general.deleted"):""}`,entitlementType:e.entitlementType.name,fromDate:ie(re(e.fromDate),r,{locale:i}),toDate:ie(re(e.toDate),r,{locale:i}),days:e.entitlement,isSelectable:e.deletable}))),{showPaginator:d,currentPage:c,total:m,pages:u,pageSize:p,response:h,isLoading:g,execQuery:v}=wt(l,{query:o,normalizer:s,prefetch:e.employee||e.prefetch}),f=(0,a.computed)((()=>{const e=h.value.meta?.sum?h.value.meta.sum:0;return`Total ${parseFloat(e).toFixed(2)} Day(s)`})),y=(0,a.computed)((()=>void 0!==h.value.data));return{http:l,showPaginator:d,currentPage:c,isLoading:g,total:m,pages:u,pageSize:p,execQuery:v,items:h,filters:t,totalEntitlements:f,showDatatable:y}},data(){return{checkedItems:[]}},computed:{headers(){const e=[{name:"leaveType",slot:"title",title:this.$t("leave.leave_type"),style:{flex:1}},{name:"entitlementType",title:this.$t("leave.entitlement_type"),style:{flex:1}},{name:"fromDate",title:this.$t("leave.valid_from"),style:{flex:1}},{name:"toDate",title:this.$t("leave.valid_to"),style:{flex:1}},{name:"days",title:this.$t("leave.days"),style:{flex:1}}],t={name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{}};return this.$can.delete("leave_entitlements")&&(t.cellConfig.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),this.$can.update("leave_entitlements")&&(t.cellConfig.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),Object.keys(t.cellConfig).length>0?e.concat([t]):e}},methods:{onClickAdd(){U("/leave/addLeaveEntitlement")},onClickEdit(e){U("/leave/editLeaveEntitlement/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){if(!e.isSelectable)return this.$toast.error({title:this.$t("general.error"),message:this.$t("leave.entitlements_will_not_be_deleted_since_already_in_use")});this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()}}};const D$=(0,r.Z)(S$,[["render",k$]]);var $$=D$,E$={components:{"leave-entitlement-table":$$,"employee-autocomplete":Va,"leave-type-dropdown":zS,"leave-period-dropdown":MD},data(){return{rules:{employee:[jt,xo]}}}};const T$=(0,r.Z)(E$,[["render",C$]]);var B$=T$;function I$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("leave-type-dropdown"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("leave-period-dropdown"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("leave-entitlement-table");return(0,a.openBlock)(),(0,a.createBlock)(f,null,{default:(0,a.withCtx)((({filters:t,filterItems:o})=>[(0,a.createVNode)(v,{"filter-title":e.$t("leave.my_leave_entitlements")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.leaveType,"onUpdate:modelValue":e=>t.leaveType=e},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:t.leavePeriod,"onUpdate:modelValue":e=>t.leavePeriod=e,"show-empty-selector":!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(u),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"])])),_:1})}var L$={components:{"leave-entitlement-table":$$,"leave-type-dropdown":zS,"leave-period-dropdown":MD}};const U$=(0,r.Z)(L$,[["render",I$]]);var A$=U$;const P$={class:"orangehrm-background-container"},q$={class:"orangehrm-card-container"};function M$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",P$,[(0,a.createElementVNode)("div",q$,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.work_week")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.monday,"onUpdate:modelValue":t[0]||(t[0]=e=>n.workWeek.monday=e),type:"select",options:o.dayTypes,rules:n.rules.monday,label:e.$t("general.monday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.tuesday,"onUpdate:modelValue":t[1]||(t[1]=e=>n.workWeek.tuesday=e),type:"select",options:o.dayTypes,rules:n.rules.tuesday,label:e.$t("general.tuesday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.wednesday,"onUpdate:modelValue":t[2]||(t[2]=e=>n.workWeek.wednesday=e),type:"select",options:o.dayTypes,rules:n.rules.wednesday,label:e.$t("general.wednesday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.thursday,"onUpdate:modelValue":t[3]||(t[3]=e=>n.workWeek.thursday=e),type:"select",options:o.dayTypes,rules:n.rules.thursday,label:e.$t("general.thursday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.friday,"onUpdate:modelValue":t[4]||(t[4]=e=>n.workWeek.friday=e),type:"select",options:o.dayTypes,rules:n.rules.friday,label:e.$t("general.friday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.saturday,"onUpdate:modelValue":t[5]||(t[5]=e=>n.workWeek.saturday=e),type:"select",options:o.dayTypes,rules:n.rules.saturday,label:e.$t("general.saturday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.workWeek.sunday,"onUpdate:modelValue":t[6]||(t[6]=e=>n.workWeek.sunday=e),type:"select",options:o.dayTypes,rules:n.rules.sunday,label:e.$t("general.sunday"),required:""},null,8,["modelValue","options","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const F$={monday:null,tuesday:null,wednesday:null,thursday:null,friday:null,saturday:null,sunday:null};var j$={props:{dayTypes:{type:Array,default:()=>[]}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/workweek");return{http:e}},data(){return{isLoading:!1,workWeek:{...F$},rules:{monday:[jt],tuesday:[jt],wednesday:[jt],thursday:[jt],friday:[jt],saturday:[jt],sunday:[jt]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET"}).then((e=>{const{data:t}=e.data;this.workWeek.monday=this.dayTypes.find((e=>e.id===t.monday)),this.workWeek.tuesday=this.dayTypes.find((e=>e.id===t.tuesday)),this.workWeek.wednesday=this.dayTypes.find((e=>e.id===t.wednesday)),this.workWeek.thursday=this.dayTypes.find((e=>e.id===t.thursday)),this.workWeek.friday=this.dayTypes.find((e=>e.id===t.friday)),this.workWeek.saturday=this.dayTypes.find((e=>e.id===t.saturday)),this.workWeek.sunday=this.dayTypes.find((e=>e.id===t.sunday))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){const e=Object.values(this.workWeek).find((e=>8!==e.id));if(void 0===e)return this.$toast.warn({title:this.$t("general.warning"),message:this.$t("leave.at_least_one_day_should_be_a_working_day")});this.isLoading=!0,this.http.request({method:"PUT",data:{monday:this.workWeek.monday.id,tuesday:this.workWeek.tuesday.id,wednesday:this.workWeek.wednesday.id,thursday:this.workWeek.thursday.id,friday:this.workWeek.friday.id,saturday:this.workWeek.saturday.id,sunday:this.workWeek.sunday.id}}).then((()=>{this.$toast.saveSuccess(),this.isLoading=!1}))}}};const z$=(0,r.Z)(j$,[["render",M$]]);var R$=z$;const O$={class:"orangehrm-background-container"},G$=(0,a.createElementVNode)("br",null,null,-1),Z$={class:"orangehrm-paper-container"},Q$={class:"orangehrm-header-container"},H$={class:"orangehrm-container"},W$={class:"orangehrm-bottom-container"};function Y$(e,t,o,l,n,r){const i=(0,a.resolveComponent)("date-input"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-table-filter"),v=(0,a.resolveComponent)("table-header"),f=(0,a.resolveComponent)("oxd-card-table"),y=(0,a.resolveComponent)("oxd-pagination"),C=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",O$,[(0,a.createVNode)(g,{"filter-title":e.$t("leave.holidays")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{onSubmitValid:r.filterItems,onReset:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.fromDate=e),label:e.$t("general.from"),rules:n.rules.fromDate,years:n.yearArray},null,8,["modelValue","label","rules","years"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.toDate=e),label:e.$t("general.to"),rules:n.rules.toDate,years:n.yearArray},null,8,["modelValue","label","rules","years"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(u,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),G$,(0,a.createElementVNode)("div",Z$,[(0,a.createElementVNode)("div",Q$,[(0,a.createVNode)(u,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(v,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",H$,[(0,a.createVNode)(f,{selected:n.checkedItems,"onUpdate:selected":t[2]||(t[2]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",W$,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(C,{ref:"deleteDialog"},null,512)])}var J$={components:{"delete-confirmation":Et},props:{leavePeriod:{type:Object,required:!0}},setup(e){const t=(0,a.ref)({fromDate:e.leavePeriod.startDate,toDate:e.leavePeriod.endDate}),o=(0,a.computed)((()=>({fromDate:t.value.fromDate,toDate:t.value.toDate}))),{jsDateFormat:l,userDateFormat:n}=R(),{locale:r}=De(),i=e=>e.map((e=>({id:e.id,name:e.name,date:ie(re(e.date),l,{locale:r}),recurring:e.recurring?"Yes":"No",length:e.lengthName}))),s=new P(window.appGlobal.baseUrl,"/api/v2/leave/holidays"),{showPaginator:d,currentPage:c,total:m,pages:u,pageSize:p,response:h,isLoading:g,execQuery:v}=wt(s,{query:o,normalizer:i});return{http:s,showPaginator:d,currentPage:c,isLoading:g,total:m,pages:u,pageSize:p,execQuery:v,items:h,filters:t,userDateFormat:n}},data(){return{yearArray:[...wf(201)],rules:{fromDate:[jt,Rt(this.userDateFormat)],toDate:[jt,Rt(this.userDateFormat),eo((()=>this.filters.fromDate),this.$t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]},headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:2}},{name:"date",title:this.$t("general.date"),style:{flex:2}},{name:"length",title:this.$t("leave.full_day_half_day"),style:{flex:2}},{name:"recurring",title:this.$t("leave.repeats_annually"),style:{flex:2}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/leave/saveHolidays")},onClickEdit(e){U("/leave/saveHolidays/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()}}};const X$=(0,r.Z)(J$,[["render",Y$]]);var K$=X$;const eE={class:"orangehrm-background-container"},tE={class:"orangehrm-card-container"};function oE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",eE,[(0,a.createElementVNode)("div",tE,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.add_holiday")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.holiday.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.holiday.date,"onUpdate:modelValue":t[1]||(t[1]=e=>n.holiday.date=e),label:e.$t("general.date"),rules:n.rules.date,years:n.yearArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.length,"onUpdate:modelValue":t[2]||(t[2]=e=>n.holiday.length=e),type:"select",label:e.$t("leave.full_day_half_day"),options:o.holidayLengthList,rules:n.rules.length,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{classes:{wrapper:"--status-grouped-field"},label:e.$t("leave.repeats_annually")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.recurring,"onUpdate:modelValue":t[3]||(t[3]=e=>n.holiday.recurring=e),type:"radio","option-label":e.$t("general.yes"),value:!0},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.holiday.recurring,"onUpdate:modelValue":t[4]||(t[4]=e=>n.holiday.recurring=e),type:"radio","option-label":e.$t("general.no"),value:!1},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const aE={name:"",date:"",recurring:!1,length:{id:0,label:"Full Day"}};var lE={props:{holidayLengthList:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/holidays"),{userDateFormat:t}=R();return{http:e,userDateFormat:t}},data(){return{yearArray:[...wf(201)],isLoading:!1,holiday:{...aE},rules:{name:[jt,zt(200)],date:[jt,Rt(this.userDateFormat)],length:[jt]},errors:[]}},created(){this.isLoading=!0;const e=new Date,t=e.getFullYear()-100+"-"+(e.getMonth()+1)+"-"+e.getDate(),o=e.getFullYear()+100+"-"+(e.getMonth()+1)+"-"+e.getDate();this.http.getAll({fromDate:t,toDate:o,limit:0}).then((e=>{const{data:t}=e.data;this.rules.date.push((e=>{const o=t.findIndex((t=>t.date==e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({name:this.holiday.name,date:this.holiday.date,recurring:this.holiday.recurring,length:this.holiday.length.id}).then((()=>this.$toast.saveSuccess())).then((()=>{this.holiday={...aE},this.onCancel()}))},onCancel(){U("/leave/viewHolidayList")}}};const nE=(0,r.Z)(lE,[["render",oE],["__scopeId","data-v-6485b72f"]]);var rE=nE;const iE={class:"orangehrm-background-container"},sE={class:"orangehrm-card-container"};function dE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-input-group"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",iE,[(0,a.createElementVNode)("div",sE,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.edit_holiday")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.holiday.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.holiday.date,"onUpdate:modelValue":t[1]||(t[1]=e=>n.holiday.date=e),label:e.$t("general.date"),rules:n.rules.date,years:n.yearArray,required:""},null,8,["modelValue","label","rules","years"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.length,"onUpdate:modelValue":t[2]||(t[2]=e=>n.holiday.length=e),type:"select",label:e.$t("leave.full_day_half_day"),options:o.holidayLengthList,rules:n.rules.length,required:""},null,8,["modelValue","label","options","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{classes:{wrapper:"--status-grouped-field"},label:e.$t("leave.repeats_annually")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.holiday.recurring,"onUpdate:modelValue":t[3]||(t[3]=e=>n.holiday.recurring=e),type:"radio","option-label":e.$t("general.yes"),value:!0},null,8,["modelValue","option-label"]),(0,a.createVNode)(d,{modelValue:n.holiday.recurring,"onUpdate:modelValue":t[4]||(t[4]=e=>n.holiday.recurring=e),type:"radio","option-label":e.$t("general.no"),value:!1},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const cE={id:"",name:"",date:"",recurring:!1,length:0};var mE={props:{holidayId:{type:Number,required:!0},holidayLengthList:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/leave/holidays"),{userDateFormat:t}=R();return{http:e,userDateFormat:t}},data(){return{yearArray:[...wf(201)],isLoading:!1,holiday:{...cE},rules:{name:[jt,zt(200)],date:[jt,Rt(this.userDateFormat)],length:[jt]}}},created(){this.isLoading=!0,this.http.get(this.holidayId).then((e=>{const{data:t}=e.data;this.holiday.id=t.id,this.holiday.name=t.name,this.holiday.date=t.date,this.holiday.recurring=t.recurring,""!==t.length&&null!==t.length&&(this.holiday.length=this.holidayLengthList.find((e=>e.id===t.length)));const o=new Date,a=o.getFullYear()-100+"-"+(o.getMonth()+1)+"-"+o.getDate(),l=o.getFullYear()+100+"-"+(o.getMonth()+1)+"-"+o.getDate();return this.http.getAll({fromDate:a,toDate:l,limit:0})})).then((e=>{const{data:t}=e.data;this.rules.date.push((e=>{const o=t.findIndex((t=>t.date===e));if(o>-1){const e=t[o].id;return e==this.holidayId||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.holidayId,{name:this.holiday.name,date:this.holiday.date,recurring:this.holiday.recurring,length:this.holiday.length.id}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},onCancel(){U("/leave/viewHolidayList")}}};const uE=(0,r.Z)(mE,[["render",dE],["__scopeId","data-v-48d79cd0"]]);var pE=uE;function hE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("date-input"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("leave-type-dropdown"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("employee-autocomplete"),h=(0,a.resolveComponent)("oxd-text"),g=(0,a.resolveComponent)("oxd-switch-input"),v=(0,a.resolveComponent)("oxd-divider"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("oxd-table-filter"),x=(0,a.resolveComponent)("leave-list-table");return(0,a.openBlock)(),(0,a.createBlock)(x,{"leave-statuses":o.leaveStatuses},{default:(0,a.withCtx)((({filters:t,filterItems:l,rules:n,onReset:r})=>[(0,a.createVNode)(V,{"filter-title":e.$t("leave.leave_list")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(b,{onSubmitValid:l,onReset:r},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.fromDate,"onUpdate:modelValue":e=>t.fromDate=e,label:e.$t("general.from_date"),rules:n.fromDate},null,8,["modelValue","onUpdate:modelValue","label","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.toDate,"onUpdate:modelValue":e=>t.toDate=e,label:e.$t("general.to_date"),rules:n.toDate},null,8,["modelValue","onUpdate:modelValue","label","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:t.statuses,"onUpdate:modelValue":e=>t.statuses=e,value:"Select",type:"multiselect",label:e.$t("leave.show_leave_with_status"),options:o.leaveStatuses,rules:n.statuses,required:""},null,8,["modelValue","onUpdate:modelValue","label","options","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:t.leaveType,"onUpdate:modelValue":e=>t.leaveType=e,"eligible-only":!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:t.employee,"onUpdate:modelValue":e=>t.employee=e,rules:n.employee,params:{includeEmployees:t.includePastEmps?"currentAndPast":"onlyCurrent"}},null,8,["modelValue","onUpdate:modelValue","rules","params"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:t.subunit,"onUpdate:modelValue":e=>t.subunit=e,type:"select",label:e.$t("general.sub_unit"),options:o.subunits},null,8,["modelValue","onUpdate:modelValue","label","options"])])),_:2},1024),(0,a.createVNode)(s,{class:"orangehrm-leave-filter --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{class:"orangehrm-leave-filter-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.include_past_employees")),1)])),_:1}),(0,a.createVNode)(g,{modelValue:t.includePastEmps,"onUpdate:modelValue":e=>t.includePastEmps=e},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(v),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(y,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid","onReset"])])),_:2},1032,["filter-title"])])),_:1},8,["leave-statuses"])}const gE=e=>((0,a.pushScopeId)("data-v-2e68cbb4"),e=e(),(0,a.popScopeId)(),e),vE={class:"orangehrm-background-container"},fE=gE((()=>(0,a.createElementVNode)("br",null,null,-1))),yE={class:"orangehrm-paper-container"},CE={class:"orangehrm-container"},bE={class:"orangehrm-bottom-container"};function VE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("leave-list-table-header"),s=(0,a.resolveComponent)("oxd-card-table"),d=(0,a.resolveComponent)("oxd-pagination"),c=(0,a.resolveComponent)("leave-comment-modal"),m=(0,a.resolveComponent)("leave-bulk-action-modal");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",vE,[(0,a.renderSlot)(e.$slots,"default",{filters:l.filters,rules:l.rules,filterItems:r.filterItems,onReset:r.onReset},void 0,!0),fE,(0,a.createElementVNode)("div",yE,[(0,a.createVNode)(i,{selected:l.checkedItems.length,total:l.total,loading:l.isLoading,"bulk-actions":l.leaveBulkActions,onOnActionClick:r.onLeaveActionBulk},null,8,["selected","total","loading","bulk-actions","onOnActionClick"]),(0,a.createElementVNode)("div",CE,[(0,a.createVNode)(s,{selected:l.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>l.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",bE,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])]),n.showCommentModal?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,id:n.commentModalState,onClose:r.onCommentModalClose},null,8,["id","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(m,{ref:"bulkActionModal",data:n.bulkActionModalState},null,8,["data"])],64)}const xE=(e,{length:t=50,ellipsis:o="..."}={})=>"string"===typeof e?e.length>t?e.substr(0,t)+o:e:"",wE={component:"oxd-button",props:{label:"Approve",displayType:"label-success",size:"medium",onClick:null}},NE={component:"oxd-button",props:{label:"Reject",displayType:"label-danger",size:"medium",onClick:null}},_E={component:"oxd-button",props:{label:"Cancel",displayType:"label-warn",size:"medium",onClick:null}},kE={component:"oxd-table-dropdown",props:{options:[],style:{"margin-left":"auto"},onClick:null}};function SE(e,{primaryActions:t={approve:wE,reject:NE,cancel:_E,more:kE}}={}){const o=(t,o)=>e.request({method:"PUT",url:`/api/v2/leave/leaves/${t}`,data:{action:o}}),a=(t,o)=>e.request({method:"PUT",url:`/api/v2/leave/employees/leave-requests/${t}`,data:{action:o}}),l=(t,o)=>e.request({method:"PUT",url:"/api/v2/leave/employees/leave-requests/bulk",data:{data:t.map((e=>({leaveRequestId:e,action:o})))}});return{leaveActions:t,processLeaveAction:o,processLeaveRequestAction:a,processLeaveRequestBulkAction:l}}const DE={class:"orangehrm-modal-header"},$E={key:0,class:"orangehrm-modal-content"};function EE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("leave-comment"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",DE,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.leave_request_comments")),1)])),_:1})]),(0,a.createVNode)(s),n.isLoading?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",$E,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.comments,(e=>((0,a.openBlock)(),(0,a.createBlock)(d,{key:e.id,data:e},null,8,["data"])))),128))])),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.comment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.comment=e),type:"textarea",placeholder:e.$t("general.comment_here"),rules:n.rules.comment},null,8,["modelValue","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const TE={class:"orangehrm-comment"},BE={class:"orangehrm-comment-profile"},IE={class:"orangehrm-comment-profile-image-wrapper"},LE=["src"],UE={class:"orangehrm-comment-body"},AE={class:"orangehrm-comment-profile-name"},PE={class:"orangehrm-comment-message"},qE={class:"orangehrm-comment-timestamp"};function ME(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",TE,[(0,a.createElementVNode)("div",BE,[(0,a.createElementVNode)("div",IE,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"orangehrm-comment-profile-image",src:l.imgSrc},null,8,LE)])]),(0,a.createElementVNode)("div",UE,[(0,a.createElementVNode)("div",AE,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.fullName),1)])),_:1})]),(0,a.createElementVNode)("div",PE,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.data.comment),1)])),_:1})]),(0,a.createElementVNode)("div",qE,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.commentDate)+" - "+(0,a.toDisplayString)(o.data.time),1)])),_:1})])])])}const FE=`${window.appGlobal.publicPath}/images/default-photo.png`;var jE={name:"LeaveComment",props:{data:{type:Object,required:!0}},setup(e){const t=(0,a.computed)((()=>{const t=e.data.createdByEmployee;return t?`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${t.empNumber}`:FE})),o=(0,a.computed)((()=>{const t=e.data.createdByEmployee;return t&&`${t.firstName} ${t.lastName}`})),{jsDateFormat:l}=R(),{locale:n}=De(),r=(0,a.computed)((()=>ie(re(e.data?.date),l,{locale:n})));return{imgSrc:t,fullName:o,commentDate:r}}};const zE=(0,r.Z)(jE,[["render",ME],["__scopeId","data-v-222b3933"]]);var RE=zE,OE={name:"LeaveCommentModal",components:{"oxd-dialog":q.OxdDialog,"leave-comment":RE},props:{id:{type:Number,required:!1,default:null},leaveRequest:{type:Boolean,default:!0}},emits:["close"],setup(e){const t=e.leaveRequest?"leave-requests":"leaves",o=new P(window.appGlobal.baseUrl,`/api/v2/leave/${t}/${e.id}/leave-comments`);return{http:o}},data(){return{isLoading:!1,comment:null,rules:{comment:[jt,zt(255)]},comments:[]}},beforeMount(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.comments=t})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.create({comment:this.comment}).then((()=>{this.$toast.saveSuccess(),this.onCancel()}))},onCancel(){this.comment=null,this.$emit("close",!0)}}};const GE=(0,r.Z)(OE,[["render",EE],["__scopeId","data-v-cbb6349a"]]);var ZE=GE;const QE={class:"orangehrm-modal-header"},HE={class:"orangehrm-text-center-align"},WE={class:"orangehrm-modal-footer"};function YE(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-dialog-popup","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",QE,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.leave_action",{action:r.action})),1)])),_:1})]),(0,a.createElementVNode)("div",HE,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.bulk_leave_action_confirm_message_one",{action:r.action,count:r.count}))+" "+(0,a.toDisplayString)(e.$t("leave.bulk_leave_action_confirm_message_two")),1)])),_:1})]),(0,a.createElementVNode)("div",WE,[(0,a.createVNode)(s,{label:e.$t("general.no_cancel"),"display-type":"text",class:"orangehrm-button-margin",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{label:e.$t("leave.yes_confirm"),"display-type":"secondary",onClick:r.onConfirm},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var JE={name:"LeaveBulkActionModal",components:{"oxd-dialog":q.OxdDialog},props:{data:{type:Object,default:()=>null}},data(){return{show:!1,reject:null,resolve:null}},computed:{count(){return this.data?.count?this.data.count:0},action(){return this.data?.action}},methods:{showDialog(){return new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")}}};const XE=(0,r.Z)(JE,[["render",YE],["__scopeId","data-v-7823af8c"]]);var KE=XE;const eT={class:"orangehrm-header-container"},tT={key:0,class:"actions"};function oT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",eT,[o.bulkActions&&o.selected>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",tT,[(0,a.createVNode)(i,{tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_selected",{count:o.selected})),1)])),_:1}),o.bulkActions.APPROVE?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,label:e.$t("general.approve"),"display-type":"label-success",onClick:t[0]||(t[0]=t=>e.$emit("onActionClick","APPROVE"))},null,8,["label"])):(0,a.createCommentVNode)("",!0),o.bulkActions.REJECT?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,label:e.$t("general.reject"),"display-type":"label-danger",onClick:t[1]||(t[1]=t=>e.$emit("onActionClick","REJECT"))},null,8,["label"])):(0,a.createCommentVNode)("",!0),o.bulkActions.CANCEL?((0,a.openBlock)(),(0,a.createBlock)(s,{key:2,label:e.$t("general.cancel"),"display-type":"label-warn",onClick:t[2]||(t[2]=t=>e.$emit("onActionClick","CANCEL"))},null,8,["label"])):(0,a.createCommentVNode)("",!0)])):((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_found",{count:o.total})),1)])),_:1}))])}var aT={name:"LeaveListTableHeader",props:{loading:{type:Boolean,required:!0},selected:{type:Number,required:!0},total:{type:Number,required:!0},bulkActions:{type:Object,required:!1,default:()=>({})}},emits:["onActionClick"]};const lT=(0,r.Z)(aT,[["render",oT],["__scopeId","data-v-78ad5c40"]]);var nT=lT;const rT={employee:null,fromDate:null,toDate:null,statuses:[],subunit:null,includePastEmps:!1,leaveType:null};var iT={name:"LeaveListTable",components:{"leave-list-table-header":nT,"leave-comment-modal":ZE,"leave-bulk-action-modal":KE},props:{myLeaveList:{type:Boolean,default:!1},leaveStatuses:{type:Array,default:()=>[]},employee:{type:Object,required:!1,default:()=>null},leaveType:{type:Object,required:!1,default:()=>null},fromDate:{type:String,required:!1,default:null},toDate:{type:String,required:!1,default:null},leaveStatus:{type:Object,required:!1,default:()=>null}},setup(e){const t=(0,a.ref)({...rT,...e.leaveType&&{leaveType:e.leaveType},...e.fromDate&&{fromDate:e.fromDate},...e.toDate&&{toDate:e.toDate},...e.leaveStatus&&{statuses:[e.leaveStatus]},...e.employee&&{employee:{id:e.employee.empNumber,label:`${e.employee.firstName} ${e.employee.middleName} ${e.employee.lastName}`,isPastEmployee:e.employee.terminationId}}}),o=(0,a.ref)([]),{$t:l}=Se(),{locale:n}=De(),{jsDateFormat:r,userDateFormat:i}=R(),s={fromDate:[jt,Rt(i)],toDate:[jt,Rt(i),eo((()=>t.value.fromDate),l("general.to_date_should_be_after_from_date"),{allowSameDate:!0})],statuses:[jt],employee:[xo]},d=(0,a.computed)((()=>{const e=Array.isArray(t.value.statuses)?t.value.statuses:[];return{empNumber:t.value.employee?.id,fromDate:t.value.fromDate,toDate:t.value.toDate,subunitId:t.value.subunit?.id,includeEmployees:t.value.includePastEmps?"currentAndPast":"onlyCurrent",statuses:e.map((e=>e.id)),leaveTypeId:t.value.leaveType?.id}})),c=new P(window.appGlobal.baseUrl,"/api/v2/leave/"+(e.myLeaveList?"leave-requests":"employees/leave-requests")),m=e=>e.map((e=>{let t,o,a="";const i=e.dates.durationType?.type;if(e.dates.fromDate&&(t=ie(re(e.dates.fromDate),r,{locale:n})),e.dates.toDate&&(t+=` to ${ie(re(e.dates.toDate),r,{locale:n})}`),e.dates.startTime&&e.dates.endTime&&(t+=` (${e.dates.startTime} - ${e.dates.endTime})`),"half_day_morning"!==i&&"half_day_afternoon"!==i||(t+=` ${l("leave.half_day")}`),Array.isArray(e.leaveBreakdown)&&(o=e.leaveBreakdown.map((e=>`${e.name} (${parseFloat(e.lengthDays).toFixed(2)})`)).join(", ")),Array.isArray(e.leaveBalances))if(e.leaveBalances.length>1)a=e.leaveBalances.map((({period:e,balance:t})=>{const o=parseFloat(t.balance).toFixed(2),a=ie(re(e.startDate),r,{locale:n}),l=ie(re(e.endDate),r,{locale:n});return`${o} (${a} - ${l})`})).join(", ");else{const t=e.leaveBalances[0]?.balance.balance;a=t?parseFloat(t).toFixed(2):"0.00"}const s=`${e.employee?.firstName} ${e.employee?.middleName} ${e.employee?.lastName}`,d=e.leaveType?.name;return e.employee?.terminationId&&l("general.past_employee"),e.leaveType?.deleted&&l("general.deleted"),{id:e.id,empNumber:e.employee?.empNumber,date:t,employeeName:s,leaveType:d,leaveBalance:a,days:parseFloat(e.noOfDays).toFixed(2),status:o,comment:xE(e.lastComment?.comment),actions:e.allowedActions}})),{leaveActions:u,processLeaveRequestAction:p,processLeaveRequestBulkAction:h}=SE(c),{showPaginator:g,currentPage:v,total:f,pages:y,pageSize:C,response:b,isLoading:V,execQuery:x}=wt(c,{query:d,normalizer:m}),w=(0,a.computed)((()=>{if(o.value.length>0&&b.value.data){const e=o.value.map((e=>b.value.data[e].actions));return{APPROVE:e.reduce(((e,t)=>e&&t.find((e=>"APPROVE"===e.action))),!0),REJECT:e.reduce(((e,t)=>e&&t.find((e=>"REJECT"===e.action))),!0),CANCEL:e.reduce(((e,t)=>e&&t.find((e=>"CANCEL"===e.action))),!0)}}return null}));return{http:c,showPaginator:g,currentPage:v,isLoading:V,total:f,pages:y,pageSize:C,execQuery:x,items:b,rules:s,filters:t,checkedItems:o,leaveActions:u,leaveBulkActions:w,processLeaveRequestAction:p,processLeaveRequestBulkAction:h}},data(){return{headers:[{name:"date",title:this.$t("general.date"),style:{flex:1}},{name:"employeeName",title:this.$t("general.employee_name"),style:{flex:1}},{name:"leaveType",title:this.$t("leave.leave_type"),style:{flex:1}},{name:"leaveBalance",title:this.$t("leave.leave_balance_days"),style:{flex:1}},{name:"days",title:this.$t("leave.number_of_days"),style:{flex:1}},{name:"status",title:this.$t("general.status"),style:{flex:1}},{name:"comment",title:this.$t("general.comments"),style:{flex:"5%"}},{name:"action",slot:"footer",title:this.$t("general.actions"),cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer,style:{flex:this.myLeaveList?"10%":"20%"}}],showCommentModal:!1,commentModalState:null,bulkActionModalState:null}},beforeMount(){this.isLoading=!0,0===this.filters.statuses.length&&(this.filters.statuses=this.myLeaveList?this.leaveStatuses:this.leaveStatuses.filter((e=>1===e.id))),this.http.request({method:"GET",url:"/api/v2/leave/leave-periods"}).then((e=>{const{data:t,meta:o}=e.data;o.leavePeriodDefined?(this.filters.fromDate=this.filters.fromDate??o?.currentLeavePeriod.startDate,this.filters.toDate=this.filters.toDate??o?.currentLeavePeriod.endDate):(this.filters.fromDate=this.filters.fromDate??t[0]?.startDate,this.filters.toDate=this.filters.toDate??t[0]?.endDate)})).finally((()=>{this.isLoading=!1,Object.assign(rT,this.filters)}))},methods:{cellRenderer(...[,,,e]){const t={},{approve:o,reject:a,cancel:l,more:n}=this.leaveActions,r=[{label:this.$t("general.add_comment"),context:"add_comment"},{label:this.$t("leave.view_leave_details"),context:"leave_details"},{label:this.$t("leave.view_pim_info"),context:"pim_details"}];return e.actions.map((n=>{"APPROVE"===n.action&&(o.props.label=this.$t("general.approve"),o.props.onClick=()=>this.onLeaveAction(e.id,"APPROVE"),t.approve=o),"REJECT"===n.action&&(a.props.label=this.$t("general.reject"),a.props.onClick=()=>this.onLeaveAction(e.id,"REJECT"),t.reject=a),"CANCEL"===n.action&&(this.myLeaveList?(l.props.label=this.$t("general.cancel"),l.props.onClick=()=>this.onLeaveAction(e.id,"CANCEL"),t.reject=l):r.push({label:this.$t("leave.cancel_leave"),context:"cancel_leave"}))})),n.props.options=r,n.props.onClick=t=>this.onLeaveDropdownAction(t,e),t.more=n,{props:{header:{cellConfig:t}}}},onLeaveDropdownAction(e,t){switch(e.context){case"add_comment":this.commentModalState=t.id,this.showCommentModal=!0;break;case"cancel_leave":this.onLeaveAction(t.id,"CANCEL");break;case"pim_details":U("/pim/viewPersonalDetails/empNumber/{id}",{id:t.empNumber});break;default:U("/leave/viewLeaveRequest/{id}",{id:t.id},this.myLeaveList&&{mode:"my-leave"})}},onLeaveAction(e,t){this.isLoading=!0,this.processLeaveRequestAction(e,t).then((()=>{this.$toast.updateSuccess()})).finally(this.resetDataTable)},async onLeaveActionBulk(e){this.isLoading=!0,this.bulkActionModalState={count:this.checkedItems.length,action:e};const t=this.checkedItems.map((e=>this.items.data[e].id)),o=await this.$refs.bulkActionModal.showDialog();"ok"===o?this.processLeaveRequestBulkAction(t,e).then((t=>{const{data:o}=t.data;Array.isArray(o)&&this.$toast.success({title:this.$t("general.success"),message:this.$t("leave.leave_requests_action",{action:e,count:o.length})})})).finally((()=>{this.bulkActionModalState=null,this.resetDataTable()})):this.isLoading=!1},onCommentModalClose(){this.commentModalState=null,this.showCommentModal=!1,this.resetDataTable()},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onReset(){this.filters={...rT},this.resetDataTable()}}};const sT=(0,r.Z)(iT,[["render",VE],["__scopeId","data-v-2e68cbb4"]]);var dT=sT,cT={components:{"leave-list-table":dT,"employee-autocomplete":Va,"oxd-switch-input":q.OxdSwitchInput,"leave-type-dropdown":zS},props:{subunits:{type:Array,default:()=>[]},leaveStatuses:{type:Array,default:()=>[]}}};const mT=(0,r.Z)(cT,[["render",hE],["__scopeId","data-v-7abe0f65"]]);var uT=mT;const pT=e=>((0,a.pushScopeId)("data-v-5cf2c6b8"),e=e(),(0,a.popScopeId)(),e),hT={class:"orangehrm-background-container"},gT={class:"orangehrm-paper-container"},vT={class:"orangehrm-header-container"},fT=pT((()=>(0,a.createElementVNode)("br",null,null,-1))),yT={class:"orangehrm-horizontal-padding"},CT=pT((()=>(0,a.createElementVNode)("br",null,null,-1))),bT={class:"orangehrm-container"},VT={class:"orangehrm-bottom-container"};function xT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("table-header"),p=(0,a.resolveComponent)("oxd-card-table"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-pagination"),v=(0,a.resolveComponent)("leave-comment-modal");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",hT,[(0,a.createElementVNode)("div",gT,[(0,a.createElementVNode)("div",vT,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.myLeaveRequest?e.$t("leave.my_leave_request_details"):e.$t("leave.leave_request_details")),1)])),_:1})]),(0,a.createVNode)(s,{class:"orangehrm-horizontal-margin orangehrm-clear-margins"}),fT,(0,a.createElementVNode)("div",yT,[(0,a.createVNode)(m,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.employee_name")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-request-details-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.employeeName),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("leave.requested_for")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-request-details-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.leavePeriod),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})]),CT,(0,a.createVNode)(u,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",bT,[(0,a.createVNode)(p,{headers:n.headers,items:l.response&&l.response.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items","loading"])]),(0,a.createElementVNode)("div",VT,[(0,a.createElementVNode)("span",null,[(0,a.createVNode)(h,{"display-type":"ghost",label:e.$t("general.back"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(h,{class:"orangehrm-left-space","display-type":"secondary","icon-name":"chat-right-text-fill",label:e.$t("general.comments"),onClick:r.onClickComments},null,8,["label","onClick"])]),l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(g,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])]),n.showCommentModal?((0,a.openBlock)(),(0,a.createBlock)(v,{key:0,id:n.commentModalState,"leave-request":n.isLeaveRequest,onClose:r.onCommentModalClose},null,8,["id","leave-request","onClose"])):(0,a.createCommentVNode)("",!0)],64)}var wT={name:"LeaveViewRequest",components:{"leave-comment-modal":ZE},props:{leaveRequestId:{type:String,required:!0},myLeaveRequest:{type:Boolean,default:!1}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/leave/leave-requests/${e.leaveRequestId}/leaves`),{leaveActions:o,processLeaveAction:a}=SE(t),{$t:l}=Se(),{jsDateFormat:n}=R(),{locale:r}=De(),{$tEmpName:i}=xa(),s=e=>e.map((e=>{let t="";const o=e.dates.durationType?.type;e.dates.fromDate&&(t=ie(re(e.dates.fromDate),n,{locale:r})),e.dates.startTime&&e.dates.endTime&&(t+=` (${e.dates.startTime} - ${e.dates.endTime})`),"half_day_morning"!==o&&"half_day_afternoon"!==o||(t+=` ${l("leave.half_day")}`);const a=e.leaveType?.name;return e.leaveType?.deleted&&l("general.deleted"),{id:e.id,date:t,leaveType:a,leaveBalance:e.leaveBalance?.balance.balance?parseFloat(e.leaveBalance.balance.balance).toFixed(2):void 0,duration:parseFloat(e.lengthHours).toFixed(2),status:e.leaveStatus?.name,comment:xE(e.lastComment?.comment),actions:e.allowedActions,canComment:!(5===e.leaveStatus?.id||4===e.leaveStatus?.id)}})),{showPaginator:d,currentPage:c,total:m,pages:u,pageSize:p,response:h,isLoading:g,execQuery:v}=wt(t,{normalizer:s});return{http:t,showPaginator:d,currentPage:c,isLoading:g,total:m,pages:u,pageSize:p,execQuery:v,response:h,leaveActions:o,processLeaveAction:a,jsDateFormat:n,locale:r,translateEmpName:i}},data(){return{headers:[{name:"date",title:this.$t("general.date"),style:{flex:1}},{name:"leaveType",title:this.$t("leave.leave_type"),style:{flex:1}},{name:"leaveBalance",title:this.$t("leave.leave_balance_days"),style:{flex:1}},{name:"duration",title:this.$t("attendance.duration_hours"),style:{flex:1}},{name:"status",title:this.$t("general.status"),style:{flex:1}},{name:"comment",title:this.$t("general.comments"),style:{flex:"10%"}},{name:"action",slot:"footer",title:this.$t("general.actions"),cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer,style:{flex:"20%"}}],showCommentModal:!1,commentModalState:null,isLeaveRequest:!1}},computed:{employeeName(){const e=this.response?.meta?.employee;return e?this.translateEmpName(e,{includeMiddle:!0,excludePastEmpTag:!1}):""},leavePeriod(){const e=ie(re(this.response?.meta?.startDate),this.jsDateFormat,{locale:this.locale}),t=ie(re(this.response?.meta?.endDate),this.jsDateFormat,{locale:this.locale});return e===t?e:`${e} - ${t}`}},methods:{cellRenderer(...[,,,e]){const t={},o=[],{approve:a,reject:l,cancel:n,more:r}=this.leaveActions;return e.canComment&&o.push({label:"Add Comment",context:"add_comment"}),e.actions.map((r=>{"APPROVE"===r.action&&(a.props.label=this.$t("general.approve"),a.props.onClick=()=>this.onLeaveAction(e.id,"APPROVE"),t.approve=a),"REJECT"===r.action&&(l.props.label=this.$t("general.reject"),l.props.onClick=()=>this.onLeaveAction(e.id,"REJECT"),t.reject=l),"CANCEL"===r.action&&(this.myLeaveRequest?(n.props.label=this.$t("general.cancel"),n.props.onClick=()=>this.onLeaveAction(e.id,"CANCEL"),t.cancel=n):o.push({label:"Cancel Leave",context:"cancel_leave"}))})),o.length>0&&(r.props.options=o,r.props.onClick=t=>this.onLeaveDropdownAction(t,e),t.more=r),{props:{header:{cellConfig:t}}}},onClickComments(){this.commentModalState=this.leaveRequestId,this.isLeaveRequest=!0,this.showCommentModal=!0},onCommentModalClose(){this.commentModalState=null,this.showCommentModal=!1,this.resetDataTable()},onLeaveDropdownAction(e,t){"cancel_leave"===e.context?this.onLeaveAction(t.id,"CANCEL"):(this.commentModalState=t.id,this.isLeaveRequest=!1,this.showCommentModal=!0)},onLeaveAction(e,t){this.isLoading=!0,this.processLeaveAction(e,t).then((()=>{this.$toast.updateSuccess()})).finally(this.resetDataTable)},onClickBack(){this.myLeaveRequest?U("/leave/viewMyLeaveList"):U("/leave/viewLeaveList")},async resetDataTable(){await this.execQuery()}}};const NT=(0,r.Z)(wT,[["render",xT],["__scopeId","data-v-5cf2c6b8"]]);var _T=NT;function kT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("date-input"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("leave-type-dropdown"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-divider"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("oxd-table-filter"),C=(0,a.resolveComponent)("leave-list-table");return(0,a.openBlock)(),(0,a.createBlock)(C,{"leave-statuses":o.leaveStatuses,"my-leave-list":!0},{default:(0,a.withCtx)((({filters:t,filterItems:l,rules:n,onReset:r})=>[(0,a.createVNode)(y,{"filter-title":e.$t("leave.my_leave_list")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{onSubmitValid:l,onReset:r},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.fromDate,"onUpdate:modelValue":e=>t.fromDate=e,label:e.$t("general.from_date"),rules:n.fromDate},null,8,["modelValue","onUpdate:modelValue","label","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:t.toDate,"onUpdate:modelValue":e=>t.toDate=e,label:e.$t("general.to_date"),rules:n.toDate},null,8,["modelValue","onUpdate:modelValue","label","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:t.statuses,"onUpdate:modelValue":e=>t.statuses=e,value:"Select",type:"multiselect",label:e.$t("leave.show_leave_with_status"),options:o.leaveStatuses,rules:n.statuses,required:""},null,8,["modelValue","onUpdate:modelValue","label","options","rules"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:t.leaveType,"onUpdate:modelValue":e=>t.leaveType=e,"eligible-only":!0,"include-allocated":!0},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(p),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(g,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid","onReset"])])),_:2},1032,["filter-title"])])),_:1},8,["leave-statuses"])}var ST={components:{"leave-list-table":dT,"leave-type-dropdown":zS},props:{leaveStatuses:{type:Array,default:()=>[]}}};const DT=(0,r.Z)(ST,[["render",kT]]);var $T=DT;const ET=e=>((0,a.pushScopeId)("data-v-6ef58e5d"),e=e(),(0,a.popScopeId)(),e),TT=ET((()=>(0,a.createElementVNode)("br",null,null,-1)));function BT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-input-group"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("leave-type-dropdown"),p=(0,a.resolveComponent)("leave-period-dropdown"),h=(0,a.resolveComponent)("jobtitle-dropdown"),g=(0,a.resolveComponent)("oxd-text"),v=(0,a.resolveComponent)("oxd-switch-input"),f=(0,a.resolveComponent)("employee-autocomplete"),y=(0,a.resolveComponent)("oxd-divider"),C=(0,a.resolveComponent)("required-text"),b=(0,a.resolveComponent)("oxd-button"),V=(0,a.resolveComponent)("oxd-form-actions"),x=(0,a.resolveComponent)("oxd-form"),w=(0,a.resolveComponent)("oxd-table-filter"),N=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(N,{module:"leave",name:l.filters.type,filters:l.serializedFilters,"column-count":6},{default:(0,a.withCtx)((({generateReport:n})=>[(0,a.createVNode)(w,{"filter-title":e.$t("leave.leave_entitlement_and_usage_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(x,{onSubmitValid:n},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{label:e.$t("leave.generate_for"),classes:{wrapper:"--grouped-field"}},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.type,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.type=e),type:"radio","option-label":e.$t("leave.leave_type"),value:"leave_type_leave_entitlements_and_usage"},null,8,["modelValue","option-label"]),(0,a.createVNode)(i,{modelValue:l.filters.type,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.type=e),type:"radio","option-label":e.$t("general.employee"),value:"employee_leave_entitlements_and_usage"},null,8,["modelValue","option-label"])])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),"leave_type_leave_entitlements_and_usage"===l.filters.type?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.leaveType,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.leaveType=e),"empty-text":e.$t("leave.no_leave_types_defined"),"eligible-only":!1,"show-empty-selector":!1,rules:l.rules.leaveType},null,8,["modelValue","empty-text","rules"])])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.leavePeriod,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.leavePeriod=e),rules:l.rules.leavePeriod,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.location,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.location=e),type:"select",label:e.$t("general.location"),options:o.locations},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.subunit,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.subunit=e),type:"select",label:e.$t("general.sub_unit"),options:o.subunits},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:l.filters.jobTitle,"onUpdate:modelValue":t[6]||(t[6]=e=>l.filters.jobTitle=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-leave-filter --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{class:"orangehrm-leave-filter-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("leave.include_past_employees")),1)])),_:1}),(0,a.createVNode)(v,{modelValue:l.filters.includePastEmps,"onUpdate:modelValue":t[7]||(t[7]=e=>l.filters.includePastEmps=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1})):((0,a.openBlock)(),(0,a.createBlock)(m,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{modelValue:l.filters.employee,"onUpdate:modelValue":t[8]||(t[8]=e=>l.filters.employee=e),rules:l.rules.employee,params:{includeEmployees:"currentAndPast"},required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.leavePeriod,"onUpdate:modelValue":t[9]||(t[9]=e=>l.filters.leavePeriod=e),rules:l.rules.leavePeriod,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1})),(0,a.createVNode)(y),(0,a.createVNode)(V,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(C),(0,a.createVNode)(b,{type:"submit","display-type":"secondary",class:"orangehrm-left-space",label:e.$t("general.generate")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),TT])),_:1},8,["name","filters"])}const IT={type:"leave_type_leave_entitlements_and_usage",employee:null,leavePeriod:null,leaveType:null,subunit:null,location:null,jobTitle:null,includePastEmps:!1};var LT={components:{"reports-table":ex,"oxd-switch-input":q.OxdSwitchInput,"jobtitle-dropdown":Eu,"leave-type-dropdown":zS,"leave-period-dropdown":MD,"employee-autocomplete":Va},props:{locations:{type:Array,default:()=>[]},subunits:{type:Array,default:()=>[]},leavePeriod:{type:Object,required:!1,default:()=>null}},setup(e){const t=(0,a.ref)({...IT,...e.leavePeriod&&{leavePeriod:e.leavePeriod}}),o=(0,a.ref)({employee:[jt,xo],leavePeriod:[jt],leaveType:[jt]}),l=(0,a.computed)((()=>"leave_type_leave_entitlements_and_usage"===t.value.type?{name:t.value.type,fromDate:t.value.leavePeriod?.startDate,toDate:t.value.leavePeriod?.endDate,subunitId:t.value.subunit?.id,leaveTypeId:t.value.leaveType?.id,locationId:t.value.location?.id,jobTitleId:t.value.jobTitle?.id,includeEmployees:t.value.includePastEmps?"currentAndPast":"onlyCurrent"}:{name:t.value.type,empNumber:t.value.employee?.id,fromDate:t.value.leavePeriod?.startDate,toDate:t.value.leavePeriod?.endDate}));return{rules:o,filters:t,serializedFilters:l}}};const UT=(0,r.Z)(LT,[["render",BT],["__scopeId","data-v-6ef58e5d"]]);var AT=UT;const PT=(0,a.createElementVNode)("br",null,null,-1);function qT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("leave-period-dropdown"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(f,{module:"leave",name:"my_leave_entitlements_and_usage",prefetch:!0,filters:l.serializedFilters,"column-count":6},{default:(0,a.withCtx)((({generateReport:o})=>[(0,a.createVNode)(v,{"filter-title":e.$t("leave.my_leave_entitlement_and_usage_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:o},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.leavePeriod,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.leavePeriod=e),rules:l.rules.leavePeriod,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{type:"submit","display-type":"secondary",class:"orangehrm-left-space",label:e.$t("general.generate")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),PT])),_:1},8,["filters"])}var MT={components:{"reports-table":ex,"leave-period-dropdown":MD},props:{leavePeriod:{type:Object,required:!1,default:()=>({})}},setup(e){const t=(0,a.ref)({leavePeriod:e.leavePeriod?e.leavePeriod:null}),o=(0,a.ref)({leavePeriod:[jt]}),l=(0,a.computed)((()=>({fromDate:t.value.leavePeriod?.startDate,toDate:t.value.leavePeriod?.endDate})));return{rules:o,filters:t,serializedFilters:l}}};const FT=(0,r.Z)(MT,[["render",qT]]);var jT=FT,zT={"leave-period":zk,"leave-apply":LS,"leave-assign":eD,"leave-type-edit":ND,"leave-type-list":dD,"leave-type-save":BD,"leave-add-entitlement":m$,"leave-edit-entitlement":y$,"leave-view-entitlement":B$,"leave-view-my-entitlement":A$,"work-week":R$,"holiday-list":K$,"holiday-save":rE,"holiday-edit":pE,"leave-list":uT,"leave-view-request":_T,"my-leave-list":$T,"leave-entitlement-report":AT,"my-leave-entitlement-report":jT};const RT={class:"orangehrm-background-container"},OT={class:"orangehrm-paper-container"},GT={class:"orangehrm-header-container"},ZT={class:"orangehrm-container"},QT={class:"orangehrm-bottom-container"};function HT(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination"),u=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",RT,[(0,a.createElementVNode)("div",OT,[(0,a.createElementVNode)("div",GT,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.oauth_client_list")),1)])),_:1}),(0,a.createElementVNode)("div",null,[(0,a.createVNode)(s,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])]),(0,a.createVNode)(d,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",ZT,[(0,a.createVNode)(c,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",QT,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(u,{ref:"deleteDialog"},null,512)])}var WT={components:{"delete-confirmation":Et},props:{unselectableClientIds:{type:Array,default:()=>[]}},setup(e){const{$t:t}=Se(),o=o=>o.map((o=>{const a=e.unselectableClientIds.findIndex((e=>e===o.clientId));return{id:o.id,name:o.name,redirectUri:o.redirectUri,enabled:o.enabled?t("general.enabled"):t("general.disabled"),isSelectable:-1===a,isDisabled:-1!==a}})),a=new P(window.appGlobal.baseUrl,"/api/v2/admin/oauth-clients"),{showPaginator:l,currentPage:n,total:r,pages:i,pageSize:s,response:d,isLoading:c,execQuery:m}=wt(a,{normalizer:o});return{http:a,showPaginator:l,currentPage:n,isLoading:c,total:r,pages:i,pageSize:s,execQuery:m,items:d}},data(){return{headers:[{name:"name",slot:"title",title:this.$t("general.name"),style:{flex:2}},{name:"redirectUri",title:this.$t("admin.redirect_uri"),style:{flex:3}},{name:"enabled",title:this.$t("general.status"),style:{flex:2}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[]}},methods:{onClickAdd(){U("/admin/saveOAuthClient")},onClickEdit(e){U("/admin/editOAuthClient",{},{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const YT=(0,r.Z)(WT,[["render",HT]]);var JT=YT;const XT={class:"orangehrm-background-container"},KT={class:"orangehrm-card-container"};function eB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-alert"),u=(0,a.resolveComponent)("oxd-switch-input"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",XT,[(0,a.createElementVNode)("div",KT,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.editMode?e.$t("admin.edit_oauth_client"):e.$t("admin.add_oauth_client")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.oAuthClient.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.oAuthClient.name=e),label:e.$t("general.name"),rules:n.rules.name,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.oAuthClient.redirectUri,"onUpdate:modelValue":t[1]||(t[1]=e=>n.oAuthClient.redirectUri=e),label:e.$t("admin.redirect_uri"),rules:n.rules.redirectUri,required:""},null,8,["modelValue","label","rules"])])),_:1}),r.editMode?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(c,{class:"--offset-row-3"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.oAuthClient.clientId,"onUpdate:modelValue":t[2]||(t[2]=e=>n.oAuthClient.clientId=e),label:e.$t("admin.client_id"),disabled:""},null,8,["modelValue","label"])])),_:1}),r.showClientSecret?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,class:"--offset-row-4"},{default:(0,a.withCtx)((()=>[n.isSecretPlain?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,type:"warn",show:!0,message:e.$t("admin.client_secret_warning_message")},null,8,["message"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{modelValue:n.oAuthClient.clientSecret,"onUpdate:modelValue":t[3]||(t[3]=e=>n.oAuthClient.clientSecret=e),label:e.$t("admin.client_secret"),disabled:""},null,8,["modelValue","label"])])),_:1})):(0,a.createCommentVNode)("",!0)],64)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,{class:"--offset-row-5"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-field-row"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.enable_client")),1)])),_:1}),(0,a.createVNode)(u,{modelValue:n.oAuthClient.enabled,"onUpdate:modelValue":t[4]||(t[4]=e=>n.oAuthClient.enabled=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),r.editMode?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(c,{key:1,class:"--offset-row-6"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-field-row"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("admin.confidential_client")),1)])),_:1}),(0,a.createVNode)(u,{modelValue:n.oAuthClient.confidential,"onUpdate:modelValue":t[5]||(t[5]=e=>n.oAuthClient.confidential=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}))])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const tB={id:null,name:"",redirectUri:"",enabled:!0,clientId:null,clientSecret:"********",confidential:!1};var oB={components:{"oxd-switch-input":q.OxdSwitchInput,"oxd-alert":q.OxdAlert},props:{id:{type:Number,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/admin/oauth-clients");return{http:e}},data(){return{isLoading:!1,isSecretPlain:!1,oAuthClient:{...tB},rules:{name:[jt,zt(80)],redirectUri:[jt,zt(2e3)]}}},computed:{editMode(){return null!==this.oAuthClient.clientId},showClientSecret(){return!0===this.oAuthClient.confidential}},created(){this.isLoading=!0,this.getClient().then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name===e));if(o>-1){const{id:e}=t[o];return e===this.id||this.$t("general.already_exists")}return!0}))})).finally((()=>{this.isLoading=!1}))},methods:{getClient(){return null!==this.id?this.http.get(this.id).then((e=>{const{data:t}=e.data;return this.setDataFromResponse(t),this.http.getAll({limit:0})})):this.http.getAll({limit:0})},onCancel(){U("/admin/registerOAuthClient")},onSave(){this.isLoading=!0,(this.editMode?this.update():this.create()).finally((()=>{this.isLoading=!1}))},create(){return this.http.create({name:this.oAuthClient.name,redirectUri:this.oAuthClient.redirectUri,enabled:this.oAuthClient.enabled,confidential:this.oAuthClient.confidential}).then((e=>{const{data:t,meta:o}=e.data;return this.setDataFromResponse(t),this.oAuthClient.clientSecret=o.clientSecret,this.isSecretPlain=!0,this.$toast.saveSuccess()}))},update(){return this.http.update(this.oAuthClient.id,{name:this.oAuthClient.name,redirectUri:this.oAuthClient.redirectUri,enabled:this.oAuthClient.enabled,confidential:this.oAuthClient.confidential}).then((e=>{const{data:t,meta:o}=e.data;return this.setDataFromResponse(t),!0===t.confidential&&null!==o.clientSecret&&(this.oAuthClient.clientSecret=o.clientSecret,this.isSecretPlain=!0),this.$toast.updateSuccess()}))},setDataFromResponse(e){this.oAuthClient.id=e.id,this.oAuthClient.name=e.name,this.oAuthClient.redirectUri=e.redirectUri,this.oAuthClient.enabled=e.enabled,this.oAuthClient.clientId=e.clientId,this.oAuthClient.confidential=e.confidential}}};const aB=(0,r.Z)(oB,[["render",eB],["__scopeId","data-v-6ea3f680"]]);var lB=aB;const nB=e=>((0,a.pushScopeId)("data-v-3810ee3c"),e=e(),(0,a.popScopeId)(),e),rB={class:"orangehrm-oauth-container"},iB={class:"orangehrm-card-container"},sB={class:"orangehrm-oauth-list"},dB=nB((()=>(0,a.createElementVNode)("br",null,null,-1))),cB=["value"],mB=["name","value"],uB={class:"orangehrm-oauth-button-container"};function pB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("login-branding"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("oxd-form"),u=(0,a.resolveComponent)("oxd-alert");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rB,[(0,a.createElementVNode)("div",iB,[(0,a.createVNode)(i,{"img-src":o.loginBannerSrc,class:"orangehrm-oauth-branding"},null,8,["img-src"]),(0,a.createVNode)(s),null===o.errorType?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.client_name_would_like_to",{clientName:o.clientName}))+": ",1)])),_:1}),(0,a.createElementVNode)("ul",sB,[(0,a.createElementVNode)("li",null,[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.access_and_manage_your_data")),1)])),_:1})]),(0,a.createElementVNode)("li",null,[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.perform_actions_on_your_behalf")),1)])),_:1})])]),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.do_you_want_to_allow_access")),1)])),_:1}),dB,(0,a.createVNode)(m,{ref:"authorizeForm",method:"GET",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("input",{name:"authorized",value:n.authorized,type:"hidden"},null,8,cB),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.params,((e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t},[(0,a.createElementVNode)("input",{name:t,value:e,type:"hidden"},null,8,mB)])))),128)),(0,a.createElementVNode)("div",uB,[(0,a.createVNode)(c,{"display-type":"ghost",size:"large",class:"orangehrm-oauth-button",label:e.$t("auth.deny"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(c,{"display-type":"secondary",class:"orangehrm-oauth-button",size:"large",label:e.$t("auth.allow_access"),type:"submit"},null,8,["label"])])])),_:1},8,["action","onSubmitValid"])],64)):"orangehrm_mobile_app"===o.params["client_id"]?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1,show:!0,type:"error",message:e.$t("auth.mobile_client_disabled_error")},null,8,["message"])):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createVNode)(u,{show:!0,type:"error",message:e.$t("auth.this_request_is_invalid")},null,8,["message"]),(0,a.createVNode)(d,{class:"orangehrm-oauth-error"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.error"))+": "+(0,a.toDisplayString)(o.errorType),1)])),_:1})],64))]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}const hB={class:"orangehrm-login-branding"},gB=["src"];function vB(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",hB,[(0,a.createElementVNode)("img",{src:o.imgSrc,alt:"company-branding"},null,8,gB)])}var fB={name:"LoginBranding",props:{imgSrc:{type:String,required:!0}}};const yB=(0,r.Z)(fB,[["render",vB],["__scopeId","data-v-3dda64e6"]]);var CB=yB,bB={name:"OAuthAuthorize",components:{"login-branding":CB,"oxd-alert":q.OxdAlert},props:{params:{type:Object,required:!0},clientName:{type:String,default:null},errorType:{type:String,default:null},loginBannerSrc:{type:String,required:!0}},data(){return{authorized:!0}},computed:{submitUrl(){return L("/oauth2/authorize/consent")}},methods:{onCancel(){this.authorized=!1,this.onSubmit()},onSubmit(){this.$nextTick((()=>{this.$refs.authorizeForm.$el.submit()}))}}};const VB=(0,r.Z)(bB,[["render",pB],["__scopeId","data-v-3810ee3c"]]);var xB=VB,wB={"oauth-client-list":JT,"oauth-client-save":lB,"oauth-authorize":xB};const NB={class:"orangehrm-background-container"},_B={class:"orangehrm-card-container"},kB={class:"orangehrm-paper-container"};function SB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("record-attendance");return(0,a.openBlock)(),(0,a.createElementBlock)("div",NB,[(0,a.createElementVNode)("div",_B,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.punch_in")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",kB,[(0,a.createVNode)(d,(0,a.normalizeProps)((0,a.guardReactiveProps)(e.$attrs)),null,16)])])])}function DB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-input-group"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("date-input"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("timezone-dropdown"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createBlock)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[n.attendanceRecord.previousRecord?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(d,{class:(0,a.normalizeClass)(n.attendanceRecord.previousRecord.note?"":"--span-column-2")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{label:e.$t("attendance.punched_in_time")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.previousAttendanceRecordDate)+" - "+(0,a.toDisplayString)(r.previousAttendanceRecordTime)+" ",1),(0,a.createVNode)(i,{tag:"span",class:"orangehrm-attendance-punchedIn-timezone"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(`(GMT ${n.previousRecordTimezone})`),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["class"]),n.attendanceRecord.previousRecord.note?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{label:e.$t("attendance.punched_in_note")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.attendanceRecord.previousRecord.note),1)])),_:1})])),_:1},8,["label"])])),_:1})):(0,a.createCommentVNode)("",!0)],64)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(),(0,a.createBlock)(c,{key:n.attendanceRecord.time,modelValue:n.attendanceRecord.date,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attendanceRecord.date=e),label:e.$t("general.date"),rules:n.rules.date,disabled:!o.isEditable,required:""},null,8,["modelValue","label","rules","disabled"]))])),_:1}),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendanceRecord.time,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attendanceRecord.time=e),label:e.$t("general.time"),disabled:!o.isEditable,rules:n.rules.time,type:"time",placeholder:e.$t("attendance.hh_mm"),required:""},null,8,["modelValue","label","disabled","rules","placeholder"])])),_:1})])),_:1})])),_:1}),o.isTimezoneEditable?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,cols:2},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.attendanceRecord.timezone,"onUpdate:modelValue":t[2]||(t[2]=e=>n.attendanceRecord.timezone=e),required:""},null,8,["modelValue"])])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendanceRecord.note,"onUpdate:modelValue":t[3]||(t[3]=e=>n.attendanceRecord.note=e),rules:n.rules.note,label:e.$t("general.note"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{label:o.attendanceRecordId?e.$t("attendance.out"):e.$t("attendance.in")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])}function $B(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",options:l.options,label:e.$t("attendance.timezone"),"show-empty-selector":!1},null,8,["options","label"])}var EB={name:"TimezoneDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/attendance/timezones");return(0,a.onBeforeMount)((()=>{t.getAll().then((({data:t})=>{e.value=t.data.map((e=>({id:e.name,label:`(GMT${e.label}) ${e.name}`,_offset:parseFloat(e.offset)})))}))})),{options:e}}};const TB=(0,r.Z)(EB,[["render",$B]]);var BB=TB;const IB={date:null,time:null,note:null,timezone:null,previousRecord:null};var LB={name:"RecordAttendance",components:{"timezone-dropdown":BB},props:{isEditable:{type:Boolean,default:!1},isTimezoneEditable:{type:Boolean,default:!1},attendanceRecordId:{type:Number,default:null},employeeId:{type:Number,default:null},date:{type:String,default:null}},setup(e){const t=e.employeeId?`/api/v2/attendance/employees/${e.employeeId}/records`:"/api/v2/attendance/records",o=new P(window.appGlobal.baseUrl,t),{jsDateFormat:a,userDateFormat:l,timeFormat:n,jsTimeFormat:r}=R(),{locale:i}=De();return{http:o,locale:i,timeFormat:n,jsTimeFormat:r,jsDateFormat:a,userDateFormat:l}},data(){return{isLoading:!1,attendanceRecord:{...IB},rules:{date:[jt,Rt(this.userDateFormat),(0,q.promiseDebounce)(this.validateDate,500)],time:[jt,(0,q.promiseDebounce)(this.validateDate,500)],note:[zt(250)]},previousRecordTimezone:null}},computed:{previousAttendanceRecordDate(){return this.attendanceRecord?.previousRecord?ie(re(this.attendanceRecord.previousRecord.userDate),this.jsDateFormat,{locale:this.locale}):null},previousAttendanceRecordTime(){return this.attendanceRecord?.previousRecord?ue(me(this.attendanceRecord.previousRecord.userTime,this.timeFormat),this.jsTimeFormat):null}},beforeMount(){if(this.isLoading=!0,this.isTimezoneEditable){const e=be();this.attendanceRecord.timezone={id:e.name,label:e.label,_name:e.name,_offset:e.offset}}this.setCurrentDateTime().then((()=>{!this.date&&!this.isEditable&&ye(this.setCurrentDateTime,6e4);let e="/api/v2/attendance/records/latest";return this.employeeId&&(e=`/api/v2/attendance/records/latest?empNumber=${this.employeeId}`),this.attendanceRecordId?this.http.request({method:"GET",url:e}):null})).then((e=>{if(e){const{data:t}=e.data;this.attendanceRecord.previousRecord=t.punchIn}})).then((()=>{this.previousRecordTimezone=Ce(this.attendanceRecord.previousRecord?.offset)})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0;const e=be();this.http.request({method:this.attendanceRecordId?"PUT":"POST",data:{date:this.attendanceRecord.date,time:this.attendanceRecord.time,note:this.attendanceRecord.note,timezoneOffset:this.attendanceRecord.timezone?._offset??e.offset,timezoneName:this.attendanceRecord.timezone?.id??e.name}}).then((()=>this.$toast.saveSuccess())).then((()=>{this.employeeId?U("/attendance/viewAttendanceRecord",void 0,{employeeId:this.employeeId,date:this.date}):A()}))},setCurrentDateTime(){return new Promise(((e,t)=>{this.http.request({method:"GET",url:"/api/v2/attendance/current-datetime"}).then((t=>{const{utcDate:o,utcTime:a}=t.data.data,l=re(`${o} ${a} +00:00`,"yyyy-MM-dd HH:mm xxx");this.attendanceRecord.date=this.date??ie(l,"yyyy-MM-dd"),this.attendanceRecord.time=ie(l,"HH:mm"),e()})).catch((e=>t(e)))}))},validateDate(){if(!this.attendanceRecord.date||!this.attendanceRecord.time)return!0;if(null===re(this.attendanceRecord.date))return!0;const e=(new Date).getTimezoneOffset()/60*-1;return new Promise((t=>{this.http.request({method:"GET",url:`/api/v2/attendance/${this.attendanceRecordId?"punch-out":"punch-in"}/overlaps`,params:{date:this.attendanceRecord.date,time:this.attendanceRecord.time,timezoneOffset:this.attendanceRecord.timezone?._offset??e,empNumber:this.employeeId},validateStatus:e=>e>=200&&e<300||400==e}).then((e=>{const{data:o,error:a}=e.data;return a?t(a.message):!0===o.valid?t(!0):t(this.$t("attendance.overlapping_records_found"))}))}))}}};const UB=(0,r.Z)(LB,[["render",DB],["__scopeId","data-v-3d5e6918"]]);var AB=UB,PB={components:{"record-attendance":AB},inheritAttrs:!1};const qB=(0,r.Z)(PB,[["render",SB]]);var MB=qB;const FB={class:"orangehrm-background-container"},jB={class:"orangehrm-card-container"},zB={class:"orangehrm-paper-container"};function RB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("record-attendance");return(0,a.openBlock)(),(0,a.createElementBlock)("div",FB,[(0,a.createElementVNode)("div",jB,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.punch_out")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",zB,[(0,a.createVNode)(d,(0,a.normalizeProps)((0,a.guardReactiveProps)(e.$attrs)),null,16)])])])}var OB={components:{"record-attendance":AB},inheritAttrs:!1};const GB=(0,r.Z)(OB,[["render",RB]]);var ZB=GB;const QB={class:"orangehrm-background-container"},HB={class:"orangehrm-card-container"},WB={class:"orangehrm-header"},YB={class:"orangehrm-paper-container"};function JB(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("date-input"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("timezone-dropdown"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",QB,[(0,a.createElementVNode)("div",HB,[(0,a.createElementVNode)("div",WB,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.edit_attendance_records")),1)])),_:1}),r.totalDuration?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,tag:"span",class:"orangehrm-header-total"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(r.totalDuration),1)])),_:1})):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(s),(0,a.createElementVNode)("div",YB,[(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid no-gap"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.punch_in")),1)])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.attendance.punchIn.userDate,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attendance.punchIn.userDate=e),label:e.$t("general.date"),rules:n.rules.punchIn.userDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendance.punchIn.userTime,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attendance.punchIn.userTime=e),label:e.$t("general.time"),rules:n.rules.punchIn.userTime,type:"time",placeholder:e.$t("attendance.hh_mm"),required:""},null,8,["modelValue","label","rules","placeholder"])])),_:1}),o.isTimezoneEditable?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"--offset-row-3 --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:n.attendance.punchIn.timezone,"onUpdate:modelValue":t[2]||(t[2]=e=>n.attendance.punchIn.timezone=e),required:""},null,8,["modelValue"])])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendance.punchIn.note,"onUpdate:modelValue":t[3]||(t[3]=e=>n.attendance.punchIn.note=e),rules:n.rules.punchIn.note,label:e.$t("general.note"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),n.attendance.punchOut?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-punch-out-record"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.punch_out")),1)])),_:1})])),_:1}),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.attendance.punchOut.userDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.attendance.punchOut.userDate=e),label:e.$t("general.date"),rules:n.rules.punchOut.userDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(d,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendance.punchOut.userTime,"onUpdate:modelValue":t[5]||(t[5]=e=>n.attendance.punchOut.userTime=e),label:e.$t("general.time"),rules:n.rules.punchOut.userTime,type:"time",placeholder:e.$t("attendance.hh_mm"),required:""},null,8,["modelValue","label","rules","placeholder"])])),_:1}),o.isTimezoneEditable?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"--offset-row-3 --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:n.attendance.punchOut.timezone,"onUpdate:modelValue":t[6]||(t[6]=e=>n.attendance.punchOut.timezone=e),required:""},null,8,["modelValue"])])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.attendance.punchOut.note,"onUpdate:modelValue":t[7]||(t[7]=e=>n.attendance.punchOut.note=e),rules:n.rules.punchOut.note,label:e.$t("general.note"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])])}const XB={userDate:null,userTime:null,utcDate:null,utcTime:null,note:null,timezone:null,timezoneOffset:null};var KB={components:{"timezone-dropdown":BB},props:{attendanceId:{type:Number,required:!0},isEmployeeEdit:{type:Boolean,default:!1},isTimezoneEditable:{type:Boolean,default:!1}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/attendance/records"),{userDateFormat:t}=R();return{http:e,userDateFormat:t}},data(){return{isLoading:!1,attendance:{employee:null,punchIn:{...XB},punchOut:{...XB}},rules:{punchIn:{userDate:[jt,Rt(this.userDateFormat),(0,q.promiseDebounce)((()=>this.validateRecord("punch-in-overlaps")),500)],userTime:[jt,(0,q.promiseDebounce)((()=>this.validateRecord("punch-in-overlaps")),500)],note:[zt(250)]},punchOut:{userDate:[jt,Rt(this.userDateFormat),(0,q.promiseDebounce)((()=>this.validateRecord("punch-out-overlaps")),500)],userTime:[jt,(0,q.promiseDebounce)((()=>this.validateRecord("punch-out-overlaps")),500)],note:[zt(250)]}}}},computed:{totalDuration(){if(!this.attendance.punchOut?.userDate)return null;if(null===re(this.attendance.punchIn.userDate)||null===re(this.attendance.punchOut.userDate))return null;const e=`${this.attendance.punchIn.userDate} ${this.attendance.punchIn.userTime}`,t=this.attendance.punchIn.timezone?._offset??parseFloat(this.attendance.punchIn.timezoneOffset),o=(t>0?" +":" -")+ve(3600*Math.abs(t)),a=`${this.attendance.punchOut.userDate} ${this.attendance.punchOut.userTime}`,l=this.attendance.punchOut.timezone?._offset??parseFloat(this.attendance.punchOut.timezoneOffset),n=(l>0?" +":" -")+ve(3600*Math.abs(l));return parseFloat(ge(e+o,a+n,"yyyy-MM-dd HH:mm xxx")/3600).toFixed(2)}},beforeMount(){this.isLoading=!0,this.http.get(this.attendanceId).then((e=>{const{data:t}=e.data;this.attendance.employee=t.employee,this.attendance.punchIn={...t.punchIn,timezone:{id:t.punchIn.timezone.name,label:t.punchIn.timezone.label,_offset:t.punchIn.timezoneOffset}},this.attendance.punchOut=t.punchOut?.userDate?{...t.punchOut,timezone:{id:t.punchOut.timezone.name,label:t.punchOut.timezone.label,_offset:t.punchOut.timezoneOffset}}:null})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){this.isEmployeeEdit?U("/attendance/viewAttendanceRecord",void 0,{employeeId:this.attendance.employee?.empNumber,date:this.attendance.punchIn?.userDate}):U("/attendance/viewMyAttendanceRecord",void 0,{date:this.attendance.punchIn?.userDate})},onSave(){this.isLoading=!0;const e={punchInDate:this.attendance.punchIn.userDate,punchInTime:this.attendance.punchIn.userTime,punchInNote:this.attendance.punchIn.note,...this.isTimezoneEditable&&{punchInOffset:this.attendance.punchIn.timezone?this.attendance.punchIn.timezone._offset:this.attendance.punchIn.timezoneOffset,punchInTimezoneName:this.attendance.punchIn.timezone?this.attendance.punchIn.timezone.id:this.attendance.punchIn.timezone.name}};this.attendance.punchOut&&(e.punchOutDate=this.attendance.punchOut.userDate,e.punchOutTime=this.attendance.punchOut.userTime,e.punchOutNote=this.attendance.punchOut.note,this.isTimezoneEditable&&(e.punchOutOffset=this.attendance.punchOut.timezone?this.attendance.punchOut.timezone._offset:this.attendance.punchOut.timezoneOffset,e.punchOutTimezoneName=this.attendance.punchOut.timezone?this.attendance.punchOut.timezone.id:this.attendance.punchOut.timezone.name)),this.http.update(this.attendanceId,e).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))},validateRecord(e){return null===re(this.attendance.punchIn.userDate)||(!(!this.attendance.punchOut||null!==re(this.attendance.punchOut.userDate))||new Promise((t=>{this.http.request({method:"GET",url:`/api/v2/attendance/records/${e}`,params:{recordId:this.attendanceId,punchInTimezoneOffset:this.attendance.punchIn.timezone?this.attendance.punchIn.timezone._offset:this.attendance.punchIn.timezoneOffset,punchInDate:this.attendance.punchIn.userDate,punchInTime:this.attendance.punchIn.userTime,punchOutTimezoneOffset:this.attendance.punchOut?.timezone?this.attendance.punchOut.timezone._offset:this.attendance.punchOut?.timezoneOffset,punchOutDate:this.attendance.punchOut?.userDate,punchOutTime:this.attendance.punchOut?.userTime},validateStatus:e=>e>=200&&e<300||400==e}).then((e=>{const{data:o,error:a}=e.data;return a?t(a.message):!0===o.valid?t(!0):t(this.$t("attendance.overlapping_records_found"))}))})))}}};const eI=(0,r.Z)(KB,[["render",JB],["__scopeId","data-v-40838874"]]);var tI=eI;const oI=e=>((0,a.pushScopeId)("data-v-50a2ff8a"),e=e(),(0,a.popScopeId)(),e),aI=oI((()=>(0,a.createElementVNode)("br",null,null,-1))),lI={class:"orangehrm-paper-container"},nI={class:"orangehrm-header-container"},rI={class:"orangehrm-container"},iI={class:"orangehrm-bottom-container"};function sI(e,t,o,l,n,r){const i=(0,a.resolveComponent)("date-input"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("oxd-text"),y=(0,a.resolveComponent)("table-header"),C=(0,a.resolveComponent)("oxd-card-table"),b=(0,a.resolveComponent)("oxd-pagination"),V=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(v,{"filter-title":e.$t("attendance.my_attendance_records")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.date,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.date=e),rules:l.rules.date,label:e.$t("general.date"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{"display-type":"secondary",label:e.$t("general.view"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),aI,(0,a.createElementVNode)("div",lI,[(0,a.createElementVNode)("div",nI,[(0,a.createVNode)(f,{class:"orangehrm-header-total",tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(l.totalDuration),1)])),_:1})]),(0,a.createVNode)(y,{total:l.total,loading:l.isLoading,selected:n.checkedItems.length,onDelete:r.onClickDeleteSelected},null,8,["total","loading","selected","onDelete"]),(0,a.createElementVNode)("div",rI,[(0,a.createVNode)(C,{selected:n.checkedItems,"onUpdate:selected":t[1]||(t[1]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:o.isEditable,clickable:!1,loading:l.isLoading,class:"orangehrm-my-attendance","row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","loading"])]),(0,a.createElementVNode)("div",iI,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0,current:l.currentPage,"onUpdate:current":t[2]||(t[2]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(V,{ref:"deleteDialog"},null,512)])],64)}const dI={class:"oxd-table-card-cell"},cI={class:"data"};function mI(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("div",dI,[(0,a.withDirectives)((0,a.createElementVNode)("div",{class:"header"},(0,a.toDisplayString)(o.header.title),513),[[a.vShow,r.showHeader]]),(0,a.createElementVNode)("div",cI,[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.date)+" "+(0,a.toDisplayString)(o.time)+" ",1),(0,a.createVNode)(i,{tag:"span",class:"timezone"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" GMT "+(0,a.toDisplayString)(o.offset?o.offset:"00:00"),1)])),_:1})])),_:1})])],512)),[[a.vShow,o.date]])}var uI={name:"RecordCell",props:{header:{type:Object,required:!0},date:{type:String,default:null},time:{type:String,default:null},offset:{type:String,default:null}},setup(){const{screenState:e}=(0,q.useInjectTableProps)();return{screenState:e}},computed:{showHeader(){return!("lg"===this.screenState.screenType||"xl"===this.screenState.screenType)}}};const pI=(0,r.Z)(uI,[["render",mI],["__scopeId","data-v-8f3074ce"]]);var hI=pI,gI={components:{"delete-confirmation":Et},props:{date:{type:String,default:null},isEditable:{type:Boolean,default:!1}},setup(e){const{locale:t}=De(),{jsDateFormat:o,userDateFormat:l,timeFormat:n,jsTimeFormat:r}=R(),i={date:[jt,Rt(l)]},s=(0,a.ref)({date:e.date?e.date:ie(ne(),"yyyy-MM-dd")}),d=(0,a.computed)((()=>({date:s.value.date}))),c=new P(window.appGlobal.baseUrl,"/api/v2/attendance/records"),m=e=>e.map((e=>{const{punchIn:a,punchOut:l}=e,i=ie(re(a?.userDate),o,{locale:t}),s=ue(me(a?.userTime,n),r),d=ie(re(l?.userDate),o,{locale:t}),c=ue(me(l?.userTime,n),r);return{id:e.id,punchIn:{...a,userTime:s,userDate:i},punchOut:{...l,userTime:c,userDate:d},punchInNote:a.note,punchOutNote:l.note,duration:e.duration}})),{total:u,pages:p,pageSize:h,response:g,isLoading:v,execQuery:f,currentPage:y,showPaginator:C}=wt(c,{query:d,normalizer:m}),b=(0,a.computed)((()=>{const e=g.value?.meta;return e?e.sum.label:"0.00"}));return{http:c,rules:i,total:u,pages:p,filters:s,pageSize:h,isLoading:v,execQuery:f,currentPage:y,showPaginator:C,items:g,totalDuration:b}},data(){return{headers:[{name:"punchIn",slot:"title",title:this.$t("attendance.punch_in"),style:{flex:1},cellRenderer:this.cellRenderer},{name:"punchInNote",slot:"title",cellType:"oxd-table-cell-truncate",title:this.$t("attendance.punch_in_note"),style:{flex:1}},{name:"punchOut",slot:"title",title:this.$t("attendance.punch_out"),style:{flex:1},cellRenderer:this.cellRenderer},{name:"punchOutNote",slot:"title",cellType:"oxd-table-cell-truncate",title:this.$t("attendance.punch_out_note"),style:{flex:1}},{name:"duration",slot:"title",title:this.$t("attendance.duration_hours"),style:{flex:1}},{...this.isEditable&&{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}}],checkedItems:[]}},methods:{cellRenderer(...e){const t=e[1];return{component:hI,props:{date:t.userDate,time:t.userTime,offset:Ce(t.offset)}}},onClickEdit(e){U("/attendance/editAttendanceRecord/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()}}};const vI=(0,r.Z)(gI,[["render",sI],["__scopeId","data-v-50a2ff8a"]]);var fI=vI;const yI={class:"orangehrm-background-container"},CI={class:"orangehrm-card-container"},bI={class:"orangehrm-attendance-field-row"},VI={class:"orangehrm-attendance-field-row"},xI={class:"orangehrm-attendance-field-row"};function wI(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-switch-input"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("submit-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",yI,[(0,a.createElementVNode)("div",CI,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.attendance_configuration")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",bI,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.employee_can_change_current_time_when_punching_in_out")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.config.canUserChangeCurrentTime,"onUpdate:modelValue":t[0]||(t[0]=e=>n.config.canUserChangeCurrentTime=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",VI,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.employee_can_edit_delete_own_attendance_records")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.config.canUserModifyAttendance,"onUpdate:modelValue":t[1]||(t[1]=e=>n.config.canUserModifyAttendance=e)},null,8,["modelValue"])]),(0,a.createElementVNode)("div",xI,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("attendance.supervisor_can_add_edit_delete_attendance_records_of_subordinates")),1)])),_:1}),(0,a.createVNode)(d,{modelValue:n.config.canSupervisorModifyAttendance,"onUpdate:modelValue":t[2]||(t[2]=e=>n.config.canSupervisorModifyAttendance=e)},null,8,["modelValue"])])])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const NI={canUserChangeCurrentTime:!1,canUserModifyAttendance:!1,canSupervisorModifyAttendance:!1};var _I={components:{"oxd-switch-input":q.OxdSwitchInput},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/attendance/configs");return{http:e}},data(){return{config:{...NI},isLoading:!1}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.config={...t}})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{...this.config}}).then((e=>{const{data:t}=e.data;return this.config={...t},this.$toast.saveSuccess()})).finally((()=>{this.isLoading=!1}))}}};const kI=(0,r.Z)(_I,[["render",wI],["__scopeId","data-v-026fb4c8"]]);var SI=kI;const DI=(0,a.createElementVNode)("br",null,null,-1);function $I(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("jobtitle-dropdown"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("employment-status-dropdown"),u=(0,a.resolveComponent)("date-input"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("oxd-table-filter"),b=(0,a.resolveComponent)("reports-table");return(0,a.openBlock)(),(0,a.createBlock)(b,{module:"time",name:"attendance",prefetch:!1,filters:l.serializedFilters,"column-count":2},{default:(0,a.withCtx)((({generateReport:n})=>[(0,a.createVNode)(C,{"filter-title":e.$t("attendance.attendance_total_summary_report")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y,{onSubmitValid:n},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:l.rules.employee,params:{includeEmployees:"currentAndPast"}},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.jobTitle=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.subunit,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.subunit=e),type:"select",label:e.$t("general.sub_unit"),options:o.subunits},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.empStatus,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.empStatus=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.fromDate=e),placeholder:e.$t("general.from"),rules:l.rules.fromDate,label:e.$t("general.date_range")},null,8,["modelValue","placeholder","rules","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.toDate=e),label:" ",placeholder:e.$t("general.to"),rules:l.rules.toDate},null,8,["modelValue","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{type:"submit","display-type":"secondary",label:e.$t("general.view")},null,8,["label"])])),_:1})])),_:2},1032,["onSubmitValid"])])),_:2},1032,["filter-title"]),DI])),footer:(0,a.withCtx)((({data:t})=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(t.meta?t.meta.sum.label:"0.00"),1)])),_:1},8,["filters"])}const EI={employee:null,fromDate:null,toDate:null,jobTitle:null,subunit:null,empStatus:null};var TI={components:{"reports-table":ex,"jobtitle-dropdown":Eu,"employee-autocomplete":Va,"employment-status-dropdown":qu},props:{subunits:{type:Array,default:()=>[]}},setup(){const e=(0,a.ref)({...EI}),{$t:t}=Se(),{userDateFormat:o}=R(),l={fromDate:[Rt(o),co((()=>e.value.toDate),t("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(o),eo((()=>e.value.fromDate),t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})],employee:[xo]},n=(0,a.computed)((()=>({empNumber:e.value.employee?.id,fromDate:e.value.fromDate,toDate:e.value.toDate,jobTitleId:e.value.jobTitle?.id,subunitId:e.value.subunit?.id,employmentStatusId:e.value.empStatus?.id})));return{rules:l,filters:e,serializedFilters:n}}};const BI=(0,r.Z)(TI,[["render",$I]]);var II=BI;const LI=e=>((0,a.pushScopeId)("data-v-22f945c4"),e=e(),(0,a.popScopeId)(),e),UI=LI((()=>(0,a.createElementVNode)("br",null,null,-1))),AI={class:"orangehrm-paper-container"},PI={class:"orangehrm-container"},qI={class:"orangehrm-bottom-container"};function MI(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("date-input"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("oxd-table-filter"),y=(0,a.resolveComponent)("table-header"),C=(0,a.resolveComponent)("oxd-card-table"),b=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(f,{"filter-title":e.$t("attendance.employee_attendance_records")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),params:{includeEmployees:"currentAndPast"}},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.date,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.date=e),rules:l.rules.date,years:n.yearArray,label:e.$t("general.date"),required:""},null,8,["modelValue","rules","years","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"secondary",label:e.$t("general.view"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),UI,(0,a.createElementVNode)("div",AI,[(0,a.createVNode)(y,{total:l.total,selected:0,loading:l.isLoading,"show-divider":!1},null,8,["total","loading"]),(0,a.createElementVNode)("div",PI,[(0,a.createVNode)(C,{headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items","loading"])]),(0,a.createElementVNode)("div",qI,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0,current:l.currentPage,"onUpdate:current":t[2]||(t[2]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])],64)}var FI={components:{"employee-autocomplete":Va},props:{date:{type:String,default:null}},setup(e){const{$tEmpName:t}=xa(),{userDateFormat:o}=R(),l={date:[jt,Rt(o)]},n=(0,a.ref)({date:e.date?e.date:ie(ne(),"yyyy-MM-dd"),employee:null}),r=(0,a.computed)((()=>({date:n.value.date,empNumber:n.value.employee?.id}))),i=e=>e.map((e=>({id:e.empNumber,empName:t(e,{includeMiddle:!1,excludePastEmpTag:!1}),duration:e.sum?.label}))),s=new P(window.appGlobal.baseUrl,"/api/v2/attendance/employees/summary"),{total:d,pages:c,response:m,isLoading:u,execQuery:p,currentPage:h,showPaginator:g}=wt(s,{query:r,normalizer:i});return{http:s,rules:l,total:d,pages:c,filters:n,isLoading:u,execQuery:p,currentPage:h,showPaginator:g,items:m}},data(){return{yearArray:[...wf()],headers:[{name:"empName",slot:"title",title:this.$t("general.employee_name"),style:{flex:"40%"}},{name:"duration",title:this.$t("time.total_duration"),style:{flex:"40%"}},{name:"actions",slot:"footer",title:this.$t("general.actions"),style:{flex:"20%"},cellType:"oxd-table-cell-actions",cellConfig:{view:{onClick:this.onClickView,component:"oxd-button",props:{label:this.$t("general.view"),displayType:"text",size:"medium"}}}}]}},methods:{async resetDataTable(){await this.execQuery()},async filterItems(){if(this.filters.employee&&this.filters.date)return U("/attendance/viewAttendanceRecord",void 0,{employeeId:this.filters.employee.id,date:this.filters.date});await this.execQuery()},onClickView(e){U("/attendance/viewAttendanceRecord",void 0,{employeeId:e.id,date:this.filters.date})}}};const jI=(0,r.Z)(FI,[["render",MI],["__scopeId","data-v-22f945c4"]]);var zI=jI;const RI=(0,a.createElementVNode)("br",null,null,-1),OI={class:"orangehrm-paper-container"},GI={key:0,class:"orangehrm-header-container"},ZI={class:"orangehrm-container"},QI={class:"orangehrm-bottom-container"};function HI(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("date-input"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("oxd-table-filter"),y=(0,a.resolveComponent)("oxd-text"),C=(0,a.resolveComponent)("table-header"),b=(0,a.resolveComponent)("oxd-card-table"),V=(0,a.resolveComponent)("oxd-pagination"),x=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(f,{"filter-title":e.$t("attendance.employee_attendance_records")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{onSubmitValid:r.onClickView},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:l.rules.employee,params:{includeEmployees:"currentAndPast"}},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.date,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.date=e),rules:l.rules.date,years:n.yearArray,label:e.$t("general.date"),required:""},null,8,["modelValue","rules","years","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"secondary",label:e.$t("general.view"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),RI,(0,a.createElementVNode)("div",OI,[o.isEditable&&l.filters.employee?((0,a.openBlock)(),(0,a.createElementBlock)("div",GI,[(0,a.createVNode)(h,{"icon-name":"plus","display-type":"secondary",label:e.$t("general.add"),onClick:r.onClickAdd},null,8,["label","onClick"]),(0,a.createVNode)(y,{class:"orangehrm-header-total",tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("time.total_duration"))+": "+(0,a.toDisplayString)(l.totalDuration),1)])),_:1})])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(C,{total:l.total,loading:l.isLoading,"show-divider":o.isEditable,selected:n.checkedItems.length,onDelete:r.onClickDeleteSelected},null,8,["total","loading","show-divider","selected","onDelete"]),(0,a.createElementVNode)("div",ZI,[(0,a.createVNode)(b,{selected:n.checkedItems,"onUpdate:selected":t[2]||(t[2]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,selectable:o.isEditable,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","selectable","loading"])]),(0,a.createElementVNode)("div",QI,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(x,{ref:"deleteDialog"},null,512)])],64)}var WI={components:{"employee-autocomplete":Va,"delete-confirmation":Et},props:{date:{type:String,default:null},employee:{type:Object,required:!0},isEditable:{type:Boolean,default:!1}},setup(e){const t=(0,a.ref)({date:e.date?e.date:ie(ne(),"yyyy-MM-dd"),employee:e.employee?{id:e.employee.empNumber,label:`${e.employee.firstName} ${e.employee.middleName} ${e.employee.lastName}`,isPastEmployee:e.employee.terminationId}:null}),o=(0,a.computed)((()=>({date:t.value.date,empNumber:t.value.employee?.id}))),l=new P(window.appGlobal.baseUrl,`/api/v2/attendance/employees/${e.employee.empNumber}/records`),{locale:n}=De(),{jsDateFormat:r,userDateFormat:i,timeFormat:s,jsTimeFormat:d}=R(),c={date:[jt,Rt(i)],employee:[xo]},m=e=>e.map((e=>{const{punchIn:t,punchOut:o}=e,a=ie(re(t?.userDate),r,{locale:n}),l=ue(me(t?.userTime,s),d),i=ie(re(o?.userDate),r,{locale:n}),c=ue(me(o?.userTime,s),d);return{id:e.id,punchIn:{...t,userTime:l,userDate:a},punchOut:{...o,userTime:c,userDate:i},duration:e.duration,punchInNote:t.note,punchOutNote:o.note}})),{total:u,pages:p,pageSize:h,response:g,isLoading:v,execQuery:f,currentPage:y,showPaginator:C}=wt(l,{query:o,normalizer:m,prefetch:!0}),b=(0,a.computed)((()=>{const e=g.value?.meta;return e?e.sum.label:"0.00"}));return{http:l,rules:c,total:u,pages:p,filters:t,pageSize:h,isLoading:v,execQuery:f,currentPage:y,showPaginator:C,items:g,totalDuration:b}},data(){return{yearArray:[...wf()],headers:[{name:"punchIn",slot:"title",title:this.$t("attendance.punch_in"),style:{flex:1},cellRenderer:this.cellRenderer},{name:"punchInNote",slot:"title",cellType:"oxd-table-cell-truncate",title:this.$t("attendance.punch_in_note"),style:{flex:1}},{name:"punchOut",slot:"title",title:this.$t("attendance.punch_out"),style:{flex:1},cellRenderer:this.cellRenderer},{name:"punchOutNote",slot:"title",cellType:"oxd-table-cell-truncate",title:this.$t("attendance.punch_out_note"),style:{flex:1}},{name:"duration",slot:"title",title:this.$t("attendance.duration_hours"),style:{flex:1}},{...this.isEditable&&{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}}],checkedItems:[]}},methods:{cellRenderer(...e){const t=e[1];return{component:hI,props:{date:t.userDate,time:t.userTime,offset:Ce(t.offset)}}},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickView(){return U("/attendance/viewAttendanceRecord",void 0,{employeeId:this.filters.employee?.id,date:this.filters?.date})},onClickAdd(){return U("/attendance/proxyPunchInPunchOut",void 0,{employeeId:this.filters.employee?.id,date:this.filters?.date})},onClickEdit(e){return U("/attendance/editEmployeeAttendanceRecord/{id}",{id:e.id})}}};const YI=(0,r.Z)(WI,[["render",HI]]);var JI=YI,XI={"attendance-punch-in":MB,"attendance-punch-out":ZB,"edit-attendance":tI,"view-my-attendance":fI,"attendance-configuration":SI,"attendance-summary-report":II,"view-employee-attendance-summary":zI,"view-employee-attendance-detailed":JI};const KI={class:"orangehrm-background-container"},eL=(0,a.createElementVNode)("br",null,null,-1),tL={key:1};function oL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("purge-employee-records"),s=(0,a.resolveComponent)("selected-employee"),d=(0,a.resolveComponent)("maintenance-note"),c=(0,a.resolveComponent)("purge-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",KI,[(0,a.createVNode)(i,{"include-employees-param":"onlyPast","title-label":e.$t("maintenance.purge_employee_records"),"autocomplete-label":e.$t("maintenance.past_employee"),onSearch:r.onClickSearch},null,8,["title-label","autocomplete-label","onSearch"]),eL,n.showPurgeableEmployee?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,loading:n.isLoading,"selected-employee":n.selectedEmployee,"button-label":e.$t("maintenance.purge"),onSubmit:r.onClickPurge},null,8,["loading","selected-employee","button-label","onSubmit"])):(0,a.createCommentVNode)("",!0),n.showPurgeableEmployee?((0,a.openBlock)(),(0,a.createElementBlock)("br",tL)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(d,{"instance-identifier":o.instanceIdentifier},null,8,["instance-identifier"]),(0,a.createVNode)(c,{ref:"purgeDialog",title:e.$t("maintenance.purge_employee"),subtitle:e.$t("maintenance.purge_employee_warning"),"cancel-label":e.$t("general.no_cancel"),"confirm-label":e.$t("maintenance.yes_purge")},null,8,["title","subtitle","cancel-label","confirm-label"])])}const aL={class:"orangehrm-card-container"},lL={class:"orangehrm-selected-employee"},nL={class:"orangehrm-selected-employee-imagesection"},rL={class:"orangehrm-selected-employee-image-wrapper"},iL={class:"orangehrm-selected-employee-image"},sL=["src"],dL={class:"orangehrm-selected-employee-content"};function cL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("full-name-input"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-input-field"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",aL,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("maintenance.selected_employee")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{loading:o.loading,onSubmit:r.emitEmpNumber},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",lL,[(0,a.createElementVNode)("div",nL,[(0,a.createElementVNode)("div",rL,[(0,a.createElementVNode)("div",iL,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:l.imgSrc},null,8,sL)])])]),(0,a.createElementVNode)("div",dL,[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:1,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{"first-name":o.selectedEmployee.firstName,"middle-name":o.selectedEmployee.middleName,"last-name":o.selectedEmployee.lastName,rules:n.rules,"show-middle-name-placeholder":!1,disabled:""},null,8,["first-name","middle-name","last-name","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{"model-value":o.selectedEmployee.employeeId,label:e.$t("general.employee_id"),rules:n.rules.employeeId,disabled:""},null,8,["model-value","label","rules"])])),_:1})])),_:1})])),_:1})])]),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{"display-type":"secondary",label:o.buttonLabel,type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmit"])])}var mL={name:"SelectedEmployee",components:{"full-name-input":uu},props:{selectedEmployee:{type:Object,required:!0},buttonLabel:{type:String,required:!0},loading:{type:Boolean,default:!1}},emits:["submit"],setup(e){const t=(0,a.computed)((()=>`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.selectedEmployee.empNumber}`));return{imgSrc:t}},data(){return{rules:{firstName:[zt(30)],middleName:[zt(30)],lastName:[zt(30)],employeeId:[zt(10)]}}},methods:{emitEmpNumber(){this.$emit("submit",this.selectedEmployee.empNumber)}}};const uL=(0,r.Z)(mL,[["render",cL],["__scopeId","data-v-6ea34be5"]]);var pL=uL;const hL={class:"orangehrm-card-container"};function gL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",hL,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.titleLabel),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{onSubmit:r.emitEmployee},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employee=e),rules:n.rules.employee,params:{includeEmployees:o.includeEmployeesParam},label:o.autocompleteLabel,required:""},null,8,["modelValue","rules","params","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmit"])])}var vL={name:"EmployeeRecords",components:{"required-text":C,"employee-autocomplete":Va},props:{includeEmployeesParam:{type:String,required:!0},titleLabel:{type:String,required:!0},autocompleteLabel:{type:String,required:!0}},emits:["search"],data(){return{employee:null,rules:{employee:[jt,xo]}}},methods:{emitEmployee(){this.$emit("search",this.employee?._employee)}}};const fL=(0,r.Z)(vL,[["render",gL]]);var yL=fL;const CL={class:"orangehrm-modal-header"},bL={class:"orangehrm-text-center-align"},VL={class:"orangehrm-modal-footer"};function xL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-confirmation-dialog orangehrm-dialog-popup","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",CL,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.title),1)])),_:1})]),(0,a.createElementVNode)("div",bL,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.subtitle),1)])),_:1})]),(0,a.createElementVNode)("div",VL,[(0,a.createVNode)(s,{label:o.cancelLabel,"display-type":o.cancelButtonType,class:"orangehrm-button-margin",onClick:r.onCancel},null,8,["label","display-type","onClick"]),(0,a.createVNode)(s,{"icon-name":o.icon,label:o.confirmLabel,"display-type":o.confirmButtonType,class:"orangehrm-button-margin",onClick:r.onConfirm},null,8,["icon-name","label","display-type","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var wL={components:{"oxd-dialog":q.OxdDialog},props:{title:{type:String,required:!0},subtitle:{type:String,required:!0},cancelLabel:{type:String,required:!0},confirmLabel:{type:String,required:!0},icon:{type:String,required:!1,default:""},confirmButtonType:{type:String,required:!1,default:"label-danger"},cancelButtonType:{type:String,required:!1,default:"text"}},data(){return{show:!1,reject:null,resolve:null}},methods:{showDialog(){return new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const NL=(0,r.Z)(wL,[["render",xL],["__scopeId","data-v-2766d99a"]]);var _L=NL;const kL={key:0,class:"orangehrm-maintenance-note"},SL={class:"orangehrm-maintenance-note-header"};function DL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return null!==o.instanceIdentifier?((0,a.openBlock)(),(0,a.createElementBlock)("div",kL,[(0,a.createElementVNode)("div",SL,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.note")),1)])),_:1})]),(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("maintenance.gdpr_note",{instanceIdentifier:o.instanceIdentifier})),1)])),_:1})])):(0,a.createCommentVNode)("",!0)}var $L={name:"MaintenanceNote",props:{instanceIdentifier:{type:String,required:!0}}};const EL=(0,r.Z)($L,[["render",DL],["__scopeId","data-v-23b16e4f"]]);var TL=EL;const BL={firstName:"",middleName:"",lastName:"",employeeId:"",empNumber:""};var IL={name:"PurgeEmployee",components:{"purge-confirmation":_L,"purge-employee-records":yL,"selected-employee":pL,"maintenance-note":TL},props:{instanceIdentifier:{type:String,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/maintenance/purge");return{http:e}},data(){return{isLoading:!1,showPurgeableEmployee:!1,selectedEmployee:{...BL}}},methods:{onClickSearch(e){this.selectedEmployee={...BL},e?(this.selectedEmployee={...e},this.showPurgeableEmployee=!0):this.showPurgeableEmployee=!1},onClickPurge(e){this.$refs.purgeDialog.showDialog().then((t=>{"ok"===t&&this.purgeEmployee(e)}))},purgeEmployee(e){this.isLoading=!0,this.http.deleteAll({empNumber:e}).then((()=>this.$toast.success({title:this.$t("general.success"),message:this.$t("maintenance.purge_success")}))).then((()=>{this.showPurgeableEmployee=!1,this.selectedEmployee={...BL},this.isLoading=!1,U("/maintenance/purgeEmployee")}))}}};const LL=(0,r.Z)(IL,[["render",oL]]);var UL=LL;const AL={class:"orangehrm-background-container"},PL=(0,a.createElementVNode)("br",null,null,-1);function qL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("selected-candidates"),s=(0,a.resolveComponent)("maintenance-note"),d=(0,a.resolveComponent)("purge-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",AL,[(0,a.createVNode)(i,{loading:n.isLoading,onPurge:r.onClickPurge},null,8,["loading","onPurge"]),PL,(0,a.createVNode)(s,{"instance-identifier":o.instanceIdentifier},null,8,["instance-identifier"]),(0,a.createVNode)(d,{ref:"purgeDialog",title:e.$t("maintenance.purge_candidates"),subtitle:e.$t("maintenance.purge_candidates_warning"),"cancel-label":e.$t("general.no_cancel"),"confirm-label":e.$t("maintenance.yes_purge")},null,8,["title","subtitle","cancel-label","confirm-label"])])}const ML={key:0,class:"orangehrm-paper-container"},FL={class:"orangehrm-header-container"},jL={class:"orangehrm-container"},zL={class:"orangehrm-bottom-container"};function RL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("purge-candidate-records"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("table-header"),c=(0,a.resolveComponent)("oxd-card-table"),m=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(i,{onSearch:r.onClickSearch},null,8,["onSearch"]),l.vacancy?((0,a.openBlock)(),(0,a.createElementBlock)("div",ML,[(0,a.withDirectives)((0,a.createElementVNode)("div",FL,[(0,a.createVNode)(s,{label:e.$t("maintenance.purge_all"),"display-type":"secondary",onClick:r.onClickPurge},null,8,["label","onClick"])],512),[[a.vShow,l.total>0]]),(0,a.createVNode)(d,{total:l.total,selected:0,"show-divider":l.total>0,loading:l.isLoading||o.loading},null,8,["total","show-divider","loading"]),(0,a.createElementVNode)("div",jL,[(0,a.createVNode)(c,{headers:n.headers,clickable:!1,selectable:!1,loading:l.isLoading||o.loading,items:l.items.data,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","loading","items"])]),(0,a.createElementVNode)("div",zL,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])):(0,a.createCommentVNode)("",!0)],64)}const OL={class:"orangehrm-card-container"};function GL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("vacancy-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",OL,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("maintenance.purge_candidate_records")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,{onSubmitValid:t[1]||(t[1]=t=>e.$emit("search",n.vacancy.id))},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy,"onUpdate:modelValue":t[0]||(t[0]=e=>n.vacancy=e),rules:n.rules.vacancy,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{"display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1})])}function ZL(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",label:e.$t("recruitment.vacancy"),clear:!1,"create-options":r.loadVacancies},{option:(0,a.withCtx)((({data:e})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.label),1)])),_:1},8,["label","create-options"])}var QL={name:"VacancyAutocomplete",setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancies");return{http:e}},methods:{async loadVacancies(e){return new Promise((t=>{e.trim()?this.http.getAll({name:e.trim()}).then((({data:e})=>{t(e.data.map((e=>({id:e.id,label:e.name}))))})):t([])}))}}};const HL=(0,r.Z)(QL,[["render",ZL]]);var WL=HL,YL={name:"CandidateRecords",components:{"required-text":C,"vacancy-autocomplete":WL},emits:["search"],data(){return{vacancy:null,rules:{vacancy:[jt,xo]}}}};const JL=(0,r.Z)(YL,[["render",GL]]);var XL=JL,KL={name:"SelectedCandidates",components:{"purge-candidate-records":XL},props:{loading:{type:Boolean,default:!1}},emits:["purge"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/maintenance/candidates"),t=(0,a.ref)(null),{locale:o}=De(),{jsDateFormat:l}=R(),{$tEmpName:n}=xa(),r=(0,a.computed)((()=>({vacancyId:t.value}))),i=e=>e.map((e=>({name:n({firstName:e.firstName,middleName:e.middleName,lastName:e.lastName,terminationId:null},{includeMiddle:!0}),date:ie(re(e.dateOfApplication),l,{locale:o}),status:e.status.label}))),{total:s,pages:d,response:c,isLoading:m,currentPage:u,showPaginator:p,execQuery:h}=wt(e,{prefetch:!1,query:r,normalizer:i});return{http:e,total:s,pages:d,vacancy:t,isLoading:m,currentPage:u,showPaginator:p,items:c,execQuery:h}},data(){return{headers:[{name:"name",title:this.$t("recruitment.candidate_name"),style:{flex:"45%"}},{name:"date",title:this.$t("recruitment.date_of_application"),style:{flex:"45%"}},{name:"status",title:this.$t("general.status"),style:{flex:"10%"}}]}},methods:{onClickSearch(e){this.vacancy=e,this.execQuery()},onClickPurge(){this.vacancy&&this.$emit("purge",this.vacancy)}}};const eU=(0,r.Z)(KL,[["render",RL],["__scopeId","data-v-3c1da283"]]);var tU=eU,oU={name:"PurgeCandidate",components:{"maintenance-note":TL,"purge-confirmation":_L,"selected-candidates":tU},props:{instanceIdentifier:{type:String,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/maintenance/candidates/purge");return{http:e}},data(){return{isLoading:!1}},methods:{onClickPurge(e){const t=e;this.$refs.purgeDialog.showDialog().then((e=>{"ok"===e&&this.purgeCandidates(t)}))},purgeCandidates(e){this.isLoading=!0,this.http.deleteAll({vacancyId:e}).then((()=>this.$toast.success({title:this.$t("general.success"),message:this.$t("maintenance.purge_success")}))).then((()=>{A()}))}}};const aU=(0,r.Z)(oU,[["render",qL]]);var lU=aU;const nU={key:0,class:"orangehrm-background-container"},rU={key:1};function iU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-records"),s=(0,a.resolveComponent)("selected-employee"),d=(0,a.resolveComponent)("maintenance-note");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(i,{"title-label":e.$t("maintenance.download_personal_data"),"include-employees-param":"currentAndPast","autocomplete-label":e.$t("general.employee_name"),onSearch:r.search},null,8,["title-label","autocomplete-label","onSearch"]),n.employee?((0,a.openBlock)(),(0,a.createElementBlock)("div",nU,[(0,a.createVNode)(s,{"button-label":e.$t("general.download"),"selected-employee":n.employee,onSubmit:r.downloadEmployeeData},null,8,["button-label","selected-employee","onSubmit"])])):(0,a.createCommentVNode)("",!0),n.employee?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("br",rU)),(0,a.createVNode)(d,{"instance-identifier":o.instanceIdentifier},null,8,["instance-identifier"])],64)}var sU={components:{"employee-records":yL,"selected-employee":pL,"maintenance-note":TL},props:{instanceIdentifier:{type:String,default:null}},data(){return{employee:null}},methods:{search(e){this.employee=e},downloadEmployeeData(e){const t=`${window.appGlobal.baseUrl}/maintenance/accessEmployeeData/${e}`;window.open(t,"_blank")}}};const dU=(0,r.Z)(sU,[["render",iU]]);var cU=dU,mU={"purge-employee":UL,"purge-candidate":lU,"access-employee-search":cU};const uU=e=>((0,a.pushScopeId)("data-v-65c21a19"),e=e(),(0,a.popScopeId)(),e),pU={class:"orangehrm-background-container"},hU=uU((()=>(0,a.createElementVNode)("br",null,null,-1))),gU={class:"orangehrm-paper-container"},vU={class:"orangehrm-header-container"},fU={class:"orangehrm-container"},yU={class:"orangehrm-bottom-container"};function CU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("jobtitle-dropdown"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("vacancy-dropdown"),c=(0,a.resolveComponent)("hiring-manager-dropdown"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-divider"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("oxd-table-filter"),C=(0,a.resolveComponent)("table-header"),b=(0,a.resolveComponent)("oxd-card-table"),V=(0,a.resolveComponent)("oxd-pagination"),x=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",pU,[(0,a.createVNode)(y,{"filter-title":e.$t("general.vacancies")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.jobTitleId,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.jobTitleId=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.vacancyId,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.vacancyId=e),label:e.$t("recruitment.vacancy")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.hiringManagerId,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.hiringManagerId=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.status,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.status=e),type:"select",label:e.$t("general.status"),clear:!1,options:n.statusOptions},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(h),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(g,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),hU,(0,a.createElementVNode)("div",gU,[(0,a.createElementVNode)("div",vU,[(0,a.createVNode)(g,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(C,{selected:n.checkedItems.length,loading:l.isLoading,total:l.total,onDelete:r.onClickDeleteSelected},null,8,["selected","loading","total","onDelete"]),(0,a.createElementVNode)("div",fU,[(0,a.createVNode)(b,{selected:n.checkedItems,"onUpdate:selected":t[4]||(t[4]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[5]||(t[5]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card",class:"orangehrm-vacancy-list"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",yU,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,current:l.currentPage,"onUpdate:current":t[6]||(t[6]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(x,{ref:"deleteDialog"},null,512)])}function bU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("recruitment.vacancy"),options:l.options},null,8,["label","options"])}var VU={name:"VacancyDropdown",props:{status:{type:Boolean,required:!1,default:null},excludeInterviewers:{type:Boolean,required:!1,default:!1}},setup(e){const t=(0,a.ref)([]),{$t:o}=Se(),l=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancies");return(0,a.onBeforeMount)((()=>{const a={model:"summary",limit:0};null!==e.status&&(a.status=e.status),a.excludeInterviewers=e.excludeInterviewers,l.getAll(a).then((({data:e})=>{t.value=e.data.map((e=>({id:e.id,label:!1===e.status?`${e.name} (${o("general.closed")})`:e.name})))}))})),{options:t}}};const xU=(0,r.Z)(VU,[["render",bU]]);var wU=xU;function NU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("recruitment.hiring_manager"),options:l.options},null,8,["label","options"])}var _U={name:"HiringManagerDropdown",setup(){const e=(0,a.ref)([]),{$tEmpName:t}=xa(),o=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/hiring-managers");return(0,a.onBeforeMount)((()=>{o.getAll({limit:0}).then((({data:o})=>{e.value=o.data.map((e=>({id:e.empNumber,label:t(e,{includeMiddle:!1,excludePastEmpTag:!1})})))}))})),{options:e}}};const kU=(0,r.Z)(_U,[["render",NU]]);var SU=kU;const DU={jobTitleId:null,hiringManagerId:null,vacancyId:null,status:null},$U={"vacancy.name":"ASC","vacancy.status":"DEFAULT","jobTitle.jobTitleName":"DEFAULT","hiringManager.lastName":"DEFAULT"};var EU={name:"ViewJobVacancy",components:{"delete-confirmation":Et,"jobtitle-dropdown":Eu,"vacancy-dropdown":wU,"hiring-manager-dropdown":SU},setup(){const{$t:e}=Se(),{$tEmpName:t}=xa(),o=(0,a.ref)({...DU}),{sortDefinition:l,sortField:n,sortOrder:r,onSort:i}=Tt({sortDefinition:$U}),s=(0,a.computed)((()=>({vacancyId:o.value.vacancyId?.id,jobTitleId:o.value.jobTitleId?.id,hiringManagerId:o.value.hiringManagerId?.id,status:o.value.status?.id,sortField:n.value,sortOrder:r.value,model:"detailed"}))),d=o=>o.map((o=>({id:o.id,vacancy:o.name,jobTitle:o.jobTitle?.isDeleted?o.jobTitle.title+e("general.deleted"):o.jobTitle?.title,hiringManager:t(o.hiringManager),status:o.status?e("general.active"):e("general.closed")}))),c=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancies"),{showPaginator:m,currentPage:u,total:p,pages:h,pageSize:g,response:v,isLoading:f,execQuery:y}=wt(c,{query:s,normalizer:d});return i(y),{http:c,showPaginator:m,currentPage:u,isLoading:f,total:p,pages:h,pageSize:g,execQuery:y,items:v,filters:o,sortDefinition:l}},data(){return{headers:[{name:"vacancy",slot:"title",title:this.$t("recruitment.vacancy"),sortField:"vacancy.name",style:{flex:3}},{name:"jobTitle",title:this.$t("general.job_title"),sortField:"jobTitle.jobTitleName",style:{flex:3}},{name:"hiringManager",title:this.$t("recruitment.hiring_manager"),sortField:"hiringManager.lastName",style:{flex:3}},{name:"status",title:this.$t("general.status"),sortField:"vacancy.status",style:{flex:2}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:2},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],statusOptions:[{id:!0,param:"active",label:this.$t("general.active")},{id:!1,param:"closed",label:this.$t("general.closed")}],vacancies:[],checkedItems:[]}},methods:{onClickAdd(){U("/recruitment/addJobVacancy")},onClickEdit(e){U("/recruitment/addJobVacancy/{id}",{id:e.id})},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData([e.id])}))},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData(e)}))},async deleteData(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onClickReset(){this.filters={...DU},this.filterItems()}}};const TU=(0,r.Z)(EU,[["render",CU],["__scopeId","data-v-65c21a19"]]);var BU=TU;const IU=e=>((0,a.pushScopeId)("data-v-00048e4c"),e=e(),(0,a.popScopeId)(),e),LU={class:"orangehrm-background-container"},UU={class:"orangehrm-card-container"},AU=IU((()=>(0,a.createElementVNode)("br",null,null,-1))),PU=IU((()=>(0,a.createElementVNode)("br",null,null,-1))),qU={class:"orangehrm-vacancy-links"},MU=IU((()=>(0,a.createElementVNode)("br",null,null,-1)));function FU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("jobtitle-dropdown"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("employee-autocomplete"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("vacancy-link-card"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",LU,[(0,a.createElementVNode)("div",UU,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.add_vacancy")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.vacancy.name=e),label:e.$t("recruitment.vacancy_name"),required:"",rules:n.rules.name},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.vacancy.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.vacancy.jobTitle=e),rules:n.rules.jobTitle,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-grid-item-span-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.vacancy.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.vacancy.hiringManager,"onUpdate:modelValue":t[3]||(t[3]=e=>n.vacancy.hiringManager=e),params:{includeEmployees:"onlyCurrent"},required:"",rules:n.rules.hiringManager,label:e.$t("recruitment.hiring_manager")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.numOfPositions,"onUpdate:modelValue":t[4]||(t[4]=e=>n.vacancy.numOfPositions=e),label:e.$t("recruitment.num_of_positions"),rules:n.rules.numOfPositions},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangerhrm-switch-wrapper"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.active")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.vacancy.status,"onUpdate:modelValue":t[5]||(t[5]=e=>n.vacancy.status=e)},null,8,["modelValue"])])),_:1})])),_:1}),AU,(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangerhrm-switch-wrapper"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.publish_in_rss_feed_and_web_page")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.vacancy.isPublished,"onUpdate:modelValue":t[6]||(t[6]=e=>n.vacancy.isPublished=e)},null,8,["modelValue"])])),_:1})])),_:1}),PU,(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-grid-item-span-2"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",qU,[(0,a.createVNode)(g,{label:e.$t("recruitment.rss_feed_url"),url:n.rssFeedUrl},null,8,["label","url"]),(0,a.createVNode)(g,{label:e.$t("recruitment.web_page_url"),url:n.webUrl},null,8,["label","url"])])])),_:1})])),_:1}),MU,(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const jU={class:"orangehrm-label-link-wrapper"},zU=["href"];function RU(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",jU,[(0,a.createVNode)(i,{class:"orangehrm-text-label",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.label)+" : ",1)])),_:1}),(0,a.createElementVNode)("a",{href:o.url,target:"_blank",class:"orangehrm-vacancy-link"},(0,a.toDisplayString)(o.url),9,zU)])}var OU={name:"VacancyLinkCard",props:{label:{type:String,required:!0},url:{type:String,required:!0}}};const GU=(0,r.Z)(OU,[["render",RU],["__scopeId","data-v-7a7e694e"]]);var ZU=GU;const QU={jobTitle:null,name:"",hiringManager:null,numOfPositions:"",description:"",status:!0,isPublished:!0},HU=`${window.location.protocol}//${window.location.host}${window.appGlobal.baseUrl}`;var WU={components:{"oxd-switch-input":q.OxdSwitchInput,"employee-autocomplete":Va,"jobtitle-dropdown":Eu,"vacancy-link-card":ZU},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancies");return{http:e}},data(){return{isLoading:!1,vacancy:{...QU},rules:{jobTitle:[jt],name:[jt,zt(50)],hiringManager:[jt,xo],numOfPositions:[e=>null===e||""===e||("string"===typeof Ht(e)?Ht(e):vo(1,99)(e))],description:[],status:[jt],isPublished:[jt]},rssFeedUrl:`${HU}/recruitmentApply/jobs.rss`,webUrl:`${HU}/recruitmentApply/jobs.html`}},created(){this.isLoading=!0,this.http.getAll({limit:0}).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e));return-1===o||this.$t("general.already_exists")}))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/recruitment/viewJobVacancy")},onSave(){this.isLoading=!0,this.vacancy={name:this.vacancy.name,jobTitleId:this.vacancy.jobTitle.id,employeeId:this.vacancy.hiringManager.id,numOfPositions:this.vacancy.numOfPositions?parseInt(this.vacancy.numOfPositions):null,description:this.vacancy.description,status:this.vacancy.status,isPublished:this.vacancy.isPublished},this.http.create({...this.vacancy}).then((e=>{const{data:t}=e.data;this.$toast.saveSuccess(),U("/recruitment/addJobVacancy/{id}",{id:t.id})}))}}};const YU=(0,r.Z)(WU,[["render",FU],["__scopeId","data-v-00048e4c"]]);var JU=YU;const XU=e=>((0,a.pushScopeId)("data-v-d4ce637a"),e=e(),(0,a.popScopeId)(),e),KU={class:"orangehrm-background-container"},eA={class:"orangehrm-card-container"},tA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),oA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),aA={class:"orangehrm-vacancy-links"},lA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),nA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),rA={key:0,class:"orangehrm-card-container"},iA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),sA={key:1,class:"orangehrm-card-container"},dA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),cA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),mA={class:"orangehrm-paper-container"},uA={class:"orangehrm-header-container orangehrm-attachment-header"},pA={class:"orangehrm-container"},hA=XU((()=>(0,a.createElementVNode)("br",null,null,-1))),gA=XU((()=>(0,a.createElementVNode)("br",null,null,-1)));function vA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("jobtitle-dropdown"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("employee-autocomplete"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("vacancy-link-card"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("oxd-button"),y=(0,a.resolveComponent)("submit-button"),C=(0,a.resolveComponent)("oxd-form-actions"),b=(0,a.resolveComponent)("oxd-form"),V=(0,a.resolveComponent)("file-upload-input"),x=(0,a.resolveComponent)("table-header"),w=(0,a.resolveComponent)("oxd-card-table"),N=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",KU,[(0,a.createElementVNode)("div",eA,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.edit_vacancy")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.vacancy.name=e),label:e.$t("recruitment.vacancy_name"),required:"",rules:n.rules.name},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.vacancy.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.vacancy.jobTitle=e),rules:n.rules.jobTitle,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-grid-item-span-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.description,"onUpdate:modelValue":t[2]||(t[2]=e=>n.vacancy.description=e),type:"textarea",label:e.$t("general.description"),placeholder:e.$t("general.type_description_here"),rules:n.rules.description},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.vacancy.hiringManager,"onUpdate:modelValue":t[3]||(t[3]=e=>n.vacancy.hiringManager=e),params:{includeEmployees:"onlyCurrent"},required:"",rules:n.rules.hiringManager,label:e.$t("recruitment.hiring_manager")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancy.numOfPositions,"onUpdate:modelValue":t[4]||(t[4]=e=>n.vacancy.numOfPositions=e),label:e.$t("recruitment.num_of_positions"),rules:n.rules.numOfPositions},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangerhrm-switch-wrapper"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.active")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.vacancy.status,"onUpdate:modelValue":t[5]||(t[5]=e=>n.vacancy.status=e)},null,8,["modelValue"])])),_:1})])),_:1}),tA,(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangerhrm-switch-wrapper"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-text",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.publish_in_rss_feed_and_web_page")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.vacancy.isPublished,"onUpdate:modelValue":t[6]||(t[6]=e=>n.vacancy.isPublished=e)},null,8,["modelValue"])])),_:1})])),_:1}),oA,(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-grid-item-span-2"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",aA,[(0,a.createVNode)(g,{label:e.$t("recruitment.rss_feed_url"),url:n.rssFeedUrl},null,8,["label","url"]),(0,a.createVNode)(g,{label:e.$t("recruitment.web_page_url"),url:n.webUrl},null,8,["label","url"])])])),_:1})])),_:1}),lA,(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(y)])),_:1})])),_:1},8,["loading","onSubmitValid"])]),nA,n.isAddClicked&&!n.isEditClicked?((0,a.openBlock)(),(0,a.createElementBlock)("div",rA,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title orangehrm-attachment-header__title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoadingAttachment,onSubmitValid:r.onSaveAttachment},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(V,{newFile:n.vacancyAttachment.newAttachment,"onUpdate:newFile":t[7]||(t[7]=e=>n.vacancyAttachment.newAttachment=e),method:n.vacancyAttachment.method,"onUpdate:method":t[8]||(t[8]=e=>n.vacancyAttachment.method=e),label:e.$t("general.select_file"),"button-label":e.$t("general.browse"),file:n.vacancyAttachment.oldAttachment,rules:n.rules.addAttachment,url:"recruitment/vacancyAttachment/attachId",hint:e.$t("general.accepts_up_to_1mb"),required:""},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancyAttachment.comment,"onUpdate:modelValue":t[9]||(t[9]=e=>n.vacancyAttachment.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1}),iA,(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.updateVisibility},null,8,["label","onClick"]),(0,a.createVNode)(y,{label:e.$t("general.save")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])):(0,a.createCommentVNode)("",!0),n.isEditClicked&&!n.isAddClicked?((0,a.openBlock)(),(0,a.createElementBlock)("div",sA,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title orangehrm-attachment-header__title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,{loading:n.isLoadingAttachment,onSubmitValid:r.onUpdateAttachment},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(V,{newFile:n.vacancyAttachment.newAttachment,"onUpdate:newFile":t[10]||(t[10]=e=>n.vacancyAttachment.newAttachment=e),method:n.vacancyAttachment.method,"onUpdate:method":t[11]||(t[11]=e=>n.vacancyAttachment.method=e),label:e.$t("general.select_file"),"button-label":e.$t("general.browse"),file:n.vacancyAttachment.oldAttachment,rules:n.rules.updateAttachment,url:"recruitment/viewVacancyAttachment/attachId",hint:e.$t("general.accepts_up_to_1mb"),deletable:!1,required:""},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1})])),_:1}),(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.vacancyAttachment.comment,"onUpdate:modelValue":t[12]||(t[12]=e=>n.vacancyAttachment.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1}),dA,(0,a.createVNode)(s),(0,a.createVNode)(C,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v),(0,a.createVNode)(f,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.updateVisibility},null,8,["label","onClick"]),(0,a.createVNode)(y,{label:e.$t("general.save")},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])):(0,a.createCommentVNode)("",!0),cA,(0,a.createElementVNode)("div",mA,[(0,a.createElementVNode)("div",uA,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title orangehrm-attachment-header__title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.attachments")),1)])),_:1}),n.isAddClicked||n.isEditClicked?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(f,{key:0,label:e.$t("general.add"),"icon-name":"plus","display-type":"text",onClick:r.onClickAdd},null,8,["label","onClick"]))]),(0,a.createVNode)(x,{selected:n.checkedItems.length,loading:n.isLoadingTable,total:n.attachments.length,onDelete:r.onClickDeleteSelected},null,8,["selected","loading","total","onDelete"]),(0,a.createElementVNode)("div",pA,[(0,a.createVNode)(w,{selected:n.checkedItems,"onUpdate:selected":t[13]||(t[13]=e=>n.checkedItems=e),headers:n.headers,items:n.attachments,selectable:!0,clickable:!1,loading:n.isLoadingTable,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createVNode)(N,{ref:"deleteDialog"},null,512),hA,gA])])}const fA={jobTitle:null,name:"",hiringManager:null,numOfPositions:"",description:"",status:!1,isPublished:!1},yA={id:null,comment:"",oldAttachment:{},newAttachment:null,method:"keepCurrent"},CA=`${window.location.protocol}//${window.location.host}${window.appGlobal.baseUrl}`,bA=e=>e.map((e=>({id:e.id,vacancyId:e.vacancyId,fileName:e.attachment.fileName,fileSize:+(e.attachment.fileSize/1024).toFixed(2)+" kb",fileType:e.attachment.fileType,comment:e.comment,attachmentType:e.attachmentType})));var VA={components:{"oxd-switch-input":q.OxdSwitchInput,"employee-autocomplete":Va,"jobtitle-dropdown":Eu,"vacancy-link-card":ZU,"delete-confirmation":Et,"file-upload-input":To},props:{vacancyId:{type:String,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancies"),t=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/vacancy/attachments");return{http:e,httpAttachments:t}},data(){return{isLoading:!1,isLoadingAttachment:!1,isLoadingTable:!1,isAddClicked:!1,isEditClicked:!1,currentName:"",vacancy:{...fA},vacancyAttachment:{...yA},rules:{jobTitle:[jt],name:[jt,zt(50)],hiringManager:[jt,xo,e=>!e?.isPastEmployee||this.$t("general.invalid")],numOfPositions:[e=>null===e||""===e||("string"===typeof Ht(e)?Ht(e):vo(1,99)(e))],description:[],status:[jt],isPublished:[jt],addAttachment:[jt,no(this.maxFileSize),ro(this.allowedFileTypes)],updateAttachment:[e=>"replaceCurrent"!=this.vacancyAttachment.method||jt(e),ro(this.allowedFileTypes),no(this.maxFileSize)],comment:[zt(200)]},headers:[{name:"fileName",slot:"title",title:this.$t("general.file_name"),style:{flex:3}},{name:"fileSize",title:this.$t("general.file_size"),style:{flex:2}},{name:"fileType",title:this.$t("general.file_type"),style:{flex:2}},{name:"comment",title:this.$t("general.comment"),style:{flex:4}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:2},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},download:{onClick:this.downloadFile,props:{name:"download"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],attachments:[],checkedItems:[],rssFeedUrl:`${CA}/recruitmentApply/jobs.rss`,webUrl:`${CA}/recruitmentApply/jobs.html`}},created(){this.isLoading=!0,this.isLoadingTable=!0,this.http.get(this.vacancyId).then((e=>{const{data:t}=e.data;return this.currentName=t.name,this.vacancy.name=t.name,this.vacancy.description=t.description,this.vacancy.numOfPositions=t.numOfPositions||"",this.vacancy.status=t.status,this.vacancy.isPublished=t.isPublished,this.vacancy.hiringManager={id:t.hiringManager.id,label:`${t.hiringManager.firstName} ${t.hiringManager.middleName} ${t.hiringManager.lastName}`,isPastEmployee:!!t.hiringManager.terminationId},this.vacancy.jobTitle=t.jobTitle.isDeleted?null:{id:t.jobTitle.id,label:t.jobTitle.title},this.http.getAll({limit:0})})).then((e=>{const{data:t}=e.data;this.rules.name.push((e=>{const o=t.findIndex((t=>t.name==e&&t.name!=this.currentName));return-1===o||this.$t("general.already_exists")}))})).then((()=>{this.httpAttachments.request({method:"GET",url:`/api/v2/recruitment/vacancies/${this.vacancyId}/attachments`}).then((e=>{const{data:t}=e.data;this.attachments=bA(t)}))})).finally((()=>{this.isLoadingTable=!1,this.isLoading=!1}))},methods:{onCancel(){U("/recruitment/viewJobVacancy")},onSave(){this.isLoading=!0,this.vacancy={name:this.vacancy.name,jobTitleId:this.vacancy.jobTitle.id,employeeId:this.vacancy.hiringManager.id,numOfPositions:this.vacancy.numOfPositions?parseInt(this.vacancy.numOfPositions):null,description:this.vacancy.description,status:this.vacancy.status,isPublished:this.vacancy.isPublished},this.http.update(this.vacancyId,{...this.vacancy}).then((()=>this.$toast.saveSuccess())).then((()=>{U("/recruitment/addJobVacancy/{id}",{id:this.vacancyId})}))},onSaveAttachment(){this.isLoadingAttachment=!0,this.isLoadingTable=!0,this.httpAttachments.create({vacancyId:parseInt(this.vacancyId),attachment:this.vacancyAttachment.newAttachment?this.vacancyAttachment.newAttachment:void 0,comment:this.vacancyAttachment.comment,attachmentType:1}).then((()=>this.$toast.saveSuccess())).then((()=>{this.updateVisibility(),this.resetDataTable(),this.isLoadingAttachment=!1,this.isLoadingTable=!1}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData([e.id])}))},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.attachments[e]?.id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteData(e)}))},async deleteData(e){e instanceof Array&&(this.isLoadingTable=!0,this.httpAttachments.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.resetDataTable(),this.isLoadingTable=!1})))},resetDataTable(){this.checkedItems=[],this.httpAttachments.request({method:"GET",url:`/api/v2/recruitment/vacancies/${this.vacancyId}/attachments`}).then((e=>{const{data:t}=e.data;this.attachments=bA(t)}))},onClickAdd(){this.isEditClicked=!1,this.isAddClicked=!0},onClickEdit(e){this.vacancyAttachment.id=e.id,this.vacancyAttachment.comment=e.comment,this.vacancyAttachment.oldAttachment={id:e.id,filename:e.fileName,fileType:e.fileType,fileSize:e.filefileSize},this.vacancyAttachment.newAttachment=null,this.vacancyAttachment.method="keepCurrent",this.isAddClicked=!1,this.isEditClicked=!0},onUpdateAttachment(){this.isLoadingAttachment=!0,this.isLoadingTable=!0,this.httpAttachments.request({method:"PUT",url:`/api/v2/recruitment/vacancies/${this.vacancyId}/attachments/${this.vacancyAttachment.id}`,data:{vacancyId:parseInt(this.vacancyId),currentAttachment:this.vacancyAttachment.oldAttachment?this.vacancyAttachment.method:void 0,attachment:this.vacancyAttachment.newAttachment?this.vacancyAttachment.newAttachment:void 0,comment:this.vacancyAttachment.comment,attachmentType:1}}).then((()=>this.$toast.saveSuccess())).then((()=>{this.updateVisibility(),this.resetDataTable(),this.isLoadingAttachment=!1,this.isLoadingTable=!1}))},updateVisibility(){this.isAddClicked=!1,this.isEditClicked=!1,this.vacancyAttachment={...yA}},downloadFile(e){if(!e?.id)return;const t="recruitment/viewVacancyAttachment/attachId",o=`${window.appGlobal.baseUrl}/${t}/${e.id}`;window.open(o,"_blank")}}};const xA=(0,r.Z)(VA,[["render",vA],["__scopeId","data-v-d4ce637a"]]);var wA=xA;const NA={class:"orangehrm-background-container"};function _A(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",NA,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.hire_candidate"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}const kA={class:"orangehrm-card-container"};function SA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",kA,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.title),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(p,(0,a.mergeProps)({loading:o.loading},e.$attrs),{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.candidate.candidateName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.candidate.candidateName=e),label:e.$t("recruitment.candidate"),readonly:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.candidate.vacancyName,"onUpdate:modelValue":t[1]||(t[1]=e=>n.candidate.vacancyName=e),label:e.$t("recruitment.vacancy"),readonly:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.candidate.hiringManagerName,"onUpdate:modelValue":t[2]||(t[2]=e=>n.candidate.hiringManagerName=e),label:e.$t("recruitment.hiring_manager"),readonly:""},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(c,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:r.recruitmentStatus,"onUpdate:modelValue":t[3]||(t[3]=e=>r.recruitmentStatus=e),label:e.$t("recruitment.current_status"),readonly:""},null,8,["modelValue","label"])])),_:1})])),_:1})])),_:1}),(0,a.renderSlot)(e.$slots,"default")])),_:3},16,["loading"])])}const DA={candidateName:"",vacancyName:"",hiringManagerName:"",status:null};var $A={name:"CandidateActionLayout",inheritAttrs:!1,props:{candidateId:{type:Number,required:!0},title:{type:String,required:!0},loading:{type:Boolean,required:!0}},emits:["update:loading"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates"),{$tEmpName:t}=xa();return{http:e,translateEmpName:t}},data(){return{candidate:{...DA},statuses:[{id:1,label:this.$t("recruitment.application_initiated")},{id:2,label:this.$t("recruitment.shortlisted")},{id:3,label:this.$t("leave.rejected")},{id:4,label:this.$t("recruitment.interview_scheduled")},{id:5,label:this.$t("recruitment.interview_passed")},{id:6,label:this.$t("recruitment.interview_failed")},{id:7,label:this.$t("recruitment.job_offered")},{id:8,label:this.$t("recruitment.offer_declined")},{id:9,label:this.$t("recruitment.hired")}]}},computed:{recruitmentStatus(){return this.statuses.find((e=>e.id===this.candidate.status?.id))?.label||null}},beforeMount(){this.$emit("update:loading",!0),this.http.get(this.candidateId).then((e=>{const{data:t}=e.data;this.candidate.status=t.status,this.candidate.candidateName=`${t?.firstName} ${t?.middleName||""} ${t?.lastName}`,t?.vacancy&&(this.candidate.vacancyName=t?.vacancy.name),t?.vacancy?.hiringManager&&(this.candidate.hiringManagerName=this.translateEmpName(t.vacancy.hiringManager,{includeMiddle:!0,excludePastEmpTag:!1}))})).finally((()=>{this.$emit("update:loading",!1)}))}};const EA=(0,r.Z)($A,[["render",SA]]);var TA=EA,BA={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/hire`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const IA=(0,r.Z)(BA,[["render",_A]]);var LA=IA;const UA={class:"orangehrm-background-container"};function AA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",UA,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.mark_interview_failed"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var PA={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0},interviewId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/interviews/${e.interviewId}/fail`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const qA=(0,r.Z)(PA,[["render",AA]]);var MA=qA;const FA={class:"orangehrm-background-container"};function jA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",FA,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.mark_interview_passed"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var zA={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0},interviewId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/interviews/${e.interviewId}/pass`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const RA=(0,r.Z)(zA,[["render",jA]]);var OA=RA;const GA={class:"orangehrm-background-container"};function ZA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("interviewer-autocomplete"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("date-input"),u=(0,a.resolveComponent)("time-input"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-form-row"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("required-text"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",GA,[(0,a.createVNode)(C,{loading:n.isLoading,"onUpdate:loading":t[4]||(t[4]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.schedule_interview"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.interview.interviewName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.interview.interviewName=e),rules:n.rules.interviewName,label:e.$t("recruitment.interview_title"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.interviewers,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(d,{key:t,modelValue:n.interviewers[t],"onUpdate:modelValue":e=>n.interviewers[t]=e,"show-delete":t>0,rules:n.rules.interviewerName.filter(((e,o)=>0===t||o>0)),"include-employees":"onlyCurrent",required:"",onRemove:e=>r.onRemoveInterviewer(t)},null,8,["modelValue","onUpdate:modelValue","show-delete","rules","onRemove"])))),128)),n.interviewers.length<5?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,"icon-name":"plus","display-type":"text",class:"orangehrm-input-field-bottom-space",label:e.$t("general.add_another"),onClick:r.onAddAnother},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.interview.interviewDate,"onUpdate:modelValue":t[1]||(t[1]=e=>n.interview.interviewDate=e),rules:n.rules.interviewDate,label:e.$t("general.date"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:n.interview.interviewTime,"onUpdate:modelValue":t[2]||(t[2]=e=>n.interview.interviewTime=e),rules:n.rules.interviewTime,label:e.$t("general.time")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-3 --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.interview.note,"onUpdate:modelValue":t[3]||(t[3]=e=>n.interview.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(v),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}const QA={class:"orangehrm-recruitment-interviewer-input"};function HA(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-icon-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",QA,[(0,a.createVNode)(i,(0,a.mergeProps)({label:o.showDelete?null:e.$t("recruitment.interviewer"),disabled:o.disabled},e.$attrs,{"api-path":"/api/v2/recruitment/interviewers"}),null,16,["label","disabled"]),o.showDelete&&!o.disabled?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,name:"trash-fill",class:"orangehrm-recruitment-delete-icon","with-container":!1,onClick:r.remove},null,8,["onClick"])):(0,a.createCommentVNode)("",!0)])}var WA={name:"InterviewerAutocomplete",components:{"employee-autocomplete":Va},inheritAttrs:!1,props:{showDelete:{type:Boolean,required:!0},includeEmployee:{type:String,default:"currentAndPast"},disabled:{type:Boolean,required:!1,default:!1}},emits:["remove"],methods:{remove(){this.$emit("remove")}}};const YA=(0,r.Z)(WA,[["render",HA],["__scopeId","data-v-73842d23"]]);var JA=YA;const XA={interviewName:null,interviewDate:null,interviewTime:null,note:null};var KA={components:{"candidate-action-layout":TA,"interviewer-autocomplete":JA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/shedule-interview`),{userDateFormat:o}=R();return{http:t,userDateFormat:o}},data(){return{isLoading:!1,interview:{...XA},interviewers:[null],rules:{interviewName:[jt,zt(100)],interviewDate:[jt,Rt(this.userDateFormat)],interviewTime:[Gt],interviewerName:[jt,xo,e=>this.interviewers.filter((t=>t&&t.id===e?.id)).length<2||this.$t("general.already_exists")],note:[zt(2e3)]}}},methods:{onAddAnother(){this.interviewers.length<5&&this.interviewers.push(null)},onRemoveInterviewer(e){this.interviewers.splice(e,1)},onSave(){this.isLoading=!0,this.http.create({...this.interview,interviewerEmpNumbers:this.interviewers.map((e=>e?.id)).filter(Number)}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const eP=(0,r.Z)(KA,[["render",ZA]]);var tP=eP;const oP={class:"orangehrm-background-container"};function aP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",oP,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.offer_job"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var lP={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/job/offer`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const nP=(0,r.Z)(lP,[["render",aP]]);var rP=nP;const iP={class:"orangehrm-background-container"};function sP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",iP,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.decline_offer"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var dP={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/job/decline`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const cP=(0,r.Z)(dP,[["render",sP]]);var mP=cP;const uP={class:"orangehrm-background-container"};function pP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",uP,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.reject_candidate"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var hP={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/reject`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const gP=(0,r.Z)(hP,[["render",pP]]);var vP=gP;const fP={class:"orangehrm-background-container"};function yP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",fP,[(0,a.createVNode)(g,{loading:n.isLoading,"onUpdate:loading":t[1]||(t[1]=e=>n.isLoading=e),"candidate-id":o.candidateId,title:e.$t("recruitment.shortlist_candidate"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.note,"onUpdate:modelValue":t[0]||(t[0]=e=>n.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea"},null,8,["modelValue","rules","label","placeholder"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickBack},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}var CP={components:{"candidate-action-layout":TA},props:{candidateId:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/shortlist`);return{http:t}},data(){return{isLoading:!1,note:null,rules:{note:[zt(2e3)]}}},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{note:this.note}}).then((()=>this.$toast.updateSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:this.candidateId})}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const bP=(0,r.Z)(CP,[["render",yP]]);var VP=bP;const xP={class:"orangehrm-background-container orangehrm-save-candidate-page"},wP={class:"orangehrm-card-container"};function NP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("full-name-input"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("vacancy-dropdown"),h=(0,a.resolveComponent)("oxd-input-field"),g=(0,a.resolveComponent)("file-upload-input"),v=(0,a.resolveComponent)("date-input"),f=(0,a.resolveComponent)("required-text"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xP,[(0,a.createElementVNode)("div",wP,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.add_candidate")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:1,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{"first-name":n.candidate.firstName,"onUpdate:first-name":t[0]||(t[0]=e=>n.candidate.firstName=e),"middle-name":n.candidate.middleName,"onUpdate:middle-name":t[1]||(t[1]=e=>n.candidate.middleName=e),"last-name":n.candidate.lastName,"onUpdate:last-name":t[2]||(t[2]=e=>n.candidate.lastName=e),label:e.$t("general.full_name"),rules:n.rules,required:""},null,8,["first-name","middle-name","last-name","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.candidate.vacancyId,"onUpdate:modelValue":t[3]||(t[3]=e=>n.candidate.vacancyId=e),"exclude-interviewers":!0,status:!0},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.candidate.email,"onUpdate:modelValue":t[4]||(t[4]=e=>n.candidate.email=e),label:e.$t("general.email"),placeholder:e.$t("general.type_here"),rules:n.rules.email,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.candidate.contactNumber,"onUpdate:modelValue":t[5]||(t[5]=e=>n.candidate.contactNumber=e),label:e.$t("recruitment.contact_number"),placeholder:e.$t("general.type_here"),rules:n.rules.contactNumber},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{newFile:n.resume.newAttachment,"onUpdate:newFile":t[6]||(t[6]=e=>n.resume.newAttachment=e),method:n.resume.method,"onUpdate:method":t[7]||(t[7]=e=>n.resume.method=e),label:e.$t("recruitment.resume"),"button-label":e.$t("general.browse"),file:n.resume.oldAttachment,rules:n.rules.resume,hint:e.$t("general.accept_custom_format_file"),url:"recruitment/candidateAttachment/attachId"},null,8,["newFile","method","label","button-label","file","rules","hint"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-save-candidate-page-full-width"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.candidate.keywords,"onUpdate:modelValue":t[8]||(t[8]=e=>n.candidate.keywords=e),label:e.$t("recruitment.keywords"),placeholder:`${e.$t("recruitment.enter_comma_seperated_words")}...`,rules:n.rules.keywords},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{modelValue:n.candidate.dateOfApplication,"onUpdate:modelValue":t[9]||(t[9]=e=>n.candidate.dateOfApplication=e),label:e.$t("recruitment.date_of_application"),rules:n.rules.applyDate},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-save-candidate-page-full-width"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.candidate.comment,"onUpdate:modelValue":t[10]||(t[10]=e=>n.candidate.comment=e),label:e.$t("general.notes"),type:"textarea",placeholder:e.$t("general.type_here"),rules:n.rules.notes},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-save-candidate-page-full-width orangehrm-save-candidate-page-grid-checkbox"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.candidate.consentToKeepData,"onUpdate:modelValue":t[11]||(t[11]=e=>n.candidate.consentToKeepData=e),type:"checkbox",label:e.$t("recruitment.consent_to_keep_data")},null,8,["modelValue","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f),(0,a.createVNode)(y,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(C)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}var _P={name:"SaveCandidate",components:{"submit-button":s,"full-name-input":uu,"vacancy-dropdown":wU,"file-upload-input":To},props:{maxFileSize:{type:Number,required:!0},allowedFileTypes:{type:Array,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates"),{userDateFormat:t}=R();return{http:e,userDateFormat:t}},data(){return{isLoading:!1,candidate:{firstName:null,middleName:null,lastName:null,email:null,contactNumber:null,keywords:null,comment:null,dateOfApplication:ie(ne(),"yyyy-MM-dd"),consentToKeepData:!1,vacancyId:null},resume:{id:null,oldAttachment:null,newAttachment:null,method:"keepCurrent"},rules:{firstName:[jt,zt(30)],lastName:[jt,zt(30)],middleName:[zt(30)],email:[jt,io,zt(50)],contactNumber:[so,zt(25)],notes:[zt(250)],keywords:[zt(250)],resume:[no(this.maxFileSize),ro(this.allowedFileTypes)],applyDate:[Rt(this.userDateFormat),Ot()]}}},methods:{onSave(){let e;this.isLoading=!0,this.http.create({...this.candidate,vacancyId:this.candidate.vacancyId?.id}).then((({data:{data:t}})=>{if(e=parseInt(t.id),this.resume.newAttachment)return this.http.request({method:"POST",url:"/api/v2/recruitment/candidate/attachments",data:{candidateId:e,attachment:this.resume.newAttachment}})})).then((()=>this.$toast.saveSuccess())).then((()=>{U("/recruitment/addCandidate/{id}",{id:e})}))},onCancel(){U("/recruitment/viewCandidates")}}};const kP=(0,r.Z)(_P,[["render",NP],["__scopeId","data-v-e75f8a7a"]]);var SP=kP;const DP={class:"orangehrm-candidate-page"},$P=(0,a.createElementVNode)("br",null,null,-1),EP={class:"orangehrm-paper-container"},TP={key:0,class:"orangehrm-header-container"},BP={class:"orangehrm-container"},IP={class:"orangehrm-bottom-container"};function LP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("jobtitle-dropdown"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("vacancy-dropdown"),c=(0,a.resolveComponent)("hiring-manager-dropdown"),m=(0,a.resolveComponent)("candidate-status-dropdown"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("candidate-autocomplete"),g=(0,a.resolveComponent)("oxd-input-field"),v=(0,a.resolveComponent)("date-input"),f=(0,a.resolveComponent)("oxd-divider"),y=(0,a.resolveComponent)("oxd-button"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form"),x=(0,a.resolveComponent)("oxd-table-filter"),w=(0,a.resolveComponent)("table-header"),N=(0,a.resolveComponent)("oxd-card-table"),_=(0,a.resolveComponent)("oxd-pagination"),k=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",DP,[(0,a.createVNode)(x,{"filter-title":e.$t("general.candidates")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(V,{onSubmitValid:r.filterItems,onReset:r.onReset},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.jobTitle,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.jobTitle=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.vacancy,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.vacancy=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.hiringManager,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.hiringManager=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.status,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.status=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:l.filters.candidate,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.candidate=e),rules:l.rules.candidate},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:l.filters.keywords,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.keywords=e),label:e.$t("recruitment.keywords"),placeholder:`${e.$t("recruitment.enter_comma_seperated_words")}...`},null,8,["modelValue","label","placeholder"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[6]||(t[6]=e=>l.filters.fromDate=e),label:e.$t("recruitment.date_of_application"),placeholder:e.$t("general.from"),rules:l.rules.fromDate},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[7]||(t[7]=e=>l.filters.toDate=e),label:" ",placeholder:e.$t("general.to"),rules:l.rules.toDate},null,8,["modelValue","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:l.filters.methodOfApplication,"onUpdate:modelValue":t[8]||(t[8]=e=>l.filters.methodOfApplication=e),label:e.$t("recruitment.method_of_application"),type:"select",options:n.applications},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(f),(0,a.createVNode)(b,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y,{type:"reset","display-type":"ghost",label:e.$t("general.reset")},null,8,["label"]),(0,a.createVNode)(C,{label:e.$t("general.search")},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),$P,(0,a.createElementVNode)("div",EP,[e.$can.create("recruitment_candidates")?((0,a.openBlock)(),(0,a.createElementBlock)("div",TP,[(0,a.createVNode)(y,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(w,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,"show-divider":e.$can.create("recruitment_candidates"),onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","show-divider","onDelete"]),(0,a.createElementVNode)("div",BP,[(0,a.createVNode)(N,{selected:n.checkedItems,"onUpdate:selected":t[9]||(t[9]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[10]||(t[10]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",IP,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(_,{key:0,current:l.currentPage,"onUpdate:current":t[11]||(t[11]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(k,{ref:"deleteDialog"},null,512)])}function UP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"autocomplete",label:e.$t("recruitment.candidate_name"),clear:!1,"create-options":r.loadCandidates},{option:(0,a.withCtx)((({data:e})=>[(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.label),1)])),_:1},8,["label","create-options"])}var AP={name:"CandidateAutocomplete",props:{params:{type:Object,default:()=>({})}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates");return{http:e}},methods:{async loadCandidates(e){return new Promise((t=>{e.trim()?this.http.getAll({candidateName:e.trim(),...this.params}).then((({data:e})=>{t(e.data.map((e=>({id:e.id,label:`${e.firstName} ${e.middleName||""} ${e.lastName}`,_candidate:e}))))})):t([])}))}}};const PP=(0,r.Z)(AP,[["render",UP],["__scopeId","data-v-5c755293"]]);var qP=PP;function MP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("general.status"),options:l.options},null,8,["label","options"])}var FP={name:"CandidateStatusDropdown",setup(){const e=(0,a.ref)([]),t=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates/statuses");return(0,a.onBeforeMount)((()=>{t.getAll().then((({data:t})=>{e.value=t.data.map((e=>({id:e.id,label:e.label})))}))})),{options:e}}};const jP=(0,r.Z)(FP,[["render",MP]]);var zP=jP;const RP={jobTitle:null,vacancy:null,hiringManager:null,status:null,keywords:null,application:null,candidate:null,fromDate:null,toDate:null},OP={"vacancy.name":"DEFAULT","candidate.lastName":"DEFAULT","hiringManager.lastName":"DEFAULT","candidate.dateOfApplication":"DESC","candidateVacancy.status":"DEFAULT"};var GP={components:{"vacancy-dropdown":wU,"jobtitle-dropdown":Eu,"delete-confirmation":Et,"candidate-autocomplete":qP,"hiring-manager-dropdown":SU,"candidate-status-dropdown":zP},props:{status:{type:Object,required:!1,default:null}},setup(e){const{$t:t}=Se(),{locale:o}=De(),{jsDateFormat:l,userDateFormat:n}=R(),{$tEmpName:r}=xa(),i=e=>e.map((e=>({id:e.id,vacancy:!1===e.vacancy?.status?`${e.vacancy?.name} (${t("general.closed")})`:e.vacancy?.name,candidate:`${e.firstName} ${e.middleName||""} ${e.lastName}`,manager:e?.vacancy?.hiringManager?r(e.vacancy.hiringManager,{includeMiddle:!0,excludePastEmpTag:!1}):"",dateOfApplication:ie(re(e.dateOfApplication),l,{locale:o}),status:e.status?.label,resume:e.hasAttachment,isSelectable:e.deletable}))),s=(0,a.ref)({...RP,...e.status&&{status:e.status}}),d={candidate:[xo],fromDate:[Rt(n),co((()=>s.value.toDate),t("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(n),eo((()=>s.value.fromDate),t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]},{sortDefinition:c,sortField:m,sortOrder:u,onSort:p}=Tt({sortDefinition:OP}),h=(0,a.computed)((()=>({jobTitleId:s.value.jobTitle?.id,vacancyId:s.value.vacancy?.id,hiringManagerId:s.value.hiringManager?.id,keywords:s.value.keywords,candidateId:s.value.candidate?.id,fromDate:s.value.fromDate,toDate:s.value.toDate,status:s.value.status?.id,methodOfApplication:s.value.methodOfApplication?.id,model:"list",sortField:m.value,sortOrder:u.value}))),g=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates"),{showPaginator:v,currentPage:f,total:y,pages:C,pageSize:b,response:V,isLoading:x,execQuery:w}=wt(g,{query:h,normalizer:i});return p(w),{http:g,showPaginator:v,currentPage:f,isLoading:x,total:y,pages:C,pageSize:b,execQuery:w,items:V,filters:s,sortDefinition:c,rules:d}},data(){return{checkedItems:[],headers:[{name:"vacancy",title:this.$t("recruitment.vacancy"),sortField:"vacancy.name",style:{flex:1}},{name:"candidate",slot:"title",title:this.$t("recruitment.candidate"),sortField:"candidate.lastName",style:{flex:1}},{name:"manager",title:this.$t("recruitment.hiring_manager"),sortField:"hiringManager.lastName",style:{flex:1}},{name:"dateOfApplication",title:this.$t("recruitment.date_of_application"),sortField:"candidate.dateOfApplication",style:{flex:1}},{name:"status",title:this.$t("general.status"),sortField:"candidateVacancy.status",style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer}],applications:[{id:1,label:this.$t("recruitment.manual")},{id:2,label:this.$t("recruitment.online")}]}},methods:{cellRenderer(...[,,,e]){const t={view:{onClick:this.onClickEdit,props:{name:"eye-fill"}}};return e.isSelectable&&(t.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),e.resume&&(t.download={onClick:this.onDownload,props:{name:"download"}}),{props:{header:{cellConfig:t}}}},onClickAdd(){U("/recruitment/addCandidate")},onClickEdit(e){U("/recruitment/addCandidate/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},onDownload(e){if(!e?.id)return;const t="recruitment/viewCandidateAttachment/candidateId",o=`${window.appGlobal.baseUrl}/${t}/${e.id}`;window.open(o,"_blank")},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})).catch((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onReset(){this.filters={...RP},this.filterItems()}}};const ZP=(0,r.Z)(GP,[["render",LP]]);var QP=ZP;function HP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("recruitment-status"),s=(0,a.resolveComponent)("candidate-profile"),d=(0,a.resolveComponent)("history-table");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[n.candidate?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,candidate:n.candidate},null,8,["candidate"])):(0,a.createCommentVNode)("",!0),n.candidate?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,candidate:n.candidate,"max-file-size":o.maxFileSize,updatable:o.updatable,onUpdate:r.onCandidateUpdate},null,8,["candidate","max-file-size","updatable","onUpdate"])):(0,a.createCommentVNode)("",!0),n.candidate?((0,a.openBlock)(),(0,a.createBlock)(d,{key:2,candidate:n.candidate},null,8,["candidate"])):(0,a.createCommentVNode)("",!0)],64)}const WP={class:"orangehrm-card-container"},YP={class:"orangehrm-recruitment"},JP={key:0,class:"orangehrm-recruitment-status"},XP={class:"orangehrm-recruitment-actions"};function KP(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",WP,[(0,a.createVNode)(p,{loading:n.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.application_stage")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.name")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.candidateName),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("recruitment.vacancy")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.vacancyName?r.vacancyName:"N/A"),1)])),_:1})])),_:1},8,["label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("recruitment.hiring_manager")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.hiringManagerName?r.hiringManagerName:"N/A"),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",YP,[r.recruitmentStatus?((0,a.openBlock)(),(0,a.createElementBlock)("div",JP,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.status"))+": "+(0,a.toDisplayString)(r.recruitmentStatus),1)])),_:1})])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",XP,[r.hasWorkflow(3)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,label:e.$t("general.reject"),"display-type":"danger",onClick:t[0]||(t[0]=e=>r.doWorkflow(3))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(8)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1,label:e.$t("recruitment.offer_declined"),"display-type":"danger",onClick:t[1]||(t[1]=e=>r.doWorkflow(8))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(6)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:2,label:e.$t("recruitment.mark_interview_failed"),"display-type":"danger",onClick:t[2]||(t[2]=e=>r.doWorkflow(6))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(2)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:3,label:e.$t("recruitment.shortlist"),"display-type":"success",onClick:t[3]||(t[3]=e=>r.doWorkflow(2))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(4)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:4,label:e.$t("recruitment.schedule_interview"),"display-type":"success",onClick:t[4]||(t[4]=e=>r.doWorkflow(4))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(5)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:5,label:e.$t("recruitment.mark_interview_passed"),"display-type":"success",onClick:t[5]||(t[5]=e=>r.doWorkflow(5))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(7)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:6,label:e.$t("recruitment.offer_job"),"display-type":"success",onClick:t[6]||(t[6]=e=>r.doWorkflow(7))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasWorkflow(9)?((0,a.openBlock)(),(0,a.createBlock)(u,{key:7,label:e.$t("recruitment.hire"),"display-type":"success",onClick:t[7]||(t[7]=e=>r.doWorkflow(9))},null,8,["label"])):(0,a.createCommentVNode)("",!0)])])])),_:1},8,["loading"])])}var eq={name:"RecruitmentStatus",props:{candidate:{type:Object,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates"),{$tEmpName:t}=xa();return{http:e,translateEmpName:t}},data(){return{isLoading:!1,statuses:[{id:1,label:this.$t("recruitment.application_initiated")},{id:2,label:this.$t("recruitment.shortlisted")},{id:3,label:this.$t("leave.rejected")},{id:4,label:this.$t("recruitment.interview_scheduled")},{id:5,label:this.$t("recruitment.interview_passed")},{id:6,label:this.$t("recruitment.interview_failed")},{id:7,label:this.$t("recruitment.job_offered")},{id:8,label:this.$t("recruitment.offer_declined")},{id:9,label:this.$t("recruitment.hired")}],actions:[]}},computed:{recruitmentStatus(){return this.statuses.find((e=>e.id===this.candidate.status?.id))?.label||null},candidateName(){return`${this.candidate.firstName} ${this.candidate?.middleName||""} ${this.candidate.lastName}`},vacancyName(){const{vacancy:e}=this.candidate;return e?!1===e.status?e.name+` (${this.$t("general.closed")})`:e.name:null},hiringManagerName(){return this.candidate.vacancy?.hiringManager?this.translateEmpName(this.candidate.vacancy.hiringManager,{includeMiddle:!0,excludePastEmpTag:!1}):void 0}},watch:{candidate(){this.getAllowedActions()}},beforeMount(){this.getAllowedActions()},methods:{hasWorkflow(e){return this.actions.findIndex((t=>t.id==e))>-1},doWorkflow(e){U("/recruitment/changeCandidateVacancyStatus",{},{candidateId:this.candidate?.id,selectedAction:e})},getAllowedActions(){this.isLoading=!0,this.http.request({method:"GET",url:`/api/v2/recruitment/candidates/${this.candidate?.id}/actions/allowed`}).then((e=>{const{data:t}=e.data;this.actions=[...t]})).finally((()=>{this.isLoading=!1}))}}};const tq=(0,r.Z)(eq,[["render",KP],["__scopeId","data-v-2d6dc297"]]);var oq=tq;const aq={class:"orangehrm-background-container"},lq={class:"orangehrm-card-container"},nq={class:"orangehrm-header-container"};function rq(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-switch-input"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("full-name-input"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("vacancy-dropdown"),g=(0,a.resolveComponent)("oxd-input-field"),v=(0,a.resolveComponent)("file-upload-input"),f=(0,a.resolveComponent)("date-input"),y=(0,a.resolveComponent)("required-text"),C=(0,a.resolveComponent)("submit-button"),b=(0,a.resolveComponent)("oxd-form-actions"),V=(0,a.resolveComponent)("oxd-form"),x=(0,a.resolveComponent)("confirmation-dialog");return(0,a.openBlock)(),(0,a.createElementBlock)("div",aq,[(0,a.createElementVNode)("div",lq,[(0,a.createElementVNode)("div",nq,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.candidate_profile")),1)])),_:1}),!n.isLoading&&o.updatable?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,modelValue:n.editable,"onUpdate:modelValue":t[0]||(t[0]=e=>n.editable=e),"option-label":e.$t("general.edit"),"label-position":"left"},null,8,["modelValue","option-label"])):(0,a.createCommentVNode)("",!0)]),(0,a.withDirectives)((0,a.createVNode)(d,null,null,512),[[a.vShow,!n.isLoading]]),(0,a.createVNode)(V,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:1,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{"first-name":n.profile.firstName,"onUpdate:first-name":t[1]||(t[1]=e=>n.profile.firstName=e),"middle-name":n.profile.middleName,"onUpdate:middle-name":t[2]||(t[2]=e=>n.profile.middleName=e),"last-name":n.profile.lastName,"onUpdate:last-name":t[3]||(t[3]=e=>n.profile.lastName=e),rules:n.rules,label:e.$t("general.full_name"),disabled:!n.editable,required:""},null,8,["first-name","middle-name","last-name","rules","label","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.vacancy,"onUpdate:modelValue":t[4]||(t[4]=e=>n.vacancy=e),label:e.$t("recruitment.job_vacancy"),readonly:!n.editable,"exclude-interviewers":!0,status:!0},null,8,["modelValue","label","readonly"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.profile.email,"onUpdate:modelValue":t[5]||(t[5]=e=>n.profile.email=e),label:e.$t("general.email"),placeholder:e.$t("general.type_here"),rules:n.rules.email,disabled:!n.editable,required:""},null,8,["modelValue","label","placeholder","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.profile.contactNumber,"onUpdate:modelValue":t[6]||(t[6]=e=>n.profile.contactNumber=e),label:e.$t("recruitment.contact_number"),placeholder:e.$t("general.type_here"),rules:n.rules.contactNumber,disabled:!n.editable},null,8,["modelValue","label","placeholder","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{newFile:n.attachment.newAttachment,"onUpdate:newFile":t[7]||(t[7]=e=>n.attachment.newAttachment=e),method:n.attachment.method,"onUpdate:method":t[8]||(t[8]=e=>n.attachment.method=e),label:e.$t("recruitment.resume"),"button-label":e.$t("general.browse"),file:n.attachment.oldAttachment,rules:n.rules.resume,hint:e.$t("general.accept_custom_format_file"),disabled:!n.editable,url:r.getResumeUrl},null,8,["newFile","method","label","button-label","file","rules","hint","disabled","url"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-save-candidate-page --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.profile.keywords,"onUpdate:modelValue":t[9]||(t[9]=e=>n.profile.keywords=e),label:e.$t("recruitment.keywords"),placeholder:`${e.$t("recruitment.enter_comma_seperated_words")}...`,rules:n.rules.keywords,disabled:!n.editable},null,8,["modelValue","label","placeholder","rules","disabled"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{modelValue:n.profile.dateOfApplication,"onUpdate:modelValue":t[10]||(t[10]=e=>n.profile.dateOfApplication=e),label:e.$t("recruitment.date_of_application"),rules:n.rules.applicationDate,disabled:!n.editable},null,8,["modelValue","label","rules","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-save-candidate-page --span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.profile.comment,"onUpdate:modelValue":t[11]||(t[11]=e=>n.profile.comment=e),label:e.$t("general.notes"),type:"textarea",placeholder:e.$t("general.type_here"),disabled:!n.editable},null,8,["modelValue","label","placeholder","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-candidate-grid-checkbox"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{modelValue:n.profile.consentToKeepData,"onUpdate:modelValue":t[12]||(t[12]=e=>n.profile.consentToKeepData=e),type:"checkbox",label:e.$t("recruitment.consent_to_keep_data"),disabled:!n.editable},null,8,["modelValue","label","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.withDirectives)((0,a.createVNode)(d,null,null,512),[[a.vShow,n.editable]]),n.editable?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y),(0,a.createVNode)(C,{label:e.$t("general.save")},null,8,["label"])])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","onSubmitValid"])]),(0,a.createVNode)(x,{ref:"confirmDialog",title:e.$t("general.confirmation_required"),subtitle:e.$t("recruitment.candidate_vacancy_change_message"),"cancel-label":e.$t("general.no_cancel"),"confirm-label":e.$t("leave.yes_confirm"),"confirm-button-type":"secondary"},null,8,["title","subtitle","cancel-label","confirm-label"])])}const iq={firstName:"",middleName:"",lastName:"",email:"",contactNumber:"",comment:"",keywords:"",dateOfApplication:null,consentToKeepData:!1},sq={id:null,oldAttachment:{},newAttachment:null,method:"replaceCurrent"},dq={id:null,label:""};var cq={name:"CandidateProfile",components:{DateInput:Te,"oxd-switch-input":q.OxdSwitchInput,"full-name-input":uu,"vacancy-dropdown":wU,"file-upload-input":To,"confirmation-dialog":_L},props:{candidate:{type:Object,required:!0},allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0},updatable:{type:Boolean,required:!1,default:!0}},emits:["update"],setup(){const e=new P(window.appGlobal.baseUrl,"/"),{userDateFormat:t}=R();return{http:e,userDateFormat:t}},data(){return{editable:!1,isLoading:!1,profile:{...iq},vacancy:{...dq},attachment:{...sq},rules:{firstName:[jt,zt(30)],lastName:[jt,zt(30)],middleName:[zt(30)],email:[jt,io,zt(50)],contactNumber:[so,zt(25)],keywords:[zt(250)],applicationDate:[Rt(this.userDateFormat)],resume:[no(this.maxFileSize),ro(this.allowedFileTypes)]}}},watch:{candidate(){this.fetchCandidate()}},beforeMount(){this.fetchCandidate()},methods:{onSave(){this.candidate.vacancy?.id&&this.candidate.vacancy?.id!==this.vacancy?.id?this.$refs.confirmDialog.showDialog().then((e=>{"ok"===e&&this.updateCandidate()})):this.updateCandidate()},updateCandidate(){this.isLoading=!0,this.http.request({method:"PUT",url:`/api/v2/recruitment/candidates/${this.candidate.id}`,data:{...this.profile,vacancyId:this.vacancy?.id}}).then((()=>!this.attachment.newAttachment&&!this.candidate.hasAttachment||this.http.request({method:"PUT",url:`/api/v2/recruitment/candidate/${this.candidate.id}/attachment`,data:{currentAttachment:this.attachment.oldAttachment?this.attachment.method:void 0,attachment:this.attachment.newAttachment?this.attachment.newAttachment:void 0}}))).then((()=>this.$toast.updateSuccess())).then((()=>{this.$emit("update"),this.isLoading=!1,this.editable=!1}))},getResumeUrl(){return L("/recruitment/viewCandidateAttachment/candidateId/{candidateId}",{candidateId:this.candidate.id})},fetchCandidate(){this.isLoading=!0,this.profile.firstName=this.candidate.firstName,this.profile.middleName=this.candidate.middleName,this.profile.lastName=this.candidate.lastName,this.profile.email=this.candidate.email,this.profile.contactNumber=this.candidate.contactNumber,this.profile.keywords=this.candidate.keywords,this.profile.dateOfApplication=this.candidate.dateOfApplication,this.profile.comment=this.candidate.comment,this.profile.consentToKeepData=this.candidate.consentToKeepData;const{vacancy:e}=this.candidate;e&&(this.vacancy={id:e.id,label:!1===e.status?e.name+` (${this.$t("general.closed")})`:e.name}),this.candidate.hasAttachment?this.http.request({method:"GET",url:`/api/v2/recruitment/candidate/${this.candidate.id}/attachment`}).then((({data:{data:e}})=>{this.attachment.id=e.id,this.attachment.newAttachment=null,this.attachment.oldAttachment={id:e.id,filename:e.attachment.fileName,fileType:e.attachment.fileType,fileSize:e.attachment.fileSize},this.attachment.method="keepCurrent"})):this.attachment={...sq},this.isLoading=!1}}};const mq=(0,r.Z)(cq,[["render",rq],["__scopeId","data-v-fa8534b2"]]);var uq=mq;const pq={class:"orangehrm-paper-container"},hq={class:"orangehrm-header-container"},gq={class:"orangehrm-container"},vq={class:"orangehrm-bottom-container"};function fq(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table"),c=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",pq,[(0,a.createElementVNode)("div",hq,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.candidate_history")),1)])),_:1})]),(0,a.createVNode)(s,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",gq,[(0,a.createVNode)(d,{headers:n.headers,items:l.items?.data,clickable:!1,selectable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["headers","items","loading"])]),(0,a.createElementVNode)("div",vq,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])}const yq=1,Cq=2,bq=3,Vq=4,xq=5,wq=6,Nq=7,_q=8,kq=9,Sq=15,Dq=16,$q=17;var Eq={name:"HistoryTable",props:{candidate:{type:Object,required:!0}},setup(e){const{$t:t}=Se(),{locale:o}=De(),{jsDateFormat:a}=R(),{$tEmpName:l}=xa(),n=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidate?.id}/history`),r=n=>{const r=`${e.candidate?.firstName} ${e.candidate?.middleName||""} ${e.candidate?.lastName}`;return n.map((e=>{let n=null;const i={name:"",data:"",interviewers:""},s=l(e.performedBy,{includeMiddle:!0,excludePastEmpTag:!1});if(e.interview){i.name=e.interview.name,i.date=e.interview.date;const t=e.interview.interviewers.map((e=>l(e,{includeMiddle:!0,excludePastEmpTag:!1})));i.interviewers=t.join(", ")}switch(e?.action.id){case $q:n=t("recruitment.candidate_applied_for_the_vacancy",{candidate:r,vacancy:e.vacancyName});break;case Dq:n=t("recruitment.employee_added_candidate",{employee:s,candidate:r});break;case yq:n=t("recruitment.employee_assigned_vacancy_to_candidate",{employee:s,vacancy:e.vacancyName});break;case Cq:n=t("recruitment.candidate_shortlisted_for_vacancy_by_employee",{vacancy:e.vacancyName,employee:s});break;case bq:n=t("recruitment.employee_rejected_the_candidate",{employee:s,candidate:r,vacancy:e.vacancyName});break;case Vq:n=t("recruitment.employee_schedule_interview_with_interviewers",{employee:s,interview:i.name,interviewDate:i.date,interviewers:i.interviewers,vacancy:e.vacancyName});break;case xq:n=t("recruitment.employee_marked_interveiw_passed",{employee:s,interview:i.name,vacancy:e.vacancyName});break;case wq:n=t("recruitment.employee_marked_interveiw_failed",{employee:s,interview:i.name,vacancy:e.vacancyName});break;case Nq:n=t("recruitment.employee_offered_the_job",{employee:s,vacancy:e.vacancyName});break;case _q:n=t("recruitment.employee_marked_the_offer_declined",{employee:s,vacancy:e.vacancyName});break;case kq:n=t("recruitment.employee_hired_the_candidate",{employee:s,candidate:r,vacancy:e.vacancyName});break;case Sq:n=t("recruitment.employee_removed_candidate_from_vacancy",{employee:s,candidate:r,vacancy:e.vacancyName});break}return{...e,description:n,performedDate:ie(re(e.performedDate),a,{locale:o})}}))},{showPaginator:i,currentPage:s,total:d,pages:c,pageSize:m,response:u,isLoading:p,execQuery:h}=wt(n,{normalizer:r});return{http:n,showPaginator:i,currentPage:s,isLoading:p,total:d,pages:c,pageSize:m,execQuery:h,items:u}},data(){return{headers:[{name:"performedDate",slot:"title",title:this.$t("recruitment.performed_date"),style:{flex:"20%"}},{name:"description",title:this.$t("general.description"),style:{flex:"65%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:"15%"},cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer}]}},watch:{candidate(){this.execQuery()}},methods:{cellRenderer(...[,,,e]){const t={};return e.action?.id!=yq&&e.action?.id!=Dq&&e.action?.id!=Sq&&e.action?.id!=$q&&e.editable&&(t.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}}),e.action?.id!==Vq&&e.action?.id!==xq&&e.action?.id!==wq||!e.editable||(t.attachment={onClick:this.onClickAttachment,props:{name:"paperclip"}}),{props:{header:{cellConfig:t}}}},onClickEdit(e){U("/recruitment/candidateHistory/{candidateId}/{historyId}",{candidateId:this.candidate.id,historyId:e.id})},onClickAttachment(e){U("/recruitment/interviewAttachments/{interviewId}",{interviewId:e.interview?.id})}}};const Tq=(0,r.Z)(Eq,[["render",fq],["__scopeId","data-v-5829e84c"]]);var Bq=Tq,Iq={components:{"history-table":Bq,"candidate-profile":uq,"recruitment-status":oq},props:{candidateId:{type:Number,required:!0},maxFileSize:{type:Number,required:!0},allowedFileTypes:{type:Array,required:!0},updatable:{type:Boolean,required:!1,default:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/candidates");return{http:e}},data(){return{candidate:null}},beforeMount(){this.onCandidateUpdate()},methods:{onCandidateUpdate(){this.http.get(this.candidateId).then((({data:{data:e}})=>{this.candidate=e}))}}};const Lq=(0,r.Z)(Iq,[["render",HP]]);var Uq=Lq;const Aq={class:"orangehrm-background-container"};function Pq(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("interviewer-autocomplete"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("time-input"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("candidate-action-layout");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Aq,[(0,a.createVNode)(y,{loading:n.isLoading,"candidate-id":o.candidateId,title:e.$t("recruitment.view_action_history"),onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:e.$t("recruitment.performed_action"),value:r.performedAction,readonly:""},null,8,["label","value"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:e.$t("general.performed_by"),value:r.performedBy,readonly:""},null,8,["label","value"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{label:e.$t("recruitment.performed_date"),value:r.performedDate,readonly:""},null,8,["label","value"])])),_:1})])),_:1})])),_:1}),r.isScheduleInterview?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.interview.interviewName,"onUpdate:modelValue":t[0]||(t[0]=e=>n.interview.interviewName=e),rules:n.rules.interviewName,label:e.$t("recruitment.interview_title"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.interviewers,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(m,{key:t,modelValue:n.interviewers[t],"onUpdate:modelValue":e=>n.interviewers[t]=e,"show-delete":t>0,rules:n.rules.interviewerName.filter(((e,o)=>0===t||o>0)),"include-employees":"onlyCurrent",required:"",disabled:!o.editable,onRemove:e=>r.onRemoveInterviewer(t)},null,8,["modelValue","onUpdate:modelValue","show-delete","rules","disabled","onRemove"])))),128)),n.interviewers.length<5&&o.editable?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"icon-name":"plus","display-type":"text",class:"orangehrm-input-field-bottom-space",label:e.$t("general.add_another"),onClick:r.onAddAnother},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0)])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.interview.interviewDate,"onUpdate:modelValue":t[1]||(t[1]=e=>n.interview.interviewDate=e),rules:n.rules.interviewDate,label:e.$t("general.date"),required:""},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.interview.interviewTime,"onUpdate:modelValue":t[2]||(t[2]=e=>n.interview.interviewTime=e),rules:n.rules.interviewTime,label:e.$t("general.time")},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:n.history.note,"onUpdate:modelValue":t[3]||(t[3]=e=>n.history.note=e),rules:n.rules.note,label:e.$t("general.notes"),placeholder:e.$t("general.type_here"),type:"textarea",disabled:n.disabled},null,8,["modelValue","rules","label","placeholder","disabled"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.back"),onClick:r.onClickBack},null,8,["label","onClick"]),n.disabled?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createBlock)(v,{key:0,label:e.$t("general.save")},null,8,["label"]))])),_:1})])),_:1},8,["loading","candidate-id","title","onSubmitValid"])])}const qq={id:null,action:{id:null,label:null},performedBy:{empNumber:null,lastName:null,firstName:null,middleName:null,terminationId:null},interview:{id:null},performedDate:null,note:null},Mq={interviewName:null,interviewDate:null,interviewTime:null};var Fq={components:{"candidate-action-layout":TA,"interviewer-autocomplete":JA},props:{candidateId:{type:Number,required:!0},historyId:{type:Number,required:!0},editable:{type:Boolean,required:!1,default:!0}},setup(e){const{locale:t}=De(),{jsDateFormat:o,userDateFormat:a}=R(),{$tEmpName:l}=xa(),n=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/candidates/${e.candidateId}/history`);return{http:n,locale:t,jsDateFormat:o,userDateFormat:a,translateEmpName:l}},data(){return{isLoading:!1,history:{...qq},interview:{...Mq},interviewers:[],rules:{interviewName:[jt,zt(100)],interviewDate:[jt,Rt(this.userDateFormat)],interviewTime:[Gt],interviewerName:[jt,xo,e=>this.interviewers.filter((t=>t&&t.id===e?.id)).length<2||this.$t("general.already_exists")],note:[zt(2e3)]},statuses:[{id:1,label:this.$t("recruitment.application_initiated")},{id:2,label:this.$t("recruitment.shortlist")},{id:3,label:this.$t("general.reject")},{id:4,label:this.$t("recruitment.schedule_interview")},{id:5,label:this.$t("recruitment.mark_interview_passed")},{id:6,label:this.$t("recruitment.mark_interview_failed")},{id:7,label:this.$t("recruitment.offer_job")},{id:8,label:this.$t("recruitment.decline_offer")},{id:9,label:this.$t("recruitment.hire")}],disabled:!1}},computed:{performedBy(){return this.translateEmpName(this.history.performedBy,{includeMiddle:!0,excludePastEmpTag:!1})},performedDate(){return ie(re(this.history.performedDate),this.jsDateFormat,{locale:this.locale})},performedAction(){return this.statuses.find((e=>e.id===this.history.action.id))?.label||null},isScheduleInterview(){return this.history.interview?.id&&4===this.history.action?.id}},beforeMount(){this.isLoading=!0,this.http.get(this.historyId).then((e=>{const{data:t,meta:o}=e.data;return this.history={...t},this.disabled=o.disabled,this.isScheduleInterview?this.http.request({method:"GET",url:`/api/v2/recruitment/candidates/${this.candidateId}/interviews/${this.history.interview.id}`}):null})).then((e=>{if(e){const{data:t}=e.data;this.interview.interviewName=t.name,this.interview.interviewDate=t.interviewDate,this.interview.interviewTime=t.interviewTime,this.history.note=t.note,Array.isArray(t.interviewers)&&(this.interviewers=t.interviewers.map((e=>({id:e.empNumber,label:this.translateEmpName(e,{includeMiddle:!0,excludePastEmpTag:!0}),isPastEmployee:!!e.terminationId}))))}})).finally((()=>{this.isLoading=!1}))},methods:{onAddAnother(){this.interviewers.length<5&&this.interviewers.push(null)},onRemoveInterviewer(e){this.interviewers.splice(e,1)},onSave(){this.loading=!0,this.http.update(this.historyId,{note:this.history.note}).then((()=>this.isScheduleInterview?this.http.request({method:"PUT",url:`/api/v2/recruitment/candidates/${this.candidateId}/interviews/${this.history.interview.id}`,data:{...this.interview,note:this.history.note,interviewerEmpNumbers:this.interviewers.map((e=>e?.id)).filter(Number)}}):null)).then((()=>{this.loading=!1,this.$toast.saveSuccess()}))},onClickBack(){U("/recruitment/addCandidate/{id}",{id:this.candidateId})}}};const jq=(0,r.Z)(Fq,[["render",Pq]]);var zq=jq;const Rq={class:"orangehrm-container"},Oq={key:1,class:"orangehrm-bottom-container"},Gq={class:"orangehrm-paper-container"},Zq=["src"];function Qq(e,t,o,l,n,r){const i=(0,a.resolveComponent)("vacancy-card"),s=(0,a.resolveComponent)("oxd-loading-spinner"),d=(0,a.resolveComponent)("oxd-pagination"),c=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",Rq,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.vacancies?.data,(e=>((0,a.openBlock)(),(0,a.createBlock)(i,{key:e,"vacancy-id":e.vacancyId,"vacancy-title":e.vacancyTitle,"vacancy-description":e.vacancyDescription},null,8,["vacancy-id","vacancy-title","vacancy-description"])))),128)),l.isLoading?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"orangehrm-container-loader"})):(0,a.createCommentVNode)("",!0),l.showPaginator?((0,a.openBlock)(),(0,a.createElementBlock)("div",Oq,[(0,a.createVNode)(d,{current:l.currentPage,"onUpdate:current":t[0]||(t[0]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",Gq,[(0,a.createVNode)(c,{tag:"p",class:"orangehrm-vacancy-list-poweredby"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.powered_by")),1)])),_:1}),(0,a.createElementVNode)("img",{src:l.defaultPic,alt:"OrangeHRM Picture",class:"orangehrm-container-img"},null,8,Zq),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])],64)}const Hq={class:"orangehrm-card-container"},Wq={class:"orangehrm-vacancy-card-header"},Yq={key:0,class:"orangehrm-vacancy-card-pre-tag"},Jq={key:0,class:"orangehrm-vacancy-card-footer"};function Xq(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-divider");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Hq,[(0,a.createElementVNode)("div",Wq,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.vacancyTitle),1)])),_:1}),(0,a.createVNode)(s,{label:e.$t("general.apply"),"display-type":"secondary",class:"oxd-button",onClick:r.apply},null,8,["label","onClick"])]),(0,a.withDirectives)((0,a.createVNode)(d,null,null,512),[[a.vShow,o.vacancyDescription]]),(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)({"orangehrm-vacancy-card-body":r.isViewDetails})},[(0,a.createVNode)(i,{type:"toast-message"},{default:(0,a.withCtx)((()=>[o.vacancyDescription?((0,a.openBlock)(),(0,a.createElementBlock)("pre",Yq,(0,a.toDisplayString)(o.vacancyDescription),1)):(0,a.createCommentVNode)("",!0)])),_:1})],2),o.vacancyDescription&&o.vacancyDescription.length>r.descriptionLength?((0,a.openBlock)(),(0,a.createElementBlock)("div",Jq,[(0,a.createElementVNode)("a",{onClick:t[0]||(t[0]=(...e)=>r.viewDetails&&r.viewDetails(...e))},[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-vacancy-card-anchor-tag"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.isViewDetails?e.$t("general.show_more"):e.$t("general.show_less")),1)])),_:1})])])):(0,a.createCommentVNode)("",!0)])}var Kq={name:"VacancyCard",props:{vacancyId:{type:Number,required:!0},vacancyTitle:{type:String,required:!0},vacancyDescription:{type:String,required:!0}},setup(){const e=(0,q.useResponsive)();return{...(0,a.toRefs)(e)}},data(){return{viewMore:!1}},computed:{isMobile(){return this.windowWidth<600},isViewDetails(){return!this.viewMore},descriptionLength(){return this.isMobile?150:this.windowWidth<1920?250:400}},methods:{viewDetails(){this.viewMore=!this.viewMore},apply(){U("/recruitmentApply/applyVacancy/id/{id}",{id:this.vacancyId})}}};const eM=(0,r.Z)(Kq,[["render",Xq],["__scopeId","data-v-251847f9"]]);var tM=eM,oM={name:"VacancyList",components:{"vacancy-card":tM,"oxd-loading-spinner":q.OxdSpinner},setup(){const e=`${window.appGlobal.publicPath}/images/ohrm_branding.png`,t=e=>e.map((e=>({vacancyId:e.id,vacancyTitle:e.name,vacancyDescription:e.description}))),o=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/public/vacancies"),{showPaginator:a,currentPage:l,total:n,pages:r,response:i,isLoading:s}=wt(o,{normalizer:t,pageSize:8});return{defaultPic:e,showPaginator:a,currentPage:l,isLoading:s,total:n,pages:r,vacancies:i}}};const aM=(0,r.Z)(oM,[["render",Qq],["__scopeId","data-v-68e0eff5"]]);var lM=aM;const nM={class:"orangehrm-container"},rM={class:"orangehrm-card-container"},iM={class:"orangehrm-card-container-header"},sM=["src"],dM={class:"orangehrm-applicant-card-pre-tag"},cM={key:0,class:"orangehrm-vacancy-card-footer"},mM=["value"],uM=["value"],pM={class:"orangehrm-applicant-container"},hM={class:"orangehrm-paper-container"},gM=["src"];function vM(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("full-name-input"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-input-field"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("success-dialogue");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",nM,[(0,a.createElementVNode)("div",rM,[(0,a.createElementVNode)("div",iM,[(0,a.createVNode)(i,{class:"orangehrm-main-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.apply_for_n_vacancy",{vacancyName:n.vacancyName})),1)])),_:1}),(0,a.createElementVNode)("img",{class:"oxd-brand-banner",src:o.bannerSrc},null,8,sM)]),n.vacancyDescription?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(s),(0,a.createVNode)(i,{class:"orangehrm-vacancy-description",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.description")),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:(0,a.normalizeClass)(r.descriptionClasses)},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("pre",dM,(0,a.toDisplayString)(n.vacancyDescription)+"\n ",1)])),_:1},8,["class"]),n.vacancyDescription.length>r.descriptionLength?((0,a.openBlock)(),(0,a.createElementBlock)("div",cM,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-vacancy-card-anchor-tag",onClick:r.onToggleMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.isViewDetails?e.$t("general.show_less"):e.$t("general.show_more")),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0)],64)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s),(0,a.createVNode)(y,{ref:"applicantForm",method:"post",enctype:"multipart/form-data",loading:n.isLoading,action:r.submitUrl,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,mM),(0,a.createElementVNode)("input",{name:"vacancyId",value:o.vacancyId,type:"hidden"},null,8,uM),(0,a.createElementVNode)("div",pM,[(0,a.createVNode)(u,{class:"orangehrm-applicant-container-row"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:1,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{firstName:l.applicant.firstName,"onUpdate:firstName":t[0]||(t[0]=e=>l.applicant.firstName=e),lastName:l.applicant.lastName,"onUpdate:lastName":t[1]||(t[1]=e=>l.applicant.lastName=e),middleName:l.applicant.middleName,"onUpdate:middleName":t[2]||(t[2]=e=>l.applicant.middleName=e),label:e.$t("general.full_name"),rules:n.rules,required:""},null,8,["firstName","lastName","middleName","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,{class:"orangehrm-applicant-container-row"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-applicant-container-colspan-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.email,"onUpdate:modelValue":t[3]||(t[3]=e=>l.applicant.email=e),name:"email",label:e.$t("general.email"),placeholder:e.$t("general.type_here"),rules:n.rules.email,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.contactNumber,"onUpdate:modelValue":t[4]||(t[4]=e=>l.applicant.contactNumber=e),name:"contactNumber",label:e.$t("recruitment.contact_number"),placeholder:e.$t("general.type_here"),rules:n.rules.contactNumber},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.resume,"onUpdate:modelValue":t[5]||(t[5]=e=>l.applicant.resume=e),name:"resume",type:"file",label:e.$t("recruitment.resume"),"button-label":e.$t("general.browse"),rules:n.rules.resume,required:""},null,8,["modelValue","label","button-label","rules"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accept_custom_format_file")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-applicant-container-colspan-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.keywords,"onUpdate:modelValue":t[6]||(t[6]=e=>l.applicant.keywords=e),name:"keywords",label:e.$t("recruitment.keywords"),placeholder:`${e.$t("recruitment.enter_comma_seperated_words")}...`,rules:n.rules.keywords},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-applicant-container-colspan-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.comment,"onUpdate:modelValue":t[7]||(t[7]=e=>l.applicant.comment=e),name:"comment",label:e.$t("general.notes"),type:"textarea",placeholder:e.$t("general.type_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-applicant-container-colspan-2 orangehrm-applicant-container-grid-checkbox"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.applicant.consentToKeepData,"onUpdate:modelValue":t[8]||(t[8]=e=>l.applicant.consentToKeepData=e),name:"consentToKeepData",label:e.$t("recruitment.consent_to_keep_data"),type:"checkbox"},null,8,["modelValue","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{label:e.$t("general.back"),"display-type":"ghost",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v,{label:e.$t("general.submit")},null,8,["label"])])),_:1})])])),_:1},8,["loading","action","onSubmitValid"])])]),(0,a.createElementVNode)("div",hM,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-vacancy-list-poweredby"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.powered_by")),1)])),_:1}),(0,a.createElementVNode)("img",{src:l.defaultPic,alt:"OrangeHRM Picture",class:"orangehrm-container-img"},null,8,gM),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)]),(0,a.createVNode)(C,{ref:"showDialogueModal"},null,512)],64)}const fM={class:"orangehrm-modal-header"},yM={class:"orangehrm-text-center-align"},CM={class:"orangehrm-modal-footer"};function bM(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("simple-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"with-close":!1,class:"orangehrm-confirmation-dialog orangehrm-dialog-popup","onUpdate:show":r.onSuccess},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",fM,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.application_received")),1)])),_:1})]),(0,a.createElementVNode)("div",yM,[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("recruitment.your_application_has_been_submitted_successfully")),1)])),_:1})]),(0,a.createElementVNode)("div",CM,[(0,a.createVNode)(s,{label:e.$t("general.ok"),"display-type":"text",class:"orangehrm-button-margin",onClick:r.onSuccess},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var VM={name:"SuccessDialog",components:{"simple-dialog":q.OxdDialog},data(){return{show:!1,resolve:null}},methods:{showSuccessDialog(){return new Promise((e=>{this.resolve=e,this.show=!0}))},onSuccess(){this.show=!1,this.resolve&&this.resolve("ok")}}};const xM=(0,r.Z)(VM,[["render",bM],["__scopeId","data-v-76269556"]]);var wM=xM;const NM={firstName:"",middleName:"",lastName:"",contactNumber:"",email:"",consentToKeepData:!1,resume:null,keywords:null,comment:null};var _M={name:"ApplyJobVacancy",components:{"submit-button":s,"full-name-input":uu,"success-dialogue":wM},props:{allowedFileTypes:{type:Array,required:!0},maxFileSize:{type:Number,required:!0},vacancyId:{type:Number,required:!0},success:{type:Boolean,default:!1},bannerSrc:{type:String,required:!0},token:{type:String,required:!0}},setup(){const e=`${window.appGlobal.publicPath}/images/ohrm_branding.png`,t=(0,a.ref)({...NM}),o=(0,q.useResponsive)(),l=new P(window.appGlobal.baseUrl,"/api/v2/recruitment/public/vacancies");return{http:l,applicant:t,defaultPic:e,...(0,a.toRefs)(o)}},data(){return{title:null,subtitle:null,successLabel:null,isLoading:!1,vacancyName:"",vacancyDescription:null,rules:{firstName:[jt,zt(30)],middleName:[zt(30)],lastName:[jt,zt(30)],resume:[jt,no(this.maxFileSize),ro(this.allowedFileTypes)],comment:[zt(250)],keywords:[zt(250)],contactNumber:[zt(25),so],email:[jt,io,zt(50)]},isViewDetails:!0}},computed:{submitUrl(){return L("/recruitment/public/applicants")},descriptionClasses(){return{"orangehrm-vacancy-description":!0,"orangehrm-vacancy-card-body":!this.isViewDetails}},isMobile(){return this.windowWidth<600},descriptionLength(){return this.isMobile?150:this.windowWidth<1920?250:400}},beforeMount(){this.http.get(this.vacancyId).then((e=>{const{data:t}=e.data;this.vacancyName=t?.name??"",this.vacancyDescription=t?.description}))},mounted(){this.success&&this.showDialogue()},methods:{onSave(){this.$refs.applicantForm.$el.submit()},onCancel(){U("/recruitmentApply/jobs.html")},showDialogue(){this.$refs.showDialogueModal.showSuccessDialog().then((e=>{"ok"===e&&U("/recruitmentApply/jobs.html")}))},onToggleMore(){this.isViewDetails=!this.isViewDetails}}};const kM=(0,r.Z)(_M,[["render",vM],["__scopeId","data-v-316ef8c9"]]);var SM=kM;const DM={class:"orangehrm-attachment"},$M={class:"orangehrm-attachment-header"},EM={class:"orangehrm-container"},TM={class:"orangehrm-bottom-container"};function BM(e,t,o,l,n,r){const i=(0,a.resolveComponent)("save-interview-attachment"),s=(0,a.resolveComponent)("edit-interview-attachment"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("table-header"),u=(0,a.resolveComponent)("oxd-card-table"),p=(0,a.resolveComponent)("oxd-pagination"),h=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",DM,[n.showSaveModal?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,http:l.http,"max-file-size":o.maxFileSize,"allowed-file-types":o.allowedFileTypes,onClose:r.closeModel},null,8,["http","max-file-size","allowed-file-types","onClose"])):n.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,http:l.http,data:n.editModalState,"max-file-size":o.maxFileSize,"allowed-file-types":o.allowedFileTypes,onClose:r.closeModel},null,8,["http","data","max-file-size","allowed-file-types","onClose"])):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createElementVNode)("div",$M,[(0,a.createVNode)(d,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.attachments")),1)])),_:1}),(0,a.createVNode)(c,{"icon-name":"plus","display-type":"text",label:e.$t("general.add"),onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(m,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",EM,[(0,a.createVNode)(u,{selected:n.checkedItems,"onUpdate:selected":t[0]||(t[0]=e=>n.checkedItems=e),headers:n.headers,items:l.items?.data,clickable:!1,selectable:!0,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","headers","items","loading"])]),(0,a.createElementVNode)("div",TM,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])],64)),(0,a.createVNode)(h,{ref:"deleteDialog"},null,512)])}const IM={class:"orangehrm-card-container"};function LM(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("required-text"),h=(0,a.resolveComponent)("oxd-button"),g=(0,a.resolveComponent)("submit-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",IM,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.add_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.attachment.attachment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attachment.attachment=e),type:"file",label:e.$t("general.select_file"),"button-label":e.$t("general.browse"),rules:n.rules.attachment,placeholder:e.$t("general.no_file_selected"),required:""},null,8,["modelValue","label","button-label","rules","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.attachment.comment,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attachment.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p),(0,a.createVNode)(h,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(g)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const UM={attachment:null,comment:""};var AM={name:"SaveInterviewAttachment",props:{http:{type:Object,required:!0},maxFileSize:{type:Number,required:!0},allowedFileTypes:{type:Array,required:!0}},emits:["close"],data(){return{isLoading:!1,attachment:{...UM},rules:{comment:[zt(200)],attachment:[jt,no(this.maxFileSize),ro(this.allowedFileTypes)]}}},methods:{onSave(){this.isLoading=!0,this.http.create({...this.attachment}).then((()=>this.$toast.saveSuccess())).then((()=>{this.attachment={...UM},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const PM=(0,r.Z)(AM,[["render",LM]]);var qM=PM;const MM={class:"orangehrm-card-container"};function FM(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-group"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("oxd-input-field"),h=(0,a.resolveComponent)("required-text"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("submit-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",MM,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit_attachment")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{label:e.$t("general.current_file")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.currentFile),1)])),_:1})])),_:1},8,["label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.attachment.attachment,"onUpdate:modelValue":t[0]||(t[0]=e=>n.attachment.attachment=e),type:"file",label:e.$t("general.replace_with"),"button-label":e.$t("general.browse"),rules:n.rules.attachment,placeholder:e.$t("general.no_file_selected")},null,8,["modelValue","label","button-label","rules","placeholder"]),(0,a.createVNode)(i,{class:"orangehrm-input-hint",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.accepts_up_to_1mb")),1)])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.attachment.comment,"onUpdate:modelValue":t[1]||(t[1]=e=>n.attachment.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_comment_here"),rules:n.rules.comment},null,8,["modelValue","label","placeholder","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h),(0,a.createVNode)(g,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v)])),_:1})])),_:1},8,["loading","onSubmitValid"])])}const jM={attachment:null,comment:""};var zM={name:"EditInterviewAttachment",props:{http:{type:Object,required:!0},data:{type:Object,required:!0},maxFileSize:{type:Number,required:!0},allowedFileTypes:{type:Array,required:!0}},emits:["close"],data(){return{isLoading:!1,currentFile:"",attachment:{...jM},rules:{comment:[zt(200)],attachment:[no(this.maxFileSize),ro(this.allowedFileTypes)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.data.id).then((e=>{const{data:t}=e.data;this.currentFile=t.attachment.fileName,this.attachment.comment=t.comment})).finally((()=>{this.isLoading=!1}))},methods:{onSave(){this.isLoading=!0,this.http.update(this.data.id,{comment:this.attachment.comment,currentAttachment:null!==this.attachment.attachment?"replaceCurrent":"keepCurrent",attachment:null!==this.attachment.attachment?this.attachment.attachment:void 0}).then((()=>this.$toast.updateSuccess())).then((()=>{this.attachment={...jM},this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const RM=(0,r.Z)(zM,[["render",FM]]);var OM=RM;const GM=e=>e.map((e=>({id:e.id,interviewId:e.interviewId,filename:e.attachment?.fileName,size:bp(e.attachment?.fileSize||0,2),fileType:e.attachment?.fileType,comment:e.comment})));var ZM={components:{"delete-confirmation":Et,"save-interview-attachment":qM,"edit-interview-attachment":OM},props:{interviewId:{type:Number,required:!0},maxFileSize:{type:Number,required:!0},allowedFileTypes:{type:Array,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/recruitment/interviews/${e.interviewId}/attachments`),{showPaginator:o,currentPage:a,total:l,pages:n,pageSize:r,response:i,isLoading:s,execQuery:d}=wt(t,{normalizer:GM,toastNoRecords:!1});return{http:t,showPaginator:o,currentPage:a,isLoading:s,total:l,pages:n,pageSize:r,execQuery:d,items:i}},data(){return{headers:[{name:"filename",slot:"title",title:this.$t("general.file_name"),style:{flex:1}},{name:"size",title:this.$t("general.size"),style:{flex:1}},{name:"fileType",title:this.$t("general.type"),style:{flex:1}},{name:"comment",title:this.$t("general.comment"),style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}},delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},download:{onClick:this.onClickDownload,props:{name:"download"}}}}],checkedItems:[],showSaveModal:!1,showEditModal:!1,editModalState:null}},methods:{onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.items?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},onClickAdd(){this.showSaveModal=!0,this.showEditModal=!1},onClickEdit(e){this.showSaveModal=!1,this.showEditModal=!0,this.editModalState=e},closeModel(){this.showSaveModal=!1,this.showEditModal=!1,this.resetDataTable()},onClickDownload(e){const t=`${window.appGlobal.baseUrl}/recruitment/viewInterviewAttachment/interview/${this.interviewId}/attachment/${e.id}`;window.open(t,"_blank")}}};const QM=(0,r.Z)(ZM,[["render",BM],["__scopeId","data-v-451febef"]]);var HM=QM,WM={"view-job-vacancy":BU,"add-job-vacancy":JU,"edit-job-vacancy":wA,"save-candidate":SP,"view-candidates-list":QP,"view-candidate-profile":Uq,"shortlist-action":VP,"reject-action":vP,"interview-schedule-action":tP,"interview-passed-action":OA,"interview-failed-action":MA,"offer-job-action":rP,"offer-decline-action":mP,"hire-action":LA,"view-action-history":zq,"vacancy-list":lM,"apply-job-vacancy":SM,"view-interview-attachments":HM};const YM={class:"orangehrm-background-container"},JM={class:"orangehrm-paper-container"},XM={class:"orangehrm-header-container"},KM={class:"orangehrm-container"},eF={class:"orangehrm-bottom-container"};function tF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table"),c=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",YM,[(0,a.createElementVNode)("div",JM,[(0,a.createElementVNode)("div",XM,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.my_performance_trackers")),1)])),_:1})]),(0,a.createVNode)(s,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",KM,[(0,a.createVNode)(d,{order:l.sortDefinition,"onUpdate:order":t[0]||(t[0]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["order","headers","items","loading"])]),(0,a.createElementVNode)("div",eF,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])])}const oF={"performanceTracker.trackerName":"DEFAULT","performanceTracker.addedDate":"DEFAULT","performanceTracker.modifiedDate":"DESC"};var aF={setup(){const{sortDefinition:e,sortField:t,sortOrder:o,onSort:l}=Tt({sortDefinition:oF}),n=(0,a.computed)((()=>({sortField:t.value,sortOrder:o.value}))),r=new P(window.appGlobal.baseUrl,"/api/v2/performance/trackers"),{jsDateFormat:i}=R(),{locale:s}=De(),d=e=>e.map((e=>({id:e.id,tracker:e.trackerName,addedDate:ie(re(e.addedDate),i,{locale:s}),modifiedDate:ie(re(e.modifiedDate),i,{locale:s})}))),{currentPage:c,total:m,showPaginator:u,pages:p,pageSize:h,response:g,execQuery:v,isLoading:f}=wt(r,{query:n,normalizer:d});return l(v),{http:r,total:m,isLoading:f,items:g,execQuery:v,sortDefinition:e,showPaginator:u,pages:p,pageSize:h,currentPage:c}},data(){return{headers:[{name:"tracker",slot:"title",title:this.$t("performance.tracker"),sortField:"performanceTracker.trackerName",style:{flex:"30%"}},{name:"addedDate",title:this.$t("performance.added_date"),sortField:"performanceTracker.addedDate",style:{flex:1}},{name:"modifiedDate",title:this.$t("performance.modified_date"),sortField:"performanceTracker.modifiedDate",style:{flex:1}},{name:"action",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{view:{onClick:this.onClickView,component:"oxd-button",props:{name:"view",label:this.$t("general.view"),displayType:"text"}}}}]}},methods:{onClickView(e){U("/performance/addPerformanceTrackerLog/trackId/{id}?mode=my",{id:e.id})}}};const lF=(0,r.Z)(aF,[["render",tF]]);var nF=lF;const rF={class:"orangehrm-background-container"},iF=(0,a.createElementVNode)("br",null,null,-1),sF={class:"orangehrm-paper-container"},dF={class:"orangehrm-container"},cF={class:"orangehrm-bottom-container"};function mF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("include-employee-dropdown"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-table-filter"),f=(0,a.resolveComponent)("table-header"),y=(0,a.resolveComponent)("oxd-card-table"),C=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rF,[(0,a.createVNode)(v,{"filter-title":e.$t("performance.employee_performance_trackers")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{onSubmitValid:r.filterItems,onReset:r.resetDataTable},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.empName,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.empName=e),rules:n.rules.employee,"api-path":"/api/v2/performance/trackers/reviewers",params:{includeEmployees:l.filters.includeEmployees.param}},null,8,["modelValue","rules","params"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.includeEmployees,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.includeEmployees=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(p,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),iF,(0,a.createElementVNode)("div",sF,[(0,a.createVNode)(f,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",dF,[(0,a.createVNode)(y,{order:l.sortDefinition,"onUpdate:order":t[2]||(t[2]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!1,clickable:!0,loading:l.isLoading,class:"orangehrm-employee-list","row-decorator":"oxd-table-decorator-card"},null,8,["order","headers","items","loading"])]),(0,a.createElementVNode)("div",cF,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(C,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])])}const uF={empName:null,includeEmployees:{id:1,param:"onlyCurrent",label:"仅当前人员"}},pF={"employee.lastName":"DEFAULT","tracker.trackerName":"DEFAULT","tracker.modifiedDate":"DESC","tracker.addedDate":"DEFAULT"};var hF={components:{"include-employee-dropdown":zu,"employee-autocomplete":Va},setup(){const{$t:e}=Se(),{jsDateFormat:t}=R(),{locale:o}=De(),l=a=>a.map((a=>({id:a.id,title:a.title,empName:`${a.employee?.firstName} ${a.employee?.lastName} ${a.employee?.terminationId?` ${e("general.past_employee")}`:""}`,modifiedDate:ie(re(a.modifiedDate),t,{locale:o}),addedDate:ie(re(a.addedDate),t,{locale:o})}))),n=(0,a.ref)({...uF}),{sortDefinition:r,sortField:i,sortOrder:s,onSort:d}=Tt({sortDefinition:pF}),c=(0,a.computed)((()=>({sortField:i.value,sortOrder:s.value,empNumber:n.value.empName?.id,includeEmployees:n.value.includeEmployees?.param}))),m="/api/v2/performance/employees/trackers",u=new P(window.appGlobal.baseUrl,m),{showPaginator:p,currentPage:h,total:g,pages:v,pageSize:f,isLoading:y,response:C,execQuery:b}=wt(u,{query:c,normalizer:l});return d(b),{total:g,showPaginator:p,currentPage:h,pages:v,pageSize:f,isLoading:y,items:C,api:m,http:u,execQuery:b,sortDefinition:r,filters:n}},data(){return{headers:[{name:"empName",slot:"title",title:this.$t("general.employee_name"),sortField:"employee.lastName",style:{flex:2}},{name:"title",title:this.$t("general.trackers"),sortField:"tracker.trackerName",style:{flex:2}},{name:"addedDate",title:this.$t("performance.added_date"),sortField:"tracker.addedDate",style:{flex:1}},{name:"modifiedDate",title:this.$t("performance.modified_date"),sortField:"tracker.modifiedDate",style:{flex:1}},{name:"actions",title:this.$t("general.actions"),slot:"action",style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{view:{onClick:this.onClickView,component:"oxd-button",props:{name:"view",label:this.$t("general.view"),class:"orangehrm-left-space",displayType:"text"}}}}],rules:{employee:[xo]}}},methods:{async resetDataTable(){await this.execQuery()},async filterItems(){await this.execQuery()},onClickView(e){U("/performance/addPerformanceTrackerLog/trackId/{id}",{id:e.id})}}};const gF=(0,r.Z)(hF,[["render",mF]]);var vF=gF;const fF=e=>((0,a.pushScopeId)("data-v-7cf38636"),e=e(),(0,a.popScopeId)(),e),yF={class:"orangehrm-background-container"},CF={class:"orangehrm-card-container"},bF={class:"orangehrm-module-field-row"},VF=fF((()=>(0,a.createElementVNode)("br",null,null,-1)));function xF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("jobtitle-dropdown"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",yF,[(0,a.createElementVNode)("div",CF,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.edit_key_performance_indicator")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.title,"onUpdate:modelValue":t[0]||(t[0]=e=>n.kpi.title=e),label:e.$t("performance.key_performance_indicator"),required:"",rules:n.rules.title,autcomplete:"off",readonly:n.isReadOnly},null,8,["modelValue","label","rules","readonly"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.kpi.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.kpi.jobTitle=e),required:"",rules:n.rules.jobTitle},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.minRating,"onUpdate:modelValue":t[2]||(t[2]=e=>n.kpi.minRating=e),modelModifiers:{number:!0},label:e.$t("performance.minimum_rating"),required:"",autcomplete:"off",rules:n.rules.minRating,readonly:n.isReadOnly},null,8,["modelValue","label","rules","readonly"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.maxRating,"onUpdate:modelValue":t[3]||(t[3]=e=>n.kpi.maxRating=e),modelModifiers:{number:!0},label:e.$t("performance.maximum_rating"),required:"",autcomplete:"off",rules:n.rules.maxRating,readonly:n.isReadOnly},null,8,["modelValue","label","rules","readonly"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",bF,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.make_default_scale")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.kpi.isDefault,"onUpdate:modelValue":t[4]||(t[4]=e=>n.kpi.isDefault=e)},null,8,["modelValue"])])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),VF,(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const wF={title:"",jobTitle:null,minRating:null,maxRating:null,isDefault:!1};var NF={name:"KpiSave",components:{"oxd-switch-input":q.OxdSwitchInput,"jobtitle-dropdown":Eu},props:{kpiId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/kpis");return{http:e}},data(){return{isLoading:!1,kpi:{...wF},isReadOnly:!1,rules:{title:[jt,zt(100)],jobTitle:[jt],minRating:[jt,vo(0,100),go((()=>this.kpi.maxRating),this.$t("performance.minimum_rating_should_be_less_than_maximum_rating"))],maxRating:[jt,vo(0,100),ho((()=>this.kpi.minRating),this.$t("performance.maximum_rating_should_be_greater_than_minimum_rating"))]}}},created(){this.isLoading=!0,this.http.get(this.kpiId).then((e=>{const{data:t}=e.data,{meta:o}=e.data;this.isReadOnly=!1===o.editable,this.kpi.title=t.title,this.kpi.jobTitle=t.jobTitle.deleted?null:{id:t.jobTitle.id,label:t.jobTitle.name},this.kpi.minRating=t.minRating,this.kpi.maxRating=t.maxRating,this.kpi.isDefault=t.isDefault})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/performance/searchKpi")},onSave(){this.isLoading=!0,this.http.update(this.kpiId,{title:this.kpi.title,jobTitleId:this.kpi.jobTitle.id,minRating:this.kpi.minRating,maxRating:this.kpi.maxRating,isDefault:this.kpi.isDefault}).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))}}};const _F=(0,r.Z)(NF,[["render",xF],["__scopeId","data-v-7cf38636"]]);var kF=_F;const SF=e=>((0,a.pushScopeId)("data-v-f93b79d6"),e=e(),(0,a.popScopeId)(),e),DF={class:"orangehrm-background-container"},$F={class:"orangehrm-card-container"},EF={class:"orangehrm-module-field-row"},TF=SF((()=>(0,a.createElementVNode)("br",null,null,-1)));function BF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("jobtitle-dropdown"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("oxd-form-row"),h=(0,a.resolveComponent)("oxd-switch-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",DF,[(0,a.createElementVNode)("div",$F,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.add_key_performance_indicator")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.title,"onUpdate:modelValue":t[0]||(t[0]=e=>n.kpi.title=e),label:e.$t("performance.key_performance_indicator"),required:"",rules:n.rules.title,autcomplete:"off"},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:n.kpi.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>n.kpi.jobTitle=e),required:"",rules:n.rules.jobTitle},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.minRating,"onUpdate:modelValue":t[2]||(t[2]=e=>n.kpi.minRating=e),modelModifiers:{number:!0},label:e.$t("performance.minimum_rating"),required:"",autcomplete:"off",rules:n.rules.minRating},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.kpi.maxRating,"onUpdate:modelValue":t[3]||(t[3]=e=>n.kpi.maxRating=e),modelModifiers:{number:!0},label:e.$t("performance.maximum_rating"),required:"",autcomplete:"off",rules:n.rules.maxRating},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",EF,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-module-field-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.make_default_scale")),1)])),_:1}),(0,a.createVNode)(h,{modelValue:n.kpi.isDefault,"onUpdate:modelValue":t[4]||(t[4]=e=>n.kpi.isDefault=e)},null,8,["modelValue"])])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),TF,(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const IF={title:"",jobTitle:null,minRating:null,maxRating:null,isDefault:!1};var LF={name:"KpiSave",components:{"oxd-switch-input":q.OxdSwitchInput,"jobtitle-dropdown":Eu},props:{defaultMinRating:{type:Number,required:!1,default:null},defaultMaxRating:{type:Number,required:!1,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/kpis");return{http:e}},data(){return{isLoading:!1,kpi:{...IF},rules:{title:[jt,zt(100)],jobTitle:[jt],minRating:[jt,vo(0,100),go((()=>this.kpi.maxRating),this.$t("performance.minimum_rating_should_be_less_than_maximum_rating"))],maxRating:[jt,vo(0,100),ho((()=>this.kpi.minRating),this.$t("performance.maximum_rating_should_be_greater_than_minimum_rating"))]}}},beforeMount(){this.kpi.minRating=this.defaultMinRating,this.kpi.maxRating=this.defaultMaxRating},methods:{onCancel(){U("/performance/searchKpi")},onSave(){this.isLoading=!0,this.http.create({title:this.kpi.title,jobTitleId:this.kpi.jobTitle.id,minRating:this.kpi.minRating,maxRating:this.kpi.maxRating,isDefault:this.kpi.isDefault}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))}}};const UF=(0,r.Z)(LF,[["render",BF],["__scopeId","data-v-f93b79d6"]]);var AF=UF;const PF={class:"orangehrm-background-container"},qF=(0,a.createElementVNode)("br",null,null,-1),MF={class:"orangehrm-paper-container"},FF={class:"orangehrm-header-container"},jF={class:"orangehrm-container"},zF={class:"orangehrm-bottom-container"};function RF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("jobtitle-dropdown"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-table-filter"),v=(0,a.resolveComponent)("table-header"),f=(0,a.resolveComponent)("oxd-card-table"),y=(0,a.resolveComponent)("oxd-pagination"),C=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",PF,[(0,a.createVNode)(g,{"filter-title":e.$t("performance.key_performance_indicators_for_job_title")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{onSubmitValid:r.filterItems,onReset:r.resetDataTable},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.jobTitleId,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.jobTitleId=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(u,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),qF,(0,a.createElementVNode)("div",MF,[(0,a.createElementVNode)("div",FF,[(0,a.createVNode)(u,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(v,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",jF,[(0,a.createVNode)(f,{selected:n.checkedItems,"onUpdate:selected":t[1]||(t[1]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[2]||(t[2]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",zF,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(C,{ref:"deleteDialog"},null,512)])}const OF={jobTitleId:null},GF={"kpi.title":"ASC","jobTitle.jobTitleName":"DEFAULT"};var ZF={name:"KpiSearch",components:{"delete-confirmation":Et,"jobtitle-dropdown":Eu},setup(){const{$t:e}=Se(),t=t=>t.map((t=>({id:t.id,title:t.title,jobTitleName:t.jobTitle.name,jobTitleId:t.jobTitle.id,minRating:t.minRating,maxRating:t.maxRating,isDefault:t.isDefault?e("general.yes"):"",isDeletable:t.deletable}))),o=(0,a.ref)({...OF}),{sortDefinition:l,sortField:n,sortOrder:r,onSort:i}=Tt({sortDefinition:GF}),s=(0,a.computed)((()=>({sortField:n.value,sortOrder:r.value,jobTitleId:o.value.jobTitleId?.id}))),d=new P(window.appGlobal.baseUrl,"/api/v2/performance/kpis"),{showPaginator:c,currentPage:m,total:u,pages:p,pageSize:h,response:g,isLoading:v,execQuery:f}=wt(d,{query:s,normalizer:t});return i(f),{http:d,showPaginator:c,currentPage:m,total:u,pages:p,pageSize:h,items:g,isLoading:v,execQuery:f,filters:o,sortDefinition:l}},data(){return{headers:[{name:"title",title:this.$t("performance.key_performance_indicator"),slot:"title",sortField:"kpi.title",style:{flex:"30%"}},{name:"jobTitleName",title:this.$t("general.job_title"),sortField:"jobTitle.jobTitleName",style:{flex:"30%"}},{name:"minRating",title:this.$t("performance.min_rate"),style:{flex:"10%"}},{name:"maxRating",title:this.$t("performance.max_rate"),style:{flex:"10%"}},{name:"isDefault",title:this.$t("performance.is_default"),style:{flex:"10%"}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:"10%"},cellType:"oxd-table-cell-actions",cellRenderer:this.cellRenderer}],checkedItems:[]}},methods:{cellRenderer(...[,,,e]){const t={};return t.edit={onClick:this.onClickEdit,props:{name:"pencil-fill"}},e.isDeletable&&(t.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}}),{props:{header:{cellConfig:t}}}},onClickAdd(){U("/performance/saveKpi")},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},onClickEdit(e){U("/performance/saveKpi/{id}",{id:e.id})},async filterItems(){await this.execQuery()},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const QF=(0,r.Z)(ZF,[["render",RF]]);var HF=QF;const WF={class:"orangehrm-background-container"},YF={class:"orangehrm-card-container"},JF={class:"orangehrm-button-row"};function XF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("supervisor-autocomplete"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",WF,[(0,a.createElementVNode)("div",YF,[(0,a.createVNode)(i,{class:"orangehrm-main-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.add_review")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{ref:"formRef",loading:n.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.review.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.review.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.review.supervisorReviewer,"onUpdate:modelValue":t[1]||(t[1]=e=>n.review.supervisorReviewer=e),rules:n.rules.supervisorReviewer,subordinate:n.review.employee,required:""},null,8,["modelValue","rules","subordinate"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.startDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.review.startDate=e),label:e.$t("performance.review_period_start_date"),rules:n.rules.startDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.endDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.review.endDate=e),label:e.$t("performance.review_period_end_date"),rules:n.rules.endDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.dueDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.review.dueDate=e),label:e.$t("performance.due_date"),rules:n.rules.dueDate,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createElementVNode)("div",JF,[(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),type:"button",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.save"),type:"submit",onClick:t[5]||(t[5]=e=>r.onSave(!1))},null,8,["label"]),(0,a.createVNode)(v,{"display-type":"secondary",label:e.$t("performance.activate"),type:"button",onClick:t[6]||(t[6]=e=>r.onSave(!0))},null,8,["label"])])])),_:1})])),_:1},8,["loading"])])])}function KF(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete");return(0,a.openBlock)(),(0,a.createBlock)(i,{label:e.$t("performance.supervisor_reviewer"),clear:!1,"create-options":r.loadEmployees,required:""},null,8,["label","create-options"])}var ej={name:"SupervisorAutoComplete",components:{"employee-autocomplete":Va},props:{subordinate:{type:Object,required:!1,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/supervisors");return{http:e}},methods:{async loadEmployees(e){return new Promise((t=>{e.trim()&&this.subordinate?this.http.getAll({nameOrId:e.trim(),empNumber:this.subordinate.id}).then((({data:e})=>{t(e.data.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId}))))})):t([])}))}}};const tj=(0,r.Z)(ej,[["render",KF]]);var oj=tj;const aj={employee:null,supervisorReviewer:null,startDate:null,endDate:null,dueDate:null};var lj={components:{"employee-autocomplete":Va,"supervisor-autocomplete":oj},setup(){const{formRef:e,invalid:t,validate:o}=$c(),{userDateFormat:a}=R(),l=new P(window.appGlobal.baseUrl,"/api/v2/performance/manage/reviews");return l.setIgnorePath("/api/v2/performance/manage/reviews"),{formRef:e,invalid:t,validate:o,http:l,userDateFormat:a}},data(){return{isLoading:!1,review:{...aj},rules:{employee:[jt,xo],supervisorReviewer:[jt,xo],startDate:[jt,Rt(this.userDateFormat),co((()=>this.review.endDate),this.$t("performance.review_period_start_date_should_be_before_end_date"))],endDate:[jt,Rt(this.userDateFormat),eo((()=>this.review.startDate),this.$t("performance.review_period_end_date_should_be_after_start_date"))],dueDate:[jt,Rt(),eo((()=>this.review.endDate),this.$t("performance.due_date_should_be_after_review_period_end_date"))]}}},methods:{onCancel(){U("/performance/searchPerformanceReview")},onSave(e=!1){this.validate().then((()=>{!0!==this.invalid&&(this.isLoading=!0,this.http.create({empNumber:this.review.employee.id,reviewerEmpNumber:this.review.supervisorReviewer.id,startDate:this.review.startDate,endDate:this.review.endDate,dueDate:this.review.dueDate,activate:e}).then((()=>!0===e?this.$toast.success({title:this.$t("general.success"),message:this.$t("general.successfully_activated")}):this.$toast.updateSuccess())).then((()=>{this.onCancel()})).catch((e=>this.$toast.warn({title:this.$t("general.warning"),message:e?.data.error.message}))).finally((()=>{this.isLoading=!1})))}))}}};const nj=(0,r.Z)(lj,[["render",XF],["__scopeId","data-v-07c0323b"]]);var rj=nj;const ij={class:"orangehrm-background-container"},sj={class:"orangehrm-card-container"},dj={class:"orangehrm-button-row"};function cj(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("employee-autocomplete"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("supervisor-autocomplete"),h=(0,a.resolveComponent)("date-input"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",ij,[(0,a.createElementVNode)("div",sj,[(0,a.createVNode)(i,{class:"orangehrm-main-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.edit_review")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,{ref:"formRef",loading:n.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.review.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>n.review.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.review.supervisorReviewer,"onUpdate:modelValue":t[1]||(t[1]=e=>n.review.supervisorReviewer=e),rules:n.rules.supervisorReviewer,required:"",subordinate:n.review.employee},null,8,["modelValue","rules","subordinate"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.startDate,"onUpdate:modelValue":t[2]||(t[2]=e=>n.review.startDate=e),label:e.$t("performance.review_period_start_date"),rules:n.rules.startDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.endDate,"onUpdate:modelValue":t[3]||(t[3]=e=>n.review.endDate=e),label:e.$t("performance.review_period_end_date"),rules:n.rules.endDate,required:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.review.dueDate,"onUpdate:modelValue":t[4]||(t[4]=e=>n.review.dueDate=e),label:e.$t("performance.due_date"),rules:n.rules.dueDate,required:""},null,8,["modelValue","label","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createElementVNode)("div",dj,[(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),type:"button",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.save"),type:"submit",onClick:t[5]||(t[5]=e=>r.onSave(!1))},null,8,["label"]),(0,a.createVNode)(v,{"display-type":"secondary",label:e.$t("performance.activate"),type:"button",onClick:t[6]||(t[6]=e=>r.onSave(!0))},null,8,["label"])])])),_:1})])),_:1},8,["loading"])])])}const mj={employee:null,supervisorReviewer:null,startDate:null,endDate:null,dueDate:null};var uj={components:{"employee-autocomplete":Va,"supervisor-autocomplete":oj},props:{reviewId:{type:Number,required:!0}},setup(){const{formRef:e,invalid:t,validate:o}=$c(),{userDateFormat:a}=R(),l=new P(window.appGlobal.baseUrl,"/api/v2/performance/manage/reviews");return l.setIgnorePath("/api/v2/performance/manage/reviews/[0-9]+"),{formRef:e,invalid:t,validate:o,http:l,userDateFormat:a}},data(){return{isLoading:!1,review:{...mj},rules:{employee:[jt,xo],supervisorReviewer:[jt,xo],startDate:[jt,Rt(this.userDateFormat),co((()=>this.review.endDate),this.$t("general.review_period_start_date_should_be_before_end_date"))],endDate:[jt,Rt(this.userDateFormat),eo((()=>this.review.startDate),this.$t("performance.review_period_end_date_should_be_after_start_date"))],dueDate:[jt,Rt(),eo((()=>this.review.endDate),this.$t("performance.due_date_should_be_after_review_period_end_date"))]}}},created(){this.isLoading=!0,this.http.get(this.reviewId).then((e=>{const{data:t}=e.data;this.review.employee=t.employee?{id:t.employee.empNumber,label:`${t.employee.firstName} ${t.employee.middleName?t.employee.middleName:""} ${t.employee.lastName}`,isPastEmployee:!!t.employee.terminationId}:null,this.review.supervisorReviewer=t.reviewer.employee?{id:t.reviewer.employee.empNumber,label:`${t.reviewer.employee.firstName} ${t.reviewer.employee.middleName?t.reviewer.employee.middleName:""} ${t.reviewer.employee.lastName}`,isPastEmployee:!!t.reviewer.employee.terminationId}:null,this.review.startDate=t.reviewPeriodStart,this.review.endDate=t.reviewPeriodEnd,this.review.dueDate=t.dueDate})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/performance/searchPerformanceReview")},onSave(e=!1){this.validate().then((()=>{if(!0!==this.invalid){if(this.review.supervisorReviewer.isPastEmployee)return this.$toast.warn({title:this.$t("general.warning"),message:this.$t("performance.cannot_add_a_past_employee_as_a_reviewer")});this.isLoading=!0,this.http.update(this.reviewId,{empNumber:this.review.employee.id,reviewerEmpNumber:this.review.supervisorReviewer.id,startDate:this.review.startDate,endDate:this.review.endDate,dueDate:this.review.dueDate,activate:e}).then((()=>!0===e?this.$toast.success({title:this.$t("general.success"),message:this.$t("general.successfully_activated")}):this.$toast.updateSuccess())).then((()=>{this.onCancel()})).catch((e=>this.$toast.warn({title:this.$t("general.warning"),message:e?.data.error.message}))).finally((()=>{this.isLoading=!1}))}}))}}};const pj=(0,r.Z)(uj,[["render",cj],["__scopeId","data-v-d6976f66"]]);var hj=pj;const gj={class:"orangehrm-background-container"},vj=(0,a.createElementVNode)("br",null,null,-1),fj={class:"orangehrm-paper-container"},yj={class:"orangehrm-header-container"},Cj={class:"orangehrm-container"},bj={class:"orangehrm-bottom-container"};function Vj(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-table-filter"),v=(0,a.resolveComponent)("table-header"),f=(0,a.resolveComponent)("oxd-card-table"),y=(0,a.resolveComponent)("oxd-pagination"),C=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",gj,[(0,a.createVNode)(g,{"filter-title":e.$t("performance.performance_trackers")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{onSubmitValid:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.empNumber,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.empNumber=e),rules:n.rules.employee,params:{includeEmployees:"currentAndPast"}},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{"display-type":"ghost",label:e.$t("general.reset"),onClick:r.onClickReset},null,8,["label","onClick"]),(0,a.createVNode)(u,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid"])])),_:1},8,["filter-title"]),vj,(0,a.createElementVNode)("div",fj,[(0,a.createElementVNode)("div",yj,[(0,a.createVNode)(u,{"display-type":"secondary","icon-name":"plus",label:e.$t("general.add"),onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(v,{loading:l.isLoading,selected:n.checkedItems.length,total:l.total,onDelete:r.onClickDeleteSelected},null,8,["loading","selected","total","onDelete"]),(0,a.createElementVNode)("div",Cj,[(0,a.createVNode)(f,{order:l.sortDefinition,"onUpdate:order":t[1]||(t[1]=e=>l.sortDefinition=e),selected:n.checkedItems,"onUpdate:selected":t[2]||(t[2]=e=>n.checkedItems=e),clickable:!1,headers:n.headers,items:l.response?.data,loading:l.isLoading,selectable:!0,"row-decorator":"oxd-table-decorator-card"},null,8,["order","selected","headers","items","loading"])]),(0,a.createElementVNode)("div",bj,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,current:l.currentPage,"onUpdate:current":t[3]||(t[3]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(C,{ref:"deleteDialog"},null,512)])}const xj={empNumber:null},wj={"performanceTracker.modifiedDate":"DESC","employee.lastName":"ASC","performanceTracker.trackerName":"ASC","performanceTracker.addedDate":"DESC"};var Nj={name:"TrackerList",components:{"delete-confirmation":Et,"employee-autocomplete":Va},props:{unselectableIds:{type:Array,default:()=>[]}},setup(){const{locale:e}=De(),{jsDateFormat:t}=R(),{$tEmpName:o}=xa(),l=a=>a.map((a=>({id:a.id,tracker:a.trackerName,addDate:ie(re(a.addedDate),t,{locale:e}),modifiedDate:ie(re(a.modifiedDate),t,{locale:e}),empName:o(a.employee,{includeMiddle:!1,excludePastEmpTag:!1})}))),n=new P(window.appGlobal.baseUrl,"/api/v2/performance/config/trackers"),r=(0,a.ref)({...xj}),{sortDefinition:i,sortField:s,sortOrder:d,onSort:c}=Tt({sortDefinition:wj}),m=(0,a.computed)((()=>({empNumber:r.value.empNumber?.id,sortField:s.value,sortOrder:d.value,includeEmployees:r.value.includeEmployees?.param}))),{showPaginator:u,currentPage:p,total:h,response:g,pages:v,isLoading:f,execQuery:y}=wt(n,{query:m,normalizer:l,prefetch:!0,toastNoRecords:!0});return c(y),{http:n,total:h,isLoading:f,showPaginator:u,currentPage:p,pages:v,response:g,execQuery:y,sortDefinition:i,filters:r}},data(){return{headers:[{name:"empName",title:this.$t("general.employee"),slot:"title",sortField:"employee.lastName",style:{flex:1}},{name:"tracker",title:this.$t("performance.tracker"),style:{flex:1},sortField:"performanceTracker.trackerName"},{name:"addDate",title:this.$t("performance.added_date"),sortField:"performanceTracker.addedDate",style:{flex:1}},{name:"modifiedDate",title:this.$t("performance.modified_date"),sortField:"performanceTracker.modifiedDate",style:{flex:1}},{name:"actions",slot:"action",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellConfig:{delete:{onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},edit:{onClick:this.onClickEdit,props:{name:"pencil-fill"}}}}],checkedItems:[],rules:{employee:[xo]}}},methods:{onClickAdd(){U("/performance/addPerformanceTracker")},onClickEdit(e){U("/performance/addPerformanceTracker/{id}",{id:e.id})},onClickDeleteSelected(){const e=this.checkedItems.map((e=>this.response?.data[e].id));this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){const t=this.unselectableIds.findIndex((t=>t==e.id));if(t>-1)return this.$toast.cannotDelete();this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async resetDataTable(){this.checkedItems=[],await this.execQuery()},async filterItems(){await this.execQuery()},onClickReset(){this.filters={...xj},this.filterItems()}}};const _j=(0,r.Z)(Nj,[["render",Vj]]);var kj=_j;const Sj={class:"orangehrm-background-container"},Dj={class:"orangehrm-card-container"};function $j(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("employee-autocomplete"),h=(0,a.resolveComponent)("reviewer-autocomplete"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Sj,[(0,a.createElementVNode)("div",Dj,[(0,a.createVNode)(i,{class:"orangehrm-main-title",tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.add_performance_tracker")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.tracker.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.tracker.name=e),rules:n.rules.tracker,label:e.$t("performance.tracker_name"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.tracker.employee,"onUpdate:modelValue":t[1]||(t[1]=e=>n.tracker.employee=e),rules:n.rules.employee,required:""},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.tracker.reviewers,"onUpdate:modelValue":t[2]||(t[2]=e=>n.tracker.reviewers=e),rules:n.rules.reviewers,"exclude-employee":n.tracker.employee,required:""},null,8,["modelValue","rules","exclude-employee"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.cancel"),type:"button",onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}function Ej(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete");return(0,a.openBlock)(),(0,a.createBlock)(i,{label:e.$t("performance.reviewers"),multiple:!0,clear:!1,"create-options":r.loadEmployees,required:""},null,8,["label","create-options"])}var Tj={name:"ReviewersAutoComplete",components:{"employee-autocomplete":Va},props:{includeEmployees:{type:String,default:"onlyCurrent"},excludeEmployee:{type:Object,required:!1,default:null}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/trackers/reviewers");return{http:e}},methods:{async loadEmployees(e){return new Promise((t=>{e.trim()?this.http.getAll({nameOrId:e.trim(),empNumber:null==this.excludeEmployee?null:this.excludeEmployee.id}).then((({data:e})=>{t(e.data.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId}))))})):t([])}))}}};const Bj=(0,r.Z)(Tj,[["render",Ej]]);var Ij=Bj;const Lj={name:null,employee:null,reviewers:[]};var Uj={components:{"reviewer-autocomplete":Ij,"employee-autocomplete":Va},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/config/trackers");return{http:e}},data(){return{isLoading:!1,tracker:{...Lj},rules:{tracker:[jt,zt(200)],employee:[jt,xo,e=>{if(null===e)return!0;const t=this.tracker.reviewers.findIndex((t=>t.id===e.id));return-1==t||this.$t("performance.employee_cannot_be_assigned_as_his_own_reviewer")}],reviewers:[jt,xo]}}},methods:{onCancel(){U("/performance/viewPerformanceTracker")},onSave(){this.isLoading=!0,this.http.create({trackerName:this.tracker.name.trim(),empNumber:this.tracker.employee.id,reviewerEmpNumbers:this.tracker.reviewers.map((e=>e.id))}).then((()=>this.$toast.saveSuccess())).then((()=>{this.onCancel()}))}}};const Aj=(0,r.Z)(Uj,[["render",$j]]);var Pj=Aj;const qj={class:"orangehrm-background-container"},Mj={class:"orangehrm-card-container"};function Fj(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid-item"),m=(0,a.resolveComponent)("oxd-grid"),u=(0,a.resolveComponent)("oxd-form-row"),p=(0,a.resolveComponent)("employee-autocomplete"),h=(0,a.resolveComponent)("reviewer-autocomplete"),g=(0,a.resolveComponent)("required-text"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("submit-button"),y=(0,a.resolveComponent)("oxd-form-actions"),C=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",qj,[(0,a.createElementVNode)("div",Mj,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.edit_performance_tracker")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(C,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.tracker.name,"onUpdate:modelValue":t[0]||(t[0]=e=>n.tracker.name=e),rules:n.rules.tracker,label:e.$t("performance.tracker_name"),required:""},null,8,["modelValue","rules","label"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:n.tracker.employee,"onUpdate:modelValue":t[1]||(t[1]=e=>n.tracker.employee=e),rules:n.rules.employee,readonly:n.isReadOnly},null,8,["modelValue","rules","readonly"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{modelValue:n.tracker.reviewers,"onUpdate:modelValue":t[2]||(t[2]=e=>n.tracker.reviewers=e),rules:n.rules.reviewers,"exclude-employee":n.tracker.employee,required:""},null,8,["modelValue","rules","exclude-employee"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(y,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g),(0,a.createVNode)(v,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(f)])),_:1})])),_:1},8,["loading","onSubmitValid"])])])}const jj={name:null,employee:null,reviewers:[]};var zj={components:{"employee-autocomplete":Va,"reviewer-autocomplete":Ij},props:{performanceTrackerId:{type:Number,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/performance/config/trackers");return{http:e}},data(){return{isLoading:!1,tracker:{...jj},isReadOnly:!1,rules:{tracker:[jt,zt(200)],employee:[jt,xo,e=>{if(null===e)return!0;const t=this.tracker.reviewers.findIndex((t=>t.id===e.id));return-1==t||this.$t("performance.employee_cannot_be_assigned_as_his_own_reviewer")}],reviewers:[jt,xo]}}},beforeMount(){this.isLoading=!0,this.http.get(this.performanceTrackerId).then((e=>{const{data:t}=e.data;this.isReadOnly=!1===t.ownerEditable,this.tracker.id=t.id,this.tracker.name=t.trackerName,this.tracker.employee=t.employee?{id:t.employee.empNumber,label:`${t.employee.firstName} ${t.employee.middleName} ${t.employee.lastName}`,isPastEmployee:!!t.employee.terminationId}:null,this.tracker.reviewers=t.reviewers.map((e=>({id:e.empNumber,label:`${e.firstName} ${e.middleName} ${e.lastName}`,isPastEmployee:!!e.terminationId})))})).finally((()=>{this.isLoading=!1}))},methods:{onCancel(){U("/performance/viewPerformanceTracker")},onSave(){this.isLoading=!0;const e={trackerName:this.tracker.name.trim(),empNumber:this.tracker.employee.id,reviewerEmpNumbers:this.tracker.reviewers.map((e=>e.id))};this.http.update(this.performanceTrackerId,e).then((()=>this.$toast.updateSuccess())).then((()=>{this.onCancel()}))}}};const Rj=(0,r.Z)(zj,[["render",Fj]]);var Oj=Rj;const Gj={class:"orangehrm-background-container"},Zj={class:"orangehrm-paper-container"},Qj={class:"orangehrm-header-container"},Hj={class:"orangehrm-container"},Wj={class:"orangehrm-bottom-container"};function Yj(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("table-header"),d=(0,a.resolveComponent)("oxd-card-table"),c=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",Gj,[(0,a.createElementVNode)("div",Zj,[(0,a.createElementVNode)("div",Qj,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.my_reviews")),1)])),_:1})]),(0,a.createVNode)(s,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",Hj,[(0,a.createVNode)(d,{order:l.sortDefinition,"onUpdate:order":t[0]||(t[0]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["order","headers","items","loading"])]),(0,a.createElementVNode)("div",Wj,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,current:l.currentPage,"onUpdate:current":t[1]||(t[1]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])])}const Jj={component:"oxd-icon-button",props:{name:"eye-fill",title:"View"}},Xj={component:"oxd-icon-button",props:{name:"pencil-fill",title:"Edit"}},Kj={component:"oxd-icon-button",props:{name:"file-text-fill",title:"Evaluate"}},ez={component:"oxd-button",props:{label:"View",displayType:"text",size:"medium",style:{"min-width":"120px"}}},tz={component:"oxd-button",props:{label:"Edit",displayType:"text",size:"medium",style:{"min-width":"120px"}}},oz={component:"oxd-button",props:{label:"Evaluate",displayType:"text",size:"medium",style:{"min-width":"120px"}}},az={class:"oxd-table-card-cell"},lz={class:"data"};function nz(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",az,[(0,a.withDirectives)((0,a.createElementVNode)("div",{class:"header"},(0,a.toDisplayString)(o.header.title),513),[[a.vShow,r.showHeader]]),(0,a.createElementVNode)("div",lz,[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.reviewPeriodStart)+" - ",1),(0,a.createVNode)(i,{tag:"span",class:"time"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.reviewPeriodEnd),1)])),_:1})])),_:1})])])}var rz={name:"ReviewPeriodCell",props:{header:{type:Object,required:!0},reviewPeriodStart:{type:String,required:!0},reviewPeriodEnd:{type:String,required:!0}},setup(){const{screenState:e}=(0,q.useInjectTableProps)();return{screenState:e}},computed:{showHeader(){return!("lg"===this.screenState.screenType||"xl"===this.screenState.screenType)}}};const iz=(0,r.Z)(rz,[["render",nz],["__scopeId","data-v-ab384128"]]);var sz=iz;const dz={"performanceReview.statusId":"ASC","performanceReview.dueDate":"ASC","performanceReview.reviewPeriodStart":"DEFAULT","reviewer.status":"DEFAULT"};var cz={setup(){const{sortDefinition:e,sortField:t,sortOrder:o,onSort:l}=Tt({sortDefinition:dz}),n=(0,a.computed)((()=>({sortField:t.value,sortOrder:o.value}))),r=new P(window.appGlobal.baseUrl,"/api/v2/performance/reviews"),{jsDateFormat:i}=R(),{locale:s}=De(),d=e=>e.map((e=>({id:e.id,jobTitle:e.jobTitle.name,department:e.subunit.name,reviewPeriod:{reviewPeriodStart:ie(re(e.reviewPeriodStart),i,{locale:s}),reviewPeriodEnd:ie(re(e.reviewPeriodEnd),i,{locale:s})},dueDate:ie(re(e.dueDate),i,{locale:s}),overallStatus:e.overallStatus.statusName,selfEvaluationStatus:e.selfReviewStatus,statusId:e.overallStatus.statusId}))),{currentPage:c,total:m,showPaginator:u,pages:p,pageSize:h,response:g,execQuery:v,isLoading:f}=wt(r,{query:n,normalizer:d});return l(v),{http:r,total:m,isLoading:f,items:g,execQuery:v,sortDefinition:e,showPaginator:u,pages:p,pageSize:h,currentPage:c}},data(){return{headers:[{name:"jobTitle",slot:"title",title:this.$t("general.job_title"),style:{flex:1}},{name:"department",title:this.$t("general.sub_unit"),style:{flex:1}},{name:"reviewPeriod",title:this.$t("performance.review_period"),sortField:"performanceReview.reviewPeriodStart",style:{flex:2},cellRenderer:this.reviewPeriodCellRenderer},{name:"dueDate",title:this.$t("performance.due_date"),sortField:"performanceReview.dueDate",style:{flex:1}},{name:"selfEvaluationStatus",title:this.$t("performance.self_evaluation_status"),sortField:"reviewer.status",style:{flex:1}},{name:"overallStatus",title:this.$t("performance.review_status"),sortField:"performanceReview.statusId",style:{flex:1}},{name:"action",slot:"footer",title:this.$t("general.actions"),style:{flex:1},cellType:"oxd-table-cell-actions",cellRenderer:this.actionButtonCellRenderer}]}},methods:{actionButtonCellRenderer(...[,,,e]){const t={},o=(0,a.inject)(q.tableScreenStateKey);return"lg"===o.screenType||"xl"===o.screenType?"Completed"===e.selfEvaluationStatus?(t.view=Jj,t.view.props.title=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):(t.evaluate=Kj,t.evaluate.props.title=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate):"Completed"===e.selfEvaluationStatus?(t.view=ez,t.view.props.label=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):(t.evaluate=oz,t.evaluate.props.label=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate),{props:{header:{cellConfig:t}}}},reviewPeriodCellRenderer(...e){const t=e[1];return{component:sz,props:{reviewPeriodStart:t.reviewPeriodStart,reviewPeriodEnd:t.reviewPeriodEnd}}},onClickView(){U("/performance/searchKpi")},onClickEvaluate(e){U("/performance/reviewEvaluate/id/{id}",{id:e.id})}}};const mz=(0,r.Z)(cz,[["render",Yj],["__scopeId","data-v-0a23ca8f"]]);var uz=mz;const pz=e=>((0,a.pushScopeId)("data-v-2415900c"),e=e(),(0,a.popScopeId)(),e),hz={class:"orangehrm-background-container"},gz=pz((()=>(0,a.createElementVNode)("br",null,null,-1))),vz={class:"orangehrm-paper-container"},fz={class:"orangehrm-container"},yz={class:"orangehrm-bottom-container"};function Cz(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("jobtitle-dropdown"),c=(0,a.resolveComponent)("subunit-dropdown"),m=(0,a.resolveComponent)("include-employee-dropdown"),u=(0,a.resolveComponent)("review-status-dropdown"),p=(0,a.resolveComponent)("date-input"),h=(0,a.resolveComponent)("oxd-grid"),g=(0,a.resolveComponent)("oxd-divider"),v=(0,a.resolveComponent)("oxd-button"),f=(0,a.resolveComponent)("oxd-form-actions"),y=(0,a.resolveComponent)("oxd-form"),C=(0,a.resolveComponent)("oxd-table-filter"),b=(0,a.resolveComponent)("table-header"),V=(0,a.resolveComponent)("oxd-card-table"),x=(0,a.resolveComponent)("oxd-pagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",hz,[(0,a.createVNode)(C,{"filter-title":e.$t("performance.employee_reviews")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(y,{onSubmitValid:r.filterItems,onReset:r.filterItems},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:n.rules.employee,params:{includeEmployees:l.filters.includeEmployees.param}},null,8,["modelValue","rules","params"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.jobTitle=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.subunit,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.subunit=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.includeEmployees,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.includeEmployees=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.status,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.status=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.fromDate=e),rules:n.rules.fromDate,label:e.$t("general.from_date")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[6]||(t[6]=e=>l.filters.toDate=e),rules:n.rules.toDate,label:e.$t("general.to_date")},null,8,["modelValue","rules","label"])])),_:1})])),_:1}),(0,a.createVNode)(g),(0,a.createVNode)(f,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(v,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),gz,(0,a.createElementVNode)("div",vz,[(0,a.createVNode)(b,{selected:0,total:l.total,loading:l.isLoading},null,8,["total","loading"]),(0,a.createElementVNode)("div",fz,[(0,a.createVNode)(V,{order:l.sortDefinition,"onUpdate:order":t[7]||(t[7]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!1,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["order","headers","items","loading"])]),(0,a.createElementVNode)("div",yz,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(x,{key:0,current:l.currentPage,"onUpdate:current":t[8]||(t[8]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])])])}function bz(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(i,{type:"select",label:e.$t("performance.review_status"),clear:!1,options:n.statusOpts},null,8,["label","options"])}var Vz={name:"ReviewStatusDropdown",data(){return{statusOpts:[{id:1,statusId:2,label:this.$t("performance.activated")},{id:2,statusId:3,label:this.$t("performance.in_progress")},{id:3,statusId:4,label:this.$t("performance.completed")}]}}};const xz=(0,r.Z)(Vz,[["render",bz]]);var wz=xz;const Nz={"employee.lastName":"DEFAULT","performanceReview.reviewPeriodStart":"DEFAULT","performanceReview.dueDate":"DEFAULT","performanceReview.statusId":"ASC"};var _z={name:"ReviewList",components:{"include-employee-dropdown":zu,"review-status-dropdown":wz,"subunit-dropdown":Lu,"jobtitle-dropdown":Eu,"employee-autocomplete":Va},props:{fromDate:{type:String,required:!1,default:null},toDate:{type:String,required:!1,default:null}},setup(e){const{$t:t}=Se(),{jsDateFormat:o,userDateFormat:l}=R(),{locale:n}=De(),r=e=>ie(re(e),o,{locale:n}),i=e=>e.map((e=>({id:e.id,employee:`${e.employee?.firstName} ${e.employee?.lastName} ${e.employee?.terminationId?` ${t("general.past_employee")}`:""}`,jobTitle:e.jobTitle?.name,subunit:e.subunit?.name,reviewPeriod:{reviewPeriodStart:r(e.reviewPeriodStart),reviewPeriodEnd:r(e.reviewPeriodEnd)},dueDate:r(e.dueDate),status:2===e.overallStatus.statusId?t("performance.activated"):3===e.overallStatus.statusId?t("performance.in_progress"):t("performance.completed"),statusId:e.overallStatus.statusId}))),s={employee:null,jobTitle:null,subunit:null,status:null,fromDate:null,toDate:null,includeEmployees:{id:1,param:"onlyCurrent",label:t("general.current_employees_only")}},d=(0,a.ref)({...s,...e.fromDate&&{fromDate:e.fromDate},...e.toDate&&{toDate:e.toDate}}),{sortDefinition:c,sortField:m,sortOrder:u,onSort:p}=Tt({sortDefinition:Nz}),h=(0,a.computed)((()=>({sortField:m.value,sortOrder:u.value,empNumber:d.value.employee?.id,jobTitleId:d.value.jobTitle?.id,subunitId:d.value.subunit?.id,statusId:d.value.status?.statusId,fromDate:d.value.fromDate,toDate:d.value.toDate,includeEmployees:d.value.includeEmployees?.param}))),g=new P(window.appGlobal.baseUrl,"/api/v2/performance/employees/reviews"),{showPaginator:v,currentPage:f,total:y,pages:C,pageSize:b,response:V,isLoading:x,execQuery:w}=wt(g,{query:h,normalizer:i});return p(w),{http:g,showPaginator:v,currentPage:f,isLoading:x,total:y,pages:C,pageSize:b,execQuery:w,items:V,filters:d,sortDefinition:c,userDateFormat:l}},data(){return{headers:[{name:"employee",title:this.$t("general.employee"),slot:"title",sortField:"employee.lastName",style:{flex:1}},{name:"jobTitle",title:this.$t("general.job_title"),style:{flex:1}},{name:"subunit",title:this.$t("general.sub_unit"),style:{flex:1}},{name:"reviewPeriod",title:this.$t("performance.review_period"),sortField:"performanceReview.reviewPeriodStart",style:{flex:1},cellRenderer:this.reviewPeriodCellRenderer},{name:"dueDate",title:this.$t("performance.due_date"),sortField:"performanceReview.dueDate",style:{flex:1}},{name:"status",title:this.$t("performance.review_status"),sortField:"performanceReview.statusId",style:{flex:1}},{name:"action",slot:"footer",title:this.$t("general.actions"),cellType:"oxd-table-cell-actions",cellRenderer:this.actionCellRenderer,style:{flex:1}}],rules:{employee:[xo],fromDate:[Rt(this.userDateFormat),co((()=>this.filters.toDate),this.$t("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(this.userDateFormat),eo((()=>this.filters.fromDate),this.$t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]}}},methods:{actionCellRenderer(...[,,,e]){const t={},o=(0,a.inject)(q.tableScreenStateKey);return"lg"===o.screenType||"xl"===o.screenType?4===e.statusId?(t.view=Jj,t.view.props.title=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):(t.evaluate=Kj,t.evaluate.props.title=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate):4===e.statusId?(t.view=ez,t.view.props.label=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):(t.evaluate=oz,t.evaluate.props.label=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate),{props:{header:{cellConfig:t}}}},reviewPeriodCellRenderer(...e){const t=e[1];return{component:sz,props:{reviewPeriodStart:t.reviewPeriodStart,reviewPeriodEnd:t.reviewPeriodEnd}}},async filterItems(){await this.execQuery()},onClickEvaluate(e){U("/performance/reviewEvaluateByAdmin/{id}",{id:e.id})}}};const kz=(0,r.Z)(_z,[["render",Cz],["__scopeId","data-v-2415900c"]]);var Sz=kz;const Dz=e=>((0,a.pushScopeId)("data-v-f1a9132e"),e=e(),(0,a.popScopeId)(),e),$z={class:"orangehrm-background-container"},Ez=Dz((()=>(0,a.createElementVNode)("br",null,null,-1))),Tz={class:"orangehrm-paper-container"},Bz={class:"orangehrm-header-container"},Iz={class:"orangehrm-container"},Lz={class:"orangehrm-bottom-container"};function Uz(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("jobtitle-dropdown"),c=(0,a.resolveComponent)("review-status-dropdown"),m=(0,a.resolveComponent)("include-employee-dropdown"),u=(0,a.resolveComponent)("date-input"),p=(0,a.resolveComponent)("oxd-grid"),h=(0,a.resolveComponent)("oxd-divider"),g=(0,a.resolveComponent)("oxd-button"),v=(0,a.resolveComponent)("oxd-form-actions"),f=(0,a.resolveComponent)("oxd-form"),y=(0,a.resolveComponent)("oxd-table-filter"),C=(0,a.resolveComponent)("table-header"),b=(0,a.resolveComponent)("oxd-card-table"),V=(0,a.resolveComponent)("oxd-pagination"),x=(0,a.resolveComponent)("delete-confirmation-dialog");return(0,a.openBlock)(),(0,a.createElementBlock)("div",$z,[(0,a.createVNode)(y,{"filter-title":e.$t("performance.manage_performance_reviews")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(f,{onSubmitValid:r.filterItems,onReset:r.resetDataTable},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.employee,"onUpdate:modelValue":t[0]||(t[0]=e=>l.filters.employee=e),rules:n.rules.employee,params:{includeEmployees:l.filters.includeEmployees.param}},null,8,["modelValue","rules","params"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.filters.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=e=>l.filters.jobTitle=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:l.filters.status,"onUpdate:modelValue":t[2]||(t[2]=e=>l.filters.status=e),options:l.statusOpts},null,8,["modelValue","options"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{modelValue:l.filters.includeEmployees,"onUpdate:modelValue":t[3]||(t[3]=e=>l.filters.includeEmployees=e)},null,8,["modelValue"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:l.filters.reviewer,"onUpdate:modelValue":t[4]||(t[4]=e=>l.filters.reviewer=e),label:e.$t("performance.reviewer"),params:{includeEmployees:"currentAndPast"}},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.fromDate,"onUpdate:modelValue":t[5]||(t[5]=e=>l.filters.fromDate=e),rules:n.rules.fromDate,label:e.$t("general.from_date")},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(s,{class:"--offset-row-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{modelValue:l.filters.toDate,"onUpdate:modelValue":t[6]||(t[6]=e=>l.filters.toDate=e),rules:n.rules.toDate,label:e.$t("general.to_date")},null,8,["modelValue","rules","label"])])),_:1})])),_:1}),(0,a.createVNode)(h),(0,a.createVNode)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(g,{"display-type":"ghost",label:e.$t("general.reset"),type:"reset"},null,8,["label"]),(0,a.createVNode)(g,{class:"orangehrm-left-space","display-type":"secondary",label:e.$t("general.search"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),Ez,(0,a.createElementVNode)("div",Tz,[(0,a.createElementVNode)("div",Bz,[(0,a.createVNode)(g,{label:e.$t("general.add"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createVNode)(C,{selected:n.checkedItems.length,total:l.total,loading:l.isLoading,onDelete:r.onClickDeleteSelected},null,8,["selected","total","loading","onDelete"]),(0,a.createElementVNode)("div",Iz,[(0,a.createVNode)(b,{selected:n.checkedItems,"onUpdate:selected":t[7]||(t[7]=e=>n.checkedItems=e),order:l.sortDefinition,"onUpdate:order":t[8]||(t[8]=e=>l.sortDefinition=e),headers:n.headers,items:l.items?.data,selectable:!0,clickable:!1,loading:l.isLoading,"row-decorator":"oxd-table-decorator-card"},null,8,["selected","order","headers","items","loading"])]),(0,a.createElementVNode)("div",Lz,[l.showPaginator?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,current:l.currentPage,"onUpdate:current":t[9]||(t[9]=e=>l.currentPage=e),length:l.pages},null,8,["current","length"])):(0,a.createCommentVNode)("",!0)])]),(0,a.createVNode)(x,{ref:"deleteDialog"},null,512)])}const Az={"employee.lastName":"DEFAULT","performanceReview.reviewPeriodStart":"DEFAULT","performanceReview.dueDate":"DEFAULT","performanceReview.statusId":"ASC","jobTitle.jobTitleName":"DEFAULT","reviewerEmployee.lastName":"DEFAULT"};var Pz={name:"ReviewSearch",components:{"include-employee-dropdown":zu,"review-status-dropdown":wz,"jobtitle-dropdown":Eu,"employee-autocomplete":Va,"delete-confirmation-dialog":Et},props:{fromDate:{type:String,required:!1,default:null},toDate:{type:String,required:!1,default:null}},setup(e){const{$t:t}=Se(),{jsDateFormat:o,userDateFormat:l}=R(),{locale:n}=De(),{$tEmpName:r}=xa(),i=e=>ie(re(e),o,{locale:n}),s=[{id:1,label:t("performance.inactive")},{id:2,label:t("performance.activated")},{id:3,label:t("performance.in_progress")},{id:4,label:t("performance.completed")}],d=e=>e.map((e=>{const t=e.employee,o=e.reviewer?.employee;return{id:e.id,employee:r(t),reviewer:r(o),jobTitle:e.jobTitle?.name,reviewPeriod:{reviewPeriodStart:i(e.reviewPeriodStart),reviewPeriodEnd:i(e.reviewPeriodEnd)},dueDate:i(e.dueDate),status:s.find((t=>t.id===e.overallStatus.statusId)).label,statusId:e.overallStatus.statusId}})),c={employee:null,jobTitle:null,status:null,reviewer:null,fromDate:null,toDate:null,includeEmployees:{id:1,param:"onlyCurrent",label:t("general.current_employees_only")}},m=(0,a.ref)({...c,...e.fromDate&&{fromDate:e.fromDate},...e.toDate&&{toDate:e.toDate}}),{sortDefinition:u,sortField:p,sortOrder:h,onSort:g}=Tt({sortDefinition:Az}),v=(0,a.computed)((()=>({sortField:p.value,sortOrder:h.value,empNumber:m.value.employee?.id,jobTitleId:m.value.jobTitle?.id,statusId:m.value.status?.id,reviewerEmpNumber:m.value.reviewer?.id,fromDate:m.value.fromDate,toDate:m.value.toDate,includeEmployees:m.value.includeEmployees?.param}))),f=new P(window.appGlobal.baseUrl,"/api/v2/performance/manage/reviews"),{showPaginator:y,currentPage:C,total:b,pages:V,pageSize:x,response:w,isLoading:N,execQuery:_}=wt(f,{query:v,normalizer:d});return g(_),{http:f,showPaginator:y,currentPage:C,isLoading:N,total:b,pages:V,pageSize:x,execQuery:_,items:w,filters:m,sortDefinition:u,statusOpts:s,userDateFormat:l}},data(){return{headers:[{name:"employee",title:this.$t("general.employee"),slot:"title",sortField:"employee.lastName",style:{flex:"14%"}},{name:"jobTitle",title:this.$t("general.job_title"),sortField:"jobTitle.jobTitleName",style:{flex:"14%"}},{name:"reviewPeriod",title:this.$t("performance.review_period"),sortField:"performanceReview.reviewPeriodStart",style:{flex:"14%"},cellRenderer:this.reviewPeriodCellRenderer},{name:"dueDate",title:this.$t("performance.due_date"),sortField:"performanceReview.dueDate",style:{flex:"14%"}},{name:"reviewer",title:this.$t("performance.reviewer"),sortField:"reviewerEmployee.lastName",style:{flex:"14%"}},{name:"status",title:this.$t("performance.review_status"),sortField:"performanceReview.statusId",style:{flex:"14%"}},{name:"action",slot:"footer",title:this.$t("general.actions"),cellType:"oxd-table-cell-actions",cellRenderer:this.actionButtonCellRenderer,style:{flex:"16%"}}],checkedItems:[],rules:{employee:[xo],fromDate:[Rt(this.userDateFormat),co((()=>this.filters.toDate),this.$t("general.from_date_should_be_before_to_date"),{allowSameDate:!0})],toDate:[Rt(this.userDateFormat),eo((()=>this.filters.fromDate),this.$t("general.to_date_should_be_after_from_date"),{allowSameDate:!0})]}}},methods:{actionButtonCellRenderer(...[,,,e]){const t={},o=(0,a.inject)(q.tableScreenStateKey);return t.delete={onClick:this.onClickDelete,component:"oxd-icon-button",props:{name:"trash"}},"lg"===o.screenType||"xl"===o.screenType?4===e.statusId?(t.view=Jj,t.view.props.title=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):1===e.statusId?(t.edit=Xj,t.edit.props.title=this.$t("general.edit"),t.edit.onClick=this.onClickEdit):(t.evaluate=Kj,t.evaluate.props.title=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate):4===e.statusId?(t.view=ez,t.view.props.label=this.$t("general.view"),t.view.onClick=this.onClickEvaluate):1===e.statusId?(t.edit=tz,t.edit.props.label=this.$t("general.edit"),t.edit.onClick=this.onClickEdit):(t.evaluate=oz,t.evaluate.props.label=this.$t("performance.evaluate"),t.evaluate.onClick=this.onClickEvaluate),{props:{header:{cellConfig:t}}}},reviewPeriodCellRenderer(...e){const t=e[1];return{component:sz,props:{reviewPeriodStart:t.reviewPeriodStart,reviewPeriodEnd:t.reviewPeriodEnd}}},onClickEdit(e){U("/performance/saveReview/{id}",{id:e.id})},onClickAdd(){U("/performance/saveReview")},onClickEvaluate(e){U("/performance/reviewEvaluateByAdmin/{id}",{id:e.id})},onClickDeleteSelected(){const e=[];this.checkedItems.forEach((t=>{e.push(this.items?.data[t].id)})),this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems(e)}))},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e.id])}))},deleteItems(e){e instanceof Array&&(this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).then((()=>{this.isLoading=!1,this.resetDataTable()})))},async filterItems(){await this.execQuery()},async resetDataTable(){this.checkedItems=[],await this.execQuery()}}};const qz=(0,r.Z)(Pz,[["render",Uz],["__scopeId","data-v-f1a9132e"]]);var Mz=qz;const Fz=e=>((0,a.pushScopeId)("data-v-f225ba5e"),e=e(),(0,a.popScopeId)(),e),jz={class:"orangehrm-background-container"},zz={class:"orangehrm-card-container"},Rz={class:"orangehrm-employee-tracker"},Oz={class:"orangehrm-employee-tracker-image-section"},Gz={class:"orangehrm-employee-tracker-image-wrapper"},Zz=["src"],Qz={class:"orangehrm-employee-tracker-header-section"},Hz={class:"orangehrm-employee-tracker-header"},Wz={class:"orangehrm-employee-tracker-ratings"},Yz={key:0,class:"orangehrm-employee-tracker-ratings-info"},Jz={key:1,class:"orangehrm-employee-tracker-ratings-info"},Xz=Fz((()=>(0,a.createElementVNode)("br",null,null,-1))),Kz={class:"orangehrm-paper-container"},eR={class:"orangehrm-header-container"},tR={ref:"scrollerRef",class:"orangehrm-container"},oR={key:0,class:"orangehrm-employee-tracker-no-records"};function aR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon"),d=(0,a.resolveComponent)("oxd-button"),c=(0,a.resolveComponent)("employee-tracker-log-card"),m=(0,a.resolveComponent)("oxd-sheet"),u=(0,a.resolveComponent)("oxd-loading-spinner"),p=(0,a.resolveComponent)("add-tracker-log-modal"),h=(0,a.resolveComponent)("edit-tracker-log-modal"),g=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)("div",jz,[(0,a.createElementVNode)("div",zz,[(0,a.createElementVNode)("div",Rz,[(0,a.createElementVNode)("div",Oz,[(0,a.createElementVNode)("div",Gz,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:l.imgSrc},null,8,Zz)])]),(0,a.createElementVNode)("div",Qz,[(0,a.createElementVNode)("div",Hz,[(0,a.createVNode)(i,{tag:"h5",class:"orangehrm-employee-tracker-header-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.trackerName),1)])),_:1}),(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-employee-tracker-header-subtitle"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.employeeName),1)])),_:1})]),(0,a.createElementVNode)("div",Wz,[e.meta.positive>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",Yz,[(0,a.createVNode)(s,{class:"orangehrm-employee-tracker-ratings-icon --positive",type:"svg",name:"thumbsup"}),(0,a.createVNode)(i,{class:"orangehrm-employee-tracker-ratings-text --positive"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.meta.positive),1)])),_:1})])):(0,a.createCommentVNode)("",!0),e.meta.negative>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",Jz,[(0,a.createVNode)(s,{class:"orangehrm-employee-tracker-ratings-icon --negative",type:"svg",name:"thumbsdown"}),(0,a.createVNode)(i,{class:"orangehrm-employee-tracker-ratings-text --negative"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.meta.negative),1)])),_:1})])):(0,a.createCommentVNode)("",!0)])])])]),Xz,(0,a.createElementVNode)("div",Kz,[(0,a.createElementVNode)("div",eR,[(0,a.createVNode)(i,{tag:"h5",class:"orangehrm-employee-tracker-list-header"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.tracker_logs")),1)])),_:1}),(0,a.createVNode)(d,{label:e.$t("performance.add_log"),"icon-name":"plus","display-type":"secondary",onClick:r.onClickAdd},null,8,["label","onClick"])]),(0,a.createElementVNode)("div",tR,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.items,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(m,{key:t,gutters:!1,type:"gray-lighten-2",class:"orangehrm-scroll-card"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{"tracker-log":e,onEdit:r.onClickEdit,onDelete:r.onClickDelete},null,8,["tracker-log","onEdit","onDelete"])])),_:2},1024)))),128)),e.showNoRecordsFound?((0,a.openBlock)(),(0,a.createElementBlock)("div",oR,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.n_records_found",{count:0})),1)])),_:1})])):(0,a.createCommentVNode)("",!0),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1,class:"orangehrm-container-loader"})):(0,a.createCommentVNode)("",!0)],512)]),n.showAddTrackerModal?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,"tracker-id":o.trackerId,onClose:r.onAddTrackerModalClose},null,8,["tracker-id","onClose"])):(0,a.createCommentVNode)("",!0),n.showEditTrackerModal?((0,a.openBlock)(),(0,a.createBlock)(h,{key:1,"tracker-id":o.trackerId,"tracker-log-id":n.editTrackerLogId,onClose:r.onEditTrackerModalClose},null,8,["tracker-id","tracker-log-id","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(g,{ref:"deleteDialog"},null,512)])}function lR(e,{refName:t="scrollerRef",scrollDistance:o=100,debounceInterval:l=100}={}){let n=0,r=!1;const i=(0,a.ref)(),s=(0,q.promiseDebounce)((async()=>e()),l),d=()=>{let e,t,a;i.value?({scrollHeight:e,clientHeight:t,scrollTop:a}=i.value.$el||i.value):(a=window.scrollY,e=document.body.scrollHeight,t=document.body.clientHeight),r=a>n,n=a;const l=a+t>=e-(o||0);r&&l&&s()};return(0,a.onMounted)((async()=>{await(0,a.nextTick)(),i.value?(i.value.$el||i.value).addEventListener("scroll",d):document.addEventListener("scroll",d)})),(0,a.onBeforeUnmount)((()=>{i.value?(i.value.$el||i.value).removeEventListener("scroll",d):document.removeEventListener("scroll",d)})),{[t]:i}}const nR={class:"orangehrm-modal-header"},rR={class:"orangehrm-add-tracker-log-ratings-container"};function iR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("tracker-log-rating-button"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{style:{width:"90%",maxWidth:"650px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",nR,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.add_tracker_log")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.trackerLog.log,"onUpdate:modelValue":t[0]||(t[0]=e=>n.trackerLog.log=e),label:e.$t("performance.log"),placeholder:e.$t("general.type_here"),rules:n.rules.log,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",rR,[(0,a.createVNode)(m,{label:e.$t("performance.positive"),selected:n.rating,type:"positive",onClick:r.onClickPositive},null,8,["label","selected","onClick"]),(0,a.createVNode)(m,{label:e.$t("performance.negative"),selected:!n.rating,type:"negative",onClick:r.onClickNegative},null,8,["label","selected","onClick"])])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.trackerLog.comment,"onUpdate:modelValue":t[1]||(t[1]=e=>n.trackerLog.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_here"),rules:n.rules.comment,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{class:"orangehrm-form-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p,{"display-type":"secondary",label:e.$t("general.save"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}function sR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createBlock)(s,{"display-type":"text",label:o.label,class:(0,a.normalizeClass)(r.buttonClasses),onClick:t[0]||(t[0]=t=>e.$emit("click"))},{icon:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"svg",name:r.iconName,class:(0,a.normalizeClass)(r.iconClasses)},null,8,["name","class"])])),_:1},8,["label","class"])}var dR={name:"TrackerLogRatingButton",components:{"oxd-icon":q.OxdIcon},props:{label:{type:String,required:!0},selected:{type:Boolean,required:!0},type:{type:String,required:!0,validator:function(e){return-1!==["positive","negative"].indexOf(e)}}},emits:["click"],computed:{iconName(){return"thumbs"+("positive"===this.type?"up":"down")},buttonClasses(){return{"orangehrm-tracker-rating-button":!0,"--deselected":!this.selected}},iconClasses(){return{"orangehrm-tracker-rating-icon":!0,[`--${this.type}`]:!0}}}};const cR=(0,r.Z)(dR,[["render",sR],["__scopeId","data-v-21511c97"]]);var mR=cR;const uR={log:"",comment:""};var pR={name:"AddTrackerLogModal",components:{"oxd-dialog":q.OxdDialog,"tracker-log-rating-button":mR},props:{trackerId:{type:Number,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/performance/trackers/${e.trackerId}/logs`);return{http:t}},data(){return{isLoading:!1,rating:!0,trackerLog:{...uR},rules:{log:[jt,zt(150)],comment:[jt,zt(3e3)]}}},methods:{onClickPositive(){this.rating=!0},onClickNegative(){this.rating=!1},onSave(){this.isLoading=!0,this.http.create({log:this.trackerLog.log,comment:this.trackerLog.comment,achievement:this.rating?1:2}).then((()=>{this.$toast.saveSuccess(),this.onCancel()}))},onCancel(){this.$emit("close")}}};const hR=(0,r.Z)(pR,[["render",iR],["__scopeId","data-v-38b5fab4"]]);var gR=hR;const vR={class:"orangehrm-modal-header"},fR={class:"orangehrm-add-tracker-log-ratings-container"};function yR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("tracker-log-rating-button"),u=(0,a.resolveComponent)("required-text"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{style:{width:"90%",maxWidth:"650px"},"onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",vR,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.edit_tracker_log")),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.trackerLog.log,"onUpdate:modelValue":t[0]||(t[0]=e=>n.trackerLog.log=e),label:e.$t("performance.log"),placeholder:e.$t("general.type_here"),rules:n.rules.log,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",fR,[(0,a.createVNode)(m,{label:e.$t("performance.positive"),selected:n.rating,type:"positive",onClick:r.onClickPositive},null,8,["label","selected","onClick"]),(0,a.createVNode)(m,{label:e.$t("performance.negative"),selected:!n.rating,type:"negative",onClick:r.onClickNegative},null,8,["label","selected","onClick"])])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.trackerLog.comment,"onUpdate:modelValue":t[1]||(t[1]=e=>n.trackerLog.comment=e),type:"textarea",label:e.$t("general.comment"),placeholder:e.$t("general.type_here"),rules:n.rules.comment,required:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(h,{class:"orangehrm-form-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p,{"display-type":"secondary",label:e.$t("general.save"),type:"submit"},null,8,["label"])])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}const CR={log:"",comment:""};var bR={name:"EditTrackerLogModal",components:{"oxd-dialog":q.OxdDialog,"tracker-log-rating-button":mR},props:{trackerId:{type:Number,required:!0},trackerLogId:{type:Number,required:!0}},emits:["close"],setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/performance/trackers/${e.trackerId}/logs`);return{http:t}},data(){return{isLoading:!1,rating:!0,trackerLog:{...CR},rules:{log:[jt,zt(150)],comment:[jt,zt(3e3)]}}},beforeMount(){this.isLoading=!0,this.http.get(this.trackerLogId).then((e=>{const{data:t}=e.data;this.trackerLog.log=t.log,this.trackerLog.comment=t.comment,this.rating="1"===t.achievement})).finally((()=>{this.isLoading=!1}))},methods:{onClickPositive(){this.rating=!0},onClickNegative(){this.rating=!1},onSave(){this.isLoading=!0,this.http.update(this.trackerLogId,{log:this.trackerLog.log,comment:this.trackerLog.comment,achievement:this.rating?1:2}).then((()=>{this.$toast.updateSuccess(),this.onCancel()}))},onCancel(){this.$emit("close")}}};const VR=(0,r.Z)(bR,[["render",yR],["__scopeId","data-v-5f6526aa"]]);var xR=VR;const wR={class:"orangehrm-employee-tracker-log"},NR={class:"orangehrm-employee-tracker-log-image-section"},_R={class:"orangehrm-employee-tracker-log-image-wrapper"},kR=["src"],SR={class:"orangehrm-employee-tracker-log-content-section"},DR={class:"orangehrm-employee-tracker-log-reviewer-name"},$R={class:"orangehrm-employee-tracker-log-content-container"},ER={class:"orangehrm-employee-tracker-log-header"},TR={class:"orangehrm-employee-tracker-log-title"},BR={class:"orangehrm-employee-tracker-log-body"},IR={class:"orangehrm-employee-tracker-log-reviewer-date"},LR={class:"orangehrm-employee-tracker-log-reviewer-date-container"},UR={key:0,class:"orangehrm-employee-tracker-log-reviewer-date-container"};function AR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon"),d=(0,a.resolveComponent)("oxd-table-dropdown");return(0,a.openBlock)(),(0,a.createElementBlock)("div",wR,[(0,a.createElementVNode)("div",NR,[(0,a.createElementVNode)("div",_R,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:o.trackerLog.reviewerPictureSrc},null,8,kR)])]),(0,a.createElementVNode)("div",SR,[(0,a.createElementVNode)("div",DR,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.trackerLog.reviewerName),1)])),_:1})]),(0,a.createElementVNode)("div",$R,[(0,a.createElementVNode)("div",ER,[(0,a.createElementVNode)("div",TR,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-employee-tracker-log-title-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.trackerLog.log),1)])),_:1}),(0,a.createVNode)(s,{type:"svg",class:(0,a.normalizeClass)({"orangehrm-employee-tracker-log-title-icon":!0,"--positive":"1"===o.trackerLog.achievement,"--negative":"2"===o.trackerLog.achievement}),name:"thumbs"+("1"===o.trackerLog.achievement?"up":"down")},null,8,["class","name"])]),o.trackerLog.editable?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,options:n.dropdownOptions,onClick:t[0]||(t[0]=e=>r.onTrackerDropdownAction(e,o.trackerLog))},null,8,["options"])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",BR,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-employee-tracker-log-body-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.trackerLog.comment),1)])),_:1})])]),(0,a.createElementVNode)("div",IR,[(0,a.createElementVNode)("div",LR,[(0,a.createVNode)(s,{class:"orangehrm-employee-tracker-log-reviewer-date-icon",name:"calendar-plus",title:e.$t("performance.added_on")},null,8,["title"]),(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.trackerLog.addedDate),1)])),_:1})]),o.trackerLog.modifiedDate?((0,a.openBlock)(),(0,a.createElementBlock)("div",UR,[(0,a.createVNode)(s,{class:"orangehrm-employee-tracker-log-reviewer-date-icon",name:"pencil",title:e.$t("performance.modified_on")},null,8,["title"]),(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.trackerLog.modifiedDate),1)])),_:1})])):(0,a.createCommentVNode)("",!0)])])])}var PR={name:"EmployeeTrackerLogCard",components:{"oxd-icon":q.OxdIcon,"oxd-table-dropdown":q.OxdTableDropdown},props:{trackerLog:{type:Object,required:!0}},emits:["edit","delete"],data(){return{dropdownOptions:[{label:this.$t("general.edit"),context:"edit"},{label:this.$t("performance.delete"),context:"delete"}]}},methods:{onTrackerDropdownAction(e,t){switch(e.context){case"edit":this.$emit("edit",t.id);break;case"delete":this.$emit("delete",t.id);break}}}};const qR=(0,r.Z)(PR,[["render",AR],["__scopeId","data-v-6a9799ac"]]);var MR=qR,FR={name:"ViewEmployeeTrackerLogs",components:{"oxd-icon":q.OxdIcon,"oxd-sheet":q.OxdSheet,"oxd-loading-spinner":q.OxdSpinner,"add-tracker-log-modal":gR,"edit-tracker-log-modal":xR,"delete-confirmation":Et,"employee-tracker-log-card":MR},props:{trackerId:{type:Number,required:!0},empNumber:{type:Number,required:!0}},setup(e){const t=new P(window.appGlobal.baseUrl,`/api/v2/performance/trackers/${e.trackerId}/logs`),o=10,l=(0,a.reactive)({total:0,items:[],meta:{positive:0,negative:0},infinite:!1,isLoading:!1,showNoRecordsFound:!1}),{$tEmpName:n}=xa(),{jsDateFormat:r}=R(),{locale:i}=De(),s=()=>{l.showNoRecordsFound=!1,l.isLoading=!0,t.getAll({limit:o,offset:0===l.items.length?0:o}).then((e=>{const{data:t,meta:o}=e.data;l.total=o?.total||0,Array.isArray(t)&&(l.items=[...l.items,...t.map((e=>({...e,reviewerPictureSrc:`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.reviewer.empNumber}`,reviewerName:n(e.reviewer),addedDate:ie(re(e.addedDate),r,{locale:i}),modifiedDate:ie(re(e.modifiedDate),r,{locale:i})})))],l.meta={...l.meta,...o})})).finally((()=>{l.showNoRecordsFound=0===l.total,l.isLoading=!1}))},{scrollerRef:d}=lR((()=>{l.items.length>=l.total||s()})),c=(0,a.computed)((()=>`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.empNumber}`));return{http:t,scrollerRef:d,fetchData:s,...(0,a.toRefs)(l),imgSrc:c}},data(){return{trackerName:"",employeeName:"",showAddTrackerModal:!1,showEditTrackerModal:!1,editTrackerLogId:null}},beforeMount(){this.http.request({method:"GET",url:`/api/v2/performance/employees/trackers/${this.trackerId}`}).then((e=>{const{data:t}=e.data;this.trackerName=t.trackerName,this.employeeName=`${t.employee.firstName} ${t.employee.lastName} ${t.employee.terminationId?` ${this.$t("general.past_employee")}`:""}`})).then((()=>{this.fetchData()}))},methods:{onClickAdd(){this.showAddTrackerModal=!0},onAddTrackerModalClose(){this.showAddTrackerModal=!1,this.resetItems()},onEditTrackerModalClose(){this.showEditTrackerModal=!1,this.resetItems()},onClickEdit(e){this.editTrackerLogId=e,this.showEditTrackerModal=!0},onClickDelete(e){this.$refs.deleteDialog.showDialog().then((t=>{"ok"===t&&this.deleteItems([e])}))},deleteItems(e){e instanceof Array&&(this.items=[],this.isLoading=!0,this.http.deleteAll({ids:e}).then((()=>this.$toast.deleteSuccess())).finally((()=>{this.fetchData()})))},resetItems(){this.items=[],this.fetchData()}}};const jR=(0,r.Z)(FR,[["render",aR],["__scopeId","data-v-f225ba5e"]]);var zR=jR;const RR=e=>((0,a.pushScopeId)("data-v-ecbdbb4c"),e=e(),(0,a.popScopeId)(),e),OR={class:"orangehrm-background-container"},GR={class:"orangehrm-card-container"},ZR=RR((()=>(0,a.createElementVNode)("br",null,null,-1))),QR=RR((()=>(0,a.createElementVNode)("br",null,null,-1))),HR=RR((()=>(0,a.createElementVNode)("br",null,null,-1))),WR={class:"orangehrm-performance-review-actions"};function YR(e,t,o,l,n,r){const i=(0,a.resolveComponent)("review-confirm-modal"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("review-summary"),c=(0,a.resolveComponent)("evaluation-form"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("final-evaluation"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",OR,[(0,a.createVNode)(i,{ref:"confirmDialog"},null,512),(0,a.createElementVNode)("div",GR,[(0,a.createVNode)(s,{tag:"h5",class:"orangehrm-performance-review-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.performance_review")),1)])),_:1})]),ZR,(0,a.createVNode)(d,{loading:n.isLoading,status:o.status,"due-date":o.dueDate,employee:n.employee.details,"job-title":n.employee.jobTitle,"review-period-end":o.reviewPeriodEnd,"review-period-start":o.reviewPeriodStart,"final-rating":n.finalRating},null,8,["loading","status","due-date","employee","job-title","review-period-end","review-period-start","final-rating"]),QR,(0,a.createVNode)(g,{ref:"formRef",loading:n.isLoading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.employeeReview,"onUpdate:modelValue":t[0]||(t[0]=e=>n.employeeReview=e),kpis:n.kpis,rules:n.rules,editable:r.hasSupervisorUpdateAction,collapsed:n.employee.status<3,collapsible:3===n.employee.status,employee:n.employee.details,"job-title":n.employee.jobTitle,status:n.employee.status,title:e.$t("performance.self_evaluation_by")},null,8,["modelValue","kpis","rules","editable","collapsed","collapsible","employee","job-title","status","title"]),HR,(0,a.createVNode)(c,{modelValue:n.supervisorReview,"onUpdate:modelValue":t[6]||(t[6]=e=>n.supervisorReview=e),kpis:n.kpis,rules:n.rules,editable:r.hasSaveAction||r.hasCompleteAction,collapsible:!0,employee:n.supervisor.details,"job-title":n.supervisor.jobTitle,status:n.supervisor.status,title:e.$t("performance.supervisor_evaluation_by")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),((0,a.openBlock)(),(0,a.createBlock)(u,{key:n.isFinalizeRequired,"final-rating":n.finalRating,"onUpdate:final-rating":t[1]||(t[1]=e=>n.finalRating=e),"final-comment":n.finalComment,"onUpdate:final-comment":t[2]||(t[2]=e=>n.finalComment=e),"completed-date":n.completedDate,"onUpdate:completed-date":t[3]||(t[3]=e=>n.completedDate=e),status:o.status,"is-required":n.isFinalizeRequired},null,8,["final-rating","final-comment","completed-date","status","is-required"])),(0,a.withDirectives)((0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createElementVNode)("div",WR,[r.hasCancelAction?((0,a.openBlock)(),(0,a.createBlock)(p,{key:0,"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickCancel},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),r.hasSaveAction?((0,a.openBlock)(),(0,a.createBlock)(p,{key:1,"display-type":"ghost",type:"button",label:e.$t("general.save"),onClick:t[4]||(t[4]=e=>r.onSubmit(!1))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasCompleteAction?((0,a.openBlock)(),(0,a.createBlock)(p,{key:2,type:"button","display-type":"secondary",label:e.$t("performance.complete"),onClick:t[5]||(t[5]=e=>r.onSubmit(!0))},null,8,["label"])):(0,a.createCommentVNode)("",!0)])])),_:1},512),[[a.vShow,r.hasActions]])])),_:1},8,["modelValue","kpis","rules","editable","employee","job-title","status","title"])])),_:1},8,["loading"])])}const JR={class:"orangehrm-card-container"},XR={class:"orangehrm-performance-review-summary"},KR={class:"orangehrm-performance-review-owner"},eO=["src"],tO={class:"orangehrm-performance-review-owner-employee-section"},oO={class:"orangehrm-performance-review-owner-employee"},aO={class:"orangehrm-performance-review-rating"};function lO(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",JR,[(0,a.createElementVNode)("div",XR,[(0,a.createVNode)(i,{tag:"h5",class:"orangehrm-performance-review-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.review_summary")),1)])),_:1}),(0,a.createVNode)(m,{loading:o.loading},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{class:"orangehrm-performance-review-details"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-performance-review-details-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",KR,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:l.imgSrc},null,8,eO),(0,a.createElementVNode)("div",tO,[(0,a.createElementVNode)("div",oO,[(0,a.createVNode)(i,{tag:"h5",class:"orangehrm-performance-review-owner-employee-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeName),1)])),_:1}),(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-performance-review-owner-employee-job"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.jobTitle),1)])),_:1})])])])])),_:1}),(0,a.withDirectives)((0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",aO,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.final_rating")),1)])),_:1}),(0,a.createVNode)(i,{tag:"h4",class:"orangehrm-performance-review-rating-number"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.finalRating),1)])),_:1})])])),_:1},512),[[a.vShow,4===o.status]])])),_:1})])),_:1}),(0,a.createVNode)(c,{class:"orangehrm-performance-review-details"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{cols:3,class:"orangehrm-performance-review-details-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-performance-review-column"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.review_status")),1)])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-performance-review-bold"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.reviewStatus),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-performance-review-column"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.review_period")),1)])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-performance-review-bold"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.reviewPeriod),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-performance-review-column"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.review_due_date")),1)])),_:1}),(0,a.createVNode)(i,{class:"orangehrm-performance-review-bold"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.reviewDueDate),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["loading"])])])}const nO=`${window.appGlobal.publicPath}/images/default-photo.png`;var rO={name:"ReviewSummary",props:{employee:{type:Object,required:!0},jobTitle:{type:String,required:!0},status:{type:Number,required:!0},reviewPeriodStart:{type:String,required:!0},reviewPeriodEnd:{type:String,required:!0},dueDate:{type:String,required:!0},loading:{type:Boolean,required:!0},finalRating:{type:Number,default:0}},setup(e){const{$t:t}=Se(),{locale:o}=De(),{jsDateFormat:l}=R(),{$tEmpName:n}=xa(),r=[{id:1,label:t("performance.inactive")},{id:2,label:t("performance.activated")},{id:3,label:t("performance.in_progress")},{id:4,label:t("performance.completed")}],i=e=>ie(re(e),l,{locale:o}),s=(0,a.computed)((()=>e.employee.empNumber?`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.employee.empNumber}`:nO)),d=r.find((t=>t.id===e.status)).label,c=`${i(e.reviewPeriodStart)} - ${i(e.reviewPeriodEnd)}`,m=i(e.dueDate),u=(0,a.computed)((()=>n(e.employee,{includeMiddle:!0,excludePastEmpTag:!1})));return{imgSrc:s,reviewStatus:d,reviewPeriod:c,reviewDueDate:m,employeeName:u}}};const iO=(0,r.Z)(rO,[["render",lO],["__scopeId","data-v-21b21277"]]);var sO=iO;const dO=e=>((0,a.pushScopeId)("data-v-2711f6e6"),e=e(),(0,a.popScopeId)(),e),cO=dO((()=>(0,a.createElementVNode)("br",null,null,-1))),mO={key:1,class:"orangehrm-performance-review-read"},uO={key:1,class:"orangehrm-performance-review-read"},pO={key:1,class:"orangehrm-performance-review-read"};function hO(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("date-input"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-grid");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createVNode)(i,{class:"orangehrm-performance-review-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.review_finalization")),1)])),_:1}),cO,(0,a.createVNode)(m,{cols:4,class:"orangehrm-performance-review-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.date_of_completion")),1)])),_:1}),l.editable?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,"model-value":o.completedDate,rules:n.rules.completedDate,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:completedDate",t))},null,8,["model-value","rules"])):((0,a.openBlock)(),(0,a.createElementBlock)("div",mO,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.formattedCompletedDate),1)])),_:1})]))])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-performance-review-grid-rating"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.final_rating")),1)])),_:1}),l.editable?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,"model-value":o.finalRating,rules:n.rules.finalRating,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:finalRating",t))},null,8,["model-value","rules"])):((0,a.openBlock)(),(0,a.createElementBlock)("div",uO,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.finalRating),1)])),_:1})]))])),_:1}),(0,a.createVNode)(d,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.final_comments")),1)])),_:1}),l.editable?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,rows:"1",type:"textarea","model-value":o.finalComment,rules:n.rules.finalComment,"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update:finalComment",t))},null,8,["model-value","rules"])):((0,a.openBlock)(),(0,a.createElementBlock)("div",pO,[(0,a.createVNode)(i,null,{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.finalComment),1)])),_:1})]))])),_:1})])),_:1})])}var gO={name:"FinalEvaluation",props:{completedDate:{type:String,default:null,required:!1},finalRating:{type:Number,default:null,required:!1},finalComment:{type:String,default:null,required:!1},status:{type:Number,required:!0},isRequired:{type:Boolean,required:!0}},emits:["update:finalRating","update:finalComment","update:completedDate"],setup(e){const{locale:t}=De(),{jsDateFormat:o,userDateFormat:l}=R(),n=(0,a.computed)((()=>4!==e.status)),r=(0,a.computed)((()=>ie(re(e.completedDate),o,{locale:t})));return{editable:n,userDateFormat:l,formattedCompletedDate:r}},data(){return{rules:{completedDate:[Rt(this.userDateFormat),...this.isRequired?[jt]:[]],finalRating:[Co(0,this.$t("performance.rating_should_be_greater_than_or_equal_to_minValue",{minValue:0})),bo(100,this.$t("performance.rating_should_be_less_than_or_equal_to_maxValue",{maxValue:100})),...this.isRequired?[jt]:[]],finalComment:[...this.isRequired?[jt]:[]]}}}};const vO=(0,r.Z)(gO,[["render",hO],["__scopeId","data-v-2711f6e6"]]);var fO=vO;const yO={class:"orangehrm-evaluation orangehrm-card-container"},CO={class:"orangehrm-evaluation-header"},bO=["src"],VO={class:"orangehrm-evaluation-title-name"};function xO(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-grid"),c=(0,a.resolveComponent)("oxd-icon-button"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createElementBlock)("div",yO,[(0,a.createVNode)(i,{class:"orangehrm-main-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.title),1)])),_:1}),(0,a.createElementVNode)("div",CO,[(0,a.createVNode)(d,{cols:3,class:"orangehrm-evaluation-header-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-evaluation-title"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("img",{class:"orangehrm-evaluation-title-profile-image",alt:"profile picture",src:l.profileImgSrc},null,8,bO),(0,a.createElementVNode)("div",VO,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeName),1)])),_:1}),(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.jobTitle),1)])),_:1})])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.status")),1)])),_:1}),(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.evaluationLabel),1)])),_:1})])),_:1})])),_:1}),o.collapsible?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,"with-container":!1,name:l.isCollapsed?"chevron-down":"chevron-up",onClick:l.toggleForm},null,8,["name","onClick"])):(0,a.createCommentVNode)("",!0)]),l.isCollapsed?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(m),(0,a.createVNode)(d,{cols:4,class:"orangehrm-evaluation-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.kpis")),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.rating")),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-header"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.comments")),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-spacer-md"}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.kpis,((t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:t.id},[(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-kpi"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-evaluation-grid-kpi-header",type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.kpi")),1)])),_:1}),(0,a.createVNode)(i,{title:t.title,tag:"p",class:"orangehrm-evaluation-grid-kpi-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.title),1)])),_:2},1032,["title"]),(0,a.createVNode)(i,{class:"orangehrm-evaluation-grid-kpi-minmax",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.min"))+": "+(0,a.toDisplayString)(t.minRating),1)])),_:2},1024),(0,a.createVNode)(i,{class:"orangehrm-evaluation-grid-kpi-minmax",tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.max"))+": "+(0,a.toDisplayString)(t.maxRating),1)])),_:2},1024)])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-evaluation-grid-kpi-header",type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.rating")),1)])),_:1}),(0,a.createVNode)(u,{type:"input",disabled:!o.editable,rules:o.rules[n],"model-value":o.modelValue.kpis[n].rating,"onUpdate:modelValue":e=>l.onUpdateRating(e,n)},null,8,["disabled","rules","model-value","onUpdate:modelValue"])])),_:2},1024),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-evaluation-grid-kpi-header",type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.comment")),1)])),_:1}),(0,a.createVNode)(u,{class:"orangehrm-evaluation-grid-comment",rows:"2",type:"textarea",disabled:!o.editable,rules:l.commentValidators,"model-value":o.modelValue.kpis[n].comment,"onUpdate:modelValue":e=>l.onUpdateComment(e,n)},null,8,["disabled","rules","model-value","onUpdate:modelValue"])])),_:2},1024),(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-spacer-md"})],64)))),128))])),_:1}),(0,a.createVNode)(m),(0,a.createVNode)(d,{cols:3,class:"orangehrm-evaluation-grid"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{class:"orangehrm-evaluation-grid-general"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-evaluation-grid-general-label"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.general_comment")),1)])),_:1})])),_:1}),(0,a.createVNode)(s,{class:"--span-column-2"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{class:"orangehrm-evaluation-grid-comment",rows:"2",type:"textarea",disabled:!o.editable,rules:l.commentValidators,"model-value":o.modelValue.generalComment,"onUpdate:modelValue":t[0]||(t[0]=e=>l.onUpdateGeneralComment(e))},null,8,["disabled","rules","model-value"])])),_:1})])),_:1}),(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)],64))])}const wO=`${window.appGlobal.publicPath}/images/default-photo.png`;var NO={components:{"oxd-divider":q.OxdDivider},props:{kpis:{type:Array,required:!0},title:{type:String,required:!0},editable:{type:Boolean,required:!0},collapsible:{type:Boolean,required:!0},employee:{type:Object,required:!0},jobTitle:{type:String,required:!0},rules:{type:Array,required:!0},modelValue:{type:Object,required:!0,validator:e=>Object.hasOwn(e,"kpis")&&Object.hasOwn(e,"generalComment")},collapsed:{type:Boolean,default:!1},status:{type:Number,required:!0}},emits:["update:modelValue"],setup(e,t){const{$t:o}=Se(),{$tEmpName:l}=xa(),n=(0,a.ref)(e.collapsed),r=[zt(2e3)],i=(0,a.computed)((()=>e.employee.empNumber?`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.employee.empNumber}`:wO)),s=(0,a.computed)((()=>l(e.employee))),d=()=>{n.value=!n.value},c=(o,a)=>{t.emit("update:modelValue",{kpis:e.modelValue.kpis.map(((e,t)=>t===a?{...e,rating:o}:e)),generalComment:e.modelValue.generalComment})},m=(o,a)=>{t.emit("update:modelValue",{kpis:e.modelValue.kpis.map(((e,t)=>t===a?{...e,comment:o}:e)),generalComment:e.modelValue.generalComment})},u=o=>{t.emit("update:modelValue",{kpis:e.modelValue.kpis,generalComment:o})},p=[{id:1,label:o("performance.evaluation_activated")},{id:2,label:o("performance.evaluation_in_progress")},{id:3,label:o("performance.evaluation_completed")}],h=(0,a.computed)((()=>p.find((t=>t.id===e.status)).label));return{toggleForm:d,isCollapsed:n,employeeName:s,profileImgSrc:i,onUpdateRating:c,onUpdateComment:m,onUpdateGeneralComment:u,commentValidators:r,evaluationLabel:h}}};const _O=(0,r.Z)(NO,[["render",xO],["__scopeId","data-v-d193810c"]]);var kO=_O;function SO(e){const{$t:t}=Se(),o=t=>e.request({method:"GET",url:`/api/v2/performance/reviews/${t}/kpis`}),a=t=>e.request({method:"GET",url:`/api/v2/performance/reviews/${t}/evaluation/supervisor`}),l=t=>e.request({method:"GET",url:`/api/v2/performance/reviews/${t}/evaluation/employee`}),n=t=>e.request({method:"GET",url:`/api/v2/performance/reviews/${t}/evaluation/final`}),r=(t,o)=>e.request({method:"PUT",url:`/api/v2/performance/reviews/${t}/evaluation/final`,data:{...o,finalComment:""===o.finalComment?null:o.finalComment}}),i=(t,o,a)=>e.request({method:"PUT",url:`/api/v2/performance/reviews/${t}/evaluation/employee`,data:{complete:o,ratings:a.kpis,generalComment:a.generalComment}}),s=(t,o)=>e.request({method:"PUT",url:`/api/v2/performance/reviews/${t}/evaluation/supervisor`,data:{ratings:o.kpis,generalComment:o.generalComment}}),d=e=>e.map((e=>[Co(e.minRating,t("performance.rating_should_be_greater_than_or_equal_to_minValue",{minValue:e.minRating})),bo(e.maxRating,t("performance.rating_should_be_less_than_or_equal_to_maxValue",{maxValue:e.maxRating}))])),c=e=>({kpis:e.map((e=>({kpiId:e.id,rating:null,comment:null}))),generalComment:null}),m=(e,t,o)=>({kpis:o.map((({kpiId:t})=>{const o=e.find((e=>e.kpi.id===t));return{kpiId:t,rating:o?.rating,comment:o?.comment}})),generalComment:t}),u=e=>({details:{empNumber:e.employee.empNumber,firstName:e.employee.firstName,lastName:e.employee.lastName,middleName:e.employee.middleName,terminationId:e.employee.terminationId},jobTitle:e.employee.jobTitle.name,status:e.status}),p=e=>new Map(e?.map((e=>[e.action,e.name])));return{getAllKpis:o,getEmployeeReview:l,getSupervisorReview:a,getFinalReview:n,generateRules:d,generateModel:c,generateReviewerData:u,generateAllowedActions:p,generateEvaluationFormData:m,finalizeReview:r,saveEmployeeReview:i,saveSupervisorReview:s}}const DO={class:"orangehrm-modal-header"},$O={class:"orangehrm-text-center-align"},EO={class:"orangehrm-modal-footer"};function TO(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:"#app"},[n.show?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-dialog-popup","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",DO,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.confirm_review_submission")),1)])),_:1})]),(0,a.createElementVNode)("div",$O,[(0,a.createVNode)(i,{type:"subtitle-2"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.confirm_review_submission_message")),1)])),_:1})]),(0,a.createElementVNode)("div",EO,[(0,a.createVNode)(s,{"display-type":"ghost",class:"orangehrm-button-margin",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(s,{"display-type":"secondary",class:"orangehrm-button-margin",label:e.$t("general.ok"),onClick:r.onConfirm},null,8,["label","onClick"])])])),_:1},8,["onUpdate:show"])):(0,a.createCommentVNode)("",!0)])}var BO={name:"ReviewConfirmModal",components:{"oxd-dialog":q.OxdDialog},data(){return{show:!1,reject:null,resolve:null}},methods:{showDialog(){return new Promise(((e,t)=>{this.resolve=e,this.reject=t,this.show=!0}))},onConfirm(){this.show=!1,this.resolve&&this.resolve("ok")},onCancel(){this.show=!1,this.resolve&&this.resolve("cancel")}}};const IO=(0,r.Z)(BO,[["render",TO],["__scopeId","data-v-76b5ab1c"]]);var LO=IO;const UO={details:{empNumber:null,firstName:"",lastName:"",middleName:"",terminationId:null},jobTitle:"",status:1,actions:new Map};var AO={components:{"review-summary":sO,"final-evaluation":fO,"evaluation-form":kO,"review-confirm-modal":LO},props:{reviewId:{type:Number,required:!0},status:{type:Number,required:!0},reviewPeriodStart:{type:String,required:!0},reviewPeriodEnd:{type:String,required:!0},dueDate:{type:String,required:!0},isReviewer:{type:Boolean,default:!1}},setup(){const{formRef:e,invalid:t,validate:o}=$c(),a=new P(window.appGlobal.baseUrl,""),{getAllKpis:l,getEmployeeReview:n,getSupervisorReview:r,getFinalReview:i,generateRules:s,generateModel:d,generateReviewerData:c,generateAllowedActions:m,generateEvaluationFormData:u,finalizeReview:p,saveEmployeeReview:h,saveSupervisorReview:g}=SO(a);return{http:a,invalid:t,formRef:e,validate:o,getAllKpis:l,generateRules:s,generateModel:d,generateReviewerData:c,generateAllowedActions:m,generateEvaluationFormData:u,getEmployeeReview:n,getSupervisorReview:r,getFinalReview:i,finalizeReview:p,saveEmployeeReview:h,saveSupervisorReview:g}},data(){return{kpis:[],rules:[],employee:{...UO},employeeReview:{},supervisor:{...UO},supervisorReview:{},isLoading:!1,finalRating:null,finalComment:null,completedDate:null,isFinalizeRequired:!1}},computed:{hasSupervisorUpdateAction(){return this.employee.actions.has("supervisorUpdate")},hasSaveAction(){return this.supervisor.actions.has("save")},hasCompleteAction(){return this.supervisor.actions.has("complete")},hasCancelAction(){return 4!==this.status},hasActions(){return this.hasSupervisorUpdateAction||this.hasSaveAction||this.hasCompleteAction||this.hasCancelAction}},beforeMount(){this.isLoading=!0,this.getAllKpis(this.reviewId).then((e=>{const{data:t}=e.data;return this.kpis=[...t],this.rules=this.generateRules(t),this.employeeReview=this.generateModel(t),this.supervisorReview=this.generateModel(t),this.getEmployeeReview(this.reviewId)})).then((e=>{const{data:t}=e.data,{meta:o}=e.data;return this.employee=this.generateReviewerData(o.reviewer),this.employee.actions=this.generateAllowedActions(o.allowedActions),this.employeeReview=this.generateEvaluationFormData(t,o.generalComment,this.employeeReview.kpis),this.getSupervisorReview(this.reviewId)})).then((e=>{const{data:t}=e.data,{meta:o}=e.data;return this.supervisor=this.generateReviewerData(o.reviewer),this.supervisor.actions=this.generateAllowedActions(o.allowedActions),this.supervisorReview=this.generateEvaluationFormData(t,o.generalComment,this.supervisorReview.kpis),this.getFinalReview(this.reviewId)})).then((e=>{const{data:t}=e.data;this.finalRating=t.finalRating,this.finalComment=t.finalComment,this.completedDate=t.completedDate})).finally((()=>{this.isLoading=!1}))},methods:{onSubmit(e=!1){this.isFinalizeRequired=e,this.$nextTick().then((()=>this.validate())).then((()=>{!0!==this.invalid&&(e?this.$refs.confirmDialog.showDialog().then((e=>{"ok"===e&&this.submitReview(!0)})):this.submitReview(!1))}))},submitReview(e=!1){this.isLoading=!0,this.saveSupervisorReview(this.reviewId,this.supervisorReview).then((()=>{if(this.hasSupervisorUpdateAction)return this.saveEmployeeReview(this.reviewId,!0,this.employeeReview)})).then((()=>this.finalizeReview(this.reviewId,{complete:e,finalRating:this.finalRating,finalComment:this.finalComment,completedDate:this.completedDate}))).then((()=>this.$toast.saveSuccess())).finally((()=>{A()}))},onClickCancel(){U(this.isReviewer?"/performance/searchEvaluatePerformanceReview":"/performance/searchPerformanceReview")}}};const PO=(0,r.Z)(AO,[["render",YR],["__scopeId","data-v-ecbdbb4c"]]);var qO=PO;const MO=e=>((0,a.pushScopeId)("data-v-574fdbb6"),e=e(),(0,a.popScopeId)(),e),FO={class:"orangehrm-background-container"},jO={class:"orangehrm-card-container"},zO=MO((()=>(0,a.createElementVNode)("br",null,null,-1))),RO=MO((()=>(0,a.createElementVNode)("br",null,null,-1))),OO={key:0},GO=MO((()=>(0,a.createElementVNode)("br",null,null,-1))),ZO={class:"orangehrm-performance-review-actions"},QO={key:1},HO=MO((()=>(0,a.createElementVNode)("br",null,null,-1)));function WO(e,t,o,l,n,r){const i=(0,a.resolveComponent)("review-confirm-modal"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("review-summary"),c=(0,a.resolveComponent)("evaluation-form"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("final-evaluation"),g=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",FO,[(0,a.createVNode)(i,{ref:"confirmDialog"},null,512),(0,a.createElementVNode)("div",jO,[(0,a.createVNode)(s,{tag:"h5",class:"orangehrm-performance-review-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.performance_review")),1)])),_:1})]),zO,(0,a.createVNode)(d,{loading:n.isLoading,status:o.status,"due-date":o.dueDate,employee:n.employee.details,"job-title":n.employee.jobTitle,"review-period-end":o.reviewPeriodEnd,"review-period-start":o.reviewPeriodStart,"final-rating":n.finalRating},null,8,["loading","status","due-date","employee","job-title","review-period-end","review-period-start","final-rating"]),RO,(0,a.createVNode)(g,{ref:"formRef",loading:n.isLoading},{default:(0,a.withCtx)((()=>[o.status<4?((0,a.openBlock)(),(0,a.createElementBlock)("div",OO,[(0,a.createVNode)(c,{modelValue:n.supervisorReview,"onUpdate:modelValue":t[0]||(t[0]=e=>n.supervisorReview=e),kpis:n.kpis,rules:n.rules,editable:!1,collapsible:!1,collapsed:!0,employee:n.supervisor.details,"job-title":n.supervisor.jobTitle,status:n.supervisor.status,title:e.$t("performance.supervisor_evaluation_by")},null,8,["modelValue","kpis","rules","employee","job-title","status","title"]),GO,(0,a.createVNode)(c,{modelValue:n.employeeReview,"onUpdate:modelValue":t[3]||(t[3]=e=>n.employeeReview=e),kpis:n.kpis,rules:n.rules,editable:n.employee.status<3,collapsed:!1,collapsible:!0,employee:n.employee.details,"job-title":n.employee.jobTitle,status:n.employee.status,title:e.$t("performance.self_evaluation_by")},{default:(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createVNode)(p,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createElementVNode)("div",ZO,[r.hasCancelAction?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onClickCancel},null,8,["label","onClick"])):(0,a.createCommentVNode)("",!0),r.hasSaveAction?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1,"display-type":"ghost",type:"button",label:e.$t("general.save"),onClick:t[1]||(t[1]=e=>r.onSubmit(!1))},null,8,["label"])):(0,a.createCommentVNode)("",!0),r.hasCompleteAction?((0,a.openBlock)(),(0,a.createBlock)(u,{key:2,type:"button","display-type":"secondary",label:e.$t("performance.complete"),onClick:t[2]||(t[2]=e=>r.onSubmit(!0))},null,8,["label"])):(0,a.createCommentVNode)("",!0)])])),_:1},512),[[a.vShow,r.hasActions]])])),_:1},8,["modelValue","kpis","rules","editable","employee","job-title","status","title"])])):(0,a.createCommentVNode)("",!0),4===o.status?((0,a.openBlock)(),(0,a.createElementBlock)("div",QO,[(0,a.createVNode)(c,{modelValue:n.employeeReview,"onUpdate:modelValue":t[4]||(t[4]=e=>n.employeeReview=e),kpis:n.kpis,rules:n.rules,editable:!1,collapsed:!1,collapsible:!0,employee:n.employee.details,"job-title":n.employee.jobTitle,status:n.employee.status,title:e.$t("performance.self_evaluation_by")},null,8,["modelValue","kpis","rules","employee","job-title","status","title"]),HO,(0,a.createVNode)(c,{modelValue:n.supervisorReview,"onUpdate:modelValue":t[8]||(t[8]=e=>n.supervisorReview=e),kpis:n.kpis,rules:n.rules,editable:!1,collapsible:!0,collapsed:!1,employee:n.supervisor.details,"job-title":n.supervisor.jobTitle,status:n.supervisor.status,title:e.$t("performance.supervisor_evaluation_by")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m),(0,a.createVNode)(h,{"final-rating":n.finalRating,"onUpdate:final-rating":t[5]||(t[5]=e=>n.finalRating=e),"final-comment":n.finalComment,"onUpdate:final-comment":t[6]||(t[6]=e=>n.finalComment=e),"completed-date":n.completedDate,"onUpdate:completed-date":t[7]||(t[7]=e=>n.completedDate=e),status:o.status,"is-required":!1},null,8,["final-rating","final-comment","completed-date","status"])])),_:1},8,["modelValue","kpis","rules","employee","job-title","status","title"])])):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading"])])}const YO={details:{empNumber:null,firstName:"",lastName:"",terminationId:null},jobTitle:"",status:1,actions:new Map};var JO={name:"SelfEvaluation",components:{"review-summary":sO,"final-evaluation":fO,"evaluation-form":kO,"review-confirm-modal":LO},props:{reviewId:{type:Number,required:!0},status:{type:Number,required:!0},reviewPeriodStart:{type:String,required:!0},reviewPeriodEnd:{type:String,required:!0},dueDate:{type:String,required:!0}},setup(){const{formRef:e,invalid:t,validate:o}=$c(),a=new P(window.appGlobal.baseUrl,""),{getAllKpis:l,getEmployeeReview:n,getSupervisorReview:r,getFinalReview:i,generateRules:s,generateModel:d,generateReviewerData:c,generateAllowedActions:m,generateEvaluationFormData:u,finalizeReview:p,saveEmployeeReview:h}=SO(a);return{http:a,invalid:t,formRef:e,validate:o,getAllKpis:l,generateRules:s,generateModel:d,generateReviewerData:c,generateAllowedActions:m,generateEvaluationFormData:u,getEmployeeReview:n,getSupervisorReview:r,getFinalReview:i,finalizeReview:p,saveEmployeeReview:h}},data(){return{kpis:[],rules:[],employee:{...YO},employeeReview:{},supervisor:{...YO},supervisorReview:{},isLoading:!1,finalRating:null,finalComment:null,completedDate:null}},computed:{hasSaveAction(){return this.employee.actions.has("save")},hasCompleteAction(){return this.employee.actions.has("complete")},hasCancelAction(){return!(4===this.status||3===this.employee?.status)},hasActions(){return this.hasSaveAction||this.hasCancelAction||this.hasCompleteAction}},beforeMount(){this.isLoading=!0,this.getAllKpis(this.reviewId).then((e=>{const{data:t}=e.data;return this.kpis=[...t],this.rules=this.generateRules(t),this.employeeReview=this.generateModel(t),this.supervisorReview=this.generateModel(t),this.getEmployeeReview(this.reviewId)})).then((e=>{const{data:t}=e.data,{meta:o}=e.data;return this.employee=this.generateReviewerData(o.reviewer),this.employee.actions=this.generateAllowedActions(o.allowedActions),this.employeeReview=this.generateEvaluationFormData(t,o.generalComment,this.employeeReview.kpis),this.getSupervisorReview(this.reviewId)})).then((e=>{const{data:t}=e.data,{meta:o}=e.data;return this.supervisor=this.generateReviewerData(o.reviewer),this.supervisor.actions=this.generateAllowedActions(o.allowedActions),this.supervisorReview=this.generateEvaluationFormData(t,o.generalComment,this.supervisorReview.kpis),4===this.status?this.getFinalReview(this.reviewId):{}})).then((e=>{if(0!==Object.keys(e).length){const{data:t}=e.data;this.finalRating=t.finalRating,this.finalComment=t.finalComment,this.completedDate=t.completedDate}})).finally((()=>{this.isLoading=!1}))},methods:{onSubmit(e=!1){this.$nextTick().then((()=>this.validate())).then((async()=>{!0!==this.invalid&&(e?this.$refs.confirmDialog.showDialog().then((e=>{"ok"===e&&this.submitReview(!0)})):this.submitReview(!1))}))},submitReview(e=!1){this.isLoading=!0,this.saveEmployeeReview(this.reviewId,e,this.employeeReview).then((()=>this.$toast.saveSuccess())).finally((()=>{A()}))},onClickCancel(){U("/performance/myPerformanceReview")}}};const XO=(0,r.Z)(JO,[["render",WO],["__scopeId","data-v-574fdbb6"]]);var KO=XO,eG={"my-tracker":nF,"employee-trackers":vF,"kpi-search":HF,"kpi-save":AF,"kpi-edit":kF,"add-review":rj,"edit-review":hj,"performance-tracker-list":kj,"performance-tracker-save":Pj,"performance-tracker-edit":Oj,"my-reviews":uz,"review-list":Sz,"review-search":Mz,"employee-tracker-logs":zR,"admin-evaluation":qO,"self-evaluation":KO};const tG=e=>((0,a.pushScopeId)("data-v-0d01fa51"),e=e(),(0,a.popScopeId)(),e),oG={class:"orangehrm-background-container"},aG=tG((()=>(0,a.createElementVNode)("br",null,null,-1))),lG={class:"orangehrm-corporate-directory"},nG={class:"orangehrm-paper-container"},rG={ref:"scrollerRef",class:"orangehrm-container"},iG=tG((()=>(0,a.createElementVNode)("div",{class:"orangehrm-bottom-container"},null,-1))),sG={key:0,class:"orangehrm-corporate-directory-sidebar"};function dG(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-autocomplete"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("submit-button"),g=(0,a.resolveComponent)("oxd-form-actions"),v=(0,a.resolveComponent)("oxd-form"),f=(0,a.resolveComponent)("oxd-table-filter"),y=(0,a.resolveComponent)("table-header"),C=(0,a.resolveComponent)("employee-details"),b=(0,a.resolveComponent)("summary-card"),V=(0,a.resolveComponent)("oxd-loading-spinner"),x=(0,a.resolveComponent)("summary-card-details");return(0,a.openBlock)(),(0,a.createElementBlock)("div",oG,[(0,a.createVNode)(f,{"filter-title":e.$t("general.directory")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(v,{onSubmitValid:r.onSearch,onReset:r.onReset},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:3},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:e.filters.employeeNumber,"onUpdate:modelValue":t[0]||(t[0]=t=>e.filters.employeeNumber=t),rules:l.rules.employee,"api-path":"/api/v2/directory/employees"},null,8,["modelValue","rules"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.filters.jobTitleId,"onUpdate:modelValue":t[1]||(t[1]=t=>e.filters.jobTitleId=t),type:"select",label:e.$t("general.job_title"),options:o.jobTitles},null,8,["modelValue","label","options"])])),_:1}),(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:e.filters.locationId,"onUpdate:modelValue":t[2]||(t[2]=t=>e.filters.locationId=t),type:"select",label:e.$t("general.location"),options:o.locations},null,8,["modelValue","label","options"])])),_:1})])),_:1})])),_:1}),(0,a.createVNode)(u),(0,a.createVNode)(g,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p,{label:e.$t("general.reset"),"display-type":"ghost",type:"reset"},null,8,["label"]),(0,a.createVNode)(h,{label:e.$t("general.search")},null,8,["label"])])),_:1})])),_:1},8,["onSubmitValid","onReset"])])),_:1},8,["filter-title"]),aG,(0,a.createElementVNode)("div",lG,[(0,a.createElementVNode)("div",nG,[(0,a.createVNode)(y,{selected:0,total:e.total,loading:!1,"show-divider":!1},null,8,["total"]),(0,a.createElementVNode)("div",rG,[(0,a.createVNode)(c,{cols:r.colSize},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.employees,((t,o)=>((0,a.openBlock)(),(0,a.createBlock)(s,{key:t},{default:(0,a.withCtx)((()=>[r.isMobile&&e.currentIndex===o?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0,"employee-id":t.id,"employee-name":t.employeeName,"employee-sub-unit":t.employeeSubUnit,"employee-location":t.employeeLocation,"employee-designation":t.employeeJobTitle,onClick:e=>r.showEmployeeDetails(o)},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(C,{"employee-id":t.id,"is-mobile":r.isMobile},null,8,["employee-id","is-mobile"])])),_:2},1032,["employee-id","employee-name","employee-sub-unit","employee-location","employee-designation","onClick"])):((0,a.openBlock)(),(0,a.createBlock)(b,{key:1,"employee-id":t.id,"employee-name":t.employeeName,"employee-sub-unit":t.employeeSubUnit,"employee-location":t.employeeLocation,"employee-designation":t.employeeJobTitle,onClick:e=>r.showEmployeeDetails(o)},null,8,["employee-id","employee-name","employee-sub-unit","employee-location","employee-designation","onClick"]))])),_:2},1024)))),128))])),_:1},8,["cols"]),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(V,{key:0,class:"orangehrm-container-loader"})):(0,a.createCommentVNode)("",!0)],512),iG]),r.isEmployeeSelected&&!1===r.isMobile?((0,a.openBlock)(),(0,a.createElementBlock)("div",sG,[(0,a.createVNode)(s,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(x,{"employee-designation":e.employees[e.currentIndex].employeeJobTitle,"employee-id":e.employees[e.currentIndex].id,"employee-location":e.employees[e.currentIndex].employeeLocation,"employee-name":e.employees[e.currentIndex].employeeName,"employee-sub-unit":e.employees[e.currentIndex].employeeSubUnit,onHideDetails:t[3]||(t[3]=e=>r.hideEmployeeDetails())},null,8,["employee-designation","employee-id","employee-location","employee-name","employee-sub-unit"])])),_:1})])):(0,a.createCommentVNode)("",!0)])])}const cG={class:"orangehrm-directory-card-body"};function mG(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("profile-picture"),c=(0,a.resolveComponent)("oxd-sheet");return(0,a.openBlock)(),(0,a.createBlock)(c,{gutters:!1,class:"orangehrm-directory-card"},{default:(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createElementVNode)("div",{class:"orangehrm-directory-card-top",onClick:t[0]||(t[0]=t=>e.$emit("hide-details",!1))},[(0,a.createVNode)(i,{name:"arrow-right"})],512),[[a.vShow,o.showBackButton]]),(0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.cardTitleClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.employeeName),1)])),_:1},8,["class"]),(0,a.createVNode)(d,{id:o.employeeId},null,8,["id"]),(0,a.withDirectives)((0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.cardSubTitleClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.employeeDesignation),1)])),_:1},8,["class"]),[[a.vShow,o.employeeDesignation]]),(0,a.withDirectives)((0,a.createElementVNode)("div",cG,[(0,a.createVNode)(i,{class:"orangehrm-directory-card-icon",name:"geo-alt-fill"}),(0,a.createElementVNode)("div",null,[(0,a.withDirectives)((0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.cardDescriptionClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.employeeSubUnit),1)])),_:1},8,["class"]),[[a.vShow,o.employeeSubUnit]]),(0,a.withDirectives)((0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.cardDescriptionClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.employeeLocation),1)])),_:1},8,["class"]),[[a.vShow,o.employeeLocation]])])],512),[[a.vShow,o.employeeSubUnit||o.employeeLocation]]),(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)])),_:3})}const uG={class:"orangehrm-profile-picture"},pG=["src"];function hG(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",uG,[(0,a.createElementVNode)("img",{src:l.imgSrc,alt:"Profile Picture",class:"orangehrm-profile-picture-img"},null,8,pG)])}const gG=`${window.appGlobal.publicPath}/images/default-photo.png`;var vG={name:"ProfilePicture",props:{id:{type:Number,required:!0}},setup(e){const t=(0,a.computed)((()=>e.id?`${window.appGlobal.baseUrl}/pim/viewPhoto/empNumber/${e.id}`:gG));return{imgSrc:t}}};const fG=(0,r.Z)(vG,[["render",hG],["__scopeId","data-v-49d66b74"]]);var yG=fG,CG={name:"SummaryCard",components:{"oxd-icon":q.OxdIcon,"oxd-sheet":q.OxdSheet,"profile-picture":yG},props:{employeeId:{type:Number,required:!0},employeeName:{type:String,required:!0},employeeDesignation:{type:String,required:!1,default:null},employeeSubUnit:{type:String,default:""},employeeLocation:{type:String,default:""},showBackButton:{type:Boolean,default:!1}},emits:["hide-details"],computed:{hasDefaultSlot(){return!!this.$slots.default},cardTitleClasses(){return{"orangehrm-directory-card-header":!0,"--break-words":!this.hasDefaultSlot}},cardSubTitleClasses(){return{"orangehrm-directory-card-subtitle":!0,"--break-words":!this.hasDefaultSlot}},cardDescriptionClasses(){return{"orangehrm-directory-card-description":!0,"--break-words":!this.hasDefaultSlot}}}};const bG=(0,r.Z)(CG,[["render",mG],["__scopeId","data-v-0415b0f1"]]);var VG=bG;const xG={class:"orangehrm-directory-card-rounded-body"},wG={class:"orangehrm-directory-card-icon"},NG={class:"orangehrm-directory-card-icon"},_G={class:"orangehrm-directory-card-hover-body"},kG={class:"orangehrm-directory-card-hover-body orangehrm-directory-card-hover-icon"},SG={class:"orangehrm-directory-card-hover-body"},DG={class:"orangehrm-directory-card-hover-body orangehrm-directory-card-hover-icon"};function $G(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-divider"),s=(0,a.resolveComponent)("oxd-icon-button"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("qr-code");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.withDirectives)((0,a.createVNode)(i,null,null,512),[[a.vShow,n.employeeWorkEmail||n.employeeWorkTelephone]]),(0,a.withDirectives)((0,a.createElementVNode)("div",xG,[(0,a.withDirectives)((0,a.createElementVNode)("div",wG,[(0,a.createVNode)(s,{"display-type":"success",name:"telephone-fill",onClick:(0,a.withModifiers)(r.openClientTelephone,["stop"])},null,8,["onClick"])],512),[[a.vShow,n.employeeWorkTelephone]]),(0,a.withDirectives)((0,a.createElementVNode)("div",NG,[(0,a.createVNode)(s,{"display-type":"danger",name:"envelope-fill",onClick:(0,a.withModifiers)(r.openClientEmail,["stop"])},null,8,["onClick"])],512),[[a.vShow,n.employeeWorkEmail]])],512),[[a.vShow,n.employeeWorkEmail||n.employeeWorkTelephone]]),(0,a.withDirectives)((0,a.createElementVNode)("div",{class:"orangehrm-directory-card-hover",onMouseleave:t[0]||(t[0]=e=>n.showTelephoneClip=!1),onMouseover:t[1]||(t[1]=e=>n.showTelephoneClip=!0)},[(0,a.createElementVNode)("div",_G,[(0,a.createVNode)(d,{type:"toast-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("pim.work_telephone")),1)])),_:1}),(0,a.createVNode)(d,{ref:"cloneTelephone",type:"toast-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.employeeWorkTelephone),1)])),_:1},512)]),(0,a.createElementVNode)("div",kG,[(0,a.withDirectives)((0,a.createVNode)(s,{name:"files",onClick:(0,a.withModifiers)(r.copyTelephone,["stop"])},null,8,["onClick"]),[[a.vShow,n.showTelephoneClip||o.isMobile]])])],544),[[a.vShow,n.employeeWorkTelephone]]),(0,a.withDirectives)((0,a.createVNode)(i,null,null,512),[[a.vShow,n.employeeWorkTelephone]]),(0,a.withDirectives)((0,a.createElementVNode)("div",{class:"orangehrm-directory-card-hover",onMouseleave:t[2]||(t[2]=e=>n.showEmailClip=!1),onMouseover:t[3]||(t[3]=e=>n.showEmailClip=!0)},[(0,a.createElementVNode)("div",SG,[(0,a.createVNode)(d,{type:"toast-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.work_email")),1)])),_:1}),(0,a.createVNode)(d,{ref:"cloneEmail",type:"toast-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.employeeWorkEmail),1)])),_:1},512)]),(0,a.createElementVNode)("div",DG,[(0,a.withDirectives)((0,a.createVNode)(s,{name:"files",onClick:(0,a.withModifiers)(r.copyEmail,["stop"])},null,8,["onClick"]),[[a.vShow,n.showEmailClip||o.isMobile]])])],544),[[a.vShow,n.employeeWorkEmail]]),(0,a.withDirectives)((0,a.createVNode)(i,null,null,512),[[a.vShow,n.employeeWorkEmail]]),n.qrPayload&&(n.employeeWorkTelephone||n.employeeWorkEmail)?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,value:n.qrPayload},null,8,["value"])):(0,a.createCommentVNode)("",!0)],64)}var EG=o(2592),TG={name:"QRCode",props:{value:{type:String,required:!0}},setup(e){const t=(0,a.ref)(""),o=async()=>{const o=await(0,EG.hz)(String(e.value),{type:"image/png",width:140});t.value=o||""};return(0,a.watch)((()=>e.value),o),(0,a.onBeforeMount)(o),()=>(0,a.h)("img",{src:t.value,class:"orangehrm-qr-code"})}};const BG=(0,r.Z)(TG,[["__scopeId","data-v-74e533de"]]);var IG=BG,LG={name:"EmployeeDetails",components:{"qr-code":IG,"oxd-divider":q.OxdDivider},props:{employeeId:{type:Number,required:!0},isMobile:{type:Boolean,default:!1}},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/directory/employees");return{http:e}},data(){return{employeeWorkTelephone:null,employeeWorkEmail:null,showTelephoneClip:!1,showEmailClip:!1,toGoEmail:null,qrPayload:null,employeeName:null}},watch:{employeeId:function(){this.callEmployeeDetailsApi()}},beforeMount(){this.callEmployeeDetailsApi()},methods:{openClientTelephone(){window.location.href="tel:"+this.employeeWorkTelephone},openClientEmail(){window.location.href="mailto:"+this.employeeWorkEmail},copyEmail(){navigator.clipboard?.writeText(this.employeeWorkEmail)},copyTelephone(){navigator.clipboard?.writeText(this.employeeWorkTelephone)},callEmployeeDetailsApi(){this.http.get(this.employeeId,{model:"detailed"}).then((e=>{const{data:t}=e.data;this.employeeName={firstName:t.firstName,middleName:t.middleName,lastName:t.lastName},this.employeeWorkEmail=t.contactInfo?.workEmail,this.employeeWorkTelephone=t.contactInfo?.workTelephone,this.generateQrPayload()}))},generateQrPayload(){let e="";e+=`N:${this.employeeName?.lastName||""};`,e+=`${this.employeeName?.firstName||""};`,e+=`${this.employeeName?.middleName||""};\n`,this.employeeWorkTelephone&&(e+=`TEL;CELL:${this.employeeWorkTelephone}\n`),this.employeeWorkEmail&&(e+=`EMAIL;WORK;INTERNET:${this.employeeWorkEmail}\n`),this.qrPayload=`BEGIN:VCARD\nVERSION:3.0\n${e}END:VCARD\n`}}};const UG=(0,r.Z)(LG,[["render",$G],["__scopeId","data-v-d01dcc04"]]);var AG=UG;function PG(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-details"),s=(0,a.resolveComponent)("summary-card");return(0,a.openBlock)(),(0,a.createBlock)(s,{"employee-id":o.employeeId,"show-back-button":!0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{"employee-id":o.employeeId},null,8,["employee-id"])])),_:1},8,["employee-id"])}var qG={name:"SummaryCardDetails",components:{"employee-details":AG,"summary-card":VG},props:{employeeId:{type:Number,required:!0}}};const MG=(0,r.Z)(qG,[["render",PG]]);var FG=MG;const jG={employeeNumber:null,jobTitleId:null,locationId:null};var zG={name:"CorporateDirectory",components:{"summary-card":VG,"oxd-loading-spinner":q.OxdSpinner,"employee-details":AG,"summary-card-details":FG,"employee-autocomplete":Va},props:{jobTitles:{type:Array,default:()=>[]},locations:{type:Array,default:()=>[]}},setup(){const{$t:e}=Se(),{noRecordsFound:t}=yt(),o=(0,q.useResponsive)(),l={employee:[xo]},n=t=>t.map((t=>({id:t.empNumber,employeeName:`${t.firstName} ${t.middleName} ${t.lastName} `+(t.terminationId?e("general.past_employee"):""),employeeJobTitle:t.jobTitle?.isDeleted?`${t.jobTitle?.title} `+e("general.deleted"):t.jobTitle?.title,employeeSubUnit:t.subunit?.name,employeeLocation:t.location?.name}))),r=new P(window.appGlobal.baseUrl,"/api/v2/directory/employees"),i=14,s=(0,a.reactive)({total:0,offset:0,employees:[],currentIndex:-1,isLoading:!1,filters:{...jG}}),d=()=>{s.isLoading=!0,r.getAll({limit:i,offset:s.offset,locationId:s.filters.locationId?.id,empNumber:s.filters.employeeNumber?.id,jobTitleId:s.filters.jobTitleId?.id}).then((e=>{const{data:o,meta:a}=e.data;s.total=a?.total||0,Array.isArray(o)&&(s.employees=[...s.employees,...n(o)]),0===s.total&&t()})).finally((()=>s.isLoading=!1))},{scrollerRef:c}=lR((()=>{s.employees.length>=s.total||(s.offset+=i,d())}));return{rules:l,fetchData:d,scrollerRef:c,...(0,a.toRefs)(s),...(0,a.toRefs)(o)}},computed:{isMobile(){return this.windowWidth<800},isEmployeeSelected(){return this.currentIndex>=0},oxdGridClasses(){return{"orangehrm-container":!0,"orangehrm-container-min-display":this.isEmployeeSelected}},colSize(){return this.windowWidth>=1920?this.isEmployeeSelected?5:7:this.isEmployeeSelected?3:4}},beforeMount(){this.fetchData()},methods:{hideEmployeeDetails(){this.currentIndex=-1},showEmployeeDetails(e){this.currentIndex!=e?this.currentIndex=e:this.hideEmployeeDetails()},onSearch(){this.hideEmployeeDetails(),this.employees=[],this.offset=0,this.fetchData()},onReset(){this.hideEmployeeDetails(),this.employees=[],this.offset=0,this.filters={...jG},this.fetchData()}}};const RG=(0,r.Z)(zG,[["render",dG],["__scopeId","data-v-0d01fa51"]]);var OG=RG,GG={"corporate-directory-employee-list":OG};const ZG=e=>((0,a.pushScopeId)("data-v-358db50f"),e=e(),(0,a.popScopeId)(),e),QG={class:"orangehrm-login-form"},HG={class:"orangehrm-login-error"},WG=["value"],YG={class:"orangehrm-login-forgot"},JG=ZG((()=>(0,a.createElementVNode)("br",null,null,-1))),XG={class:"orangehrm-login-footer"},KG={key:0,class:"orangehrm-login-footer-sm"},eZ={href:"https://www.linkedin.com/company/orangehrm/mycompany/",target:"_blank"},tZ={href:"https://www.facebook.com/OrangeHRM/",target:"_blank"},oZ={href:"https://twitter.com/orangehrm?lang=en",target:"_blank"},aZ={href:"https://www.youtube.com/c/OrangeHRMInc",target:"_blank"};function lZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-alert"),d=(0,a.resolveComponent)("oxd-sheet"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form-actions"),h=(0,a.resolveComponent)("oxd-form"),g=(0,a.resolveComponent)("oxd-icon"),v=(0,a.resolveComponent)("login-layout");return(0,a.openBlock)(),(0,a.createBlock)(v,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-login-title",tag:"h5"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.login")),1)])),_:1}),(0,a.createElementVNode)("div",QG,[(0,a.createElementVNode)("div",HG,[(0,a.createVNode)(s,{show:null!==o.error,message:o.error?.message||"",type:"error"},null,8,["show","message"]),o.isDemoMode?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,type:"gray-lighten-2",class:"orangehrm-demo-credentials"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("Username : Admin")])),_:1}),(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("Password : admin123")])),_:1})])),_:1})):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(h,{ref:"loginForm",method:"post",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,WG),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.username,"onUpdate:modelValue":t[0]||(t[0]=e=>n.username=e),name:"username",label:e.$t("general.username"),"label-icon":"person",placeholder:e.$t("auth.username"),rules:n.rules.username,autofocus:""},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.password,"onUpdate:modelValue":t[1]||(t[1]=e=>n.password=e),name:"password",label:e.$t("general.password"),"label-icon":"key",placeholder:e.$t("auth.password"),type:"password",rules:n.rules.password},null,8,["modelValue","label","placeholder","rules"])])),_:1}),(0,a.createVNode)(p,{class:"orangehrm-login-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{class:"orangehrm-login-button","display-type":"main",label:e.$t("auth.login"),type:"submit"},null,8,["label"])])),_:1}),(0,a.createElementVNode)("div",YG,[(0,a.createVNode)(i,{class:"orangehrm-login-forgot-header",onClick:r.navigateUrl},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.forgot_password"))+"? ",1)])),_:1},8,["onClick"])])])),_:1},8,["action","onSubmitValid"]),JG]),(0,a.createElementVNode)("div",XG,[o.showSocialMedia?((0,a.openBlock)(),(0,a.createElementBlock)("div",KG,[(0,a.createElementVNode)("a",eZ,[(0,a.createVNode)(g,{type:"svg",class:"orangehrm-sm-icon",name:"linkedinFill"})]),(0,a.createElementVNode)("a",tZ,[(0,a.createVNode)(g,{type:"svg",class:"orangehrm-sm-icon",name:"facebookFill"})]),(0,a.createElementVNode)("a",oZ,[(0,a.createVNode)(g,{type:"svg",class:"orangehrm-sm-icon",name:"twitterFill"})]),(0,a.createElementVNode)("a",aZ,[(0,a.createVNode)(g,{type:"svg",class:"orangehrm-sm-icon",name:"youtubeFill"})])])):(0,a.createCommentVNode)("",!0),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])])),_:3})}const nZ={class:"orangehrm-login-layout"},rZ={class:"orangehrm-login-layout-blob"},iZ={class:"orangehrm-login-container"},sZ={class:"orangehrm-login-slot-wrapper"},dZ={class:"orangehrm-login-slot"},cZ={class:"orangehrm-login-logo-mobile"},mZ=["src"],uZ={class:"orangehrm-login-logo"},pZ=["src"];function hZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("login-branding");return(0,a.openBlock)(),(0,a.createElementBlock)("div",nZ,[(0,a.createElementVNode)("div",rZ,[(0,a.createElementVNode)("div",iZ,[(0,a.createElementVNode)("div",sZ,[(0,a.createVNode)(i,{"img-src":o.loginBannerSrc},null,8,["img-src"]),(0,a.createElementVNode)("div",dZ,[(0,a.createElementVNode)("div",cZ,[(0,a.createElementVNode)("img",{src:o.loginLogoSrc,alt:"orangehrm-logo"},null,8,mZ)]),(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)])])]),(0,a.createElementVNode)("div",uZ,[(0,a.createElementVNode)("img",{src:o.loginLogoSrc,alt:"orangehrm-logo"},null,8,pZ)])])])}var gZ={name:"LoginLayout",components:{"login-branding":CB},props:{loginLogoSrc:{type:String,required:!0},loginBannerSrc:{type:String,required:!0}}};const vZ=(0,r.Z)(gZ,[["render",hZ],["__scopeId","data-v-50815349"]]);var fZ=vZ,yZ={components:{"oxd-icon":q.OxdIcon,"oxd-alert":q.OxdAlert,"oxd-sheet":q.OxdSheet,"login-layout":fZ},props:{error:{type:Object,default:()=>null},token:{type:String,required:!0},showSocialMedia:{type:Boolean,default:!0},isDemoMode:{type:Boolean,default:!1}},data(){return{username:"",password:"",rules:{username:[jt],password:[jt]},submitted:!1}},computed:{submitUrl(){return L("/auth/validate")}},beforeMount(){setTimeout((()=>{A()}),12e5)},methods:{onSubmit(){this.submitted||(this.submitted=!0,this.$refs.loginForm.$el.submit())},navigateUrl(){U("/auth/requestPasswordResetCode")}}};const CZ=(0,r.Z)(yZ,[["render",lZ],["__scopeId","data-v-358db50f"]]);var bZ=CZ;function VZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-alert");return(0,a.openBlock)(),(0,a.createBlock)(i,{show:!0,type:"error",message:e.$t("auth.credential_required")},null,8,["message"])}var xZ={components:{"oxd-alert":q.OxdAlert}};const wZ=(0,r.Z)(xZ,[["render",VZ]]);var NZ=wZ;const _Z={class:"orangehrm-forgot-password-container"},kZ={class:"orangehrm-forgot-password-wrapper"},SZ={class:"orangehrm-card-container"},DZ=["value"],$Z={class:"orangehrm-forgot-password-buttons"};function EZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("card-note"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("password-strength-indicator"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",_Z,[(0,a.createElementVNode)("div",kZ,[(0,a.createElementVNode)("div",SZ,[(0,a.createVNode)(h,{ref:"resetForm",method:"post",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.reset_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(d,{"note-text":e.$t("auth.set_new_password"),class:"orangehrm-forgot-password-card-note"},null,8,["note-text"]),(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,DZ),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{value:o.username,label:e.$t("auth.username"),readonly:"",name:"username","label-icon":"person"},null,8,["value","label"])])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-forgot-password-row"},{default:(0,a.withCtx)((()=>[n.user.newPassword?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"password-strength":l.passwordStrength},null,8,["password-strength"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,{modelValue:n.user.newPassword,"onUpdate:modelValue":t[0]||(t[0]=e=>n.user.newPassword=e),rules:n.rules.newPassword,label:e.$t("auth.new_password"),placeholder:e.$t("auth.password"),name:"password",type:"password","label-icon":"key",autocomplete:"off"},null,8,["modelValue","rules","label","placeholder"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.user.confirmPassword,"onUpdate:modelValue":t[1]||(t[1]=e=>n.user.confirmPassword=e),rules:n.rules.confirmPassword,placeholder:e.$t("auth.password"),label:e.$t("general.confirm_password"),type:"password","label-icon":"key",autocomplete:"off",name:"confirmPassword"},null,8,["modelValue","rules","placeholder","label"])])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",$Z,[(0,a.createVNode)(p,{label:e.$t("general.save"),size:"large",type:"submit","display-type":"secondary",class:"orangehrm-forgot-password-button"},null,8,["label"])])])),_:1},8,["action","onSubmitValid"])])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}function TZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon");return(0,a.openBlock)(),(0,a.createBlock)(i,{class:(0,a.normalizeClass)({"orangehrm-card-note":!0,"orangehrm-card-note--background":o.hasNote,"orangehrm-card-note--icon":o.hasNoteIcon})},{default:(0,a.withCtx)((()=>[o.hasNote?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,class:"orangehrm-sub-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.note"))+": ",1)])),_:1})):(0,a.createCommentVNode)("",!0),o.hasNoteIcon?((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,tag:"span",class:"orangehrm-card-note-icon"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{name:"exclamation-triangle",class:"orangehrm-card-icon"})])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(i,{class:(0,a.normalizeClass)({"orangehrm-card-note-text":o.hasNoteIcon})},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.noteText),1)])),_:1},8,["class"])])),_:1},8,["class"])}var BZ={name:"CardNote",components:{"oxd-icon":q.OxdIcon},props:{noteText:{type:String,required:!0},hasNote:{type:Boolean,default:!1},hasNoteIcon:{type:Boolean,required:!1}}};const IZ=(0,r.Z)(BZ,[["render",TZ],["__scopeId","data-v-58e596ce"]]);var LZ=IZ,UZ={name:"ResetPassword",components:{"card-note":LZ,"password-strength-indicator":Aa},props:{username:{type:String,required:!0},token:{type:String,required:!0}},setup(){const e=new P(window.appGlobal.baseUrl,""),{passwordStrength:t,validatePassword:o}=Ba(e);return{http:e,passwordStrength:t,validatePassword:o}},data(){return{user:{username:"",newPassword:"",confirmPassword:""},rules:{newPassword:[jt,zt(64),(0,q.promiseDebounce)(this.validatePassword,500)],confirmPassword:[jt,zt(64),e=>!!e&&e===this.user.newPassword||this.$t("general.passwords_do_not_match")]}}},computed:{submitUrl(){return L("/auth/resetPassword")}},methods:{onSubmit(){this.$refs.resetForm.$el.submit()}}};const AZ=(0,r.Z)(UZ,[["render",EZ],["__scopeId","data-v-3069512e"]]);var PZ=AZ;const qZ={class:"orangehrm-forgot-password-container"},MZ={class:"orangehrm-forgot-password-wrapper"},FZ={class:"orangehrm-card-container"},jZ={class:"orangehrm-login-error"},zZ=["value"],RZ=["value"],OZ={class:"orangehrm-forgot-password-buttons"};function GZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("oxd-alert"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("password-strength-indicator"),p=(0,a.resolveComponent)("oxd-button"),h=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",qZ,[(0,a.createElementVNode)("div",MZ,[(0,a.createElementVNode)("div",FZ,[(0,a.createVNode)(h,{ref:"resetForm",method:"post",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.change_weak_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",jZ,[(0,a.createVNode)(d,{show:!0,message:o.invalidCode?e.$t("auth.invalid_password_reset_code"):o.error?.message||e.$t("auth.password_not_strong"),type:"error"},null,8,["message"])]),o.invalidCode?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createElementVNode)("input",{name:"resetCode",value:o.code,type:"hidden"},null,8,zZ),(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,RZ),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{value:o.username,label:e.$t("auth.username"),readonly:"",name:"username","label-icon":"person"},null,8,["value","label"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.user.currentPassword,"onUpdate:modelValue":t[0]||(t[0]=e=>n.user.currentPassword=e),rules:n.rules.currentPassword,label:e.$t("pim.current_password"),type:"password","label-icon":"key",autocomplete:"off",name:"currentPassword"},null,8,["modelValue","rules","label"])])),_:1}),(0,a.createVNode)(m,{class:"orangehrm-forgot-password-row"},{default:(0,a.withCtx)((()=>[n.user.newPassword?((0,a.openBlock)(),(0,a.createBlock)(u,{key:0,"password-strength":l.passwordStrength},null,8,["password-strength"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,{modelValue:n.user.newPassword,"onUpdate:modelValue":t[1]||(t[1]=e=>n.user.newPassword=e),rules:n.rules.newPassword,label:e.$t("auth.new_password"),placeholder:e.$t("auth.password"),name:"password",type:"password","label-icon":"key",autocomplete:"off"},null,8,["modelValue","rules","label","placeholder"])])),_:1}),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.user.confirmPassword,"onUpdate:modelValue":t[2]||(t[2]=e=>n.user.confirmPassword=e),rules:n.rules.confirmPassword,placeholder:e.$t("auth.password"),label:e.$t("general.confirm_password"),type:"password","label-icon":"key",autocomplete:"off",name:"confirmPassword"},null,8,["modelValue","rules","placeholder","label"])])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",OZ,[(0,a.createVNode)(p,{label:e.$t("general.save"),size:"large",type:"submit","display-type":"secondary",class:"orangehrm-forgot-password-button"},null,8,["label"])])],64))])),_:1},8,["action","onSubmitValid"])])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var ZZ={name:"ResetWeakPassword",components:{"password-strength-indicator":Aa,"oxd-alert":q.OxdAlert},props:{username:{type:String,required:!0},code:{type:String,required:!0},token:{type:String,required:!0},error:{type:Object,default:()=>null},invalidCode:{type:Boolean,default:()=>!1}},setup(){const e=new P(window.appGlobal.baseUrl,""),{passwordStrength:t,validatePassword:o}=Ba(e);return{http:e,passwordStrength:t,validatePassword:o}},data(){return{user:{username:"",currentPassword:"",confirmPassword:""},rules:{currentPassword:[jt,zt(64)],newPassword:[jt,zt(64),(0,q.promiseDebounce)(this.validatePassword,500)],confirmPassword:[jt,zt(64),e=>!!e&&e===this.user.newPassword||this.$t("general.passwords_do_not_match")]}}},computed:{submitUrl(){return L("/auth/resetWeakPassword")}},methods:{onSubmit(){this.$refs.resetForm.$el.submit()}}};const QZ=(0,r.Z)(ZZ,[["render",GZ],["__scopeId","data-v-cae6a014"]]);var HZ=QZ;const WZ={class:"orangehrm-forgot-password-container"},YZ={class:"orangehrm-forgot-password-wrapper"},JZ={class:"orangehrm-card-container"};function XZ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("card-note");return(0,a.openBlock)(),(0,a.createElementBlock)("div",WZ,[(0,a.createElementVNode)("div",YZ,[(0,a.createElementVNode)("div",JZ,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-forgot-password-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.reset_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(d,{"note-text":e.$t("auth.reset_password_token_expired_note"),class:"orangehrm-forgot-password-card-note","has-note-icon":""},null,8,["note-text"]),(0,a.createVNode)(i,{class:"orangehrm-forgot-password-reset"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"span",class:"orangehrm-forgot-password-reset--link",onClick:r.navigateUrl},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.click_here")),1)])),_:1},8,["onClick"]),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("auth.request_new_password_token")),1)])),_:1})])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var KZ={name:"ResetPasswordError",components:{"card-note":LZ},methods:{navigateUrl(){U("/auth/requestPasswordResetCode")}}};const eQ=(0,r.Z)(KZ,[["render",XZ],["__scopeId","data-v-0928170e"]]);var tQ=eQ;const oQ=e=>((0,a.pushScopeId)("data-v-3614f3e7"),e=e(),(0,a.popScopeId)(),e),aQ={class:"orangehrm-admin-access-container"},lQ={class:"orangehrm-card-container"},nQ=oQ((()=>(0,a.createElementVNode)("br",null,null,-1))),rQ=["value"],iQ={class:"orangehrm-admin-access-button-container"},sQ=oQ((()=>(0,a.createElementVNode)("br",null,null,-1)));function dQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-alert"),d=(0,a.resolveComponent)("oxd-input-field"),c=(0,a.resolveComponent)("oxd-form-row"),m=(0,a.resolveComponent)("oxd-button"),u=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",aQ,[(0,a.createElementVNode)("div",lQ,[(0,a.createVNode)(u,{ref:"verifyForm",method:"post",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-admin-access-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.admin_access")),1)])),_:1}),nQ,(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(n.noteContainerClass)},[(0,a.createVNode)(i,{tag:"toast-message"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.admin_access_note")),1)])),_:1})],2),(0,a.createVNode)(s,{show:null!==o.error,type:"error",message:o.error?.message},null,8,["show","message"]),(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,rQ),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{"model-value":o.username,name:"username",label:e.$t("general.username"),"label-icon":"person",disabled:""},null,8,["model-value","label"])])),_:1}),(0,a.createVNode)(c,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:n.password,"onUpdate:modelValue":t[0]||(t[0]=e=>n.password=e),name:"password",label:e.$t("general.password"),"label-icon":"key",type:"password",rules:n.rules.password,autofocus:""},null,8,["modelValue","label","rules"])])),_:1}),(0,a.createElementVNode)("div",iQ,[(0,a.createVNode)(m,{class:"orangehrm-admin-access-button","display-type":"ghost",size:"large",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(m,{class:"orangehrm-admin-access-button","display-type":"secondary",size:"large",label:e.$t("general.confirm"),type:"submit"},null,8,["label"])])])),_:1},8,["action","onSubmitValid"])]),sQ,(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var cQ={name:"AdministratorAccess",components:{"oxd-alert":q.OxdAlert},props:{username:{type:String,required:!0},error:{type:Object,default:()=>null},token:{type:String,required:!0},backUrl:{type:String,default:null}},data(){return{password:"",rules:{password:[jt]},noteClasses:{"orangehrm-admin-access-note":!0,"--padding":null===this.error},noteContainerClass:{"orangehrm-admin-access-note-container":null===this.error}}},computed:{submitUrl(){return L("/auth/adminVerify")}},methods:{onSubmit(){this.$refs.verifyForm.$el.submit()},onCancel(){U(this.backUrl)}}};const mQ=(0,r.Z)(cQ,[["render",dQ],["__scopeId","data-v-3614f3e7"]]);var uQ=mQ;const pQ={class:"orangehrm-forgot-password-container"},hQ={class:"orangehrm-forgot-password-wrapper"},gQ={class:"orangehrm-card-container"},vQ=["value"],fQ={class:"orangehrm-forgot-password-button-container"};function yQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("card-note"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createElementBlock)("div",pQ,[(0,a.createElementVNode)("div",hQ,[(0,a.createElementVNode)("div",gQ,[(0,a.createVNode)(p,{ref:"resetForm",method:"post",action:r.submitUrl,onSubmitValid:r.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-forgot-password-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.reset_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(d,{"note-text":e.$t("auth.username_identify_reset_note"),class:"orangehrm-forgot-password-card-note"},null,8,["note-text"]),(0,a.createElementVNode)("input",{name:"_token",value:o.token,type:"hidden"},null,8,vQ),(0,a.createVNode)(m,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.username,"onUpdate:modelValue":t[0]||(t[0]=e=>n.username=e),name:"username",label:e.$t("auth.username"),"label-icon":"person",rules:n.rules.username,placeholder:e.$t("auth.username")},null,8,["modelValue","label","rules","placeholder"])])),_:1}),(0,a.createVNode)(s),(0,a.createElementVNode)("div",fQ,[(0,a.createVNode)(u,{class:"orangehrm-forgot-password-button orangehrm-forgot-password-button--cancel","display-type":"ghost",size:"large",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(u,{class:"orangehrm-forgot-password-button orangehrm-forgot-password-button--reset","display-type":"secondary",size:"large",label:e.$t("auth.reset_password"),type:"submit"},null,8,["label"])])])),_:1},8,["action","onSubmitValid"])])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var CQ={name:"RequestResetPassword",components:{"card-note":LZ},props:{token:{type:String,required:!0}},data(){return{username:"",rules:{username:[jt]}}},computed:{submitUrl(){return L("/auth/requestResetPassword")}},methods:{onCancel(){U("/auth/login")},onSubmit(){this.$refs.resetForm.$el.submit()}}};const bQ=(0,r.Z)(CQ,[["render",yQ],["__scopeId","data-v-cee5d450"]]);var VQ=bQ;const xQ={class:"orangehrm-forgot-password-container"},wQ={class:"orangehrm-forgot-password-wrapper"},NQ={class:"orangehrm-card-container"};function _Q(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("card-note");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xQ,[(0,a.createElementVNode)("div",wQ,[(0,a.createElementVNode)("div",NQ,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-forgot-password-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.reset_password_link_sent_successfully")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(d,{"note-text":e.$t("auth.reset_password_link_via_email"),class:"orangehrm-forgot-password-card-note"},null,8,["note-text"]),(0,a.createVNode)(d,{"note-text":e.$t("auth.follow_link_to_select_password"),class:"orangehrm-forgot-password-card-note"},null,8,["note-text"]),(0,a.createVNode)(d,{"note-text":e.$t("auth.email_not_receive_note"),class:"orangehrm-forgot-password-card-note","has-note":""},null,8,["note-text"])])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var kQ={name:"ResetPasswordSuccess",components:{"card-note":LZ}};const SQ=(0,r.Z)(kQ,[["render",_Q],["__scopeId","data-v-3198c915"]]);var DQ=SQ;const $Q={class:"orangehrm-forgot-password-container"},EQ={class:"orangehrm-forgot-password-wrapper"},TQ={class:"orangehrm-card-container"};function BQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("card-note");return(0,a.openBlock)(),(0,a.createElementBlock)("div",$Q,[(0,a.createElementVNode)("div",EQ,[(0,a.createElementVNode)("div",TQ,[(0,a.createVNode)(i,{tag:"h6",class:"orangehrm-forgot-password-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("auth.reset_password")),1)])),_:1}),(0,a.createVNode)(s),(0,a.createVNode)(d,{"note-text":e.$t("auth.configured_receive_email_notification_note"),class:"orangehrm-forgot-password-card-note","has-note-icon":""},null,8,["note-text"]),(0,a.createVNode)(i,{class:"orangehrm-forgot-password-reset"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{tag:"span",class:"orangehrm-forgot-password-reset--link",onClick:r.navigateUrl},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.click_here")),1)])),_:1},8,["onClick"]),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("auth.back_to_login")),1)])),_:1})])]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])}var IQ={name:"EmailConfigurationWarning",components:{"card-note":LZ},methods:{navigateUrl(){U("/auth/login")}}};const LQ=(0,r.Z)(IQ,[["render",BQ],["__scopeId","data-v-64d8674c"]]);var UQ=LQ,AQ={"auth-login":bZ,"auth-forbidden":NZ,"reset-password":PZ,"auth-admin-access":uQ,"reset-weak-password":HZ,"reset-password-error":tQ,"reset-password-success":DQ,"request-reset-password":VQ,"email-configuration-warning":UQ};function PQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("employee-attendance-widget"),s=(0,a.resolveComponent)("oxd-grid-item"),d=(0,a.resolveComponent)("my-action-summary-widget"),c=(0,a.resolveComponent)("quick-launch-widget"),m=(0,a.resolveComponent)("buzz-latest-post-widget"),u=(0,a.resolveComponent)("employees-on-leave-widget"),p=(0,a.resolveComponent)("employee-subunit-widget"),h=(0,a.resolveComponent)("employee-location-widget"),g=(0,a.resolveComponent)("oxd-grid");return(0,a.openBlock)(),(0,a.createBlock)(g,{class:"orangehrm-dashboard-grid",cols:3},{default:(0,a.withCtx)((()=>[e.$can.read("dashboard_time_widget")?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i)])),_:1})):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(s,{class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d)])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c)])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m)])),_:1}),e.$can.read("dashboard_leave_widget")?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1,class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u)])),_:1})):(0,a.createCommentVNode)("",!0),e.$can.read("dashboard_subunit_widget")?((0,a.openBlock)(),(0,a.createBlock)(s,{key:2,class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(p)])),_:1})):(0,a.createCommentVNode)("",!0),e.$can.read("dashboard_location_widget")?((0,a.openBlock)(),(0,a.createBlock)(s,{key:3,class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h)])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1})}const qQ=["title"];function MQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-grid-item"),c=(0,a.resolveComponent)("oxd-grid"),m=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(m,{icon:"lightning-charge-fill",empty:r.isEmpty,loading:n.isLoading,title:e.$t("dashboard.quick_launch")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{cols:3,class:"orangehrm-quick-launch"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.sortedActions,(e=>((0,a.openBlock)(),(0,a.createBlock)(d,{key:e,class:"orangehrm-quick-launch-card"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{"icon-type":"svg",class:"orangehrm-quick-launch-icon",name:e.icon,title:e.label,onClick:t=>r.onClickAction(e.path)},null,8,["name","title","onClick"]),(0,a.createElementVNode)("div",{class:"orangehrm-quick-launch-heading",title:e.label},[(0,a.createVNode)(s,{tag:"p",class:"--text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)])),_:2},1024)],8,qQ)])),_:2},1024)))),128))])),_:1})])),_:1},8,["empty","loading","title"])}const FQ={class:"orangehrm-dashboard-widget-header"},jQ={class:"orangehrm-dashboard-widget-name"},zQ={key:0,class:"orangehrm-dashboard-widget-body-nocontent"},RQ=["src"];function OQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-loading-spinner"),m=(0,a.resolveComponent)("oxd-sheet");return(0,a.openBlock)(),(0,a.createBlock)(m,{gutters:!1,class:"orangehrm-dashboard-widget"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",FQ,[(0,a.createElementVNode)("div",jQ,[(0,a.createVNode)(i,{name:o.icon,type:o.iconType,class:"orangehrm-dashboard-widget-icon"},null,8,["name","type"]),(0,a.createVNode)(s,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.title),1)])),_:1})]),(0,a.renderSlot)(e.$slots,"action",{},void 0,!0)]),(0,a.createVNode)(d),o.loading?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,class:"orangehrm-dashboard-widget-loader"})):((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:1,ref:"widgetRef",class:(0,a.normalizeClass)(l.widgetBodyClasses)},[(0,a.renderSlot)(e.$slots,"default",{},void 0,!0),o.empty?((0,a.openBlock)(),(0,a.createElementBlock)("div",zQ,[(0,a.createElementVNode)("img",{src:l.defaultPic,alt:"No Content",class:"orangehrm-dashboard-widget-img"},null,8,RQ),(0,a.createVNode)(s,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.emptyText||e.$t("dashboard.not_available")),1)])),_:1})])):(0,a.createCommentVNode)("",!0)],2))])),_:3})}var GQ={name:"BaseWidget",components:{"oxd-sheet":q.OxdSheet,"oxd-icon":q.OxdIcon,"oxd-loading-spinner":q.OxdSpinner},props:{icon:{type:String,required:!0},title:{type:String,required:!0},loading:{type:Boolean,default:!1},empty:{type:Boolean,default:!1},emptyText:{type:String,default:null},iconType:{type:String,default:void 0}},setup(){const e=(0,a.ref)(),t=`${window.appGlobal.publicPath}/images/dashboard_empty_widget_watermark.png`,o=(0,a.computed)((()=>({"orangehrm-dashboard-widget-body":!0,"--scroll-visible":e.value?.scrollHeight>e.value?.clientHeight})));return{widgetRef:e,defaultPic:t,widgetBodyClasses:o}}};const ZQ=(0,r.Z)(GQ,[["render",OQ],["__scopeId","data-v-fcab0262"]]);var QQ=ZQ,HQ={name:"QuickLaunchWidget",components:{"base-widget":QQ},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/shortcuts");return{http:e}},data(){return{isLoading:!1,quickLaunchActions:[]}},computed:{isEmpty(){return 0===this.quickLaunchActions.length},sortedActions(){return[...this.quickLaunchActions].sort(((e,t)=>e.order-t.order))}},beforeMount(){this.isLoading=!0;const e={"leave.assign_leave":{order:1,icon:"leaveassign",label:this.$t("leave.assign_leave"),path:"/leave/assignLeave"},"leave.leave_list":{order:2,icon:"leavelist",label:this.$t("leave.leave_list"),path:"/leave/viewLeaveList"},"time.employee_timesheet":{order:3,icon:"timesheets",label:this.$t("general.timesheets"),path:"/time/viewEmployeeTimesheet"},"leave.apply_leave":{order:4,icon:"leaveapply",label:this.$t("leave.apply_leave"),path:"/leave/applyLeave"},"leave.my_leave":{order:5,icon:"myleaves",label:this.$t("general.my_leave"),path:"/leave/viewMyLeaveList"},"time.my_timesheet":{order:6,icon:"mytimesheet",label:this.$t("time.my_timesheet"),path:"/time/viewMyTimesheet"}};this.http.getAll().then((t=>{const{data:o}=t.data;for(const a in o)o[a]&&this.quickLaunchActions.push(e[a])})).finally((()=>{this.isLoading=!1}))},methods:{onClickAction(e){e&&U(e)}}};const WQ=(0,r.Z)(HQ,[["render",MQ],["__scopeId","data-v-6321cefe"]]);var YQ=WQ;const JQ={class:"orangehrm-buzz-widget-header-text"},XQ=["src"];function KQ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("video-frame"),m=(0,a.resolveComponent)("oxd-grid-item"),u=(0,a.resolveComponent)("oxd-grid"),p=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(p,{icon:"camera-fill",empty:l.isEmpty,loading:l.isLoading,title:e.$t("dashboard.buzz_latest_posts"),"empty-text":e.$t("dashboard.no_posts_added")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{class:"orangehrm-buzz-widget",cols:1},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.posts,(e=>((0,a.openBlock)(),(0,a.createBlock)(m,{key:e,class:"orangehrm-buzz-widget-card"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",{class:"orangehrm-buzz-widget-header",onClick:t[0]||(t[0]=(...e)=>l.onClickPost&&l.onClickPost(...e))},[(0,a.createVNode)(i,{employee:e.employee},null,8,["employee"]),(0,a.createElementVNode)("div",JQ,[(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-widget-header-emp"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.employeeFullName),1)])),_:2},1024),(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-widget-header-time"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.dateTime),1)])),_:2},1024)])]),(0,a.createVNode)(d,{class:"orangehrm-buzz-widget-divider"}),e.text?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,tag:"p",class:"orangehrm-buzz-widget-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.text),1)])),_:2},1024)):(0,a.createCommentVNode)("",!0),e.postImgSrc?((0,a.openBlock)(),(0,a.createElementBlock)("img",{key:1,src:e.postImgSrc,class:"orangehrm-buzz-widget-picture"},null,8,XQ)):(0,a.createCommentVNode)("",!0),e.postVideoSrc?((0,a.openBlock)(),(0,a.createBlock)(c,{key:2,"video-src":e.postVideoSrc},null,8,["video-src"])):(0,a.createCommentVNode)("",!0)])),_:2},1024)))),128))])),_:1})])),_:1},8,["empty","loading","title","empty-text"])}const eH={class:"orangehrm-buzz-video"},tH=["src"];function oH(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",eH,[(0,a.createElementVNode)("iframe",{src:r.embedURL,frameborder:"0",class:"orangehrm-buzz-video-frame",title:"OrangeHRM buzz video frame",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,tH)])}var aH={name:"VideoFrame",props:{videoSrc:{type:String,required:!0}},computed:{embedURL(){return new String(this.videoSrc).trim()}}};const lH=(0,r.Z)(aH,[["render",oH],["__scopeId","data-v-2cbd4256"]]);var nH=lH;function rH(e){const t=(t,o=0,a=!1)=>e.request({method:"GET",url:`/api/v2/buzz/shares/${t}/comments`,params:{limit:o,...a&&{model:"detailed"}}}),o=(t,o)=>e.request({method:"POST",url:`/api/v2/buzz/shares/${t}/comments`,data:{text:o}}),a=(t,o,a)=>e.request({method:"PUT",url:`/api/v2/buzz/shares/${t}/comments/${o}`,data:{text:a}}),l=(t,o)=>e.request({method:"DELETE",url:`/api/v2/buzz/shares/${t}/comments/${o}`}),n=t=>e.request({method:"GET",url:`/api/v2/buzz/shares/${t}/likes`}),r=(t,o,a,l)=>e.request({method:"GET",url:"/api/v2/buzz/feed",params:{limit:t,offset:o,sortOrder:a,sortField:l}}),i=(t,o)=>e.request({method:o?"DELETE":"POST",url:`/api/v2/buzz/shares/${t}/likes`}),s=(t,o)=>e.request({method:o?"DELETE":"POST",url:`/api/v2/buzz/comments/${t}/likes`}),d=t=>e.request({method:"DELETE",url:`/api/v2/buzz/shares/${t}`}),c=(t,o)=>("photo"===o.type&&delete o["link"],"video"===o.type&&(delete o["photos"],delete o["deletedPhotos"]),"text"===o.type&&(delete o["link"],delete o["photos"]),e.request({method:"PUT",url:`/api/v2/buzz/posts/${t}`,data:{...o},params:{model:"detailed"}})),m=(t,o)=>e.request({method:"PUT",url:`/api/v2/buzz/shares/${t}`,data:{text:o},params:{model:"detailed"}});return{fetchPosts:r,updatePost:c,deletePost:d,updatePostLike:i,fetchPostLikes:n,savePostComment:o,updateSharedPost:m,updatePostComment:a,deletePostComment:l,fetchPostComments:t,updateCommentLike:s}}const iH={class:"orangehrm-buzz-profile-image"},sH=["src"];function dH(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",iH,[(0,a.createElementVNode)("img",{alt:"profile picture",src:r.imageSrc},null,8,sH)])}var cH={name:"ProfileImage",props:{employee:{type:Object,required:!0}},computed:{imageSrc(){return`../pim/viewPhoto/empNumber/${this.employee.empNumber}`}}};const mH=(0,r.Z)(cH,[["render",dH],["__scopeId","data-v-7d93b59a"]]);var uH=mH,pH={name:"BuzzLatestPostWidget",components:{"base-widget":QQ,"video-frame":nH,"profile-image":uH},setup(){const e=(0,a.ref)([]),t=(0,a.ref)(!1),{locale:o}=De(),{jsDateFormat:l,jsTimeFormat:n}=R(),{$tEmpName:r}=xa(),{fetchPosts:i}=rH(new P(window.appGlobal.baseUrl,"")),s=(0,a.computed)((()=>0===e.value.length)),d=()=>U("/buzz/viewBuzz");return(0,a.onBeforeMount)((()=>{t.value=!0,i(5,0,"DESC","share.createdAtUtc").then((t=>{const{data:a}=t.data;e.value=a.map((e=>{const{employee:t,createdDate:a,createdTime:i,originalPost:s}=e,d=e.video?.link||null,c=re(`${a} ${i} +00:00`,"yyyy-MM-dd HH:mm xxx"),m=ie(c,`${l} ${n}`,{locale:o}),u=r(t,{includeMiddle:!0,excludePastEmpTag:!1}),p=Array.isArray(e?.photoIds)?`${window.appGlobal.baseUrl}/buzz/photo/${e.photoIds[0]}`:null,h=s?s.text:e.text;return{...e,text:h,dateTime:m,postImgSrc:p,postVideoSrc:d,employeeFullName:u}}))})).finally((()=>{t.value=!1}))})),{posts:e,isEmpty:s,isLoading:t,onClickPost:d}}};const hH=(0,r.Z)(pH,[["render",KQ],["__scopeId","data-v-5021c2bc"]]);var gH=hH;function vH(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-pie-chart"),s=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(s,{icon:"pie-chart-fill",loading:n.isLoading,title:e.$t("dashboard.employee_distribution_by_sub_unit")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{data:n.dataset,"aspect-ratio":!1,"custom-legend":!0,"custom-tooltip":!0,"wrapper-classes":"emp-distrib-chart"},null,8,["data"])])),_:1},8,["loading","title"])}var fH={name:"EmployeeSubunitWidget",components:{"base-widget":QQ,"oxd-pie-chart":q.OxdPieChart},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/employees/subunit");return{http:e}},data(){return{dataset:[],isLoading:!1}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t,meta:o}=e.data,a=[q.CHART_COLORS.COLOR_HEAT_WAVE,q.CHART_COLORS.COLOR_CHROME_YELLOW,q.CHART_COLORS.COLOR_YELLOW_GREEN,q.CHART_COLORS.COLOR_MOUNTAIN_MEADOW,q.CHART_COLORS.COLOR_PACIFIC_BLUE,q.CHART_COLORS.COLOR_BLEU_DE_FRANCE,q.CHART_COLORS.COLOR_MAJORELLE_BLUE,q.CHART_COLORS.COLOR_MEDIUM_ORCHID,q.CHART_COLORS.COLOR_FANDANGO_PINK];this.dataset=t.map(((e,t)=>!!e.count&&{value:e.count,color:a[t],label:e.subunit.name})).filter((e=>e)),o?.otherEmployeeCount&&this.dataset.push({value:o.otherEmployeeCount,color:q.CHART_COLORS.COLOR_FANDANGO_PINK,label:this.$t("pim.other")}),o?.unassignedEmployeeCount&&this.dataset.push({value:o.unassignedEmployeeCount,color:q.CHART_COLORS.COLOR_TART_ORANGE,label:this.$t("dashboard.unassigned")})})).finally((()=>{this.isLoading=!1}))}};const yH=(0,r.Z)(fH,[["render",vH],["__scopeId","data-v-8c1519ac"]]);var CH=yH;const bH={key:0,class:"orangehrm-todo-list"},VH={key:0,class:"orangehrm-todo-list-item"},xH={key:1,class:"orangehrm-todo-list-item"},wH={key:2,class:"orangehrm-todo-list-item"},NH={key:3,class:"orangehrm-todo-list-item"},_H={key:4,class:"orangehrm-todo-list-item"};function kH(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(d,{icon:"list-check",empty:r.isEmpty,"empty-text":r.emptyText,loading:e.isLoading,title:e.$t("dashboard.my_actions")},{default:(0,a.withCtx)((()=>[n.myActions.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",bH,[n.leaveRequestCount>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",VH,[(0,a.createVNode)(i,{class:"orangehrm-report-icon",name:"attendanceAlt","icon-type":"svg","display-type":"success",onClick:r.onClickPendingLeave},null,8,["onClick"]),(0,a.createVNode)(s,{tag:"p",onClick:r.onClickPendingLeave},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.n_pending_leave_request",{pendingActionsCount:n.leaveRequestCount})),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0),n.timeSheetCount>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",xH,[(0,a.createVNode)(i,{class:"orangehrm-report-icon",name:"timeAlt","icon-type":"svg","display-type":"warn",onClick:r.onClickPendingTimesheet},null,8,["onClick"]),(0,a.createVNode)(s,{tag:"p",onClick:r.onClickPendingTimesheet},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.n_pending_time_sheet",{pendingActionsCount:n.timeSheetCount})),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0),n.reviewCount>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",wH,[(0,a.createVNode)(i,{class:"orangehrm-report-icon",name:"appraisals","icon-type":"svg","display-type":"danger",onClick:r.onClickPendingReview},null,8,["onClick"]),(0,a.createVNode)(s,{tag:"p",onClick:r.onClickPendingReview},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.n_pending_performance_evaluate",{pendingActionsCount:n.reviewCount})),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0),n.selfReviewCount>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",NH,[(0,a.createVNode)(i,{class:"orangehrm-report-icon",name:"appraisals","icon-type":"svg","display-type":"danger",onClick:r.onClickPendingReview},null,8,["onClick"]),(0,a.createVNode)(s,{tag:"p",onClick:r.onClickSelfReview},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.n_pending_self_review",{pendingActionsCount:n.selfReviewCount})),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0),n.interviewCount>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",_H,[(0,a.createVNode)(i,{class:"orangehrm-report-icon",name:"interview","icon-type":"svg","display-type":"info",onClick:r.onClickPendingInterview},null,8,["onClick"]),(0,a.createVNode)(s,{tag:"p",onClick:r.onClickPendingInterview},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.n_pending_candidate_interview",{pendingActionsCount:n.interviewCount})),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0)])):(0,a.createCommentVNode)("",!0)])),_:1},8,["empty","empty-text","loading","title"])}var SH={name:"MyActionSummaryWidget",components:{"base-widget":QQ},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/employees/action-summary");return{http:e}},data(){return{myActions:[],leaveRequestCount:0,timeSheetCount:0,reviewCount:0,selfReviewCount:0,interviewCount:0}},computed:{isEmpty(){return 0===this.myActions.length},emptyText(){return this.$t("dashboard.no_pending_actions")}},beforeMount(){this.isLoading=!1,this.http.getAll().then((e=>{const{data:t}=e.data;this.myActions=t.map((e=>{const{group:t,pendingActionCount:o}=e;"Leave Requests To Approve"===t&&(this.leaveRequestCount=o),"Timesheets To Approve"===t&&(this.timeSheetCount=o),"Pending Appraisal Reviews"===t&&(this.reviewCount=o),"Pending Self Reviews"===t&&(this.selfReviewCount=o),"Candidates To Interview"===t&&(this.interviewCount=o)}))})).finally((()=>{this.isLoading=!1}))},methods:{onClickPendingLeave(){U("/leave/viewLeaveList")},onClickPendingTimesheet(){U("/time/viewEmployeeTimesheet")},onClickPendingReview(){U("/performance/searchEvaluatePerformanceReview")},onClickPendingInterview(){U("/recruitment/viewCandidates",void 0,{statusId:4})},onClickSelfReview(){U("/performance/myPerformanceReview")}}};const DH=(0,r.Z)(SH,[["render",kH],["__scopeId","data-v-267ef1b2"]]);var $H=DH;function EH(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-pie-chart"),s=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(s,{icon:"pie-chart-fill",loading:n.isLoading,title:e.$t("dashboard.employee_distribution_by_location")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{data:n.dataset,"aspect-ratio":!1,"custom-legend":!0,"custom-tooltip":!0,"wrapper-classes":"emp-distrib-chart"},null,8,["data"])])),_:1},8,["loading","title"])}var TH={name:"EmployeeLocationWidget",components:{"base-widget":QQ,"oxd-pie-chart":q.OxdPieChart},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/employees/locations");return{http:e}},data(){return{dataset:[],isLoading:!1}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t,meta:o}=e.data,a=[q.CHART_COLORS.COLOR_HEAT_WAVE,q.CHART_COLORS.COLOR_CHROME_YELLOW,q.CHART_COLORS.COLOR_YELLOW_GREEN,q.CHART_COLORS.COLOR_MOUNTAIN_MEADOW,q.CHART_COLORS.COLOR_PACIFIC_BLUE,q.CHART_COLORS.COLOR_BLEU_DE_FRANCE,q.CHART_COLORS.COLOR_MAJORELLE_BLUE,q.CHART_COLORS.COLOR_MEDIUM_ORCHID,q.CHART_COLORS.COLOR_FANDANGO_PINK];this.dataset=t.map(((e,t)=>!!e.count&&{value:e.count,color:a[t],label:e.location.name})).filter((e=>e)),o?.otherEmployeeCount&&this.dataset.push({value:o.otherEmployeeCount,color:q.CHART_COLORS.COLOR_FANDANGO_PINK,label:this.$t("pim.other")}),o?.unassignedEmployeeCount&&this.dataset.push({value:o.unassignedEmployeeCount,color:q.CHART_COLORS.COLOR_TART_ORANGE,label:this.$t("dashboard.unassigned")})})).finally((()=>{this.isLoading=!1}))}};const BH=(0,r.Z)(TH,[["render",EH],["__scopeId","data-v-f6125ed6"]]);var IH=BH;const LH={class:"orangehrm-leave-card-profile-image"},UH=["src"],AH={class:"orangehrm-leave-card-details"};function PH(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("base-widget"),c=(0,a.resolveComponent)("employees-on-leave-config-modal");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(d,{icon:"leaveAlt","icon-type":"svg",class:"emp-leave-chart",empty:r.isEmpty,"empty-text":r.emptyText,loading:n.isLoading,title:e.$t("dashboard.employees_on_leave_today")},(0,a.createSlots)({default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.leaveList,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:e,class:"orangehrm-leave-card"},[(0,a.createElementVNode)("div",LH,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:`../pim/viewPhoto/empNumber/${e.empNumber}`},null,8,UH)]),(0,a.createElementVNode)("div",AH,[(0,a.createVNode)(s,{tag:"p",class:"orangehrm-leave-card-emp-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.empName),1)])),_:2},1024),e.leaveType?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,tag:"p",class:"orangehrm-leave-card-leave-details"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.leaveType),1)])),_:2},1024)):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(s,{tag:"p",class:"orangehrm-leave-card-emp-id"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.employeeId),1)])),_:2},1024)])))),128))])),_:2},[e.$can.update("dashboard_employees_on_leave_today_config")?{name:"action",fn:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{class:"orangehrm-leave-card-icon",name:"gear-fill",onClick:r.onClickConfig},null,8,["onClick"])])),key:"0"}:void 0]),1032,["empty","empty-text","loading","title"]),n.showConfigModal?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,onClose:r.onConfigModalClose},null,8,["onClose"])):(0,a.createCommentVNode)("",!0)],64)}const qH={class:"orangehrm-modal-header"},MH={class:"orangehrm-config-title"};function FH(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-input-field"),m=(0,a.resolveComponent)("oxd-form-row"),u=(0,a.resolveComponent)("oxd-button"),p=(0,a.resolveComponent)("submit-button"),h=(0,a.resolveComponent)("oxd-form-actions"),g=(0,a.resolveComponent)("oxd-form"),v=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(v,{class:"orangehrm-dialog-modal","onUpdate:show":r.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",qH,[(0,a.createVNode)(i,{type:"svg",name:"leaveAlt"}),(0,a.createElementVNode)("div",MH,[(0,a.createVNode)(s,{type:"card-body"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.employees_on_leave_today")),1)])),_:1}),(0,a.createVNode)(s,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.configurations")),1)])),_:1})])]),(0,a.createVNode)(d),(0,a.createVNode)(g,{loading:n.isLoading,onSubmitValid:r.onSave},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{class:"orangehrm-config-checkbox"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{modelValue:n.showAccessibleEmployeesOnly,"onUpdate:modelValue":t[0]||(t[0]=e=>n.showAccessibleEmployeesOnly=e),type:"switch",label:e.$t("dashboard.only_show_accessible_employees_on_leave_for_other_users")},null,8,["modelValue","label"])])),_:1}),(0,a.createVNode)(d),(0,a.createVNode)(h,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,{type:"button","display-type":"ghost",label:e.$t("general.cancel"),onClick:r.onCancel},null,8,["label","onClick"]),(0,a.createVNode)(p)])),_:1})])),_:1},8,["loading","onSubmitValid"])])),_:1},8,["onUpdate:show"])}var jH={name:"EmployeesOnLeaveConfigModal",components:{"oxd-icon":q.OxdIcon,"oxd-dialog":q.OxdDialog},emits:["close"],setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/config/employee-on-leave-today");return{http:e}},data(){return{isLoading:!1,showAccessibleEmployeesOnly:!1}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.showAccessibleEmployeesOnly=t.showOnlyAccessibleEmployeesOnLeaveToday})).finally((()=>this.isLoading=!1))},methods:{onSave(){this.isLoading=!0,this.http.request({method:"PUT",data:{showOnlyAccessibleEmployeesOnLeaveToday:this.showAccessibleEmployeesOnly}}).then((()=>{this.$toast.updateSuccess(),this.onCancel()}))},onCancel(){this.$emit("close",!0)}}};const zH=(0,r.Z)(jH,[["render",FH],["__scopeId","data-v-729478c0"]]);var RH=zH,OH={name:"EmployeesOnLeaveWidget",components:{"oxd-icon":q.OxdIcon,"base-widget":QQ,"employees-on-leave-config-modal":RH},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/employees/leaves"),{$tEmpName:t}=xa();return{http:e,tEmpName:t}},data(){return{leaveList:[],isLoading:!1,leavePeriod:null,showConfigModal:!1}},computed:{isEmpty(){return 0===this.leaveList.length},emptyText(){return this.leavePeriod?this.$t("dashboard.no_employees_are_on_leave_today"):this.$t("dashboard.leave_period_not_defined")}},beforeMount(){this.isLoading=!0,this.http.getAll({date:ie(ne(),"yyyy-MM-dd")}).then((e=>{const{data:t,meta:o}=e.data;this.leaveList=t.map((e=>{const{employee:t,leaveType:o,duration:a}=e;let l=o?.name;return l&&"half_day_morning"===a&&(l+=` (${this.$t("leave.half_day_morning")})`),l&&"half_day_afternoon"===a&&(l+=` (${this.$t("leave.half_day_evening")})`),l&&"specify_time"===a&&(l+=` (${e.startTime} - ${e.endTime})`),{leaveType:l,empNumber:t.empNumber,employeeId:t.employeeId,empName:this.tEmpName(t,{includeMiddle:!1,excludePastEmpTag:!1})}})),this.leavePeriod=o?.leavePeriodDefined})).finally((()=>{this.isLoading=!1}))},methods:{onClickConfig(){this.showConfigModal=!0},onConfigModalClose(){this.showConfigModal=!1}}};const GH=(0,r.Z)(OH,[["render",PH],["__scopeId","data-v-0bbde4fe"]]);var ZH=GH;const QH={class:"orangehrm-attendance-card"},HH={class:"orangehrm-attendance-card-profile"},WH={class:"orangehrm-attendance-card-profile-image"},YH=["src"],JH={class:"orangehrm-attendance-card-profile-record"},XH={class:"orangehrm-attendance-card-bar"},KH={class:"orangehrm-attendance-card-summary"},eW={class:"orangehrm-attendance-card-summary-week"},tW={class:"orangehrm-attendance-card-summary-total"};function oW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-icon-button"),d=(0,a.resolveComponent)("oxd-divider"),c=(0,a.resolveComponent)("oxd-icon"),m=(0,a.resolveComponent)("oxd-bar-chart"),u=(0,a.resolveComponent)("base-widget");return(0,a.openBlock)(),(0,a.createBlock)(u,{icon:"clock-fill",loading:n.isLoading,title:e.$t("dashboard.time_at_work")},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",QH,[(0,a.createElementVNode)("div",HH,[(0,a.createElementVNode)("div",WH,[(0,a.createElementVNode)("img",{alt:"profile picture",class:"employee-image",src:`../pim/viewPhoto/empNumber/${n.empNumber}`},null,8,YH)]),(0,a.createElementVNode)("div",JH,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-card-state"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.lastState),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-card-details"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.lastRecord),1)])),_:1})])]),(0,a.createElementVNode)("div",XH,[(0,a.createVNode)(i,{tag:"span",class:"orangehrm-attendance-card-fulltime"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("b",null,(0,a.toDisplayString)(n.dayTotal.hours)+"h",1),(0,a.createTextVNode)(),(0,a.createElementVNode)("b",null,(0,a.toDisplayString)(n.dayTotal.minutes)+"m",1),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("dashboard.today")),1)])),_:1}),(0,a.createVNode)(s,{name:"stopwatch","display-type":"solid-main",class:"orangehrm-attendance-card-action",onClick:r.onClickPunchIn},null,8,["onClick"])]),(0,a.createVNode)(d),(0,a.createElementVNode)("div",KH,[(0,a.createElementVNode)("div",eW,[(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("dashboard.this_week")),1)])),_:1}),(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.currentWeek),1)])),_:1})]),(0,a.createElementVNode)("div",tW,[(0,a.createVNode)(c,{name:"stopwatch",class:"orangehrm-attendance-card-icon"}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-attendance-card-fulltime"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(n.weekTotal.hours)+"h "+(0,a.toDisplayString)(n.weekTotal.minutes)+"m ",1)])),_:1})])])]),(0,a.createVNode)(m,{grid:!1,data:n.dataset,"y-axsis":!1,"aspect-ratio":!1,"wrapper-classes":"emp-attendance-chart"},null,8,["data"])])),_:1},8,["loading","title"])}var aW={name:"EmployeeAttendanceWidget",components:{"oxd-icon":q.OxdIcon,"base-widget":QQ,"oxd-bar-chart":q.OxdBarChart},setup(){const{locale:e}=De(),t=new P(window.appGlobal.baseUrl,"/api/v2/dashboard/employees/time-at-work");return{http:t,locale:e}},data(){return{dataset:[],state:null,endDate:null,userDate:null,userTime:null,startDate:null,isLoading:!1,empNumber:null,timezoneOffset:null,dayTotal:{hours:0,minutes:0},weekTotal:{hours:0,minutes:0}}},computed:{lastState(){switch(this.state){case"PUNCHED IN":return this.$t("attendance.punched_in");case"PUNCHED OUT":return this.$t("attendance.punched_out");default:return this.$t("attendance.not_punched_in")}},lastRecord(){if(!this.userDate||!this.userTime)return null;const e=re(`${this.userDate} ${this.userTime}`,"yyyy-MM-dd HH:mm"),t=ie(e,"hh:mm a",{locale:this.locale});if(!(0,ae.Z)(e)){const o=ie(e,"MMM do",{locale:this.locale});return this.$t("dashboard.state_date_at_time_timezone_offset",{lastState:this.lastState,date:o,time:t,timezoneOffset:this.timezoneOffset})}return this.$t("dashboard.state_today_at_time_timezone_offset",{lastState:this.lastState,time:t,timezoneOffset:this.timezoneOffset})},currentWeek(){if(!this.startDate||!this.endDate)return null;const e=ie(re(this.startDate),"MMM dd",{locale:this.locale}),t=ie(re(this.endDate),"MMM dd",{locale:this.locale});return`${e} - ${t}`}},beforeMount(){this.fetchWidgetData()},methods:{onClickPunchIn(){U("/attendance/punchIn")},fetchWidgetData(){this.isLoading=!0;const e=ne(),t=e.getTimezoneOffset()/60*-1;this.http.getAll({timezoneOffset:t,currentDate:ie(e,"yyyy-MM-dd"),currentTime:ie(new Date,"HH:mm")}).then((e=>{const{data:t,meta:o}=e.data;this.dataset=t.map((e=>({value:e.totalTime.hours+e.totalTime.minutes/60,label:this.$t(`general.${new String(e.workDay.day).toLowerCase()}`),color:q.CHART_COLORS.COLOR_HEAT_WAVE})));const{lastAction:a,currentDay:l,currentWeek:n,currentUser:r}=o;a&&(this.state=a.state,this.userDate=a.userDate,this.userTime=a.userTime,this.timezoneOffset=a.timezoneOffset),n&&(this.weekTotal=n.totalTime,this.endDate=n.endDate?.date,this.startDate=n.startDate?.date),l&&(this.dayTotal=l.totalTime),r&&(this.empNumber=r.empNumber)})).finally((()=>{this.isLoading=!1}))}}};const lW=(0,r.Z)(aW,[["render",oW],["__scopeId","data-v-98346df6"]]);var nW=lW,rW={components:{"quick-launch-widget":YQ,"buzz-latest-post-widget":gH,"employee-subunit-widget":CH,"my-action-summary-widget":$H,"employee-location-widget":IH,"employees-on-leave-widget":ZH,"employee-attendance-widget":nW},mounted(){const e=new P(window.appGlobal.baseUrl,"events/push");e.create()}};const iW=(0,r.Z)(rW,[["render",PQ],["__scopeId","data-v-47e79c96"]]);var sW=iW,dW={"view-dashboard":sW};function cW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("post-filters"),s=(0,a.resolveComponent)("news-feed"),d=(0,a.resolveComponent)("oxd-tab-panel"),c=(0,a.resolveComponent)("upcoming-anniversaries"),m=(0,a.resolveComponent)("oxd-tab-container"),u=(0,a.resolveComponent)("oxd-grid-item"),p=(0,a.resolveComponent)("oxd-grid");return l.isMobile?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,ref:"swipeRef",modelValue:l.tabSelector,"onUpdate:modelValue":t[0]||(t[0]=e=>l.tabSelector=e),"keep-alive":!0},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{key:"buzz_newsfeed",name:e.$t("buzz.buzz_newsfeed")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{mobile:!0,employee:o.employee,"sort-field":l.sortField},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{mobile:!0,filter:l.sortField,onUpdatePriority:l.onUpdatePriority},null,8,["filter","onUpdatePriority"])])),_:1},8,["employee","sort-field"])])),_:1},8,["name"]),(0,a.createVNode)(d,{key:"buzz_anniversary",name:e.$t("buzz.upcoming_anniversaries")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c)])),_:1},8,["name"])])),_:1},8,["modelValue"])):l.width<1920?((0,a.openBlock)(),(0,a.createBlock)(p,{key:1,cols:2,class:"orangehrm-buzz-layout"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{employee:o.employee,"sort-field":l.sortField},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{filter:l.sortField,onUpdatePriority:l.onUpdatePriority},null,8,["filter","onUpdatePriority"])])),_:1},8,["employee","sort-field"])])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c)])),_:1})])),_:1})):((0,a.openBlock)(),(0,a.createBlock)(p,{key:2,cols:3,class:"orangehrm-buzz-layout"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{filter:l.sortField,onUpdatePriority:l.onUpdatePriority},null,8,["filter","onUpdatePriority"])])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{employee:o.employee,"sort-field":l.sortField},null,8,["employee","sort-field"])])),_:1}),(0,a.createVNode)(u,null,{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c)])),_:1})])),_:1}))}var mW=o(840),uW=o.n(mW);function pW(e){let t;const o=(0,a.ref)();return(0,a.onMounted)((()=>{if(!o.value)return;t=new(uW().Manager)(o.value?.$el||o.value);const a=new(uW().Swipe);t.add(a),t.on("swipe",e)})),(0,a.onBeforeUnmount)((()=>{t?.destroy()})),{swipeContainer:o}}const hW={class:"orangehrm-buzz-newsfeed"},gW=["src"];function vW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("create-post"),d=(0,a.resolveComponent)("post-body"),c=(0,a.resolveComponent)("post-actions"),m=(0,a.resolveComponent)("post-stats"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("post-comment-container"),h=(0,a.resolveComponent)("post-container"),g=(0,a.resolveComponent)("oxd-grid-item"),v=(0,a.resolveComponent)("oxd-grid"),f=(0,a.resolveComponent)("oxd-loading-spinner"),y=(0,a.resolveComponent)("edit-post-modal"),C=(0,a.resolveComponent)("share-post-modal"),b=(0,a.resolveComponent)("photo-carousel"),V=(0,a.resolveComponent)("delete-confirmation");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",hW,[(0,a.createVNode)(i,{type:"card-title",class:"orangehrm-buzz-newsfeed-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.buzz_newsfeed")),1)])),_:1}),((0,a.openBlock)(),(0,a.createBlock)(s,{key:e.posts,employee:o.employee,onRefresh:l.resetFeed},null,8,["employee","onRefresh"])),(0,a.renderSlot)(e.$slots,"default",{},void 0,!0),(0,a.createVNode)(v,{cols:1,class:"orangehrm-buzz-newsfeed-posts"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.posts,((e,t)=>((0,a.openBlock)(),(0,a.createBlock)(g,{key:e},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(h,{post:e,onEdit:e=>l.onEdit(t),onDelete:e=>l.onDelete(t)},(0,a.createSlots)({content:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{post:e,onSelectPhoto:e=>l.onSelectPhoto(e,t)},null,8,["post","onSelectPhoto"])])),actionButton:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{post:e,onLike:e=>l.onLike(t),onShare:e=>l.onShare(t),onComment:e=>l.onComment(t)},null,8,["post","onLike","onShare","onComment"])])),postStats:(0,a.withCtx)((()=>[(0,a.createVNode)(m,{post:e,mobile:o.mobile,onComment:e=>l.onComment(t)},null,8,["post","mobile","onComment"])])),_:2},[e.showComments?{name:"comments",fn:(0,a.withCtx)((()=>[(0,a.createVNode)(u),(0,a.createVNode)(p,{"post-id":e.id,employee:o.employee,onCreate:e=>l.onCreateComment(t),onDelete:e=>l.onDeleteComment(t)},null,8,["post-id","employee","onCreate","onDelete"])])),key:"0"}:void 0]),1032,["post","onEdit","onDelete"])])),_:2},1024)))),128)),(0,a.withDirectives)((0,a.createVNode)(g,{class:"orangehrm-buzz-newsfeed-noposts"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("img",{src:l.noPostsPic,alt:"No Posts"},null,8,gW),(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.no_posts_available")),1)])),_:1})])),_:1},512),[[a.vShow,!e.isLoading&&0===e.posts.length]])])),_:1}),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(f,{key:0,class:"orangehrm-buzz-newsfeed-loader"})):(0,a.createCommentVNode)("",!0)]),e.showEditModal?((0,a.openBlock)(),(0,a.createBlock)(y,{key:0,employee:o.employee,data:e.editModalState.post,onClose:l.onCloseEditModal},null,8,["employee","data","onClose"])):(0,a.createCommentVNode)("",!0),e.showShareModal?((0,a.openBlock)(),(0,a.createBlock)(C,{key:1,employee:o.employee,data:e.shareModalState,onClose:l.onCloseShareModal},null,8,["employee","data","onClose"])):(0,a.createCommentVNode)("",!0),e.showPhotoCarousel?((0,a.openBlock)(),(0,a.createBlock)(b,{key:2,mobile:o.mobile,post:e.photoCarouselState.post,"photo-index":e.photoCarouselState.photoIndex,onClose:l.onClosePhotoCarousel,onLike:t[0]||(t[0]=t=>l.onLike(e.photoCarouselState.postIndex)),onCreateComment:t[1]||(t[1]=t=>l.onCreateComment(e.photoCarouselState.postIndex)),onDeleteComment:t[2]||(t[2]=t=>l.onDeleteComment(e.photoCarouselState.postIndex))},null,8,["mobile","post","photo-index","onClose"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(V,{ref:"deleteDialog",message:e.$t("buzz.post_delete_confirmation_message")},null,8,["message"])],64)}const fW={class:"orangehrm-buzz-post-body"},yW={key:1},CW=["onClick"],bW=["onClick"],VW={key:0};function xW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("video-frame"),d=(0,a.resolveComponent)("oxd-icon"),c=(0,a.resolveComponent)("photo-frame");return(0,a.openBlock)(),(0,a.createElementBlock)("div",fW,[o.post.text?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,tag:"p",class:(0,a.normalizeClass)(l.postClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.post.text),1)])),_:1},8,["class"])):(0,a.createCommentVNode)("",!0),(0,a.withDirectives)((0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-post-body-readmore",onClick:l.onClickReadMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.read_more")),1)])),_:1},8,["onClick"]),[[a.vShow,!e.readMore]]),!o.post.text||"video"!==o.post.type&&"photo"!==o.post.type?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("br",yW)),"video"===o.post.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:2,"video-src":o.post.video.link},null,8,["video-src"])):(0,a.createCommentVNode)("",!0),"photo"===o.post.type?((0,a.openBlock)(),(0,a.createBlock)(c,{key:3,media:o.post.photoIds},{content:(0,a.withCtx)((({index:e})=>[3===e&&5===o.post.photoIds.length?((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:0,class:"orangehrm-buzz-post-body-picture --more",onClick:t=>l.onClickPicture(e)},[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-post-body-more"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)("+1")])),_:1}),(0,a.createVNode)(d,{class:"orangehrm-buzz-post-body-more",name:"images"})],8,CW)):((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:1,class:"orangehrm-buzz-post-body-picture",onClick:t=>l.onClickPicture(e)},null,8,bW))])),_:1},8,["media"])):(0,a.createCommentVNode)("",!0),l.originalPost?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:4},[o.post.text||"video"===o.post.type||"photo"===o.post.type?((0,a.openBlock)(),(0,a.createElementBlock)("br",VW)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-post-body-employee"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.employee),1)])),_:1}),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-post-body-date"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.dateTime),1)])),_:1}),l.originalPost.text?((0,a.openBlock)(),(0,a.createBlock)(i,{key:1,tag:"p",class:"orangehrm-buzz-post-body-original-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.text),1)])),_:1})):(0,a.createCommentVNode)("",!0)],64)):(0,a.createCommentVNode)("",!0)])}const wW=["src"];function NW(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)(r.classes)},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(r.photos,((t,o)=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t,class:"orangehrm-buzz-photos-item"},[(0,a.renderSlot)(e.$slots,"content",{data:t,index:o},void 0,!0),(0,a.createElementVNode)("img",{src:t},null,8,wW)])))),128))],2)}var _W={name:"PhotoFrame",props:{media:{type:Array,required:!0}},computed:{classes(){return{"orangehrm-buzz-photos":!0,"--two-thumbnails":2===this.media.length,"--three-thumbnails":3===this.media.length,"--four-thumbnails":4===this.media.length,"--five-thumbnails":5===this.media.length}},photos(){return(this.media||[]).map((e=>{if("number"===typeof e)return`${window.appGlobal.baseUrl}/buzz/photo/${e}`;const{type:t,base64:o}=e;return`data:${t};base64,${o}`}))}}};const kW=(0,r.Z)(_W,[["render",NW],["__scopeId","data-v-1e5473e0"]]);var SW=kW,DW={name:"PostBody",components:{"oxd-icon":q.OxdIcon,"photo-frame":SW,"video-frame":nH},props:{post:{type:Object,required:!0}},emits:["close","selectPhoto"],setup(e,t){const{locale:o}=De(),{jsDateFormat:l,jsTimeFormat:n}=R(),{$tEmpName:r}=xa(),i=(0,a.reactive)({readMore:new String(e.post?.text).length<500}),s=(0,a.computed)((()=>({"orangehrm-buzz-post-body-text":!0,"--truncate":!1===i.readMore}))),d=()=>{i.readMore=!i.readMore},c=e=>{t.emit("selectPhoto",e)},m=(0,a.computed)((()=>{if(null===e.post.originalPost)return null;const{createdDate:t,createdTime:a}=e.post.originalPost,i=re(`${t} ${a} +00:00`,"yyyy-MM-dd HH:mm xxx");return{text:e.post.originalPost.text,employee:r(e.post.originalPost.employee,{includeMiddle:!0,excludePastEmpTag:!1}),dateTime:ie(i,`${l} ${n}`,{locale:o})}}));return{postClasses:s,originalPost:m,onClickPicture:c,onClickReadMore:d,...(0,a.toRefs)(i)}}};const $W=(0,r.Z)(DW,[["render",xW],["__scopeId","data-v-6a53586a"]]);var EW=$W;const TW={class:"orangehrm-buzz-stats"},BW={class:"orangehrm-buzz-stats-row"},IW={class:"orangehrm-buzz-stats-row"};function LW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("post-stats-modal"),c=(0,a.resolveDirective)("click-outside");return(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("div",TW,[(0,a.createElementVNode)("div",BW,[(0,a.createVNode)(i,{name:"heart-fill",class:"orangehrm-buzz-stats-like-icon"}),(0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.likesClasses),onClick:r.onShowLikeList},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.likesCount),1)])),_:1},8,["class","onClick"]),n.showLikeList?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,type:"likes",icon:"heart-fill",mobile:o.mobile,"post-id":o.post.id,onClose:r.onClose},null,8,["mobile","post-id","onClose"])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",IW,[(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-stats-active",onClick:r.onShowComments},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.commentsCount),1)])),_:1},8,["onClick"]),r.sharesCount?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createTextVNode)(" ‚  "),(0,a.createVNode)(s,{tag:"p",class:(0,a.normalizeClass)(r.sharesClasses),onClick:r.onShowSharesList},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.sharesCount),1)])),_:1},8,["class","onClick"])],64)):(0,a.createCommentVNode)("",!0),n.showSharesList?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,type:"shares",icon:"share-fill",mobile:o.mobile,"post-id":o.post.post.id,onClose:r.onClose},null,8,["mobile","post-id","onClose"])):(0,a.createCommentVNode)("",!0)])])),[[c,r.onClose]])}const UW={class:"orangehrm-buzz-stats-dialog-header"};function AW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-loading-spinner"),c=(0,a.resolveComponent)("oxd-sheet"),m=(0,a.resolveComponent)("oxd-icon"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-dialog");return o.mobile?((0,a.openBlock)(),(0,a.createBlock)(p,{key:1,class:"orangehrm-buzz-stats-dialog","onUpdate:show":l.onClose},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",UW,[(0,a.createVNode)(m,{class:(0,a.normalizeClass)({"orangehrm-buzz-stats-dialog-icon":!0,"--likes":"likes"===o.type}),name:o.icon,"with-container":!0},null,8,["class","name"]),"shares"===o.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.n_share",{shareCount:e.total})),1)])),_:1})):(0,a.createCommentVNode)("",!0),"likes"===o.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:1},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.n_like",{likesCount:e.total})),1)])),_:1})):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(u),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.users,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:e,class:"orangehrm-buzz-stats-dialog-employee"},[(0,a.createVNode)(i,{employee:e.employee},null,8,["employee"]),(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-stats-dialog-employee-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.fullName),1)])),_:2},1024)])))),128)),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-buzz-loader"})):(0,a.createCommentVNode)("",!0)])),_:1},8,["onUpdate:show"])):((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,gutters:!1,type:"white",class:"orangehrm-buzz-stats-modal"},{default:(0,a.withCtx)((()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.users,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:e,class:"orangehrm-buzz-stats-modal-employee"},[(0,a.createVNode)(i,{employee:e.employee},null,8,["employee"]),(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-stats-modal-employee-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.fullName),1)])),_:2},1024)])))),128)),e.isLoading?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,class:"orangehrm-buzz-loader"})):(0,a.createCommentVNode)("",!0)])),_:1}))}var PW={name:"PostStatsModal",components:{"oxd-icon":q.OxdIcon,"oxd-sheet":q.OxdSheet,"oxd-dialog":q.OxdDialog,"profile-image":uH,"oxd-loading-spinner":q.OxdSpinner},props:{postId:{type:Number,required:!0},type:{type:String,required:!0},icon:{type:String,required:!0},mobile:{type:Boolean,default:!1}},emits:["close"],setup(e,t){let o;const l=10,{$tEmpName:n}=xa();switch(e.type){case"likes":o=`/api/v2/buzz/shares/${e.postId}/likes`;break;case"shares":o=`/api/v2/buzz/posts/${e.postId}/shares`;break;default:break}const r=new P(window.appGlobal.baseUrl,o),i=(0,a.reactive)({total:0,offset:0,users:[],isLoading:!1}),s=()=>{i.isLoading=!0,r.getAll({limit:l,offset:i.offset}).then((e=>{const{data:t,meta:o}=e.data;if(i.total=o?.total||0,Array.isArray(t)){const e=t.map((e=>{const{employee:t}=e;return{employee:t,fullName:n(t,{includeMiddle:!1,excludePastEmpTag:!1})}}));i.users=[...i.users,...e]}})).finally((()=>i.isLoading=!1))};lR((()=>{i.users.length>=i.total||(i.offset+=l,s())})),(0,a.onBeforeMount)((()=>s()));const d=()=>{t.emit("close")};return{onClose:d,fetchData:s,...(0,a.toRefs)(i)}}};const qW=(0,r.Z)(PW,[["render",AW],["__scopeId","data-v-77c45dfa"]]);var MW=qW,FW={name:"PostStats",components:{"oxd-icon":q.OxdIcon,"post-stats-modal":MW},directives:{"click-outside":q.clickOutsideDirective},props:{post:{type:Object,required:!0},mobile:{type:Boolean,default:!1}},emits:["comment"],data(){return{showLikeList:!1,showSharesList:!1}},computed:{likesCount(){return this.$t("buzz.n_like",{likesCount:this.post.stats?.numOfLikes||0})},sharesCount(){return null===this.post.stats?.numOfShares?null:this.$t("buzz.n_share",{shareCount:this.post.stats?.numOfShares||0})},commentsCount(){return this.$t("buzz.n_comment",{commentCount:this.post.stats?.numOfComments||0})},likesClasses(){return{"orangehrm-buzz-stats-active":this.post.stats?.numOfLikes>0}},sharesClasses(){return{"orangehrm-buzz-stats-active":this.post.stats?.numOfShares>0}}},methods:{onShowComments(){this.$emit("comment")},onShowLikeList(){this.showSharesList=!1,this.post.stats?.numOfLikes&&(this.showLikeList=!0)},onShowSharesList(){this.showLikeList=!1,this.post.stats?.numOfShares&&(this.showSharesList=!0)},onClose(){this.showLikeList=!1,this.showSharesList=!1}}};const jW=(0,r.Z)(FW,[["render",LW],["__scopeId","data-v-096b057d"]]);var zW=jW;const RW={class:"orangehrm-buzz-create-post-header"},OW={class:"orangehrm-buzz-create-post-header-text"},GW={class:"orangehrm-buzz-create-post-actions"};function ZW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-button"),d=(0,a.resolveComponent)("oxd-buzz-post-input"),c=(0,a.resolveComponent)("oxd-form"),m=(0,a.resolveComponent)("oxd-divider"),u=(0,a.resolveComponent)("oxd-glass-button"),p=(0,a.resolveComponent)("oxd-sheet"),h=(0,a.resolveComponent)("share-video-modal"),g=(0,a.resolveComponent)("share-photo-modal");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(p,{class:"orangehrm-buzz-create-post"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",RW,[(0,a.createVNode)(i,{employee:o.employee},null,8,["employee"]),(0,a.createElementVNode)("div",OW,[(0,a.createVNode)(c,{onSubmitValid:l.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{modelValue:l.post,"onUpdate:modelValue":t[0]||(t[0]=e=>l.post=e),rules:l.rules,placeholder:e.$t("buzz.post_placeholder")},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{type:"submit",label:e.$t("buzz.post")},null,8,["label"])])),_:1},8,["modelValue","rules","placeholder"])])),_:1},8,["onSubmitValid"])])]),(0,a.createVNode)(m),(0,a.createElementVNode)("div",GW,[(0,a.createVNode)(u,{icon:"cameraglass",label:e.$t("buzz.share_photos"),onClick:l.onClickSharePhotos},null,8,["label","onClick"]),(0,a.createVNode)(u,{icon:"videoglass",label:e.$t("buzz.share_video"),onClick:l.onClickShareVideos},null,8,["label","onClick"])])])),_:1}),l.showVideoModal?((0,a.openBlock)(),(0,a.createBlock)(h,{key:0,text:l.post,employee:o.employee,onClose:l.onCloseVideoModal},null,8,["text","employee","onClose"])):(0,a.createCommentVNode)("",!0),l.showPhotoModal?((0,a.openBlock)(),(0,a.createBlock)(g,{key:1,text:l.post,employee:o.employee,onClose:l.onClosePhotoModal},null,8,["text","employee","onClose"])):(0,a.createCommentVNode)("",!0)],64)}function QW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-buzz-post-input"),s=(0,a.resolveComponent)("oxd-input-field"),d=(0,a.resolveComponent)("video-frame"),c=(0,a.resolveComponent)("post-modal");return(0,a.openBlock)(),(0,a.createBlock)(c,{loading:e.isLoading,title:e.$t("buzz.share_video"),onSubmit:l.onSubmit,onClose:t[2]||(t[2]=t=>e.$emit("close",!1))},{header:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:e.post.text,"onUpdate:modelValue":t[0]||(t[0]=t=>e.post.text=t),rules:l.rules.text,placeholder:e.$t("buzz.post_placeholder")},null,8,["modelValue","rules","placeholder"])])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:e.post.url,"onUpdate:modelValue":t[1]||(t[1]=t=>e.post.url=t),type:"textarea",rules:l.rules.url,label:e.$t("buzz.video_url"),placeholder:e.$t("buzz.paste_video_url")},null,8,["modelValue","rules","label","placeholder"]),e.embedURL?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"video-src":e.embedURL},null,8,["video-src"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","title","onSubmit"])}const HW={class:"orangehrm-modal-header"},WW={class:"orangehrm-buzz-post-modal-header"},YW={class:"orangehrm-buzz-post-modal-header-text"};function JW(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider"),d=(0,a.resolveComponent)("profile-image"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("oxd-form-actions"),u=(0,a.resolveComponent)("oxd-form"),p=(0,a.resolveComponent)("oxd-dialog");return(0,a.openBlock)(),(0,a.createBlock)(p,{class:"orangehrm-dialog-modal",persistent:!0,"onUpdate:show":l.onCancel},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",HW,[(0,a.createVNode)(i,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.title),1)])),_:1})]),(0,a.createVNode)(s),(0,a.createVNode)(u,{loading:o.loading,onSubmitValid:l.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",WW,[(0,a.createVNode)(d,{employee:o.employee},null,8,["employee"]),(0,a.createElementVNode)("div",YW,[(0,a.renderSlot)(e.$slots,"header",{},void 0,!0)])]),(0,a.renderSlot)(e.$slots,"default",{},void 0,!0),(0,a.createVNode)(m,{class:"orangehrm-buzz-post-modal-actions"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{type:"submit",disabled:o.disabled,label:o.actionLabel||e.$t("buzz.share")},null,8,["disabled","label"])])),_:1})])),_:3},8,["loading","onSubmitValid"])])),_:3},8,["onUpdate:show"])}var XW={name:"PostModal",components:{"oxd-dialog":q.OxdDialog,"profile-image":uH},props:{title:{type:String,required:!0},employee:{type:Object,required:!0},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},actionLabel:{type:String,default:null,required:!1}},emits:["close","submit"],setup(e,t){const o=()=>{t.emit("submit")},a=()=>{t.emit("close")};return{onSubmit:o,onCancel:a}}};const KW=(0,r.Z)(XW,[["render",JW],["__scopeId","data-v-cbb80b9a"]]);var eY=KW,tY={name:"ShareVideoModal",components:{"post-modal":eY,"video-frame":nH,"oxd-buzz-post-input":q.OxdBuzzPostInput},props:{text:{type:String,default:null}},emits:["close"],setup(e,t){const{$t:o}=Se(),l=new P(window.appGlobal.baseUrl,"/api/v2/buzz/posts"),n=(0,a.reactive)({post:{text:e.text||null,url:null},embedURL:null,isLoading:!1}),r={url:[jt,(0,q.promiseDebounce)((async e=>{if(!e)return!0;n.embedURL=null;const t=await l.request({method:"GET",url:"/api/v2/buzz/validation/links",params:{url:e}}),{data:a}=t.data;return!0===a?.valid?(n.embedURL=a.embeddedURL,!0):o("general.invalid_video_url_message")}),500)],text:[zt(65530)]},i=()=>{n.isLoading=!0,l.create({type:"video",link:n.post.url,text:n.post.text}).then((()=>t.emit("close",!0)))};return{rules:r,onSubmit:i,...(0,a.toRefs)(n)}}};const oY=(0,r.Z)(tY,[["render",QW]]);var aY=oY;function lY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-buzz-post-input"),s=(0,a.resolveComponent)("photo-input"),d=(0,a.resolveComponent)("post-modal");return(0,a.openBlock)(),(0,a.createBlock)(d,{loading:e.isLoading,disabled:l.isDisabled,title:e.$t("buzz.share_photos"),onSubmit:l.onSubmit,onClose:t[2]||(t[2]=t=>e.$emit("close",!1))},{header:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:e.post.text,"onUpdate:modelValue":t[0]||(t[0]=t=>e.post.text=t),rules:l.rules.text,placeholder:e.$t("buzz.post_placeholder")},null,8,["modelValue","rules","placeholder"])])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(s,{modelValue:e.post.photos,"onUpdate:modelValue":t[1]||(t[1]=t=>e.post.photos=t)},null,8,["modelValue"])])),_:1},8,["loading","disabled","title","onSubmit"])}const nY={class:"orangehrm-photo-input"},rY={class:"orangehrm-photo-input-field"};function iY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("oxd-alert"),d=(0,a.resolveComponent)("photo-upload-area"),c=(0,a.resolveComponent)("oxd-button"),m=(0,a.resolveComponent)("oxd-input-field"),u=(0,a.resolveComponent)("photo-frame");return(0,a.openBlock)(),(0,a.createElementBlock)("div",nY,[(0,a.createVNode)(s,{type:"error",show:!!l.validationMessage,message:l.validationMessage},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{name:"x",class:"orangehrm-photo-input-remove",onClick:l.onClickCloseAlert},null,8,["onClick"])])),_:1},8,["show","message"]),l.showUploadArea?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,"onUpdate:modelValue":l.onFileChange},null,8,["onUpdate:modelValue"])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",rY,[l.showUploadButton?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,type:"file",value:"","onUpdate:modelValue":l.onFileChange},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(c,{"icon-name":"file-image",label:e.$t("buzz.add_photos")},null,8,["label"])])),_:1},8,["onUpdate:modelValue"])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(u,{media:o.modelValue},{content:(0,a.withCtx)((({index:e})=>[(0,a.createVNode)(i,{name:"x",class:"orangehrm-photo-input-remove --float",onClick:t=>l.onClickRemove(e)},null,8,["onClick"])])),_:1},8,["media"])])}const sY={class:"orangehrm-photo-upload-area"};function dY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-input-field");return(0,a.openBlock)(),(0,a.createBlock)(d,{type:"file"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",sY,[(0,a.createVNode)(i,{class:"orangehrm-photo-upload-icon",name:"images"}),(0,a.createVNode)(s,{type:"card-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.add_photos")),1)])),_:1})])])),_:1})}var cY={name:"PhotoUploadArea",components:{"oxd-icon":q.OxdIcon}};const mY=(0,r.Z)(cY,[["render",dY],["__scopeId","data-v-42c23441"]]);var uY=mY,pY={name:"PhotoInput",components:{"oxd-alert":q.OxdAlert,"photo-frame":SW,"photo-upload-area":uY},props:{modelValue:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,t){const{$t:o}=Se(),l=(0,a.ref)(""),n=ro(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/x-png"]),r=no(2097152),i=a=>{if(a)return l.value="",!0!==r(a)?l.value=o("buzz.file_size_validation_message"):!0!==n(a)?l.value=o("buzz.file_type_validation_message"):void t.emit("update:modelValue",[...e.modelValue||[],a])},s=o=>{l.value="",t.emit("update:modelValue",(e.modelValue||[]).filter(((e,t)=>o!==t)))},d=()=>{l.value=""},c=(0,a.computed)((()=>Array.isArray(e.modelValue)&&e.modelValue.length<1)),m=(0,a.computed)((()=>Array.isArray(e.modelValue)&&e.modelValue.length>0&&e.modelValue.length<5));return{onFileChange:i,onClickRemove:s,showUploadArea:c,showUploadButton:m,onClickCloseAlert:d,validationMessage:l}}};const hY=(0,r.Z)(pY,[["render",iY],["__scopeId","data-v-7401001c"]]);var gY=hY,vY={name:"SharePhotoModal",components:{"post-modal":eY,"photo-input":gY,"oxd-buzz-post-input":q.OxdBuzzPostInput},props:{text:{type:String,default:null}},emits:["close"],setup(e,t){const o={text:[zt(65530)]},l=new P(window.appGlobal.baseUrl,"/api/v2/buzz/posts"),n=(0,a.reactive)({post:{text:e.text||null,photos:[]},isLoading:!1}),r=()=>{n.isLoading=!0,l.create({type:"photo",text:n.post.text,photos:n.post.photos}).then((()=>t.emit("close",!0)))},i=(0,a.computed)((()=>0===n.post.photos.length));return{rules:o,onSubmit:r,isDisabled:i,...(0,a.toRefs)(n)}}};const fY=(0,r.Z)(vY,[["render",lY]]);var yY=fY,CY={name:"CreatePost",components:{"oxd-sheet":q.OxdSheet,"profile-image":uH,"oxd-glass-button":q.OxdGlassButton,"oxd-buzz-post-input":q.OxdBuzzPostInput,"share-video-modal":aY,"share-photo-modal":yY},props:{employee:{type:Object,required:!0}},emits:["refresh"],setup(e,t){const o=(0,a.ref)(null),{saveSuccess:l}=yt(),n=(0,a.ref)(!1),r=(0,a.ref)(!1),i=[zt(65530)],s=new P(window.appGlobal.baseUrl,"/api/v2/buzz/posts"),d=()=>{null!==o.value&&""!==String(o.value).trim()&&s.create({type:"text",text:o.value}).then((()=>{l(),o.value=null,t.emit("refresh")}))},c=()=>{r.value=!0},m=()=>{n.value=!0},u=e=>{n.value=!1,e&&(l(),t.emit("refresh"))},p=e=>{r.value=!1,e&&(l(),t.emit("refresh"))};return{post:o,rules:i,onSubmit:d,showVideoModal:n,showPhotoModal:r,onCloseVideoModal:u,onClosePhotoModal:p,onClickSharePhotos:c,onClickShareVideos:m}}};const bY=(0,r.Z)(CY,[["render",ZW],["__scopeId","data-v-cc1398f0"]]);var VY=bY;const xY={class:"orangehrm-buzz-post-actions"};function wY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("post-like"),s=(0,a.resolveComponent)("post-comment"),d=(0,a.resolveComponent)("post-share");return(0,a.openBlock)(),(0,a.createElementBlock)("div",xY,[(0,a.createVNode)(i,{like:o.post.liked,onClick:t[0]||(t[0]=e=>l.onClickAction("like"))},null,8,["like"]),(0,a.createVNode)(s,{onClick:t[1]||(t[1]=e=>l.onClickAction("comment"))}),(0,a.createVNode)(d,{onClick:t[2]||(t[2]=e=>l.onClickAction("share"))})])}const NY=e=>((0,a.pushScopeId)("data-v-e149abea"),e=e(),(0,a.popScopeId)(),e),_Y=(0,a.createStaticVNode)('',1),kY=[_Y],SY=NY((()=>(0,a.createElementVNode)("span",{class:"orangehrm-heart-icon-circle"},null,-1)));function DY(e,t,o,l,n,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)({"orangehrm-like-animation":o.like})},[((0,a.openBlock)(),(0,a.createElementBlock)("svg",{id:"heart-svg",class:"orangehrm-heart-icon",viewBox:"467 392 58 57",xmlns:"http://www.w3.org/2000/svg",onClick:t[0]||(t[0]=(...t)=>e.addLike&&e.addLike(...t))},kY)),SY],2)}var $Y={name:"PostLikeButton",props:{like:{type:Boolean,required:!0}}};const EY=(0,r.Z)($Y,[["render",DY],["__scopeId","data-v-e149abea"]]);var TY=EY;function BY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button");return(0,a.openBlock)(),(0,a.createBlock)(i,{name:"share-fill","with-container":!0})}var IY={name:"PostShareButton"};const LY=(0,r.Z)(IY,[["render",BY]]);var UY=LY;function AY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button");return(0,a.openBlock)(),(0,a.createBlock)(i,{name:"chat-text-fill","with-container":!0})}var PY={name:"PostCommentButton"};const qY=(0,r.Z)(PY,[["render",AY]]);var MY=qY,FY={name:"PostActions",components:{"post-like":TY,"post-share":UY,"post-comment":MY},props:{post:{type:Object,required:!0}},emits:["like","comment","share"],setup(e,t){let o=!1;const{updatePostLike:a}=rH(new P(window.appGlobal.baseUrl,"")),l=l=>{switch(l){case"comment":t.emit("comment");break;case"share":t.emit("share");break;case"like":o||(o=!0,a(e.post.id,e.post.liked).then((()=>{o=!1,t.emit("like")})));break;default:break}};return{onClickAction:l}}};const jY=(0,r.Z)(FY,[["render",wY],["__scopeId","data-v-f9d19a8e"]]);var zY=jY;const RY={key:2};function OY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-buzz-post-input"),s=(0,a.resolveComponent)("video-frame"),d=(0,a.resolveComponent)("photo-frame"),c=(0,a.resolveComponent)("oxd-text"),m=(0,a.resolveComponent)("photo-input"),u=(0,a.resolveComponent)("oxd-input-field"),p=(0,a.resolveComponent)("post-modal");return(0,a.openBlock)(),(0,a.createBlock)(p,{loading:e.isLoading,title:e.$t("buzz.edit_post"),"action-label":e.$t("buzz.post"),onSubmit:l.onSubmit,onClose:t[3]||(t[3]=t=>e.$emit("close",!1))},{header:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:e.post.text,"onUpdate:modelValue":t[0]||(t[0]=t=>e.post.text=t),rules:l.rules.text},null,8,["modelValue","rules"])])),default:(0,a.withCtx)((()=>[o.data.originalPost?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},["video"===o.data.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,"video-src":o.data.video.link},null,8,["video-src"])):(0,a.createCommentVNode)("",!0),"photo"===o.data.type?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,media:o.data.photoIds},null,8,["media"])):(0,a.createCommentVNode)("",!0),"video"===o.data.type||"photo"===o.data.type?((0,a.openBlock)(),(0,a.createElementBlock)("br",RY)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,{tag:"p",class:"orangehrm-buzz-share-employee"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.employee),1)])),_:1}),(0,a.createVNode)(c,{tag:"p",class:"orangehrm-buzz-share-date"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.dateTime),1)])),_:1}),l.originalPost.text?((0,a.openBlock)(),(0,a.createBlock)(c,{key:3,tag:"p",class:"orangehrm-buzz-share-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.text),1)])),_:1})):(0,a.createCommentVNode)("",!0)],64)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},["text"===e.post.type||"photo"===e.post.type?((0,a.openBlock)(),(0,a.createBlock)(m,{key:0,modelValue:e.post.photos,"onUpdate:modelValue":t[1]||(t[1]=t=>e.post.photos=t)},null,8,["modelValue"])):(0,a.createCommentVNode)("",!0),"video"===e.post.type?((0,a.openBlock)(),(0,a.createBlock)(u,{key:1,modelValue:e.post.video,"onUpdate:modelValue":t[2]||(t[2]=t=>e.post.video=t),type:"textarea",rules:l.rules.url,label:e.$t("buzz.video_url")},null,8,["modelValue","rules","label"])):(0,a.createCommentVNode)("",!0),e.embedURL?((0,a.openBlock)(),(0,a.createBlock)(s,{key:2,"video-src":e.embedURL},null,8,["video-src"])):(0,a.createCommentVNode)("",!0)],64))])),_:1},8,["loading","title","action-label","onSubmit"])}var GY={name:"EditPostModal",components:{"post-modal":eY,"photo-frame":SW,"photo-input":gY,"video-frame":nH,"oxd-buzz-post-input":q.OxdBuzzPostInput},props:{data:{type:Object,required:!0}},emits:["close"],setup(e,t){const{$t:o}=Se(),{locale:l}=De(),{jsDateFormat:n,jsTimeFormat:r}=R(),{$tEmpName:i}=xa(),s=new P(window.appGlobal.baseUrl,""),{updateSuccess:d}=yt(),{updatePost:c,updateSharedPost:m}=rH(s),u=(0,a.reactive)({post:{text:e.data.text,type:e.data.type,photos:e.data.photoIds||[],video:e.data.video?.link||null},isLoading:!1,embedURL:e.data.video?.link||null}),p=()=>{let o="text";u.isLoading=!0,u.post.photos.length>0&&(o="photo"),u.post.video&&(o="video"),new Promise((t=>{e.data.originalPost?t(m(e.data.id,u.post.text)):t(c(e.data.post.id,{type:o,text:u.post.text,link:u.post.video,photos:u.post.photos.filter((e=>"object"===typeof e)),deletedPhotos:(e.data.photoIds||[]).filter((e=>-1===u.post.photos.findIndex((t=>t===e))))}))})).then((e=>{d(),t.emit("close",e.data)}))},h={url:[jt,(0,q.promiseDebounce)((async e=>{if(!e)return!0;u.embedURL=null;const t=await s.request({method:"GET",url:"/api/v2/buzz/validation/links",params:{url:e}}),{data:a}=t.data;return!0===a?.valid?(u.embedURL=a.embeddedURL,!0):o("general.invalid_video_url_message")}),500)],text:[zt(65530),t=>"video"===e.data.type||u.post.photos.length>0||jt(t)]},g=(0,a.computed)((()=>{const t=e.data.originalPost?.text,o=e.data.originalPost?.employee,{createdDate:a,createdTime:s}=e.data.originalPost,d=re(`${a} ${s} +00:00`,"yyyy-MM-dd HH:mm xxx");return{text:t,employee:i(o,{includeMiddle:!0,excludePastEmpTag:!1}),dateTime:ie(d,`${n} ${r}`,{locale:l})}}));return{rules:h,onSubmit:p,originalPost:g,...(0,a.toRefs)(u)}}};const ZY=(0,r.Z)(GY,[["render",OY],["__scopeId","data-v-d7bc64d6"]]);var QY=ZY;function HY(e,t,o,l,n,r){const i=(0,a.resolveComponent)("post-actions-pill"),s=(0,a.resolveComponent)("photo-viewer"),d=(0,a.resolveComponent)("post-details");return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)(l.layoutClasses)},[l.showPhoto?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,post:o.post,"photo-index":o.photoIndex,onClose:t[1]||(t[1]=t=>e.$emit("close",!1))},{default:(0,a.withCtx)((()=>[o.mobile?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,post:o.post,onLike:t[0]||(t[0]=t=>e.$emit("like")),onComment:l.onClickComment},null,8,["post","onComment"])):(0,a.createCommentVNode)("",!0)])),_:1},8,["post","photo-index"])):(0,a.createCommentVNode)("",!0),l.showDetails?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,post:o.post,mobile:o.mobile,onLike:t[2]||(t[2]=t=>e.$emit("like")),onClose:t[3]||(t[3]=t=>e.$emit("close",!1)),onCreateComment:t[4]||(t[4]=t=>e.$emit("createComment",t)),onDeleteComment:t[5]||(t[5]=t=>e.$emit("deleteComment",t))},null,8,["post","mobile"])):(0,a.createCommentVNode)("",!0)],2)}const WY={class:"orangehrm-photo-viewer"},YY=["src"],JY=["src"],XY={key:0,class:"orangehrm-photo-viewer-controls"},KY={class:"orangehrm-photo-viewer-actions"};function eJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",WY,[(0,a.createElementVNode)("img",{class:"orangehrm-photo-viewer-background",alt:"photo",src:l.selectedPhoto},null,8,YY),(0,a.createElementVNode)("img",{class:"orangehrm-photo-viewer-photo",alt:"background",src:l.selectedPhoto},null,8,JY),o.post.photoIds.length>1?((0,a.openBlock)(),(0,a.createElementBlock)("div",XY,[(0,a.createVNode)(i,{class:"orangehrm-photo-viewer-icon actions",name:"chevron-left",disabled:0===e.index,onClick:l.onClickPreviousPhoto},null,8,["disabled","onClick"]),(0,a.createVNode)(i,{class:"orangehrm-photo-viewer-icon actions",name:"chevron-right",disabled:e.index===o.post.photoIds.length-1,onClick:l.onClickNextPhoto},null,8,["disabled","onClick"])])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",KY,[(0,a.renderSlot)(e.$slots,"default",{},void 0,!0)]),(0,a.createVNode)(i,{class:"orangehrm-photo-viewer-close actions",name:"x",onClick:l.onClickClose},null,8,["onClick"])])}var tJ={name:"PhotoViewer",props:{post:{type:Object,required:!0},photoIndex:{type:Number,required:!0}},emits:["close"],setup(e,t){const o=(0,a.reactive)({index:e.photoIndex}),l=()=>o.index++,n=()=>o.index--,r=(0,a.computed)((()=>{const t=e.post.photoIds[o.index];return`${window.appGlobal.baseUrl}/buzz/photo/${t}`})),i=e=>{e.key&&"Escape"!==e.key||t.emit("close")};return window.addEventListener("keydown",i),(0,a.onBeforeUnmount)((()=>window.removeEventListener("keydown",i))),{onClickClose:i,selectedPhoto:r,onClickNextPhoto:l,onClickPreviousPhoto:n,...(0,a.toRefs)(o)}}};const oJ=(0,r.Z)(tJ,[["render",eJ],["__scopeId","data-v-606dc22d"]]);var aJ=oJ;const lJ={class:"orangehrm-post-details"},nJ={class:"orangehrm-post-details-header"},rJ={class:"orangehrm-post-details-header-text"},iJ={class:"orangehrm-post-details-actions"};function sJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-icon-button"),s=(0,a.resolveComponent)("profile-image"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-divider"),m=(0,a.resolveComponent)("post-like"),u=(0,a.resolveComponent)("post-stats"),p=(0,a.resolveComponent)("post-comment-container");return(0,a.openBlock)(),(0,a.createElementBlock)("div",lJ,[(0,a.createVNode)(i,{class:"orangehrm-post-details-close",name:"x","with-container":!1,onClick:l.onClickClose},null,8,["onClick"]),(0,a.createElementVNode)("div",nJ,[(0,a.createVNode)(s,{employee:o.post.employee},null,8,["employee"]),(0,a.createElementVNode)("div",rJ,[(0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-details-emp-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeFullName),1)])),_:1}),(0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-details-time"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.postDateTime),1)])),_:1})])]),o.post.text?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,tag:"p",class:(0,a.normalizeClass)(l.postClasses)},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.post.text),1)])),_:1},8,["class"])):(0,a.createCommentVNode)("",!0),(0,a.withDirectives)((0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-details-readmore",onClick:l.onClickReadMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.read_more")),1)])),_:1},8,["onClick"]),[[a.vShow,!l.readMore]]),(0,a.createVNode)(c),(0,a.createElementVNode)("div",iJ,[(0,a.createVNode)(m,{like:o.post.liked,onClick:l.onClickLike},null,8,["like","onClick"]),(0,a.createVNode)(u,{post:o.post,mobile:o.mobile},null,8,["post","mobile"])]),(0,a.createVNode)(c),(0,a.createVNode)(p,{"post-id":o.post.id,employee:o.post.employee,onCreate:t[0]||(t[0]=t=>e.$emit("createComment",t)),onDelete:t[1]||(t[1]=t=>e.$emit("deleteComment",t))},null,8,["post-id","employee"])])}const dJ={class:"orangehrm-buzz-comment"},cJ={class:"orangehrm-buzz-comment-add"},mJ={key:0};function uJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-input-field"),d=(0,a.resolveComponent)("oxd-form"),c=(0,a.resolveComponent)("post-comment"),m=(0,a.resolveComponent)("oxd-text"),u=(0,a.resolveComponent)("delete-confirmation"),p=(0,a.resolveDirective)("autofocus");return(0,a.openBlock)(),(0,a.createElementBlock)("div",dJ,[(0,a.createElementVNode)("div",cJ,[(0,a.createVNode)(i,{employee:o.employee},null,8,["employee"]),(0,a.createVNode)(d,{onSubmitValid:l.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createVNode)(s,{modelValue:e.text,"onUpdate:modelValue":t[0]||(t[0]=t=>e.text=t),placeholder:e.$t("buzz.write_your_comment")},null,8,["modelValue","placeholder"]),[[p]])])),_:1},8,["onSubmitValid"])]),e.total>0?((0,a.openBlock)(),(0,a.createElementBlock)("br",mJ)):(0,a.createCommentVNode)("",!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.comments,(e=>((0,a.openBlock)(),(0,a.createBlock)(c,{key:e,data:e,"post-id":o.postId,onEdit:l.onEditComment,onLike:l.onLikeComment,onDelete:l.onDeleteComment},null,8,["data","post-id","onEdit","onLike","onDelete"])))),128)),e.total>4?((0,a.openBlock)(),(0,a.createBlock)(m,{key:1,tag:"p",class:"orangehrm-buzz-comment-readmore",onClick:l.onClickShowMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.showAllComments?e.$t("general.show_less"):e.$t("general.show_more")),1)])),_:1},8,["onClick"])):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(u,{ref:"deleteDialog",message:e.$t("buzz.post_delete_confirmation_message")},null,8,["message"])])}function pJ(){const e={mounted(e){e&&e.querySelector("input")?.focus()}};return{autofocus:e}}const hJ={class:"orangehrm-comment-wrapper"},gJ={class:"orangehrm-post-comment"},vJ={key:1,class:"orangehrm-post-comment-area"},fJ={key:0,class:"orangehrm-post-comment-stats"},yJ={key:2,class:"orangehrm-post-comment-action-area"};function CJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-input-field"),d=(0,a.resolveComponent)("oxd-text"),c=(0,a.resolveComponent)("oxd-form"),m=(0,a.resolveComponent)("oxd-icon"),u=(0,a.resolveDirective)("autofocus");return(0,a.openBlock)(),(0,a.createElementBlock)("div",hJ,[(0,a.createVNode)(i,{employee:o.data.employee},null,8,["employee"]),(0,a.createElementVNode)("div",gJ,[e.edit?((0,a.openBlock)(),(0,a.createBlock)(c,{key:0,onSubmitValid:l.onSubmit},{default:(0,a.withCtx)((()=>[(0,a.withDirectives)((0,a.createVNode)(s,{modelValue:e.comment,"onUpdate:modelValue":t[0]||(t[0]=t=>e.comment=t),rules:l.rules,onKeydown:(0,a.withKeys)((0,a.withModifiers)(l.onCancelComment,["stop"]),["esc"])},null,8,["modelValue","rules","onKeydown"]),[[u]]),(0,a.createVNode)(d,{tag:"span"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.press_esc_to"))+" ",1)])),_:1}),(0,a.createVNode)(d,{tag:"span",class:"orangehrm-post-comment-action --cancel",onClick:l.onCancelComment},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.cancel")),1)])),_:1},8,["onClick"])])),_:1},8,["onSubmitValid"])):((0,a.openBlock)(),(0,a.createElementBlock)("div",vJ,[(0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-comment-employee"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeFullName),1)])),_:1}),(0,a.createVNode)(d,{tag:"span",class:(0,a.normalizeClass)({"orangehrm-post-comment-text":!0,"--truncate":!1===e.readMore})},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.comment),1)])),_:1},8,["class"]),(0,a.withDirectives)((0,a.createVNode)(d,{tag:"span",class:"orangehrm-post-comment-readmore",onClick:l.onClickReadMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.read_more")),1)])),_:1},8,["onClick"]),[[a.vShow,!e.readMore]]),(0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-comment-datetime"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.dateTime),1)])),_:1}),o.data.comment.numOfLikes>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",fJ,[(0,a.createVNode)(m,{name:"heart-fill",class:"orangehrm-post-comment-stats-icon"}),(0,a.createVNode)(d,{tag:"p",class:"orangehrm-post-comment-stats-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.data.comment.numOfLikes),1)])),_:1})])):(0,a.createCommentVNode)("",!0)])),e.edit?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",yJ,[(0,a.createVNode)(d,{tag:"p",class:(0,a.normalizeClass)({"orangehrm-post-comment-action":!0,"--liked":!0===o.data.comment.liked}),onClick:l.onClickLike},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.like")),1)])),_:1},8,["class","onClick"]),o.data.permission.canUpdate?((0,a.openBlock)(),(0,a.createBlock)(d,{key:0,tag:"p",class:"orangehrm-post-comment-action",onClick:l.onClickEdit},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.edit")),1)])),_:1},8,["onClick"])):(0,a.createCommentVNode)("",!0),o.data.permission.canDelete?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,tag:"p",class:"orangehrm-post-comment-action",onClick:l.onClickDelete},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("performance.delete")),1)])),_:1},8,["onClick"])):(0,a.createCommentVNode)("",!0)]))])])}var bJ={name:"PostComment",components:{"oxd-icon":q.OxdIcon,"profile-image":uH},directives:{...pJ()},props:{postId:{type:Number,required:!0},data:{type:Object,required:!0}},emits:["edit","delete","like"],setup(e,t){let o=!1;const{locale:l}=De(),{jsDateFormat:n,jsTimeFormat:r}=R(),{$tEmpName:i}=xa(),s=[jt,zt(65530)],d=(0,a.reactive)({edit:!1,comment:e.data.comment.text,readMore:new String(e.data.comment.text).length<500}),{updatePostComment:c,updateCommentLike:m}=rH(new P(window.appGlobal.baseUrl,"")),u=()=>{c(e.postId,e.data.comment.id,d.comment).then((()=>{d.edit=!1,t.emit("edit",e.data.comment.id)}))},p=()=>{d.edit=!0},h=()=>{o||(o=!0,m(e.data.comment.id,e.data.comment.liked).then((()=>{o=!1,t.emit("like",e.data.comment.id)})))},g=()=>{t.emit("delete",e.data.comment.id)},v=()=>{d.readMore=!d.readMore},f=()=>{d.comment=e.data.comment.text,d.edit=!1},y=(0,a.computed)((()=>{const{createdDate:t,createdTime:o}=e.data.comment,a=re(`${t} ${o} +00:00`,"yyyy-MM-dd HH:mm xxx");return ie(a,`${n} ${r}`,{locale:l})})),C=(0,a.computed)((()=>i(e.data.employee,{includeMiddle:!0,excludePastEmpTag:!1})));return{rules:s,dateTime:y,onSubmit:u,onClickLike:h,onClickEdit:p,onClickDelete:g,onClickReadMore:v,onCancelComment:f,employeeFullName:C,...(0,a.toRefs)(d)}}};const VJ=(0,r.Z)(bJ,[["render",CJ],["__scopeId","data-v-b16f1772"]]);var xJ=VJ,wJ={name:"PostCommentContainer",components:{"post-comment":xJ,"profile-image":uH,"delete-confirmation":Et},directives:{...pJ()},props:{postId:{type:Number,required:!0},employee:{type:Object,required:!0}},emits:["create","delete"],setup(e,t){const o=(0,a.ref)(),l=(0,a.reactive)({text:null,total:0,comments:[],showAllComments:!1}),{saveSuccess:n,updateSuccess:r,deleteSuccess:i}=yt(),{fetchPostComments:s,savePostComment:d,deletePostComment:c}=rH(new P(window.appGlobal.baseUrl,"")),m=()=>{s(e.postId,l.showAllComments?0:4,!0).then((e=>{const{data:t,meta:o}=e.data;l.total=o.total,l.comments=[...t]}))},u=()=>{l.text&&d(e.postId,l.text).then((()=>{l.text=null,m(),n(),t.emit("create")}))},p=()=>{l.showAllComments=!l.showAllComments,m()},h=()=>{m(),r()},g=a=>{o.value.showDialog().then((o=>{"ok"===o&&c(e.postId,a).then((()=>{m(),i(),t.emit("delete")}))}))},v=()=>{m()};return(0,a.onBeforeMount)((()=>m())),{onSubmit:u,deleteDialog:o,onLikeComment:v,onEditComment:h,onClickShowMore:p,onDeleteComment:g,...(0,a.toRefs)(l)}}};const NJ=(0,r.Z)(wJ,[["render",uJ],["__scopeId","data-v-58a27a86"]]);var _J=NJ,kJ={name:"PostDetails",components:{"post-stats":zW,"post-like":TY,"profile-image":uH,"post-comment-container":_J},props:{post:{type:Object,required:!0},mobile:{type:Boolean,default:!1}},emits:["like","close","createComment","deleteComment"],setup(e,t){let o=!1;const{locale:l}=De(),{jsDateFormat:n,jsTimeFormat:r}=R(),{$tEmpName:i}=xa(),s=(0,a.ref)(new String(e.post?.text).length<500),{updatePostLike:d}=rH(new P(window.appGlobal.baseUrl,"")),c=(0,a.computed)((()=>{const{createdDate:t,createdTime:o}=e.post,a=re(`${t} ${o} +00:00`,"yyyy-MM-dd HH:mm xxx");return ie(a,`${n} ${r}`,{locale:l})})),m=(0,a.computed)((()=>i(e.post.employee,{includeMiddle:!0,excludePastEmpTag:!1}))),u=()=>t.emit("close"),p=()=>{o||(o=!0,d(e.post.id,e.post.liked).then((()=>{o=!1,t.emit("like")})))},h=(0,a.computed)((()=>({"orangehrm-post-details-text":!0,"--truncate":!1===s.value}))),g=()=>{s.value=!s.value};return{readMore:s,postClasses:h,onClickLike:p,onClickClose:u,postDateTime:c,onClickReadMore:g,employeeFullName:m}}};const SJ=(0,r.Z)(kJ,[["render",sJ],["__scopeId","data-v-486acada"]]);var DJ=SJ;const $J={class:"orangehrm-buzz-pill"},EJ={class:"orangehrm-buzz-pill-actions"},TJ={class:"orangehrm-buzz-pill-stats"},BJ={class:"orangehrm-buzz-pill-stats-likes"},IJ={class:"orangehrm-buzz-pill-stats-other"};function LJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("post-like"),s=(0,a.resolveComponent)("post-comment"),d=(0,a.resolveComponent)("oxd-icon"),c=(0,a.resolveComponent)("oxd-text");return(0,a.openBlock)(),(0,a.createElementBlock)("div",$J,[(0,a.createElementVNode)("div",EJ,[(0,a.createVNode)(i,{like:o.post.liked,onClick:l.onClickLike},null,8,["like","onClick"]),(0,a.createVNode)(s,{onClick:l.onClickComment},null,8,["onClick"])]),(0,a.createElementVNode)("div",TJ,[(0,a.createElementVNode)("div",BJ,[(0,a.createVNode)(d,{name:"heart-fill"}),(0,a.createVNode)(c,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.n_like",{likesCount:o.post.stats.numOfLikes})),1)])),_:1})]),(0,a.createElementVNode)("div",IJ,[(0,a.createVNode)(c,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.combinedPostStats),1)])),_:1})])])])}var UJ={name:"PostActionsPill",components:{"oxd-icon":q.OxdIcon,"post-like":TY,"post-comment":MY},props:{post:{type:Object,required:!0}},emits:["like","comment"],setup(e,t){let o=!1;const{updatePostLike:a}=rH(new P(window.appGlobal.baseUrl,"")),l=()=>{t.emit("comment")},n=()=>{o||(o=!0,a(e.post.id,e.post.liked).then((()=>{o=!1,t.emit("like")})))};return{onClickLike:n,onClickComment:l}},computed:{combinedPostStats(){const e=this.$t("buzz.n_comment",{commentCount:this.post.stats?.numOfComments||0}),t=this.$t("buzz.n_share",{shareCount:this.post.stats?.numOfShares||0});return null===this.post.stats?.numOfShares?e:`${e}, ${t}`}}};const AJ=(0,r.Z)(UJ,[["render",LJ],["__scopeId","data-v-0963cda2"]]);var PJ=AJ,qJ={name:"PhotoCarousel",components:{"photo-viewer":aJ,"post-details":DJ,"post-actions-pill":PJ},props:{post:{type:Object,required:!0},mobile:{type:Boolean,default:!1},photoIndex:{type:Number,required:!0}},emits:["like","close","createComment","deleteComment"],setup(e){const t=(0,a.reactive)({view:"photo",index:e.photoIndex}),o=()=>t.index++,l=()=>t.index--,n=()=>t.view="details",r=(0,a.computed)((()=>e.post.photoIds[t.index])),i=(0,a.computed)((()=>({"orangehrm-photo-carousel":!0,"--web":!1===e.mobile}))),s=(0,a.computed)((()=>!1===e.mobile||"photo"===t.view)),d=(0,a.computed)((()=>!1===e.mobile||"details"===t.view));return{showPhoto:s,showDetails:d,layoutClasses:i,selectedPhoto:r,onClickComment:n,onClickNextPhoto:o,onClickPreviousPhoto:l,...(0,a.toRefs)(t)}}};const MJ=(0,r.Z)(qJ,[["render",HY],["__scopeId","data-v-052f1294"]]);var FJ=MJ;const jJ={class:"orangehrm-buzz-post"},zJ={class:"orangehrm-buzz-post-header"},RJ={class:"orangehrm-buzz-post-header-details"},OJ={class:"orangehrm-buzz-post-header-text"},GJ={key:0,class:"orangehrm-buzz-post-header-config"},ZJ={class:"orangehrm-buzz-post-body"},QJ={class:"orangehrm-buzz-post-footer"};function HJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("profile-image"),s=(0,a.resolveComponent)("oxd-text"),d=(0,a.resolveComponent)("oxd-icon-button"),c=(0,a.resolveComponent)("oxd-icon"),m=(0,a.resolveComponent)("oxd-dropdown"),u=(0,a.resolveComponent)("oxd-divider"),p=(0,a.resolveComponent)("oxd-sheet");return(0,a.openBlock)(),(0,a.createBlock)(p,{gutters:!1,type:"white",class:"orangehrm-buzz"},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",jJ,[(0,a.createElementVNode)("div",zJ,[(0,a.createElementVNode)("div",RJ,[(0,a.createVNode)(i,{employee:o.post.employee},null,8,["employee"]),(0,a.createElementVNode)("div",OJ,[(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-post-emp-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.employeeFullName),1)])),_:1}),(0,a.createVNode)(s,{tag:"p",class:"orangehrm-buzz-post-time"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.postDateTime),1)])),_:1})])]),o.post.permission.canUpdate||o.post.permission.canDelete?((0,a.openBlock)(),(0,a.createElementBlock)("div",GJ,[(0,a.createVNode)(m,null,{content:(0,a.withCtx)((()=>[o.post.permission.canDelete?((0,a.openBlock)(),(0,a.createElementBlock)("li",{key:0,class:"orangehrm-buzz-post-header-config-item",onClick:t[0]||(t[0]=t=>e.$emit("delete",t))},[(0,a.createVNode)(c,{name:"trash"}),(0,a.createVNode)(s,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.delete_post")),1)])),_:1})])):(0,a.createCommentVNode)("",!0),o.post.permission.canUpdate?((0,a.openBlock)(),(0,a.createElementBlock)("li",{key:1,class:"orangehrm-buzz-post-header-config-item",onClick:t[1]||(t[1]=t=>e.$emit("edit",t))},[(0,a.createVNode)(c,{name:"pencil"}),(0,a.createVNode)(s,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.edit_post")),1)])),_:1})])):(0,a.createCommentVNode)("",!0)])),default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{name:"three-dots","with-container":!0})])),_:1})])):(0,a.createCommentVNode)("",!0)]),(0,a.createVNode)(u)]),(0,a.createElementVNode)("div",ZJ,[(0,a.renderSlot)(e.$slots,"content",{},void 0,!0),(0,a.renderSlot)(e.$slots,"body",{},void 0,!0)]),(0,a.createElementVNode)("div",QJ,[(0,a.renderSlot)(e.$slots,"actionButton",{},void 0,!0),(0,a.renderSlot)(e.$slots,"postStats",{},void 0,!0)]),(0,a.renderSlot)(e.$slots,"comments",{},void 0,!0)])),_:3})}var WJ={name:"PostContainer",components:{"oxd-icon":q.OxdIcon,"oxd-sheet":q.OxdSheet,"oxd-dropdown":q.OxdDropdownMenu,"profile-image":uH},props:{post:{type:Object,required:!0}},emits:["edit","delete"],setup(e){const{locale:t}=De(),{jsDateFormat:o,jsTimeFormat:l}=R(),{$tEmpName:n}=xa(),r=(0,a.computed)((()=>n(e.post.employee,{includeMiddle:!0,excludePastEmpTag:!1}))),i=(0,a.computed)((()=>{const{createdDate:a,createdTime:n}=e.post,r=re(`${a} ${n} +00:00`,"yyyy-MM-dd HH:mm xxx");return ie(r,`${o} ${l}`,{locale:t})}));return{postDateTime:i,employeeFullName:r}}};const YJ=(0,r.Z)(WJ,[["render",HJ],["__scopeId","data-v-061e7373"]]);var JJ=YJ;const XJ={key:2};function KJ(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-buzz-post-input"),s=(0,a.resolveComponent)("video-frame"),d=(0,a.resolveComponent)("photo-frame"),c=(0,a.resolveComponent)("oxd-text"),m=(0,a.resolveComponent)("post-modal");return(0,a.openBlock)(),(0,a.createBlock)(m,{loading:e.isLoading,title:e.$t("buzz.share_post"),onSubmit:l.onSubmit,onClose:t[1]||(t[1]=t=>e.$emit("close",!1))},{header:(0,a.withCtx)((()=>[(0,a.createVNode)(i,{modelValue:e.post.text,"onUpdate:modelValue":t[0]||(t[0]=t=>e.post.text=t),rules:l.rules.text,placeholder:e.$t("buzz.post_placeholder")},null,8,["modelValue","rules","placeholder"])])),default:(0,a.withCtx)((()=>["video"===o.data.type?((0,a.openBlock)(),(0,a.createBlock)(s,{key:0,"video-src":o.data.video.link},null,8,["video-src"])):(0,a.createCommentVNode)("",!0),"photo"===o.data.type?((0,a.openBlock)(),(0,a.createBlock)(d,{key:1,media:o.data.photoIds},null,8,["media"])):(0,a.createCommentVNode)("",!0),"video"===o.data.type||"photo"===o.data.type?((0,a.openBlock)(),(0,a.createElementBlock)("br",XJ)):(0,a.createCommentVNode)("",!0),(0,a.createVNode)(c,{tag:"p",class:"orangehrm-buzz-share-employee"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.employee),1)])),_:1}),(0,a.createVNode)(c,{tag:"p",class:"orangehrm-buzz-share-date"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.dateTime),1)])),_:1}),l.originalPost.text?((0,a.openBlock)(),(0,a.createBlock)(c,{key:3,tag:"p",class:"orangehrm-buzz-share-text"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(l.originalPost.text),1)])),_:1})):(0,a.createCommentVNode)("",!0)])),_:1},8,["loading","title","onSubmit"])}var eX={name:"SharePostModal",components:{"post-modal":eY,"photo-frame":SW,"video-frame":nH,"oxd-buzz-post-input":q.OxdBuzzPostInput},props:{data:{type:Object,required:!0}},emits:["close"],setup(e,t){const{locale:o}=De(),{saveSuccess:l}=yt(),{jsDateFormat:n,jsTimeFormat:r}=R(),{$tEmpName:i}=xa(),s={text:[zt(65530)]},d=new P(window.appGlobal.baseUrl,"/api/v2/buzz/shares"),c=(0,a.reactive)({post:{text:null},isLoading:!1}),m=()=>{c.isLoading=!0,d.create({text:c.post.text,shareId:e.data.id}).then((()=>{l(),t.emit("close",!0)}))},u=(0,a.computed)((()=>{const t=e.data.originalPost?.text||e.data.text,a=e.data.originalPost?.employee||e.data.employee,{createdDate:l,createdTime:s}=e.data.originalPost||e.data,d=re(`${l} ${s} +00:00`,"yyyy-MM-dd HH:mm xxx");return{text:t,employee:i(a,{includeMiddle:!0,excludePastEmpTag:!1}),dateTime:ie(d,`${n} ${r}`,{locale:o})}}));return{rules:s,onSubmit:m,originalPost:u,...(0,a.toRefs)(c)}}};const tX=(0,r.Z)(eX,[["render",KJ],["__scopeId","data-v-67079a5e"]]);var oX=tX,aX={name:"NewsFeed",components:{"post-body":EW,"post-stats":zW,"create-post":VY,"post-actions":zY,"oxd-loading-spinner":q.OxdSpinner,"photo-carousel":FJ,"post-container":JJ,"edit-post-modal":QY,"share-post-modal":oX,"post-comment-container":_J,"delete-confirmation":Et},props:{employee:{type:Object,required:!0},sortField:{type:String,required:!0},mobile:{type:Boolean,default:!1}},setup(e){const t=10,o=(0,a.ref)(),{deleteSuccess:l}=yt(),{fetchPosts:n,deletePost:r}=rH(new P(window.appGlobal.baseUrl,"")),i=`${window.appGlobal.publicPath}/images/buzz_no_posts.svg`,s=(0,a.reactive)({total:0,offset:0,posts:[],isLoading:!1,showEditModal:!1,editModalState:null,showShareModal:!1,shareModalState:null,showPhotoCarousel:!1,photoCarouselState:null}),d=()=>{s.isLoading=!0,n(t,s.offset,"DESC",e.sortField).then((e=>{const{data:t,meta:o}=e.data;s.total=o.total||0,Array.isArray(t)&&(s.posts=[...s.posts,...t])})).finally((()=>s.isLoading=!1))};lR((()=>{s.posts.length>=s.total||(s.offset+=t,d())}));const c=e=>{s.posts[e].liked=!s.posts[e].liked,s.posts[e].liked?s.posts[e].stats.numOfLikes++:s.posts[e].stats.numOfLikes--},m=e=>{s.showEditModal=!0,s.editModalState={postIndex:e,post:s.posts[e]},document.body.style.overflow="hidden"},u=e=>{s.showShareModal=!0,s.shareModalState=s.posts[e],document.body.style.overflow="hidden"},p=e=>{s.posts[e].showComments?s.posts[e].showComments=!1:s.posts[e].showComments=!0},h=()=>{s.posts=[],s.offset=0,d()},g=(e,t)=>{s.photoCarouselState={postIndex:t,photoIndex:e,post:s.posts[t]},s.showPhotoCarousel=!0,document.body.style.overflow="hidden"},v=()=>{s.showPhotoCarousel=!1,s.photoCarouselState=null,document.body.style.overflow="auto"},f=e=>{s.showShareModal=!1,s.shareModalState=null,document.body.style.overflow="auto",e&&h()},y=e=>{const{data:t}=e;t&&(s.posts[s.editModalState.postIndex]={...t}),s.showEditModal=!1,s.editModalState=null,document.body.style.overflow="auto"},C=e=>{o.value.showDialog().then((t=>{"ok"===t&&r(s.posts[e].id).then((()=>{h(),l()}))}))},b=e=>{s.posts[e].stats.numOfComments++},V=e=>{s.posts[e].stats.numOfComments--};return(0,a.onBeforeMount)((()=>d())),(0,a.watch)((()=>e.sortField),(()=>{s.posts=[],s.offset=0,d()})),{onLike:c,onEdit:m,onShare:u,onDelete:C,resetFeed:h,onComment:p,noPostsPic:i,deleteDialog:o,onSelectPhoto:g,onCreateComment:b,onDeleteComment:V,onCloseEditModal:y,onCloseShareModal:f,onClosePhotoCarousel:v,...(0,a.toRefs)(s)}}};const lX=(0,r.Z)(aX,[["render",vW],["__scopeId","data-v-74e739a2"]]);var nX=lX;const rX={class:"orangehrm-post-filters"};function iX(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-button");return(0,a.openBlock)(),(0,a.createElementBlock)("div",rX,[(0,a.createVNode)(i,{"icon-name":"clock-history",class:"orangehrm-post-filters-button",label:r.mostRecentButtonLabel,"display-type":r.mostRecentButtonType,onClick:t[0]||(t[0]=t=>e.$emit("updatePriority","share.createdAtUtc"))},null,8,["label","display-type"]),(0,a.createVNode)(i,{"icon-name":"heart-fill",class:"orangehrm-post-filters-button",label:r.mostLikesButtonLabel,"display-type":r.mostLikesButtonType,onClick:t[1]||(t[1]=t=>e.$emit("updatePriority","share.numOfLikes"))},null,8,["label","display-type"]),(0,a.createVNode)(i,{"icon-name":"chat-dots-fill",class:"orangehrm-post-filters-button",label:r.mostCommentsButtonLabel,"display-type":r.mostCommentsButtonType,onClick:t[2]||(t[2]=t=>e.$emit("updatePriority","share.numOfComments"))},null,8,["label","display-type"])])}var sX={name:"PostFilters",props:{filter:{type:String,required:!0},mobile:{type:Boolean,default:!1}},emits:["updatePriority"],computed:{isMostRecent(){return"share.createdAtUtc"===this.filter},isMostLikes(){return"share.numOfLikes"===this.filter},isMostComments(){return"share.numOfComments"===this.filter},mostRecentButtonType(){return this.isMostRecent?"label-warn":"text"},mostLikesButtonType(){return this.isMostLikes?"label-warn":"text"},mostCommentsButtonType(){return this.isMostComments?"label-warn":"text"},mostRecentButtonLabel(){return this.mobile?this.isMostRecent?this.$t("buzz.most_recent_posts"):"":this.$t("buzz.most_recent_posts")},mostLikesButtonLabel(){return this.mobile?this.isMostLikes?this.$t("buzz.most_liked_posts"):"":this.$t("buzz.most_liked_posts")},mostCommentsButtonLabel(){return this.mobile?this.isMostComments?this.$t("buzz.most_commented_posts"):"":this.$t("buzz.most_commented_posts")}}};const dX=(0,r.Z)(sX,[["render",iX],["__scopeId","data-v-5df7d87f"]]);var cX=dX;const mX={class:"orangehrm-buzz-anniversary"},uX={class:"orangehrm-buzz-anniversary-profile"},pX={class:"orangehrm-buzz-anniversary-profile-details"},hX={class:"orangehrm-buzz-anniversary-duration"},gX=["src"],vX={class:"orangehrm-buzz-anniversary-durations-text"},fX={key:0,class:"orangehrm-buzz-anniversary-nocontent"},yX=["src"],CX={key:0,class:"orangehrm-buzz-anniversary-footer"};function bX(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("profile-image");return(0,a.openBlock)(),(0,a.createElementBlock)("div",mX,[(0,a.createVNode)(i,{type:"card-title",class:"orangehrm-buzz-anniversary-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.upcoming_anniversaries")),1)])),_:1}),(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(["orangehrm-buzz-anniversary-content",{"--show-more":n.anniversariesCount>5}])},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.anniversaries,(t=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t,class:"orangehrm-buzz-anniversary-item"},[(0,a.createElementVNode)("div",uX,[(0,a.createVNode)(s,{employee:t},null,8,["employee"]),(0,a.createElementVNode)("div",pX,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-anniversary-emp-name"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.empName),1)])),_:2},1024),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-anniversary-job-details"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.jobTitle),1)])),_:2},1024)])]),(0,a.createElementVNode)("div",hX,[(0,a.createElementVNode)("img",{alt:"year celebration",class:"orangehrm-buzz-anniversary-year-celebration",src:l.celebrationPic},null,8,gX),(0,a.createElementVNode)("div",vX,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-anniversary-duration-years"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.anniversaryYear),1)])),_:2},1024),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-anniversary-duration-years"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("buzz.n_year",{yearsCount:t.anniversaryYear})),1)])),_:2},1024),(0,a.createVNode)(i,{tag:"p",class:"orangehrm-buzz-anniversary-duration-date"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.joinedDate),1)])),_:2},1024)])])])))),128)),r.isEmpty?((0,a.openBlock)(),(0,a.createElementBlock)("div",fX,[(0,a.createElementVNode)("img",{src:l.noContentPic,alt:"No Content"},null,8,yX),(0,a.createVNode)(i,{tag:"p"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.$t("general.no_records_found")),1)])),_:1})])):(0,a.createCommentVNode)("",!0)],2),n.anniversariesCount>5?((0,a.openBlock)(),(0,a.createElementBlock)("div",CX,[(0,a.createVNode)(i,{tag:"p",onClick:r.onSeeMore},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(r.isViewDetails?e.$t("general.show_more"):e.$t("general.show_less")),1)])),_:1},8,["onClick"])])):(0,a.createCommentVNode)("",!0)])}var VX={name:"UpcomingAnniversaries",components:{"profile-image":uH},setup(){const{locale:e}=De(),{$tEmpName:t}=xa(),o=`${window.appGlobal.publicPath}/images/year_celebration.png`,a=`${window.appGlobal.publicPath}/images/buzz_no_anniversaries.png`,l=new P(window.appGlobal.baseUrl,"/api/v2/buzz/anniversaries");return{http:l,locale:e,noContentPic:a,celebrationPic:o,tEmpName:t}},data(){return{viewMore:!1,isLoading:!1,anniversaries:[],anniversariesCount:0}},computed:{isViewDetails(){return!this.viewMore},isEmpty(){return!this.isLoading&&0===this.anniversaries.length}},beforeMount(){this.anniversariesLimit=5,this.getAnniversaries()},methods:{onSeeMore(){this.viewMore=!this.viewMore,this.viewMore?this.anniversariesLimit=0:this.anniversariesLimit=5,this.getAnniversaries()},getAnniversaries(){this.isLoading=!0,this.http.getAll({limit:this.anniversariesLimit}).then((e=>{const{data:t,meta:o}=e.data;this.anniversaries=t.map((e=>{const{employee:t,jobTitle:o,joinedDate:a}=e;return{empNumber:t.empNumber,empName:this.tEmpName(t,{includeMiddle:!1,excludePastEmpTag:!1}),jobTitle:o.title,joinedDate:ie(re(a),"MMM dd",{locale:this.locale}),anniversaryYear:(new Date).getFullYear()-new Date(a).getFullYear()}})),this.anniversariesCount=o?.total})).finally((()=>this.isLoading=!1))}}};const xX=(0,r.Z)(VX,[["render",bX],["__scopeId","data-v-7a43ba69"]]);var wX=xX,NX={components:{"news-feed":nX,"oxd-tab-panel":q.OxdTabPanel,"post-filters":cX,"oxd-tab-container":q.OxdTabContainer,"upcoming-anniversaries":wX},props:{employee:{type:Object,required:!0}},setup(){const{$t:e}=Se(),t=(0,a.ref)(null),o=(0,q.useResponsive)(),l=(0,a.ref)("share.createdAtUtc"),n=(0,a.computed)((()=>!(o.screenType===q.DEVICE_TYPES.DEVICE_LG||o.screenType===q.DEVICE_TYPES.DEVICE_XL))),r=(0,a.computed)((()=>o.windowWidth)),{swipeContainer:i}=pW((o=>{const a=o.offsetDirection;2===a&&(t.value=e("buzz.upcoming_anniversaries")),4===a&&(t.value=e("buzz.buzz_newsfeed"))})),s=e=>{e&&(l.value=e)};return{width:r,isMobile:n,sortField:l,tabSelector:t,onUpdatePriority:s,swipeRef:i}}};const _X=(0,r.Z)(NX,[["render",cW],["__scopeId","data-v-df9a4d4c"]]);var kX=_X,SX={"view-buzz":kX};const DX=e=>((0,a.pushScopeId)("data-v-b551a176"),e=e(),(0,a.popScopeId)(),e),$X={class:"orangehrm-system-check"},EX=DX((()=>(0,a.createElementVNode)("br",null,null,-1))),TX=DX((()=>(0,a.createElementVNode)("br",null,null,-1))),BX=DX((()=>(0,a.createElementVNode)("b",null,"/src/log",-1))),IX=DX((()=>(0,a.createElementVNode)("b",null,"/src/log/orangehrm.log",-1)));function LX(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("flex-table"),d=(0,a.resolveComponent)("oxd-button"),c=(0,a.resolveComponent)("oxd-form-actions"),m=(0,a.resolveComponent)("oxd-form");return(0,a.openBlock)(),(0,a.createBlock)(m,{loading:n.isLoading,class:(0,a.normalizeClass)(n.isLoading?"orangehrm-system-check-form-loading":"orangehrm-system-check-form")},{default:(0,a.withCtx)((()=>[(0,a.createElementVNode)("div",$X,[(0,a.createVNode)(i,{tag:"h5",class:"orangehrm-system-check-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" System Check ")])),_:1}),EX,(0,a.createVNode)(i,{class:"orangehrm-system-check-content"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" To properly function the system, please ensure that all of the system check items listed below are green. If any are red, please take the necessary steps to fix them. ")])),_:1}),TX,n.error?.message?((0,a.openBlock)(),(0,a.createBlock)(i,{key:0,class:"orangehrm-system-check-content --error"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)(" An unexpected error occurred. Please provide the file write permission to "),BX,(0,a.createTextVNode)(" directory and check the error log in "),IX,(0,a.createTextVNode)(" file for more details. ")])),_:1})):(0,a.createCommentVNode)("",!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.items,(e=>((0,a.openBlock)(),(0,a.createBlock)(s,{key:e.category,items:e.checks,"title-name":e.category},null,8,["items","title-name"])))),128)),(0,a.createVNode)(c,{class:"orangehrm-system-check-action"},{default:(0,a.withCtx)((()=>[(0,a.createVNode)(d,{class:"orangehrm-left-space","display-type":"ghost",label:"Re-Check",type:"submit",onClick:r.reCheck},null,8,["onClick"])])),_:1})]),(0,a.renderSlot)(e.$slots,"footer",{},void 0,!0)])),_:3},8,["loading","class"])}const UX={class:"orangehrm-flex-table"};function AX(e,t,o,l,n,r){const i=(0,a.resolveComponent)("oxd-text"),s=(0,a.resolveComponent)("oxd-divider");return(0,a.openBlock)(),(0,a.createElementBlock)("div",UX,[(0,a.createVNode)(i,{tag:"p",class:"orangehrm-flex-table-title"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(o.titleName),1)])),_:1}),(0,a.createVNode)(s,{class:"orangehrm-flex-table-divider"}),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(o.items,((e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t,class:"orangehrm-flex-table-row"},[(0,a.createVNode)(i,{class:"orangehrm-flex-table-content"},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)])),_:2},1024),(0,a.createVNode)(i,{class:(0,a.normalizeClass)(r.getClass(e.value.status))},{default:(0,a.withCtx)((()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.value.message),1)])),_:2},1032,["class"])])))),128))])}var PX={name:"FlexTable",props:{titleName:{type:String,required:!0},items:{type:Array,required:!0,default:()=>[]}},methods:{getClass(e){return 1===e?"orangehrm-flex-table-value --success":2===e?"orangehrm-flex-table-value --warning":"orangehrm-flex-table-value --error"}}};const qX=(0,r.Z)(PX,[["render",AX],["__scopeId","data-v-29402b1e"]]);var MX=qX,FX={name:"SystemCheckScreen",components:{"flex-table":MX},setup(){const e=new P(window.appGlobal.baseUrl,"/api/v2/core/system-check");return{http:e}},data(){return{items:[],isLoading:!1,isInterrupted:!1,error:null}},beforeMount(){this.fetchData()},methods:{fetchData(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t,meta:o}=e.data;this.items=t,this.isInterrupted=o.isInterrupted,this.error=o.error})).finally((()=>{this.isLoading=!1}))},reCheck(){this.fetchData()}}};const jX=(0,r.Z)(FX,[["render",LX],["__scopeId","data-v-b551a176"]]);var zX=jX,RX={"system-check":zX},OX={...Ym,...fx,...mt,...$x,...Uk,...wB,...zT,...XI,...mU,...WM,...eG,...GG,...AQ,...Ym,...dW,...SX,...RX};const GX=e=>(...t)=>{const o=(0,a.getCurrentInstance)();if(!o)throw new Error("Vue app context not found!");const l=(0,a.inject)("permissions",void 0);return!!l&&t.reduce(((t,o)=>t&&Boolean(l[o])&&l[o][e]),!0)};function ZX(){return{beforeCreate(){this.$can={read:GX("canRead"),create:GX("canCreate"),update:GX("canUpdate"),delete:GX("canDelete")}}}}var QX={install:e=>{e.mixin(ZX())}},HX=o(3416);const WX=we(),YX=(0,a.reactive)({toasts:[],transition:"",class:"",position:""}),JX=(0,a.defineComponent)({name:"OxdToaster",setup(){return{...(0,a.toRefs)(YX)}},computed:{classes(){return{"oxd-toast-container":!0,[`oxd-toast-container--${this.position}`]:!0}}},methods:{onUpdateShow(e,t){!1===e&&this.toasts.splice(t,1)}},render(){return(0,a.h)(a.TransitionGroup,{appear:!0,name:this.transition,tag:"div",class:this.classes},{default:()=>this.toasts.map(((e,t)=>(0,a.h)(q.OxdToast,{key:e.id,type:e.type,title:e.title,message:e.message,show:e.show,class:this.class,"onUpdate:show":e=>this.onUpdateShow(e,t)})))})}});var XX={install:(e,t)=>{const o=document.createElement("oxd-toaster");o.id="oxd-toaster_1",document.getElementById("app").appendChild(o);const a=e=>{if("string"===typeof e){const t=YX.toasts.findIndex((t=>t.id===e));t>-1&&a(t)}else YX.toasts[e]&&YX.toasts.splice(e,1)},l=e=>new Promise((o=>{const l=(0,HX.x0)(8);if(YX.toasts.push({...e,id:l}),t.persist)o(l);else{const e=t.duration?t.duration:2500;setTimeout((()=>{a(l),o(l)}),e)}})),n=e=>l({id:"",type:q.TOAST_TYPES.TYPE_SUCCESS,show:!0,...e}),r=e=>l({id:"",type:q.TOAST_TYPES.TYPE_ERROR,show:!0,...e}),i=e=>l({id:"",type:q.TOAST_TYPES.TYPE_INFO,show:!0,...e}),s=e=>l({id:"",type:q.TOAST_TYPES.TYPE_WARN,show:!0,...e}),d=e=>l({id:"",type:q.TOAST_TYPES.TYPE_DEFAULT,show:!0,...e}),c=()=>{YX.toasts=[]},m=()=>n({title:WX("general.success"),message:WX("general.successfully_saved")}),u=()=>n({title:WX("general.success"),message:WX("general.successfully_added")}),p=()=>n({title:WX("general.success"),message:WX("general.successfully_updated")}),h=()=>n({title:WX("general.success"),message:WX("general.successfully_deleted")}),g=()=>r({title:WX("general.error"),message:WX("general.cannot_be_deleted")}),v=()=>i({title:WX("general.info"),message:WX("general.no_records_found")}),f=e=>r({title:WX("general.error"),message:e??WX("general.unexpected_error")});YX.class=t.class?t.class:"oxd-toast-container--toast",YX.transition=t.animation?t.animation:"oxd-toast-list",YX.position=t.position?t.position:"bottom",e.component("OxdToaster",JX);const y={notify:l,show:d,success:n,error:r,info:i,warn:s,clear:a,clearAll:c,saveSuccess:m,addSuccess:u,updateSuccess:p,deleteSuccess:h,cannotDelete:g,noRecordsFound:v,unexpectedError:f};e.config.globalProperties.$toast=y}};const KX=(0,a.createApp)({name:"App",components:OX});KX.use(Ae),KX.use(XX,{duration:2500,persist:!1,animation:"oxd-toast-list",position:"bottom"});const eK=window.appGlobal.baseUrl,{i18n:tK,init:oK}=ke({baseUrl:eK,resourceUrl:"core/i18n/messages"});KX.use(QX),KX.use(tK),KX.config.globalProperties.global={baseUrl:eK},oK().then((()=>KX.mount("#app")))}},t={};function o(a){var l=t[a];if(void 0!==l)return l.exports;var n=t[a]={exports:{}};return e[a].call(n.exports,n,n.exports,o),n.exports}o.m=e,function(){var e=[];o.O=function(t,a,l,n){if(!a){var r=1/0;for(c=0;c=n)&&Object.keys(o.O).every((function(e){return o.O[e](a[s])}))?a.splice(s--,1):(i=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[a,l,n]}}(),function(){o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,{a:t}),t}}(),function(){o.d=function(e,t){for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce((function(t,a){return o.f[a](e,t),t}),[]))}}(),function(){o.u=function(e){return"js/"+e+".js"}}(),function(){o.miniCssF=function(e){}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="orangehrm:";o.l=function(a,l,n,r){if(e[a])e[a].push(l);else{var i,s;if(void 0!==n)for(var d=document.getElementsByTagName("script"),c=0;c\n\n\n\n\n","import { render } from \"./SubmitButton.vue?vue&type=template&id=fe7e21e2\"\nimport script from \"./SubmitButton.vue?vue&type=script&lang=js\"\nexport * from \"./SubmitButton.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./TableHeader.vue?vue&type=template&id=0dea79bd&scoped=true\"\nimport script from \"./TableHeader.vue?vue&type=script&lang=js\"\nexport * from \"./TableHeader.vue?vue&type=script&lang=js\"\n\nimport \"./TableHeader.vue?vue&type=style&index=0&id=0dea79bd&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0dea79bd\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./RequiredText.vue?vue&type=template&id=319fc346&scoped=true\"\nimport script from \"./RequiredText.vue?vue&type=script&lang=js\"\nexport * from \"./RequiredText.vue?vue&type=script&lang=js\"\n\nimport \"./RequiredText.vue?vue&type=style&index=0&id=319fc346&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-319fc346\"]])\n\nexport default __exports__","\n\n\n","\n\n\n\n\n\n\n","/*\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nclass TempStorage {\n private _tempStorage: {[key: string]: string} = {};\n\n clear(): void {\n this._tempStorage = {};\n }\n\n getItem(name: string): string | null {\n return this._tempStorage[name] || null;\n }\n\n key(index: number): string | null {\n return Object.keys(this._tempStorage)[index] || null;\n }\n\n removeItem(name: string): void {\n delete this._tempStorage[name];\n }\n\n setItem(name: string, value: string): void {\n this._tempStorage[name] = value;\n }\n}\n\n/**\n * Check storage API available\n * https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API#testing_for_availability\n */\nfunction isSupported(storage: Storage): boolean {\n try {\n const x = '__storage_test__';\n storage.setItem(x, x);\n storage.removeItem(x);\n return true;\n } catch (e) {\n return (\n e instanceof DOMException &&\n // everything except Firefox\n (e.code === 22 ||\n // Firefox\n e.code === 1014 ||\n // test name field too, because code might not be present\n // everything except Firefox\n e.name === 'QuotaExceededError' ||\n // Firefox\n e.name === 'NS_ERROR_DOM_QUOTA_REACHED') &&\n // acknowledge QuotaExceededError only if there's something already stored\n storage &&\n storage.length !== 0\n );\n }\n}\n\nexport class WebStorage {\n private _storage;\n\n constructor(storage: Storage) {\n if (isSupported(storage)) {\n this._storage = storage;\n } else {\n this._storage = new TempStorage();\n }\n }\n\n clear(): void {\n this._storage.clear();\n }\n\n getItem(name: string): string | null {\n return this._storage.getItem(name);\n }\n\n key(index: number): string | null {\n return this._storage.key(index);\n }\n\n removeItem(name: string): void {\n this._storage.removeItem(name);\n }\n\n setItem(name: string, value: string): void {\n this._storage.setItem(name, value);\n }\n}\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\n/**\n * @param endpoint\n * @param params\n * @param query\n * @returns {string}\n */\nexport const prepare = function (\n endpoint: string,\n params: {[key: string]: string | number} = {},\n query: {[key: string]: string | number | boolean | string[]} = {},\n): string {\n let preparedEndpoint = endpoint;\n query = JSON.parse(JSON.stringify(query));\n Object.keys(params).forEach((param) => {\n const paramPlaceholder = `{${param}}`;\n if (preparedEndpoint.includes(paramPlaceholder)) {\n let paramValue = params[param];\n if (typeof paramValue === 'number') {\n paramValue = paramValue.toString();\n }\n preparedEndpoint = preparedEndpoint.replace(paramPlaceholder, paramValue);\n } else {\n // eslint-disable-next-line no-console\n console.error('Invalid parameter.');\n }\n });\n let preparedQueryString = '?';\n const queryKeys = Object.keys(query);\n queryKeys.forEach((queryKey, index) => {\n if (index !== 0) {\n preparedQueryString += '&';\n }\n const queryValue = query[queryKey];\n if (Array.isArray(queryValue)) {\n queryValue.forEach((queryValueItem, itemIndex) => {\n if (itemIndex !== 0) {\n preparedQueryString += '&';\n }\n preparedQueryString += `${queryKey}[]=${queryValueItem}`;\n });\n } else {\n preparedQueryString += `${queryKey}=${queryValue}`;\n }\n });\n return encodeURI(\n preparedEndpoint + (queryKeys.length === 0 ? '' : preparedQueryString),\n );\n};\n\n/**\n * @param endpoint\n * @param params\n * @param query\n * @returns {string}\n */\nexport const urlFor = function (\n endpoint: string,\n params: {[key: string]: string | number} = {},\n query: {[key: string]: string | number | boolean | string[]} = {},\n): string {\n // @ts-expect-error: appGlobal is not in window object by default\n return window.appGlobal.baseUrl + prepare(endpoint, params, query);\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {urlFor} from '@ohrm/core/util/helper/url';\n\n/**\n * @param path\n * @param params\n * @param query\n */\nexport const navigate = function (\n path: string,\n params: {[key: string]: string | number} = {},\n query: {[key: string]: string | number | boolean | string[]} = {},\n): void {\n window.location.href = urlFor(path, params, query);\n};\n\nexport const reloadPage = function (): void {\n window.location.reload();\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport axios, {\n AxiosError,\n AxiosInstance,\n AxiosRequestConfig,\n AxiosResponse,\n RawAxiosRequestHeaders,\n} from 'axios';\nimport {WebStorage} from '../helper/storage';\nimport {ComponentInternalInstance, getCurrentInstance} from 'vue';\nimport {reloadPage} from '@ohrm/core/util/helper/navigation';\n\ninterface ErrorResponse {\n error: {\n message?: string;\n };\n}\n\nexport class APIService {\n private _http: AxiosInstance;\n private _baseUrl: string;\n private _apiSection: string;\n private _cacheStorage: WebStorage;\n private _ignorePathRegex: RegExp | undefined;\n\n constructor(baseUrl: string, path: string) {\n this._baseUrl = baseUrl;\n this._apiSection = path;\n this._http = axios.create({\n baseURL: this._baseUrl,\n });\n this._cacheStorage = new WebStorage(localStorage);\n this.setupResponseInterceptors(getCurrentInstance());\n }\n\n setIgnorePath(ignorePath: string) {\n this._ignorePathRegex = new RegExp(ignorePath);\n }\n\n getAll(params?: object): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n 'Cache-Control':\n 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0',\n };\n return this._http.get(this._apiSection, {headers, params});\n }\n\n get(id: number, params?: object): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n };\n return this._http.get(`${this._apiSection}/${id}`, {headers, params});\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n create(data: any): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n };\n return this._http.post(this._apiSection, data, {headers});\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n update(id: number, data: any): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n };\n return this._http.put(`${this._apiSection}/${id}`, data, {headers});\n }\n\n delete(id: number): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n };\n return this._http.delete(`${this._apiSection}/${id}`, {headers});\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n deleteAll(data?: any): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n };\n return this._http.delete(`${this._apiSection}`, {headers, data});\n }\n\n request(options: AxiosRequestConfig): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n };\n return this._http.request({\n url: this._apiSection,\n headers,\n ...options,\n });\n }\n\n // Function to prevent Error toast messages from showing\n ignoreError(error: AxiosError): boolean {\n if (\n this._ignorePathRegex &&\n (error.response?.status === 422 || error.response?.status === 400)\n ) {\n const url: string = error.response.config.url ?? '';\n return this._ignorePathRegex.test(url);\n }\n return false;\n }\n\n /**\n * ComponentInternalInstance is given to access $toast api.\n * will fail silently if $toast is not installed/NA\n */\n setupResponseInterceptors(vm: ComponentInternalInstance | null): void {\n this._http.interceptors.response.use(\n (response: AxiosResponse): AxiosResponse => {\n return response;\n },\n (error: AxiosError): Promise => {\n if (error.response?.status === 401) {\n reloadPage();\n return Promise.reject();\n }\n\n if (this.ignoreError(error)) {\n return Promise.reject(error.response);\n }\n\n const $toast = vm?.appContext.config.globalProperties.$toast;\n if ($toast && error.code !== 'ECONNABORTED') {\n const response = error.response?.data;\n $toast.unexpectedError(response?.error.message || null);\n }\n return Promise.reject(error);\n },\n );\n\n if (process.env.NODE_ENV !== 'development') {\n const removeETagWeakValidatorDirective = (etag: string) => {\n return etag.startsWith('W/') ? etag.substring(2) : etag;\n };\n // Additional interceptors for caching\n this._http.interceptors.request.use(\n (config: AxiosRequestConfig) => {\n if (config.url) {\n const url = config.url;\n const cachedEtag = this._cacheStorage.getItem(url);\n if (cachedEtag) {\n config.headers = {\n ...(config.headers as RawAxiosRequestHeaders),\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match\n 'If-None-Match': cachedEtag,\n };\n }\n }\n return config;\n },\n (error: AxiosError): Promise => {\n return Promise.reject(error);\n },\n );\n this._http.interceptors.response.use(\n (response: AxiosResponse) => {\n const {config, headers} = response;\n if (config.url && headers) {\n const url = config.url;\n const etag = headers['etag'];\n const cachedEtag = this._cacheStorage.getItem(url);\n if (etag && etag !== cachedEtag) {\n this._cacheStorage.removeItem(url);\n this._cacheStorage.setItem(\n url,\n removeETagWeakValidatorDirective(etag),\n );\n\n if (cachedEtag) this._cacheStorage.removeItem(cachedEtag);\n this._cacheStorage.setItem(\n removeETagWeakValidatorDirective(etag),\n JSON.stringify(response.data),\n );\n }\n }\n return response;\n },\n (error: AxiosError) => {\n if (error.response?.status === 304) {\n const etag = error.response.headers['etag'];\n if (etag) {\n const cacheData = this._cacheStorage.getItem(\n removeETagWeakValidatorDirective(etag),\n );\n if (cacheData) {\n return Promise.resolve({\n ...error.response,\n status: 200,\n data: JSON.parse(cacheData),\n });\n }\n }\n }\n return Promise.reject(error);\n },\n );\n }\n }\n\n public get http() {\n return this._http;\n }\n\n public get baseUrl() {\n return this._baseUrl;\n }\n\n public set apiSection(path: string) {\n this._apiSection = path;\n }\n}\n","import { render } from \"./About.vue?vue&type=template&id=df10eb5c&scoped=true\"\nimport script from \"./About.vue?vue&type=script&lang=js\"\nexport * from \"./About.vue?vue&type=script&lang=js\"\n\nimport \"./About.vue?vue&type=style&index=0&id=df10eb5c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-df10eb5c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {inject, InjectionKey} from 'vue';\nimport {convertPHPDateFormat} from '@ohrm/oxd';\n\ntype DateFormat = {\n id: string;\n label: string;\n};\n\nexport const dateFormatKey: InjectionKey =\n Symbol('dateFormat');\n\nexport default function useDateFormat() {\n const dateFormat = inject(dateFormatKey);\n if (!dateFormat) throw new Error('Date format is invalid');\n const jsDateFormat = convertPHPDateFormat(dateFormat.id);\n const userDateFormat = dateFormat.label;\n const timeFormat = 'HH:mm';\n const jsTimeFormat = 'hh:mm a';\n\n return {\n timeFormat,\n jsTimeFormat,\n jsDateFormat,\n userDateFormat,\n };\n}\n","import { render } from \"./Layout.vue?vue&type=template&id=4dc53262\"\nimport script from \"./Layout.vue?vue&type=script&lang=js\"\nexport * from \"./Layout.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import {\n parse,\n format,\n isDate,\n compareAsc,\n startOfYear,\n endOfYear,\n getDaysInMonth,\n addDays,\n isSameDay,\n isToday,\n differenceInSeconds,\n differenceInCalendarDays,\n} from 'date-fns';\n\nconst defaultTimezones = [\n {\n offset: 0,\n label: 'Europe/London',\n },\n {\n offset: 1,\n label: 'Europe/Belgrade',\n },\n {\n offset: 2,\n label: 'Europe/Minsk',\n },\n {\n offset: 3,\n label: 'Asia/Kuwait',\n },\n {\n offset: 4,\n label: 'Asia/Muscat',\n },\n {\n offset: 5,\n label: 'Asia/Yekaterinburg',\n },\n {\n offset: 5.5,\n label: 'Asia/Kolkata',\n },\n {\n offset: 6,\n label: 'Asia/Dhaka',\n },\n {\n offset: 7,\n label: 'Asia/Krasnoyarsk',\n },\n {\n offset: 8,\n label: 'Asia/Brunei',\n },\n {\n offset: 9,\n label: 'Asia/Seoul',\n },\n {\n offset: 9.5,\n label: 'Australia/Darwin',\n },\n {\n offset: 10,\n label: 'Australia/Canberra',\n },\n {\n offset: 11,\n label: 'Asia/Magadan',\n },\n {\n offset: 12,\n label: 'Pacific/Fiji',\n },\n {\n offset: -11,\n label: 'Pacific/Midway',\n },\n {\n offset: -10,\n label: 'Pacific/Honolulu',\n },\n {\n offset: -9,\n label: 'America/Anchorage',\n },\n {\n offset: -8,\n label: 'America/Los_Angeles',\n },\n {\n offset: -7,\n label: 'America/Denver',\n },\n {\n offset: -6,\n label: 'America/Tegucigalpa',\n },\n {\n offset: -5,\n label: 'America/New_York',\n },\n {\n offset: -4,\n label: 'America/Halifax',\n },\n {\n offset: -3.5,\n label: 'America/St_Johns',\n },\n {\n offset: -3,\n label: 'America/Argentina/Buenos_Aires',\n },\n {\n offset: -2,\n label: 'Atlantic/South_Georgia',\n },\n {\n offset: -1,\n label: 'Atlantic/Azores',\n },\n];\n\nconst freshDate = () => {\n return new Date(new Date().setHours(0, 0, 0, 0));\n};\n\nconst parseDate = (\n value: string,\n dateFormat = 'yyyy-MM-dd',\n options = {},\n): Date | null => {\n try {\n const parsed = parse(value, dateFormat, freshDate(), options);\n if (!isNaN(parsed.valueOf()) && parsed.getFullYear() >= 1000) {\n return parsed;\n }\n return null;\n } catch (error) {\n return null;\n }\n};\n\nconst formatDate = (\n value: Date,\n dateFormat: string,\n options = {},\n): string | null => {\n try {\n return format(value, dateFormat, options);\n } catch (error) {\n return null;\n }\n};\n\nconst isBefore = (\n reference: string,\n comparable: string,\n dateFormat: string,\n): boolean => {\n const referenceDate = parseDate(reference, dateFormat);\n const comparableDate = parseDate(comparable, dateFormat);\n\n if (referenceDate && comparableDate) {\n return compareAsc(referenceDate, comparableDate) === -1 ? true : false;\n }\n\n return false;\n};\n\nconst isAfter = (\n reference: string,\n comparable: string,\n dateFormat: string,\n): boolean => {\n const referenceDate = parseDate(reference, dateFormat);\n const comparableDate = parseDate(comparable, dateFormat);\n\n if (referenceDate && comparableDate) {\n return compareAsc(referenceDate, comparableDate) === 1 ? true : false;\n }\n\n return false;\n};\n\nconst isEqual = (\n reference: string,\n comparable: string,\n dateFormat: string,\n): boolean => {\n const referenceDate = parseDate(reference, dateFormat);\n const comparableDate = parseDate(comparable, dateFormat);\n\n if (referenceDate && comparableDate) {\n return compareAsc(referenceDate, comparableDate) === 0 ? true : false;\n }\n\n return false;\n};\n\nconst numberOfDaysInMonth = (\n month: number | undefined, // 1 - 12\n discardLeapYear: boolean,\n): number => {\n if (month && month > 0 && month <= 12) {\n const days = getDaysInMonth(new Date().setMonth(month - 1));\n return discardLeapYear && days === 29 ? 28 : days;\n }\n\n return 0;\n};\n\nconst parseTime = (value: string, timeFormat: string): Date | null => {\n return parseDate(value, timeFormat);\n};\n\nconst formatTime = (\n value: Date,\n timeFormat: string,\n options = {},\n): string | null => {\n return formatDate(value, timeFormat, options);\n};\n\nconst compareTime = (\n reference: string,\n comparable: string,\n timeFormat: string,\n): number => {\n const referenceTime = parseDate(reference, timeFormat);\n const comparableTime = parseDate(comparable, timeFormat);\n\n if (referenceTime && comparableTime) {\n if (referenceTime.valueOf() < comparableTime.valueOf()) {\n return 1;\n }\n if (referenceTime.valueOf() > comparableTime.valueOf()) {\n return -1;\n }\n if (referenceTime.valueOf() === comparableTime.valueOf()) {\n return 0;\n }\n }\n\n return NaN;\n};\n\nconst diffInDays = (\n fromDate: string,\n toDate: string,\n dateFormat = 'yyyy-MM-dd',\n): number => {\n const from = parseDate(fromDate, dateFormat);\n const to = parseDate(toDate, dateFormat);\n if (from && to) {\n return isSameDay(to, from) ? 1 : differenceInCalendarDays(to, from) + 1;\n }\n return 0;\n};\n\nconst diffInTime = (\n startTime: string,\n endTime: string,\n timeFormat = 'HH:mm',\n): number => {\n const start = parseTime(startTime, timeFormat);\n const end = parseTime(endTime, timeFormat);\n if (start && end) {\n const diffInSecs = differenceInSeconds(end, start);\n if (diffInSecs > 0) return diffInSecs;\n }\n return 0;\n};\n\nconst secondsTohhmm = (seconds: number): string => {\n const hours = Math.floor(seconds / 3600);\n const minutes = Math.floor((seconds - hours * 3600) / 60);\n return `${hours.toString().padStart(2, '0')}:${minutes\n .toString()\n .padStart(2, '0')}`;\n};\n\nconst parseTimeInSeconds = (value: string): number => {\n // Check if HH:mm format matches else if decimal format\n if (/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(value)) {\n const time = value.split(':');\n return parseInt(time[0]) * 60 * 60 + parseInt(time[1]) * 60;\n } else if (\n parseFloat(value) < 24 &&\n /^([0-9])+(?:\\.[0-9]{1,2})?$/.test(value)\n ) {\n return parseFloat(value) * 60 * 60;\n } else {\n return -1;\n }\n};\n\n/**\n * setClockInterval will repeatedly calls a function or executes a code snippet,\n * while being in sync with system clock. minimum resoluton 1 second.\n * @param callback {function():void} callback function to execute\n * @param interval {number} interval in miliseconds. default 1000\n */\nconst setClockInterval = (callback: (args: void) => void, interval = 1000) => {\n interval = interval < 1000 ? 1000 : interval; // minimum interval 1000 miliseconds\n const timer = () => {\n callback();\n setTimeout(timer, interval - (new Date().getTime() % interval));\n };\n timer();\n};\n\n//this function returns the timezone in standard format eg:- +05:30 when input given as float eg:- +5.5\nconst getStandardTimezone = (timezoneOffset: number) => {\n return (\n (timezoneOffset > 0 ? '+' : '-') +\n String(Math.abs(timezoneOffset).toFixed(2))\n .split('.')\n .map((substr, i) =>\n i === 0\n ? substr.padStart(2, '0')\n : String(parseInt(substr) * 0.6).padEnd(2, '0'),\n )\n .join(':')\n );\n};\n\n/**\n * guessTimezone will first try to guess the current timezone name using\n * ES6 Intl API. in the offchance it's not possible it will revert value using\n * default timezone list.\n * @typedef {Object} Timezone\n * @property {string} name - timezone's english name\n * @property {string} label - timezone's english formatted label\n * @property {number} offset - timezone's offset in hours\n */\nconst guessTimezone = () => {\n let timezoneName = Intl.DateTimeFormat().resolvedOptions().timeZone;\n // getTimezoneOffset return difference in minutes between UTC and client\n // offset is positive if the local timezone is behind UTC and negative if it is ahead\n const timezoneOffset = (new Date().getTimezoneOffset() / 60) * -1;\n if (timezoneName === undefined) {\n // assign timezone manually\n const resolvedTz = defaultTimezones.find(\n (tz) => tz.offset === timezoneOffset,\n );\n timezoneName = resolvedTz ? resolvedTz.label : defaultTimezones[0].label;\n }\n\n const formattedOffset = getStandardTimezone(timezoneOffset);\n\n return {\n name: timezoneName,\n label: `(GMT ${formattedOffset}) ${timezoneName}`,\n offset: timezoneOffset,\n };\n};\n\nexport {\n isDate,\n freshDate,\n parseDate,\n formatDate,\n isAfter,\n isBefore,\n isEqual,\n startOfYear,\n endOfYear,\n numberOfDaysInMonth,\n addDays,\n parseTime,\n diffInDays,\n diffInTime,\n secondsTohhmm,\n compareTime,\n parseTimeInSeconds,\n setClockInterval,\n guessTimezone,\n getStandardTimezone,\n isToday,\n formatTime,\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {AxiosResponse} from 'axios';\nimport {App, ComponentOptions} from 'vue';\nimport IntlMessageFormat from 'intl-messageformat';\nimport {APIService} from '@/core/util/services/api.service';\nimport {StoreService} from '@ohrm/oxd';\n\nexport type Language = {\n [key: string]: IntlMessageFormat;\n};\n\nexport interface LanguageResponse {\n [key: string]: {\n source: string;\n target: string;\n description: string;\n };\n}\n\nexport interface LanguageOptions {\n baseUrl: string;\n resourceUrl: string;\n}\n\nexport type TranslateAPI = (\n key: string,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n parameters?: {[key: string]: any},\n) => string;\n\nexport const langStrings: Record = {};\n\n/**\n * A factory function that will return translator function\n * @return {function(key, parameters): string}\n */\nexport const translate =\n () =>\n (\n key: string,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n parameters: {[key: string]: any} = {},\n ): string => {\n // IntlMessageFormat.format method will throw error if not every argument in the message pattern\n // has been provided. sourrounded by try catch to fallback incase of param resolution\n try {\n if (!langStrings[key]) return key;\n const translatedString = langStrings[key].format(parameters);\n if (Array.isArray(translatedString)) {\n return typeof translatedString[0] === 'string'\n ? translatedString[0]\n : key;\n }\n return translatedString;\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error);\n return key;\n }\n };\n\nconst defineMixin = (): ComponentOptions => {\n return {\n beforeCreate(): void {\n this.$t = translate();\n },\n };\n};\n\nfunction createI18n(options: LanguageOptions) {\n const http = new APIService(options.baseUrl, options.resourceUrl);\n return {\n init: function () {\n return new Promise((resolve) => {\n http\n .request({\n method: 'GET',\n headers: {\n Accept: 'application/json',\n contentType: 'application/json',\n ...(process.env.NODE_ENV === 'development' && {\n 'Cache-Control': 'public, max-age=60',\n }),\n },\n })\n .then((response: AxiosResponse) => {\n const {data} = response;\n const language: {[key: string]: string} = {};\n for (const key in data) {\n // https://formatjs.io/docs/intl-messageformat#intlmessageformat-constructor\n language[key] = data[key].target || data[key].source;\n langStrings[key] = new IntlMessageFormat(\n data[key].target || data[key].source,\n undefined,\n undefined,\n {ignoreTag: true}, // no html/xml markup parsing\n );\n }\n StoreService.mergeConfig({\n language,\n });\n })\n .finally(() => resolve());\n });\n },\n i18n: function (app: App) {\n app.mixin(defineMixin());\n },\n };\n}\n\nexport default createI18n;\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {translate as translatorFactory} from '@/core/plugins/i18n/translate';\n\nexport default function usei18n() {\n const translate = translatorFactory();\n\n return {\n $t: translate,\n };\n}\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport usei18n from './usei18n';\nimport {buildLocale} from '@ohrm/oxd';\n\nexport default function useLocale() {\n const {$t} = usei18n();\n\n const locale: Locale = buildLocale({\n months: {\n wide: [\n $t('general.january'),\n $t('general.february'),\n $t('general.march'),\n $t('general.april'),\n $t('general.may'),\n $t('general.june'),\n $t('general.july'),\n $t('general.august'),\n $t('general.september'),\n $t('general.october'),\n $t('general.november'),\n $t('general.december'),\n ],\n abbreviated: [\n $t('general.jan'),\n $t('general.feb'),\n $t('general.mar'),\n $t('general.apr'),\n $t('general.may'),\n $t('general.jun'),\n $t('general.jul'),\n $t('general.aug'),\n $t('general.sep'),\n $t('general.oct'),\n $t('general.nov'),\n $t('general.dec'),\n ],\n },\n days: {\n abbreviated: [\n $t('general.sun'),\n $t('general.mon'),\n $t('general.tue'),\n $t('general.wed'),\n $t('general.thu'),\n $t('general.fri'),\n $t('general.sat'),\n ],\n wide: [\n $t('general.sunday'),\n $t('general.monday'),\n $t('general.tuesday'),\n $t('general.wednesday'),\n $t('general.thursday'),\n $t('general.friday'),\n $t('general.saturday'),\n ],\n },\n });\n\n return {\n locale,\n };\n}\n","import { render } from \"./DateInput.vue?vue&type=template&id=7f7cbd26\"\nimport script from \"./DateInput.vue?vue&type=script&lang=js\"\nexport * from \"./DateInput.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./TimeInput.vue?vue&type=template&id=9b52fdd6\"\nimport script from \"./TimeInput.vue?vue&type=script&lang=js\"\nexport * from \"./TimeInput.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {App} from 'vue';\nimport SubmitButton from '@ohrm/components/buttons/SubmitButton.vue';\nimport TableHeader from '@ohrm/components/table/TableHeader.vue';\nimport RequiredText from '@ohrm/components/labels/RequiredText.vue';\nimport Layout from '@ohrm/components/layout/Layout.vue';\nimport DateInput from '@ohrm/components/inputs/DateInput.vue';\nimport TimeInput from '@ohrm/components/inputs/TimeInput.vue';\n\nimport {\n OxdCardTable,\n OxdButton,\n OxdPagination,\n OxdDivider,\n OxdText,\n OxdIconButton,\n OxdForm,\n OxdFormRow,\n OxdFormActions,\n OxdInputField,\n OxdInputGroup,\n OxdGrid,\n OxdGridItem,\n OxdTableFilter,\n} from '@ohrm/oxd';\n\nexport default {\n install: (app: App) => {\n app.component('OxdLayout', Layout);\n app.component('OxdCardTable', OxdCardTable);\n app.component('OxdButton', OxdButton);\n app.component('OxdPagination', OxdPagination);\n app.component('OxdDivider', OxdDivider);\n app.component('OxdText', OxdText);\n app.component('OxdIconButton', OxdIconButton);\n app.component('OxdForm', OxdForm);\n app.component('OxdFormRow', OxdFormRow);\n app.component('OxdFormActions', OxdFormActions);\n app.component('OxdInputField', OxdInputField);\n app.component('OxdInputGroup', OxdInputGroup);\n app.component('OxdGrid', OxdGrid);\n app.component('OxdGridItem', OxdGridItem);\n app.component('OxdTableFilter', OxdTableFilter);\n app.component('SubmitButton', SubmitButton);\n app.component('TableHeader', TableHeader);\n app.component('RequiredText', RequiredText);\n app.component('DateInput', DateInput);\n app.component('TimeInput', TimeInput);\n },\n};\n","\n\n\n\n\n","import { render } from \"./NoRecordsFound.vue?vue&type=template&id=e49e7d2e\"\nimport script from \"./NoRecordsFound.vue?vue&type=script&lang=js\"\nexport * from \"./NoRecordsFound.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./BadRequest.vue?vue&type=template&id=7ff83c8c\"\nimport script from \"./BadRequest.vue?vue&type=script&lang=js\"\nexport * from \"./BadRequest.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ModuleUnderDevelopment.vue?vue&type=template&id=c0c6b572&scoped=true\"\nimport script from \"./ModuleUnderDevelopment.vue?vue&type=script&lang=js\"\nexport * from \"./ModuleUnderDevelopment.vue?vue&type=script&lang=js\"\n\nimport \"./ModuleUnderDevelopment.vue?vue&type=style&index=0&id=c0c6b572&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c0c6b572\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Disabled.vue?vue&type=template&id=3d2f2dd1&scoped=true\"\nconst script = {}\n\nimport \"./Disabled.vue?vue&type=style&index=0&id=3d2f2dd1&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3d2f2dd1\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./TimeSheetPeriodNotDefined.vue?vue&type=template&id=0b4cb5ba\"\nimport script from \"./TimeSheetPeriodNotDefined.vue?vue&type=script&lang=js\"\nexport * from \"./TimeSheetPeriodNotDefined.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport NoRecordsFound from './NoRecordsFound.vue';\nimport BadRequest from './BadRequest.vue';\nimport ModuleUnderDevelopment from './ModuleUnderDevelopment.vue';\nimport Disabled from './Disabled.vue';\nimport TimeSheetPeriodNotDefined from './TimeSheetPeriodNotDefined.vue';\n\nexport default {\n 'bad-request': BadRequest,\n 'no-records-found': NoRecordsFound,\n 'module-under-development': ModuleUnderDevelopment,\n 'disabled-module': Disabled,\n 'time-sheet-period-not-defined': TimeSheetPeriodNotDefined,\n};\n","\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {getCurrentInstance} from 'vue';\nimport {ToasterAPI} from '../../plugins/toaster/toaster';\n\nexport default function useToast() {\n const $toast: ToasterAPI | undefined =\n getCurrentInstance()?.appContext.config.globalProperties.$toast;\n\n /**\n * typesafe & nullsafe wrapper for functions\n * https://stackoverflow.com/a/61212868/2182418\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const wrap = any>(\n fn: Func | undefined,\n ): ((...args: Parameters) => ReturnType) => {\n return (...args: Parameters): ReturnType => {\n return fn && fn(...args);\n };\n };\n\n return {\n notify: wrap($toast?.notify),\n show: wrap($toast?.show),\n success: wrap($toast?.success),\n error: wrap($toast?.error),\n info: wrap($toast?.info),\n warn: wrap($toast?.warn),\n clear: wrap($toast?.clear),\n clearAll: wrap($toast?.clearAll),\n saveSuccess: wrap($toast?.saveSuccess),\n addSuccess: wrap($toast?.addSuccess),\n updateSuccess: wrap($toast?.updateSuccess),\n deleteSuccess: wrap($toast?.deleteSuccess),\n cannotDelete: wrap($toast?.cannotDelete),\n noRecordsFound: wrap($toast?.noRecordsFound),\n };\n}\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {onBeforeMount, reactive, toRefs, watch, unref} from 'vue';\nimport {APIService} from '@/core/util/services/api.service';\nimport {AxiosResponse} from 'axios';\nimport useToast from '@/core/util/composable/useToast';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\ninterface ServerResponse {\n data?: any;\n meta?: any;\n error?: boolean;\n message?: string;\n}\n\ninterface State {\n showPaginator: boolean;\n isLoading: boolean;\n response: ServerResponse;\n total: number;\n pages: number;\n currentPage: number;\n}\n\ninterface DTO {\n [key: string]: any;\n}\n/* eslint-enable @typescript-eslint/no-explicit-any */\n\nasync function fetchData(\n http: APIService,\n params: object,\n): Promise {\n try {\n const response: AxiosResponse = await http.getAll(params);\n return {\n data: response.data.data,\n meta: response.data.meta,\n error: false,\n };\n } catch (error) {\n return {\n error: true,\n message: (error as Error).message,\n };\n }\n}\n\nfunction getPageParams(pageSize: number, currentPage: number) {\n const offset = pageSize * (currentPage - 1);\n return {\n limit: pageSize,\n offset,\n };\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction getQueryParams(query: any) {\n const params = JSON.parse(JSON.stringify(unref(query)));\n for (const [key, value] of Object.entries(params)) {\n params[key] = value === null || value === '' ? undefined : value;\n }\n return params;\n}\n\n/* Override to mutate fields after fetching */\nfunction defaultNormalizer(data: DTO[]): DTO[] {\n return data;\n}\n\ntype usePaginateArgs = {\n query?: object;\n normalizer?: (data: DTO[]) => DTO[];\n prefetch?: boolean;\n toastNoRecords?: boolean;\n pageSize?: number;\n};\n\nexport default function usePaginate(\n http: APIService,\n {\n query = {},\n normalizer = defaultNormalizer,\n prefetch = true,\n toastNoRecords = true,\n pageSize = 50,\n }: usePaginateArgs = {},\n) {\n const state = reactive({\n showPaginator: false,\n isLoading: false,\n response: {},\n total: 0,\n pages: 0,\n currentPage: 1,\n });\n const {noRecordsFound} = useToast();\n\n const execQuery = async () => {\n state.isLoading = true;\n const pageParams = getPageParams(pageSize, state.currentPage);\n const queryParams = getQueryParams(query);\n state.response = await fetchData(http, {...pageParams, ...queryParams});\n if (!state.response.error) {\n const {data, ...rest} = state.response;\n const formattedData = normalizer(data);\n state.response = {data: formattedData, ...rest};\n }\n if (state.response.meta) {\n state.total = state.response.meta.total;\n if (state.total > pageSize) {\n state.showPaginator = true;\n state.pages = Math.ceil(state.total / pageSize);\n } else {\n state.currentPage = 1;\n state.pages = 1;\n state.showPaginator = false;\n }\n\n if (state.total === 0 && toastNoRecords) {\n noRecordsFound();\n }\n }\n state.isLoading = false;\n };\n\n if (prefetch) {\n onBeforeMount(execQuery);\n }\n\n watch(() => state.currentPage, execQuery);\n\n return {\n ...toRefs(state),\n execQuery,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./DeleteConfirmationDialog.vue?vue&type=template&id=64d94959&scoped=true\"\nimport script from \"./DeleteConfirmationDialog.vue?vue&type=script&lang=js\"\nexport * from \"./DeleteConfirmationDialog.vue?vue&type=script&lang=js\"\n\nimport \"./dialog.scss?vue&type=style&index=0&id=64d94959&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-64d94959\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {computed, ref, watch} from 'vue';\n\ntype Order = 'ASC' | 'DESC' | 'DEFAULT';\n\ninterface SortDefinition {\n [column: string]: Order;\n}\n\ninterface SortParams {\n sortDefinition: SortDefinition;\n}\n\nexport default function useSort(sortParams: SortParams) {\n const sortDefinition = ref({\n ...JSON.parse(JSON.stringify(sortParams.sortDefinition)),\n });\n\n const sortField = computed(() => {\n return Object.keys(sortDefinition.value).filter((column) => {\n const order = sortDefinition.value[column];\n return order && order != 'DEFAULT';\n })[0];\n });\n\n const sortOrder = computed(() => {\n return sortDefinition.value[sortField.value];\n });\n\n const onSort = (func: () => void) => watch(sortDefinition, func);\n\n return {\n sortDefinition,\n sortField,\n sortOrder,\n onSort,\n };\n}\n","import { render } from \"./JobTitle.vue?vue&type=template&id=42949099\"\nimport script from \"./JobTitle.vue?vue&type=script&lang=js\"\nexport * from \"./JobTitle.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","/*\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {\n compareTime,\n diffInDays,\n formatDate,\n isAfter,\n isBefore,\n isEqual,\n parseDate,\n} from '../helper/datefns';\nimport {translate as translatorFactory} from '@/core/plugins/i18n/translate';\n\nconst translate = translatorFactory();\n\nexport type File = {\n name: string;\n type: string;\n size: number;\n base64: string;\n};\n\n/**\n * @param {string|number|Array} value\n * @returns {boolean|string}\n */\nexport const required = function (\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n value: string | number | Array,\n): boolean | string {\n if (typeof value === 'string') {\n return (!!value && value.trim() !== '') || translate('general.required');\n } else if (typeof value === 'number') {\n return !Number.isNaN(value) || 'general.required';\n } else if (Array.isArray(value)) {\n return (!!value && value.length !== 0) || translate('general.required');\n } else if (typeof value === 'object') {\n return value !== null || translate('general.required');\n } else {\n return translate('general.required');\n }\n};\n\n/**\n * @param {number} charLength\n */\nexport const shouldNotExceedCharLength = function (charLength: number) {\n return function (value: string): boolean | string {\n return (\n !value ||\n new String(value).length <= charLength ||\n translate('general.should_be_less_n_characters', {amount: charLength})\n );\n };\n};\n\nexport const validDateFormat = function (\n displayFormat = 'yyyy-mm-dd',\n dateFormat = 'yyyy-MM-dd',\n) {\n return function (value: string): boolean | string {\n if (!value) return true;\n const parsed = parseDate(value, dateFormat);\n return parsed\n ? true\n : translate('general.should_be_a_valid_date_in_x_format', {\n format: displayFormat,\n });\n };\n};\n\nexport const shouldBeCurrentOrPreviousDate = function () {\n return function (value: string): boolean | string {\n if (!value) return true;\n const dateFormat = 'yyyy-MM-dd';\n const currentDate = formatDate(new Date(), dateFormat) || '';\n const isValid = diffInDays(value, currentDate, dateFormat);\n return isValid > 0\n ? true\n : translate('recruitment.should_be_current_date_previous_date');\n };\n};\n\nexport const validTimeFormat = function (value: string): boolean | string {\n if (!value) return true;\n const parsed = parseDate(value, 'HH:mm');\n return parsed\n ? true\n : translate('general.should_be_a_valid_date_in_hh:mm_format');\n};\n\nexport const max = function (maxValue: number) {\n return function (value: string): boolean | string {\n return (\n Number.isNaN(parseFloat(value)) ||\n parseFloat(value) < maxValue ||\n translate('general.should_be_less_than_n', {amount: maxValue})\n );\n };\n};\n\nexport const digitsOnly = function (value: string): boolean | string {\n return (\n value == '' ||\n (/^\\d+$/.test(value) && !Number.isNaN(parseFloat(value))) ||\n translate('general.should_be_a_number')\n );\n};\n\nexport const numericOnly = function (value: string): boolean | string {\n return (\n value == '' ||\n (/^\\d+$/.test(value) && !Number.isNaN(parseFloat(value))) ||\n translate('general.should_be_a_numeric_value')\n );\n};\n\nexport const digitsOnlyWithDecimalPoint = function (\n value: string,\n): boolean | string {\n return (\n value == '' ||\n (/^\\d*\\.?\\d*$/.test(value) && !Number.isNaN(parseFloat(value))) ||\n translate('general.should_be_a_number')\n );\n};\n\nexport const digitsOnlyWithDecimalPointAndMinusSign = function (\n value: string,\n): boolean | string {\n return (\n value == '' ||\n (/^-?\\d*\\.?\\d*$/.test(value) && !Number.isNaN(parseFloat(value))) ||\n translate('general.should_be_a_number')\n );\n};\n\n/**\n * Check whether date1 is before date2\n * @param {string} date1\n * @param {string} date2\n * @param {string} dateFormat\n */\nexport const beforeDate = function (\n date1: string,\n date2: string,\n dateFormat = 'yyyy-MM-dd',\n) {\n // Skip assertion on unset values\n if (!date1 || !date2) {\n return true;\n }\n return isBefore(date1, date2, dateFormat);\n};\n\n/**\n * Check whether date1 is after date2\n * @param {string} date1\n * @param {string} date2\n * @param {string} dateFormat\n */\nexport const afterDate = function (\n date1: string,\n date2: string,\n dateFormat = 'yyyy-MM-dd',\n) {\n // Skip assertion on unset values\n if (!date1 || !date2) {\n return true;\n }\n return isAfter(date1, date2, dateFormat);\n};\n\n/**\n * Check whether date1 is same as date2\n * @param {string} date1\n * @param {string} date2\n * @param {string} dateFormat\n */\nexport const sameDate = function (\n date1: string,\n date2: string,\n dateFormat = 'yyyy-MM-dd',\n) {\n // Skip assertion on unset values\n if (!date1 || !date2) {\n return true;\n }\n return isEqual(date1, date2, dateFormat);\n};\n\n/**\n * @param {string} startDate\n * @param {string|undefined} message\n * @param {object} options\n */\nexport const endDateShouldBeAfterStartDate = (\n startDate: string | (() => string),\n message?: string,\n options: {\n allowSameDate?: boolean;\n dateFormat?: string;\n } = {\n allowSameDate: false,\n dateFormat: 'yyyy-MM-dd',\n },\n) => {\n return (value: string): boolean | string => {\n const resolvedStartDate =\n typeof startDate === 'function' ? startDate() : startDate;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.end_date_should_be_after_start_date');\n if (options.allowSameDate) {\n return (\n sameDate(value, resolvedStartDate) ||\n afterDate(value, resolvedStartDate, options.dateFormat) ||\n resolvedMessage\n );\n } else {\n return (\n afterDate(value, resolvedStartDate, options.dateFormat) ||\n resolvedMessage\n );\n }\n };\n};\n\n/**\n * Check whether time1 is before time2\n * @param {string} time1\n * @param {string} time2\n * @param {string} timeFormat\n */\nexport const beforeTime = function (\n time1: string,\n time2: string,\n timeFormat = 'yyyy-MM-dd',\n) {\n // Skip assertion on unset values\n if (!time1 || !time2) {\n return true;\n }\n return compareTime(time1, time2, timeFormat) === 1;\n};\n\n/**\n * Check whether time1 is after time2\n * @param {string} time1\n * @param {string} time2\n * @param {string} timeFormat\n */\nexport const afterTime = function (\n time1: string,\n time2: string,\n timeFormat = 'HH:mm',\n) {\n // Skip assertion on unset values\n if (!time1 || !time2) {\n return true;\n }\n return compareTime(time1, time2, timeFormat) === -1;\n};\n\n/**\n * Check whether time1 is equal time2\n * @param {string} time1\n * @param {string} time2\n * @param {string} timeFormat\n */\nexport const sameTime = function (\n time1: string,\n time2: string,\n timeFormat = 'HH:mm',\n) {\n // Skip assertion on unset values\n if (!time1 || !time2) {\n return true;\n }\n return compareTime(time1, time2, timeFormat) === 0;\n};\n\n/**\n * @param {string} startTime\n * @param {string|undefined} message\n * @param {object} options\n */\nexport const endTimeShouldBeAfterStartTime = (\n startTime: string | (() => string),\n message?: string,\n options: {\n allowSameTime?: boolean;\n timeFormat?: string;\n } = {\n allowSameTime: false,\n timeFormat: 'HH:mm',\n },\n) => {\n return (value: string): boolean | string => {\n const resolvedStartTime =\n typeof startTime === 'function' ? startTime() : startTime;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.end_time_should_be_after_start_time');\n if (options.allowSameTime) {\n return (\n sameTime(value, resolvedStartTime) ||\n afterTime(value, resolvedStartTime, options.timeFormat) ||\n resolvedMessage\n );\n } else {\n return (\n afterTime(value, resolvedStartTime, options.timeFormat) ||\n resolvedMessage\n );\n }\n };\n};\n\n/**\n * @param {number} size - File size in bytes\n */\nexport const maxFileSize = function (size: number) {\n return function (file: File): boolean | string {\n return (\n file === null ||\n (file.size && file.size <= size) ||\n translate('general.attachment_size_exceeded')\n );\n };\n};\n\nexport const validFileTypes = function (fileTypes: string[]) {\n return function (file: File): boolean | string {\n return (\n file === null ||\n (file && fileTypes.findIndex((item) => item === file.type) > -1) ||\n translate('general.file_type_not_allowed')\n );\n };\n};\n\nexport const validEmailFormat = function (value: string): boolean | string {\n return (\n !value ||\n /^[a-zA-Z0-9.!#$%&'*+\\\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/.test(\n value,\n ) ||\n translate('general.expected_email_address_format_not_matched')\n );\n};\n\nexport const validPhoneNumberFormat = function (\n value: string,\n): boolean | string {\n return (\n !value ||\n /^[0-9+\\-/() ]+$/.test(value) ||\n translate('general.allows_phone_numbers_only')\n );\n};\n\n/**\n * @param {string} endDate\n * @param {string|undefined} message\n * @param {object} options\n */\nexport const startDateShouldBeBeforeEndDate = (\n endDate: string | (() => string),\n message?: string,\n options: {\n allowSameDate?: boolean;\n dateFormat?: string;\n } = {\n allowSameDate: false,\n dateFormat: 'yyyy-MM-dd',\n },\n) => {\n return (value: string): boolean | string => {\n const resolvedEndDate = typeof endDate === 'function' ? endDate() : endDate;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.start_date_should_be_before_end_date');\n if (options.allowSameDate) {\n return (\n sameDate(value, resolvedEndDate) ||\n beforeDate(value, resolvedEndDate, options.dateFormat) ||\n resolvedMessage\n );\n } else {\n return (\n beforeDate(value, resolvedEndDate, options.dateFormat) ||\n resolvedMessage\n );\n }\n };\n};\n\nexport const maxCurrency = function (maxValue: number) {\n return function (value: string): boolean | string {\n return (\n Number.isNaN(parseFloat(value)) ||\n parseFloat(value) < maxValue ||\n translate('general.should_be_less_than_n', {\n amount: maxValue.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, ','),\n })\n );\n };\n};\n\n/**\n * @param {string} endTime\n * @param {string|undefined} message\n * @param {object} options\n */\nexport const startTimeShouldBeBeforeEndTime = (\n endTime: string | (() => string),\n message?: string,\n options: {\n allowSameTime?: boolean;\n timeFormat?: string;\n } = {\n allowSameTime: false,\n timeFormat: 'HH:mm',\n },\n) => {\n return (value: string): boolean | string => {\n const resolvedEndTime = typeof endTime === 'function' ? endTime() : endTime;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.start_time_should_be_before_end_time');\n if (options.allowSameTime) {\n return (\n sameTime(value, resolvedEndTime) ||\n beforeTime(value, resolvedEndTime, options.timeFormat) ||\n resolvedMessage\n );\n } else {\n return (\n beforeTime(value, resolvedEndTime, options.timeFormat) ||\n resolvedMessage\n );\n }\n };\n};\n\n/**\n * @param {number} charLength\n */\nexport const shouldNotLessThanCharLength = function (charLength: number) {\n return function (value: string): boolean | string {\n return (\n !value ||\n String(value).length >= charLength ||\n translate('general.should_be_least_n_characters', {amount: charLength})\n );\n };\n};\n\n/**\n * @param {string | function} minValue\n * @param {string|undefined} message\n */\nexport const maxValueShouldBeGreaterThanMinValue = (\n minValue: string | (() => string),\n message?: string,\n) => {\n return (value: string): boolean | string => {\n const resolvedMinValue =\n typeof minValue === 'function' ? minValue() : minValue;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.should_be_higher_than_minimum_value');\n if (resolvedMinValue === null || value === null) return true;\n if (resolvedMinValue === undefined || value === undefined) return true;\n if (resolvedMinValue === '' || value === '') return true;\n if (resolvedMinValue === '0' || value === '0') return true;\n return parseFloat(resolvedMinValue) < parseFloat(value) || resolvedMessage;\n };\n};\n\n/**\n * @param {string | function} maxValue\n * @param {string|undefined} message\n */\nexport const minValueShouldBeLowerThanMaxValue = (\n maxValue: string | (() => string),\n message?: string,\n) => {\n return (value: string): boolean | string => {\n const resolvedMaxValue =\n typeof maxValue === 'function' ? maxValue() : maxValue;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.should_be_lower_than_maximum_value');\n if (resolvedMaxValue === null || value === null) return true;\n if (resolvedMaxValue === undefined || value === undefined) return true;\n if (resolvedMaxValue === '' || value === '0') return true;\n return parseFloat(resolvedMaxValue) > parseFloat(value) || resolvedMessage;\n };\n};\n\n/**\n * @param {number} minValue\n * @param {number} maxValue\n * @param {string|undefined} message\n */\nexport const numberShouldBeBetweenMinAndMaxValue = (\n minValue: number,\n maxValue: number,\n message?: string,\n) => {\n return (value: string): boolean | string => {\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.should_be_a_number_between_min_and_max', {\n min: minValue,\n max: maxValue,\n });\n return (\n (digitsOnly(value) === true &&\n parseFloat(value) >= minValue &&\n parseFloat(value) <= maxValue) ||\n resolvedMessage\n );\n };\n};\n\n/**\n * Validate #rrggbb & #rgb hex strings\n * @param {string} value hex string\n * @returns {boolean|string}\n */\nexport const validHexFormat = function (value: string): boolean | string {\n if (!value) return true;\n return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/i.test(value)\n ? true\n : translate('general.invalid');\n};\n\n/**\n * Validate image dimensions\n * @param {number} aspectRatio width/height\n * @param {number} tolerance\n * @returns {Promise}\n */\nexport const imageShouldHaveDimensions = function (\n aspectRatio: number,\n tolerance = 0.1,\n) {\n return function (file: File | null): Promise {\n return new Promise((resolve) => {\n if (file === null || file.type === 'image/svg+xml') return resolve(true);\n const image = new Image();\n image.src = `data:${file.type};base64, ${file.base64}`;\n image.decode().then(() => {\n if (Math.abs(image.width / image.height - aspectRatio) < tolerance) {\n resolve(true);\n } else {\n resolve(translate('general.incorrect_dimensions'));\n }\n });\n });\n };\n};\n\nexport const greaterThanOrEqual = function (\n minValue: number,\n message?: string,\n) {\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.greater_than_or_equal_to_n', {minValue: minValue});\n return function (value: string): boolean | string {\n if (value === null || value === '') return true;\n if (digitsOnlyWithDecimalPointAndMinusSign(value) !== true) {\n return resolvedMessage;\n }\n return parseFloat(value) >= minValue || resolvedMessage;\n };\n};\n\nexport const lessThanOrEqual = function (maxValue: number, message?: string) {\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.less_than_or_equal_to_n', {maxValue: maxValue});\n return function (value: string): boolean | string {\n if (value === null || value === '') return true;\n if (digitsOnlyWithDecimalPointAndMinusSign(value) !== true) {\n return resolvedMessage;\n }\n return parseFloat(value) <= maxValue || resolvedMessage;\n };\n};\n\nexport const validLangString = function (value: string) {\n if (value === null || value === '') {\n return true;\n }\n return value.split('').reduce((accumulator, currentValue) => {\n if (currentValue === '{') accumulator++;\n if (currentValue === '}') accumulator--;\n return accumulator;\n }, 0) !== 0\n ? translate('general.invalid')\n : true;\n};\n\n/**\n * Validate autocomplete selection\n * @param {string|object|null} value\n * @returns {boolean|string}\n */\nexport const validSelection = function (value: string | object | null) {\n return typeof value === 'string' ? translate('general.invalid') : true;\n};\n\nexport const validHostnameFormat = function (value: string): boolean | string {\n let fqdnRegex;\n\n // If string contains any letters, treat the string as a hostname. else ip address\n if (/\\p{L}/u.test(value)) {\n fqdnRegex =\n /^([\\p{L}\\p{N}\\p{S}\\-.])+(\\.?([\\p{L}\\p{N}]|xn--[\\p{L}\\p{N}-]+)+\\.?)(:[0-9]+)?$/gu;\n } else {\n fqdnRegex =\n /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/;\n }\n\n return !value || fqdnRegex.test(value) || translate('general.invalid');\n};\n\nexport const validPortRange = function (\n charLength: number,\n rangeFrom: number,\n rangeTo: number,\n) {\n return function (value: string): boolean | string {\n return (\n !value ||\n (/^\\d+$/.test(value) &&\n !Number.isNaN(parseFloat(value)) &&\n String(value).length <= charLength &&\n parseInt(value) >= rangeFrom &&\n parseInt(value) <= rangeTo) ||\n translate('general.enter_valid_port_between_a_to_b', {\n minValue: rangeFrom,\n maxValue: rangeTo,\n })\n );\n };\n};\n\n/**\n * Validate url to be a valid youtube video\n * @param {string} value url string\n * @returns\n */\nexport const validVideoURL = function (value: string): boolean | string {\n return (\n !value ||\n /^(?:https?:\\/\\/)?(?:m\\.|www\\.)?(?:youtu\\.be\\/|youtube\\.com\\/(?:shorts\\/|embed\\/|v\\/|watch\\?v=|watch\\?.+&v=))((\\w|-){11})(\\?\\S*)?$/.test(\n value,\n ) ||\n translate('general.invalid_video_url_message')\n );\n};\n","\n\n\n\n\n\n\n","import { render } from \"./FileUploadInput.vue?vue&type=template&id=0511e208&scoped=true\"\nimport script from \"./FileUploadInput.vue?vue&type=script&lang=js\"\nexport * from \"./FileUploadInput.vue?vue&type=script&lang=js\"\n\nimport \"./FileUploadInput.vue?vue&type=style&index=0&id=0511e208&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0511e208\"]])\n\nexport default __exports__","import { render } from \"./EditJobTitle.vue?vue&type=template&id=808b6d62\"\nimport script from \"./EditJobTitle.vue?vue&type=script&lang=js\"\nexport * from \"./EditJobTitle.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveJobTitle.vue?vue&type=template&id=792cfcc7\"\nimport script from \"./SaveJobTitle.vue?vue&type=script&lang=js\"\nexport * from \"./SaveJobTitle.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./JobCategory.vue?vue&type=template&id=3763dbbd\"\nimport script from \"./JobCategory.vue?vue&type=script&lang=js\"\nexport * from \"./JobCategory.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditJobCategory.vue?vue&type=template&id=f5f2ecd2\"\nimport script from \"./EditJobCategory.vue?vue&type=script&lang=js\"\nexport * from \"./EditJobCategory.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveJobCategory.vue?vue&type=template&id=3fcfb3bf\"\nimport script from \"./SaveJobCategory.vue?vue&type=script&lang=js\"\nexport * from \"./SaveJobCategory.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./EmployeeAutocomplete.vue?vue&type=template&id=1ccb3a64&scoped=true\"\nimport script from \"./EmployeeAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeAutocomplete.vue?vue&type=style&index=0&id=1ccb3a64&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1ccb3a64\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport usei18n from '@/core/util/composable/usei18n';\n\ntype Employee = {\n firstName: string;\n middleName: string | null;\n lastName: string;\n terminationId: number | null;\n};\n\ntype Options = {\n includeMiddle?: boolean;\n excludePastEmpTag?: boolean;\n};\n\nexport default function useEmployeeNameTranslate() {\n const {$t} = usei18n();\n\n const translateEmployeeName = (\n employee: Employee,\n options?: Options,\n ): string => {\n if (employee.firstName === 'Purged' && employee.lastName === 'Employee') {\n return $t('general.purged_employee');\n }\n\n const includeMiddle = options?.includeMiddle;\n const excludePastEmpTag = options?.excludePastEmpTag;\n\n const resolvedMiddleName =\n typeof includeMiddle === 'boolean' &&\n includeMiddle &&\n typeof employee.middleName === 'string'\n ? ` ${employee.middleName} `\n : ' ';\n\n if (employee.terminationId) {\n const resolvedPastEmpTag =\n typeof excludePastEmpTag === 'undefined'\n ? ` ${$t('general.past_employee')}`\n : excludePastEmpTag\n ? ''\n : ` ${$t('general.past_employee')}`;\n\n return `${employee.firstName}${resolvedMiddleName}${employee.lastName}${resolvedPastEmpTag}`;\n }\n\n return `${employee.firstName}${resolvedMiddleName}${employee.lastName}`;\n };\n\n return {\n $tEmpName: translateEmployeeName,\n };\n}\n","import { render } from \"./SystemUser.vue?vue&type=template&id=31631e2d\"\nimport script from \"./SystemUser.vue?vue&type=script&lang=js\"\nexport * from \"./SystemUser.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {ref} from 'vue';\nimport {AxiosResponse} from 'axios';\nimport {APIService} from '@/core/util/services/api.service';\n\nexport interface PasswordValidationResponse {\n data: {\n messages: string[];\n };\n meta: {\n strength: number;\n };\n}\n\nexport default function usePasswordPolicy(http: APIService) {\n const passwordStrength = ref(0);\n\n const validatePassword = (password: string) => {\n return new Promise((resolve) => {\n if (password.trim() !== '') {\n http\n .request({\n method: 'POST',\n url: `/api/v2/auth/public/validation/password`,\n data: {\n password,\n },\n })\n .then((response: AxiosResponse) => {\n const {data, meta} = response.data;\n passwordStrength.value = meta?.strength || 0;\n if (Array.isArray(data?.messages) && data.messages.length > 0) {\n resolve(data.messages[0]);\n } else {\n resolve(true);\n }\n });\n } else {\n passwordStrength.value = 0;\n resolve(true);\n }\n });\n };\n\n return {\n passwordStrength,\n validatePassword,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./PasswordStrengthIndicator.vue?vue&type=template&id=2eef2625&scoped=true\"\nimport script from \"./PasswordStrengthIndicator.vue?vue&type=script&lang=js\"\nexport * from \"./PasswordStrengthIndicator.vue?vue&type=script&lang=js\"\n\nimport \"./PasswordStrengthIndicator.vue?vue&type=style&index=0&id=2eef2625&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2eef2625\"]])\n\nexport default __exports__","import { render } from \"./PasswordInput.vue?vue&type=template&id=9345d4ba&scoped=true\"\nimport script from \"./PasswordInput.vue?vue&type=script&lang=js\"\nexport * from \"./PasswordInput.vue?vue&type=script&lang=js\"\n\nimport \"./PasswordInput.vue?vue&type=style&index=0&id=9345d4ba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-9345d4ba\"]])\n\nexport default __exports__","import { render } from \"./SaveSystemUser.vue?vue&type=template&id=7e4cce62\"\nimport script from \"./SaveSystemUser.vue?vue&type=script&lang=js\"\nexport * from \"./SaveSystemUser.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditSystemUser.vue?vue&type=template&id=370fbe82\"\nimport script from \"./EditSystemUser.vue?vue&type=script&lang=js\"\nexport * from \"./EditSystemUser.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./SaveOrgUnit.vue?vue&type=template&id=391369a4&scoped=true\"\nimport script from \"./SaveOrgUnit.vue?vue&type=script&lang=js\"\nexport * from \"./SaveOrgUnit.vue?vue&type=script&lang=js\"\n\nimport \"./SaveOrgUnit.vue?vue&type=style&index=0&id=391369a4&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-391369a4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditOrgUnit.vue?vue&type=template&id=ebf1984e\"\nimport script from \"./EditOrgUnit.vue?vue&type=script&lang=js\"\nexport * from \"./EditOrgUnit.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./OrgStructure.vue?vue&type=template&id=a525b582&scoped=true\"\nimport script from \"./OrgStructure.vue?vue&type=script&lang=js\"\nexport * from \"./OrgStructure.vue?vue&type=script&lang=js\"\n\nimport \"./org-structure.scss?vue&type=style&index=0&id=a525b582&lang=scss&scoped=true\"\nimport \"./OrgStructure.vue?vue&type=style&index=1&id=a525b582&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a525b582\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditEmploymentStatus.vue?vue&type=template&id=0abd1be2\"\nimport script from \"./EditEmploymentStatus.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmploymentStatus.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmploymentStatus.vue?vue&type=template&id=294d55d7\"\nimport script from \"./EmploymentStatus.vue?vue&type=script&lang=js\"\nexport * from \"./EmploymentStatus.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveEmploymentStatus.vue?vue&type=template&id=f786e420\"\nimport script from \"./SaveEmploymentStatus.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEmploymentStatus.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./QualificationEducation.vue?vue&type=template&id=653b2d66\"\nimport script from \"./QualificationEducation.vue?vue&type=script&lang=js\"\nexport * from \"./QualificationEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditQualificationEducation.vue?vue&type=template&id=e1cb816c\"\nimport script from \"./EditQualificationEducation.vue?vue&type=script&lang=js\"\nexport * from \"./EditQualificationEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveQualificationEducation.vue?vue&type=template&id=3ba1da40\"\nimport script from \"./SaveQualificationEducation.vue?vue&type=script&lang=js\"\nexport * from \"./SaveQualificationEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./QualificationSkill.vue?vue&type=template&id=85e1644a\"\nimport script from \"./QualificationSkill.vue?vue&type=script&lang=js\"\nexport * from \"./QualificationSkill.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditQualificationSkill.vue?vue&type=template&id=255527ed\"\nimport script from \"./EditQualificationSkill.vue?vue&type=script&lang=js\"\nexport * from \"./EditQualificationSkill.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveQualificationSkill.vue?vue&type=template&id=7a792904\"\nimport script from \"./SaveQualificationSkill.vue?vue&type=script&lang=js\"\nexport * from \"./SaveQualificationSkill.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditLicense.vue?vue&type=template&id=842a985a\"\nimport script from \"./EditLicense.vue?vue&type=script&lang=js\"\nexport * from \"./EditLicense.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveLicense.vue?vue&type=template&id=30a2ca2d\"\nimport script from \"./SaveLicense.vue?vue&type=script&lang=js\"\nexport * from \"./SaveLicense.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./License.vue?vue&type=template&id=5986ac9d\"\nimport script from \"./License.vue?vue&type=script&lang=js\"\nexport * from \"./License.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditQualificationLanguage.vue?vue&type=template&id=3fc924cc\"\nimport script from \"./EditQualificationLanguage.vue?vue&type=script&lang=js\"\nexport * from \"./EditQualificationLanguage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveQualificationLanguage.vue?vue&type=template&id=699adaef\"\nimport script from \"./SaveQualificationLanguage.vue?vue&type=script&lang=js\"\nexport * from \"./SaveQualificationLanguage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./QualificationLanguage.vue?vue&type=template&id=75bacb5b\"\nimport script from \"./QualificationLanguage.vue?vue&type=script&lang=js\"\nexport * from \"./QualificationLanguage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./QualificationMembership.vue?vue&type=template&id=76858558\"\nimport script from \"./QualificationMembership.vue?vue&type=script&lang=js\"\nexport * from \"./QualificationMembership.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditQualificationMembership.vue?vue&type=template&id=056a0b79\"\nimport script from \"./EditQualificationMembership.vue?vue&type=script&lang=js\"\nexport * from \"./EditQualificationMembership.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveQualificationMembership.vue?vue&type=template&id=04d69301\"\nimport script from \"./SaveQualificationMembership.vue?vue&type=script&lang=js\"\nexport * from \"./SaveQualificationMembership.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ViewOrganizationGeneralInformation.vue?vue&type=template&id=440f5057&scoped=true\"\nimport script from \"./ViewOrganizationGeneralInformation.vue?vue&type=script&lang=js\"\nexport * from \"./ViewOrganizationGeneralInformation.vue?vue&type=script&lang=js\"\n\nimport \"./general-info.scss?vue&type=style&index=0&id=440f5057&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-440f5057\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Nationality.vue?vue&type=template&id=2a6c619e\"\nimport script from \"./Nationality.vue?vue&type=script&lang=js\"\nexport * from \"./Nationality.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditNationality.vue?vue&type=template&id=cf57dbd0\"\nimport script from \"./EditNationality.vue?vue&type=script&lang=js\"\nexport * from \"./EditNationality.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveNationality.vue?vue&type=template&id=48664db2\"\nimport script from \"./SaveNationality.vue?vue&type=script&lang=js\"\nexport * from \"./SaveNationality.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ViewEmailConfiguration.vue?vue&type=template&id=5b5ad744&scoped=true\"\nimport script from \"./ViewEmailConfiguration.vue?vue&type=script&lang=js\"\nexport * from \"./ViewEmailConfiguration.vue?vue&type=script&lang=js\"\n\nimport \"./email-configuration.scss?vue&type=style&index=0&id=5b5ad744&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5b5ad744\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./LocationList.vue?vue&type=template&id=7515d202\"\nimport script from \"./LocationList.vue?vue&type=script&lang=js\"\nexport * from \"./LocationList.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveLocation.vue?vue&type=template&id=7f283258\"\nimport script from \"./SaveLocation.vue?vue&type=script&lang=js\"\nexport * from \"./SaveLocation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditLocation.vue?vue&type=template&id=47ee2c2e\"\nimport script from \"./EditLocation.vue?vue&type=script&lang=js\"\nexport * from \"./EditLocation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./PayGrade.vue?vue&type=template&id=2ba94e54\"\nimport script from \"./PayGrade.vue?vue&type=script&lang=js\"\nexport * from \"./PayGrade.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./AddPayGrade.vue?vue&type=template&id=7b85c7ad\"\nimport script from \"./AddPayGrade.vue?vue&type=script&lang=js\"\nexport * from \"./AddPayGrade.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./InlineActionButton.vue?vue&type=template&id=6526a07f&scoped=true\"\nimport script from \"./InlineActionButton.vue?vue&type=script&lang=js\"\nexport * from \"./InlineActionButton.vue?vue&type=script&lang=js\"\n\nimport \"./InlineActionButton.vue?vue&type=style&index=0&id=6526a07f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6526a07f\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./SavePayCurrency.vue?vue&type=template&id=30fcc35e\"\nimport script from \"./SavePayCurrency.vue?vue&type=script&lang=js\"\nexport * from \"./SavePayCurrency.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./EditPayCurrency.vue?vue&type=template&id=7ec75cce\"\nimport script from \"./EditPayCurrency.vue?vue&type=script&lang=js\"\nexport * from \"./EditPayCurrency.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./PayGradeCurrency.vue?vue&type=template&id=29cba704\"\nimport script from \"./PayGradeCurrency.vue?vue&type=script&lang=js\"\nexport * from \"./PayGradeCurrency.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EditPayGrade.vue?vue&type=template&id=2812b234\"\nimport script from \"./EditPayGrade.vue?vue&type=script&lang=js\"\nexport * from \"./EditPayGrade.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./EditModuleConfiguration.vue?vue&type=template&id=4e1bed3c&scoped=true\"\nimport script from \"./EditModuleConfiguration.vue?vue&type=script&lang=js\"\nexport * from \"./EditModuleConfiguration.vue?vue&type=script&lang=js\"\n\nimport \"./EditModuleConfiguration.vue?vue&type=style&index=0&id=4e1bed3c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4e1bed3c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./WorkShift.vue?vue&type=template&id=ab6299be\"\nimport script from \"./WorkShift.vue?vue&type=script&lang=js\"\nexport * from \"./WorkShift.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./WorkShiftEmployeeAutocomplete.vue?vue&type=template&id=24c42a2d\"\nimport script from \"./WorkShiftEmployeeAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./WorkShiftEmployeeAutocomplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./SaveWorkShift.vue?vue&type=template&id=003161fa&scoped=true\"\nimport script from \"./SaveWorkShift.vue?vue&type=script&lang=js\"\nexport * from \"./SaveWorkShift.vue?vue&type=script&lang=js\"\n\nimport \"./work-shift.scss?vue&type=style&index=0&id=003161fa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-003161fa\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./EditWorkShift.vue?vue&type=template&id=4e80e7d6&scoped=true\"\nimport script from \"./EditWorkShift.vue?vue&type=script&lang=js\"\nexport * from \"./EditWorkShift.vue?vue&type=script&lang=js\"\n\nimport \"./work-shift.scss?vue&type=style&index=0&id=4e80e7d6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4e80e7d6\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmailSubscription.vue?vue&type=template&id=3f566ab6\"\nimport script from \"./EmailSubscription.vue?vue&type=script&lang=js\"\nexport * from \"./EmailSubscription.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./SaveSubscriber.vue?vue&type=template&id=cc6ef064&scoped=true\"\nimport script from \"./SaveSubscriber.vue?vue&type=script&lang=js\"\nexport * from \"./SaveSubscriber.vue?vue&type=script&lang=js\"\n\nimport \"./SaveSubscriber.vue?vue&type=style&index=0&id=cc6ef064&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cc6ef064\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditSubscriber.vue?vue&type=template&id=36993096&scoped=true\"\nimport script from \"./EditSubscriber.vue?vue&type=script&lang=js\"\nexport * from \"./EditSubscriber.vue?vue&type=script&lang=js\"\n\nimport \"./EditSubscriber.vue?vue&type=style&index=0&id=36993096&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-36993096\"]])\n\nexport default __exports__","import { render } from \"./EditEmailSubscription.vue?vue&type=template&id=631a749c\"\nimport script from \"./EditEmailSubscription.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmailSubscription.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./LocalizationConfiguration.vue?vue&type=template&id=29cd6ebc\"\nimport script from \"./LocalizationConfiguration.vue?vue&type=script&lang=js\"\nexport * from \"./LocalizationConfiguration.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {ref, computed} from 'vue';\nimport {OxdForm} from '@ohrm/oxd';\n\ntype useFormArgs = {\n refName?: string;\n};\n\nexport default function useForm({refName = 'formRef'}: useFormArgs = {}) {\n // https://v3.vuejs.org/guide/typescript-support.html#typing-template-refs\n const form = ref>();\n\n const submit = () => form.value?.onSubmit(new Event('submit'));\n const reset = () => form.value?.onReset();\n const validate = () => form.value?.validate();\n\n const invalid = computed(() => form.value?.isFromInvalid);\n const errorbag = computed(() => form.value?.errorbag);\n\n return {\n reset,\n submit,\n validate,\n [refName]: form,\n errorbag,\n invalid,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./InlineColorInput.vue?vue&type=template&id=9d33cb16&scoped=true\"\nimport script from \"./InlineColorInput.vue?vue&type=script&lang=js\"\nexport * from \"./InlineColorInput.vue?vue&type=script&lang=js\"\n\nimport \"./InlineColorInput.vue?vue&type=style&index=0&id=9d33cb16&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-9d33cb16\"]])\n\nexport default __exports__","import { render } from \"./CorporateBranding.vue?vue&type=template&id=f2980770&scoped=true\"\nimport script from \"./CorporateBranding.vue?vue&type=script&lang=js\"\nexport * from \"./CorporateBranding.vue?vue&type=script&lang=js\"\n\nimport \"./corporate-branding.scss?vue&type=style&index=0&id=f2980770&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f2980770\"]])\n\nexport default __exports__","\n\n\n\n","\n\n\n\n\n","\n\n\n\n","import { render } from \"./LanguagesDropdown.vue?vue&type=template&id=211672d1\"\nimport script from \"./LanguagesDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./LanguagesDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./AddLanguageModal.vue?vue&type=template&id=08ca613a&scoped=true\"\nimport script from \"./AddLanguageModal.vue?vue&type=script&lang=js\"\nexport * from \"./AddLanguageModal.vue?vue&type=script&lang=js\"\n\nimport \"../pages/languagePackage/language-package.scss?vue&type=style&index=0&id=08ca613a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-08ca613a\"]])\n\nexport default __exports__","import { render } from \"./LanguagePackage.vue?vue&type=template&id=745f4367&scoped=true\"\nimport script from \"./LanguagePackage.vue?vue&type=script&lang=js\"\nexport * from \"./LanguagePackage.vue?vue&type=script&lang=js\"\n\nimport \"./language-package.scss?vue&type=style&index=0&id=745f4367&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-745f4367\"]])\n\nexport default __exports__","\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./EditTranslationTable.vue?vue&type=template&id=5f0f9ef8&scoped=true\"\nimport script from \"./EditTranslationTable.vue?vue&type=script&lang=js\"\nexport * from \"./EditTranslationTable.vue?vue&type=script&lang=js\"\n\nimport \"./edit-translation-table.scss?vue&type=style&index=0&id=5f0f9ef8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5f0f9ef8\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./LanguageGroupListDropdown.vue?vue&type=template&id=65691278\"\nimport script from \"./LanguageGroupListDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./LanguageGroupListDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./languageTranslation.vue?vue&type=template&id=1ad53bff&scoped=true\"\nimport script from \"./languageTranslation.vue?vue&type=script&lang=js\"\nexport * from \"./languageTranslation.vue?vue&type=script&lang=js\"\n\nimport \"./languageTranslation.vue?vue&type=style&index=0&id=1ad53bff&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1ad53bff\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LdapSyncConnection.vue?vue&type=template&id=0aa30e8a&scoped=true\"\nimport script from \"./LdapSyncConnection.vue?vue&type=script&lang=js\"\nexport * from \"./LdapSyncConnection.vue?vue&type=script&lang=js\"\n\nimport \"./ldap-sync-connection.scss?vue&type=style&index=0&id=0aa30e8a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0aa30e8a\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LdapTestConnectionModal.vue?vue&type=template&id=7b76f5a0&scoped=true\"\nimport script from \"./LdapTestConnectionModal.vue?vue&type=script&lang=js\"\nexport * from \"./LdapTestConnectionModal.vue?vue&type=script&lang=js\"\n\nimport \"./LdapTestConnectionModal.vue?vue&type=style&index=0&id=7b76f5a0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7b76f5a0\"]])\n\nexport default __exports__","import { render } from \"./LdapConfiguration.vue?vue&type=template&id=89df999a&scoped=true\"\nimport script from \"./LdapConfiguration.vue?vue&type=script&lang=js\"\nexport * from \"./LdapConfiguration.vue?vue&type=script&lang=js\"\n\nimport \"./ldap-configuration.scss?vue&type=style&index=0&id=89df999a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-89df999a\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport JobTitle from './pages/jobTitle/JobTitle.vue';\nimport EditJobTitle from './pages/jobTitle/EditJobTitle.vue';\nimport SaveJobTitle from './pages/jobTitle/SaveJobTitle.vue';\nimport JobCategory from './pages/jobCategory/JobCategory.vue';\nimport EditJobCategory from './pages/jobCategory/EditJobCategory.vue';\nimport SaveJobCategory from './pages/jobCategory/SaveJobCategory.vue';\nimport SystemUser from './pages/systemUser/SystemUser.vue';\nimport SaveSystemUser from './pages/systemUser/SaveSystemUser.vue';\nimport EditSystemUser from './pages/systemUser/EditSystemUser.vue';\nimport OrgStructure from './pages/orgStructure/OrgStructure.vue';\nimport EditEmploymentStatus from './pages/employmentStatus/EditEmploymentStatus.vue';\nimport EmploymentStatus from './pages/employmentStatus/EmploymentStatus.vue';\nimport SaveEmploymentStatus from './pages/employmentStatus/SaveEmploymentStatus.vue';\nimport QualificationEducation from './pages/qualificationEducation/QualificationEducation.vue';\nimport EditQualificationEducation from './pages/qualificationEducation/EditQualificationEducation.vue';\nimport SaveQualificationEducation from './pages/qualificationEducation/SaveQualificationEducation.vue';\nimport QualificationSkill from './pages/qualificationSkill/QualificationSkill.vue';\nimport EditQualificationSkill from './pages/qualificationSkill/EditQualificationSkill.vue';\nimport SaveQualificationSkill from './pages/qualificationSkill/SaveQualificationSkill.vue';\nimport EditQualificationLicense from './pages/qualificationLicense/EditLicense.vue';\nimport SaveQualificationLicense from './pages/qualificationLicense/SaveLicense.vue';\nimport QualificationLicense from './pages/qualificationLicense/License.vue';\nimport EditQualificationLanguage from './pages/qualificationLanguage/EditQualificationLanguage.vue';\nimport SaveQualificationLanguage from './pages/qualificationLanguage/SaveQualificationLanguage.vue';\nimport QualificationLanguage from './pages/qualificationLanguage/QualificationLanguage.vue';\nimport QualificationMembership from './pages/qualificationMembership/QualificationMembership.vue';\nimport EditQualificationMembership from './pages/qualificationMembership/EditQualificationMembership.vue';\nimport SaveQualificationMembership from './pages/qualificationMembership/SaveQualificationMembership.vue';\nimport ViewOrganizationGeneralInformation from './pages/organizationGeneralInformation/ViewOrganizationGeneralInformation.vue';\nimport Nationality from './pages/nationality/Nationality.vue';\nimport EditNationality from './pages/nationality/EditNationality.vue';\nimport SaveNationality from './pages/nationality/SaveNationality.vue';\nimport ViewEmailConfiguration from './pages/emailConfiguration/ViewEmailConfiguration.vue';\nimport LocationList from './pages/location/LocationList.vue';\nimport SaveLocation from './pages/location/SaveLocation.vue';\nimport EditLocation from './pages/location/EditLocation.vue';\nimport PayGrade from './pages/payGrade/PayGrade.vue';\nimport AddPayGrade from './pages/payGrade/AddPayGrade.vue';\nimport EditPayGrade from './pages/payGrade/EditPayGrade.vue';\nimport EditModuleConfiguration from './pages/moduleConfiguration/EditModuleConfiguration.vue';\nimport WorkShift from './pages/workShift/WorkShift.vue';\nimport SaveWorkShift from './pages/workShift/SaveWorkShift.vue';\nimport EditWorkShift from './pages/workShift/EditWorkShift.vue';\nimport EmailSubscription from './pages/emailSubscription/EmailSubscription.vue';\nimport EditEmailSubscription from './pages/emailSubscription/EditEmailSubscription.vue';\nimport LocalizationConfiguration from './pages/localization/LocalizationConfiguration.vue';\nimport CorporateBranding from './pages/corporateBranding/CorporateBranding.vue';\nimport LanguagePackages from '@/orangehrmAdminPlugin/pages/languagePackage/LanguagePackage.vue';\nimport EditLanguagePackage from '@/orangehrmAdminPlugin/pages/languageTranslation/languageTranslation.vue';\nimport LdapConfiguration from './pages/ldap/LdapConfiguration.vue';\n\nexport default {\n 'job-title-list': JobTitle,\n 'job-title-edit': EditJobTitle,\n 'job-title-save': SaveJobTitle,\n 'job-category-list': JobCategory,\n 'job-category-edit': EditJobCategory,\n 'job-category-save': SaveJobCategory,\n 'qualification-education-list': QualificationEducation,\n 'qualification-education-edit': EditQualificationEducation,\n 'qualification-education-save': SaveQualificationEducation,\n 'system-user-list': SystemUser,\n 'system-user-edit': EditSystemUser,\n 'system-user-save': SaveSystemUser,\n 'organization-structure': OrgStructure,\n 'employment-status-list': EmploymentStatus,\n 'employment-status-save': SaveEmploymentStatus,\n 'employment-status-edit': EditEmploymentStatus,\n 'qualification-skill-list': QualificationSkill,\n 'qualification-skill-edit': EditQualificationSkill,\n 'qualification-skill-save': SaveQualificationSkill,\n 'license-list': QualificationLicense,\n 'license-save': SaveQualificationLicense,\n 'license-edit': EditQualificationLicense,\n 'module-configuration-edit': EditModuleConfiguration,\n 'qualification-language-list': QualificationLanguage,\n 'qualification-language-edit': EditQualificationLanguage,\n 'qualification-language-save': SaveQualificationLanguage,\n 'qualification-membership-list': QualificationMembership,\n 'qualification-membership-edit': EditQualificationMembership,\n 'qualification-membership-save': SaveQualificationMembership,\n 'organization-general-information-view': ViewOrganizationGeneralInformation,\n 'nationality-list': Nationality,\n 'nationality-edit': EditNationality,\n 'nationality-save': SaveNationality,\n 'location-list': LocationList,\n 'location-save': SaveLocation,\n 'location-edit': EditLocation,\n 'email-configuration-view': ViewEmailConfiguration,\n 'pay-grade-list': PayGrade,\n 'pay-grade-add': AddPayGrade,\n 'pay-grade-edit': EditPayGrade,\n 'work-shift-list': WorkShift,\n 'work-shift-save': SaveWorkShift,\n 'work-shift-edit': EditWorkShift,\n 'email-subscription-list': EmailSubscription,\n 'email-subscription-edit': EditEmailSubscription,\n 'localization-configuration': LocalizationConfiguration,\n 'corporate-branding': CorporateBranding,\n 'language-package-list': LanguagePackages,\n 'language-translation-edit': EditLanguagePackage,\n 'ldap-configuration': LdapConfiguration,\n};\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ProfileImageInput.vue?vue&type=template&id=b553055e&scoped=true\"\nimport script from \"./ProfileImageInput.vue?vue&type=script&lang=js\"\nexport * from \"./ProfileImageInput.vue?vue&type=script&lang=js\"\n\nimport \"./ProfileImageInput.vue?vue&type=style&index=0&id=b553055e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b553055e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./FullNameInput.vue?vue&type=template&id=16292a35&scoped=true\"\nimport script from \"./FullNameInput.vue?vue&type=script&lang=js\"\nexport * from \"./FullNameInput.vue?vue&type=script&lang=js\"\n\nimport \"./FullNameInput.vue?vue&type=style&index=0&id=16292a35&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-16292a35\"]])\n\nexport default __exports__","import { render } from \"./SaveEmployee.vue?vue&type=template&id=e2b6125c&scoped=true\"\nimport script from \"./SaveEmployee.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEmployee.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=e2b6125c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e2b6125c\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./JobtitleDropdown.vue?vue&type=template&id=bb5253c6\"\nimport script from \"./JobtitleDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./JobtitleDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SubunitDropdown.vue?vue&type=template&id=93872f3e\"\nimport script from \"./SubunitDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./SubunitDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmploymentStatusDropdown.vue?vue&type=template&id=76ce238f\"\nimport script from \"./EmploymentStatusDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./EmploymentStatusDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./IncludeEmployeeDropdown.vue?vue&type=template&id=2935a28b\"\nimport script from \"./IncludeEmployeeDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./IncludeEmployeeDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Employee.vue?vue&type=template&id=0065ac32&scoped=true\"\nimport script from \"./Employee.vue?vue&type=script&lang=js\"\nexport * from \"./Employee.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=0065ac32&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0065ac32\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./TabsNavigation.vue?vue&type=template&id=8cad1ea8&scoped=true\"\nimport script from \"./TabsNavigation.vue?vue&type=script&lang=js\"\nexport * from \"./TabsNavigation.vue?vue&type=script&lang=js\"\n\nimport \"./TabsNavigation.vue?vue&type=style&index=0&id=8cad1ea8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8cad1ea8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nconst BYTE = 1;\nconst KILO_BYTE = 1024;\nconst MEGA_BYTE = 1048576; // 1024 * 1024\nconst GIGA_BYTE = 1073741824; // 1024 * 1024 * 1024\n\n/**\n * @param {string|number} value\n * @param {number|null} digits\n * @param {boolean} withSuffix\n */\nexport const convertFilesizeToString = function (\n value: string | number,\n digits?: number,\n withSuffix = true,\n): string {\n let divisor = BYTE;\n let suffix = 'B';\n let filesize;\n if (typeof value === 'number') {\n filesize = value;\n } else {\n filesize = parseInt(value, 10);\n }\n\n if (filesize >= GIGA_BYTE) {\n divisor = GIGA_BYTE;\n suffix = 'GB';\n } else if (filesize >= MEGA_BYTE) {\n divisor = MEGA_BYTE;\n suffix = 'MB';\n } else if (filesize >= KILO_BYTE) {\n divisor = KILO_BYTE;\n suffix = 'kB';\n }\n\n return (\n (filesize / divisor).toFixed(digits) + (withSuffix ? ' ' + suffix : '')\n );\n};\n","\n\n\n\n\n","import { render } from \"./SaveAttachment.vue?vue&type=template&id=07f96d2c\"\nimport script from \"./SaveAttachment.vue?vue&type=script&lang=js\"\nexport * from \"./SaveAttachment.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditAttachment.vue?vue&type=template&id=3987bea2\"\nimport script from \"./EditAttachment.vue?vue&type=script&lang=js\"\nexport * from \"./EditAttachment.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ProfileActionHeader.vue?vue&type=template&id=3dab643a&scoped=true\"\nimport script from \"./ProfileActionHeader.vue?vue&type=script&lang=js\"\nexport * from \"./ProfileActionHeader.vue?vue&type=script&lang=js\"\n\nimport \"./ProfileActionHeader.vue?vue&type=style&index=0&id=3dab643a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3dab643a\"]])\n\nexport default __exports__","import { render } from \"./ProfileAttachments.vue?vue&type=template&id=50e42520&scoped=true\"\nimport script from \"./ProfileAttachments.vue?vue&type=script&lang=js\"\nexport * from \"./ProfileAttachments.vue?vue&type=script&lang=js\"\n\nimport \"./ProfileAttachments.vue?vue&type=style&index=0&id=50e42520&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-50e42520\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ProfileCustomFields.vue?vue&type=template&id=1d59911f\"\nimport script from \"./ProfileCustomFields.vue?vue&type=script&lang=js\"\nexport * from \"./ProfileCustomFields.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EditEmployeeLayout.vue?vue&type=template&id=0349f171&scoped=true\"\nimport script from \"./EditEmployeeLayout.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmployeeLayout.vue?vue&type=script&lang=js\"\n\nimport \"./EditEmployeeLayout.vue?vue&type=style&index=0&id=0349f171&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0349f171\"]])\n\nexport default __exports__","import { render } from \"./EmployeePersonalDetails.vue?vue&type=template&id=13b4404f&scoped=true\"\nimport script from \"./EmployeePersonalDetails.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeePersonalDetails.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=13b4404f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-13b4404f\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmployeeContactDetails.vue?vue&type=template&id=2662146f\"\nimport script from \"./EmployeeContactDetails.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeContactDetails.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveEmergencyContact.vue?vue&type=template&id=4e5a3f23\"\nimport script from \"./SaveEmergencyContact.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEmergencyContact.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditEmergencyContact.vue?vue&type=template&id=28fb89a4\"\nimport script from \"./EditEmergencyContact.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmergencyContact.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeEmergencyContacts.vue?vue&type=template&id=f2414b96&scoped=true\"\nimport script from \"./EmployeeEmergencyContacts.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeEmergencyContacts.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=f2414b96&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f2414b96\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveDependent.vue?vue&type=template&id=4c2c81c6\"\nimport script from \"./SaveDependent.vue?vue&type=script&lang=js\"\nexport * from \"./SaveDependent.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditDependent.vue?vue&type=template&id=fd8f5d00\"\nimport script from \"./EditDependent.vue?vue&type=script&lang=js\"\nexport * from \"./EditDependent.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeDependents.vue?vue&type=template&id=7dc785b8\"\nimport script from \"./EmployeeDependents.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeDependents.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeProfilePicture.vue?vue&type=template&id=c6fb612a&scoped=true\"\nimport script from \"./EmployeeProfilePicture.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeProfilePicture.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=c6fb612a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c6fb612a\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./SaveSalaryComponent.vue?vue&type=template&id=6c600350&scoped=true\"\nimport script from \"./SaveSalaryComponent.vue?vue&type=script&lang=js\"\nexport * from \"./SaveSalaryComponent.vue?vue&type=script&lang=js\"\n\nimport \"./SaveSalaryComponent.vue?vue&type=style&index=0&id=6c600350&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6c600350\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditSalaryComponent.vue?vue&type=template&id=e3ac8428&scoped=true\"\nimport script from \"./EditSalaryComponent.vue?vue&type=script&lang=js\"\nexport * from \"./EditSalaryComponent.vue?vue&type=script&lang=js\"\n\nimport \"./EditSalaryComponent.vue?vue&type=style&index=0&id=e3ac8428&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e3ac8428\"]])\n\nexport default __exports__","import { render } from \"./EmployeeSalary.vue?vue&type=template&id=9a961a76\"\nimport script from \"./EmployeeSalary.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeSalary.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./JobSpecDownload.vue?vue&type=template&id=6dc7b054&scoped=true\"\nimport script from \"./JobSpecDownload.vue?vue&type=script&lang=js\"\nexport * from \"./JobSpecDownload.vue?vue&type=script&lang=js\"\n\nimport \"./JobSpecDownload.vue?vue&type=style&index=0&id=6dc7b054&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6dc7b054\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./TerminateModal.vue?vue&type=template&id=47863d13\"\nimport script from \"./TerminateModal.vue?vue&type=script&lang=js\"\nexport * from \"./TerminateModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeJob.vue?vue&type=template&id=1dfb2fdc&scoped=true\"\nimport script from \"./EmployeeJob.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeJob.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=1dfb2fdc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1dfb2fdc\"]])\n\nexport default __exports__","\n\n\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./QualificationDropdown.vue?vue&type=template&id=4001a5e0\"\nimport script from \"./QualificationDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./QualificationDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./SaveSkill.vue?vue&type=template&id=692cb844\"\nimport script from \"./SaveSkill.vue?vue&type=script&lang=js\"\nexport * from \"./SaveSkill.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditSkill.vue?vue&type=template&id=3ea0354e\"\nimport script from \"./EditSkill.vue?vue&type=script&lang=js\"\nexport * from \"./EditSkill.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeSkills.vue?vue&type=template&id=f00be420\"\nimport script from \"./EmployeeSkills.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeSkills.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveEducation.vue?vue&type=template&id=675dfe2e\"\nimport script from \"./SaveEducation.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditEducation.vue?vue&type=template&id=c2a6bdf4\"\nimport script from \"./EditEducation.vue?vue&type=script&lang=js\"\nexport * from \"./EditEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeEducation.vue?vue&type=template&id=1d486326\"\nimport script from \"./EmployeeEducation.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveLanguage.vue?vue&type=template&id=260f8f3c\"\nimport script from \"./SaveLanguage.vue?vue&type=script&lang=js\"\nexport * from \"./SaveLanguage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditLanguage.vue?vue&type=template&id=87b4acae\"\nimport script from \"./EditLanguage.vue?vue&type=script&lang=js\"\nexport * from \"./EditLanguage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeLanguages.vue?vue&type=template&id=1dc35352\"\nimport script from \"./EmployeeLanguages.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeLanguages.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveWorkExperience.vue?vue&type=template&id=5417da2a\"\nimport script from \"./SaveWorkExperience.vue?vue&type=script&lang=js\"\nexport * from \"./SaveWorkExperience.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditWorkExperience.vue?vue&type=template&id=9d78c74c\"\nimport script from \"./EditWorkExperience.vue?vue&type=script&lang=js\"\nexport * from \"./EditWorkExperience.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeWorkExperience.vue?vue&type=template&id=6bc8cb45\"\nimport script from \"./EmployeeWorkExperience.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeWorkExperience.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","/*\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nexport const yearRange = function (\n range = 100,\n fromYear = new Date().getFullYear(),\n) {\n const numberOfYears = new Array(range);\n for (let i = 0; i < numberOfYears.length; i++) {\n numberOfYears[i] = fromYear - Math.floor(range / 2) + i;\n }\n return numberOfYears;\n};\n","import { render } from \"./SaveLicense.vue?vue&type=template&id=2daf338a\"\nimport script from \"./SaveLicense.vue?vue&type=script&lang=js\"\nexport * from \"./SaveLicense.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditLicense.vue?vue&type=template&id=7dd05208\"\nimport script from \"./EditLicense.vue?vue&type=script&lang=js\"\nexport * from \"./EditLicense.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeLicense.vue?vue&type=template&id=133311e0\"\nimport script from \"./EmployeeLicense.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeLicense.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeQualifications.vue?vue&type=template&id=43bb4be4\"\nimport script from \"./EmployeeQualifications.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeQualifications.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveImmigration.vue?vue&type=template&id=77a49cec\"\nimport script from \"./SaveImmigration.vue?vue&type=script&lang=js\"\nexport * from \"./SaveImmigration.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditImmigration.vue?vue&type=template&id=a5fb09aa\"\nimport script from \"./EditImmigration.vue?vue&type=script&lang=js\"\nexport * from \"./EditImmigration.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeImmigration.vue?vue&type=template&id=1f0dcd51&scoped=true\"\nimport script from \"./EmployeeImmigration.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeImmigration.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=1f0dcd51&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1f0dcd51\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ReportToEmployeeAutocomplete.vue?vue&type=template&id=81853cf6\"\nimport script from \"./ReportToEmployeeAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./ReportToEmployeeAutocomplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./SaveEmployeeReportTo.vue?vue&type=template&id=27f7283d\"\nimport script from \"./SaveEmployeeReportTo.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEmployeeReportTo.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditEmployeeReportTo.vue?vue&type=template&id=20de63ae\"\nimport script from \"./EditEmployeeReportTo.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmployeeReportTo.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeSupervisors.vue?vue&type=template&id=be278e1e\"\nimport script from \"./EmployeeSupervisors.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeSupervisors.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmployeeSubordinates.vue?vue&type=template&id=60cb882e\"\nimport script from \"./EmployeeSubordinates.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeSubordinates.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeReportTo.vue?vue&type=template&id=10b653a0\"\nimport script from \"./EmployeeReportTo.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeReportTo.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveMembership.vue?vue&type=template&id=17f4b9a2\"\nimport script from \"./SaveMembership.vue?vue&type=script&lang=js\"\nexport * from \"./SaveMembership.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditMembership.vue?vue&type=template&id=685d19d0\"\nimport script from \"./EditMembership.vue?vue&type=script&lang=js\"\nexport * from \"./EditMembership.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeMembership.vue?vue&type=template&id=3b144a72&scoped=true\"\nimport script from \"./EmployeeMembership.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeMembership.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=3b144a72&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3b144a72\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./TerminationReason.vue?vue&type=template&id=3fd8c704\"\nimport script from \"./TerminationReason.vue?vue&type=script&lang=js\"\nexport * from \"./TerminationReason.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditTerminationReason.vue?vue&type=template&id=53be0461\"\nimport script from \"./EditTerminationReason.vue?vue&type=script&lang=js\"\nexport * from \"./EditTerminationReason.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveTerminationReason.vue?vue&type=template&id=bfc4d996\"\nimport script from \"./SaveTerminationReason.vue?vue&type=script&lang=js\"\nexport * from \"./SaveTerminationReason.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ReportingMethod.vue?vue&type=template&id=3dfa57d5\"\nimport script from \"./ReportingMethod.vue?vue&type=script&lang=js\"\nexport * from \"./ReportingMethod.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditReportingMethod.vue?vue&type=template&id=415a1c17\"\nimport script from \"./EditReportingMethod.vue?vue&type=script&lang=js\"\nexport * from \"./EditReportingMethod.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveReportingMethod.vue?vue&type=template&id=2312b122\"\nimport script from \"./SaveReportingMethod.vue?vue&type=script&lang=js\"\nexport * from \"./SaveReportingMethod.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./CustomField.vue?vue&type=template&id=5c47f79e&scoped=true\"\nimport script from \"./CustomField.vue?vue&type=script&lang=js\"\nexport * from \"./CustomField.vue?vue&type=script&lang=js\"\n\nimport \"./customField.scss?vue&type=style&index=0&id=5c47f79e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5c47f79e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditCustomField.vue?vue&type=template&id=9f2c1100&scoped=true\"\nimport script from \"./EditCustomField.vue?vue&type=script&lang=js\"\nexport * from \"./EditCustomField.vue?vue&type=script&lang=js\"\n\nimport \"./customField.scss?vue&type=style&index=0&id=9f2c1100&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-9f2c1100\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SaveCustomField.vue?vue&type=template&id=2b25acf8&scoped=true\"\nimport script from \"./SaveCustomField.vue?vue&type=script&lang=js\"\nexport * from \"./SaveCustomField.vue?vue&type=script&lang=js\"\n\nimport \"./customField.scss?vue&type=style&index=0&id=2b25acf8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2b25acf8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./OptionalField.vue?vue&type=template&id=6f084a70&scoped=true\"\nimport script from \"./OptionalField.vue?vue&type=script&lang=js\"\nexport * from \"./OptionalField.vue?vue&type=script&lang=js\"\n\nimport \"./OptionalField.vue?vue&type=style&index=0&id=6f084a70&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6f084a70\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmployeeTaxExemption.vue?vue&type=template&id=cc65b2da\"\nimport script from \"./EmployeeTaxExemption.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTaxExemption.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./EmployeeDataImportModal.vue?vue&type=template&id=b8d15eb4&scoped=true\"\nimport script from \"./EmployeeDataImportModal.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeDataImportModal.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeDataImportModal.vue?vue&type=style&index=0&id=b8d15eb4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b8d15eb4\"]])\n\nexport default __exports__","import { render } from \"./EmployeeDataImport.vue?vue&type=template&id=ad061e70&scoped=true\"\nimport script from \"./EmployeeDataImport.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeDataImport.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeDataImport.vue?vue&type=style&index=0&id=ad061e70&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ad061e70\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ReportAutocomplete.vue?vue&type=template&id=15340d28\"\nimport script from \"./ReportAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./ReportAutocomplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeReport.vue?vue&type=template&id=74b3e33f\"\nimport script from \"./EmployeeReport.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeReport.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ReportCriterionAutocomplete.vue?vue&type=template&id=36b7c266&scoped=true\"\nimport script from \"./ReportCriterionAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./ReportCriterionAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./ReportCriterionAutocomplete.vue?vue&type=style&index=0&id=36b7c266&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-36b7c266\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ReportCriterionSelect.vue?vue&type=template&id=20f3e4a9&scoped=true\"\nimport script from \"./ReportCriterionSelect.vue?vue&type=script&lang=js\"\nexport * from \"./ReportCriterionSelect.vue?vue&type=script&lang=js\"\n\nimport \"./ReportCriterionSelect.vue?vue&type=style&index=0&id=20f3e4a9&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-20f3e4a9\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ReportCriterionRange.vue?vue&type=template&id=d3b88ca8&scoped=true\"\nimport script from \"./ReportCriterionRange.vue?vue&type=script&lang=js\"\nexport * from \"./ReportCriterionRange.vue?vue&type=script&lang=js\"\n\nimport \"./ReportCriterionRange.vue?vue&type=style&index=0&id=d3b88ca8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d3b88ca8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ReportCriterionDateRange.vue?vue&type=template&id=2ea02c55&scoped=true\"\nimport script from \"./ReportCriterionDateRange.vue?vue&type=script&lang=js\"\nexport * from \"./ReportCriterionDateRange.vue?vue&type=script&lang=js\"\n\nimport \"./ReportCriterionDateRange.vue?vue&type=style&index=0&id=2ea02c55&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2ea02c55\"]])\n\nexport default __exports__","import { render } from \"./ReportCriterion.vue?vue&type=template&id=b010db64&scoped=true\"\nimport script from \"./ReportCriterion.vue?vue&type=script&lang=js\"\nexport * from \"./ReportCriterion.vue?vue&type=script&lang=js\"\n\nimport \"./ReportCriterion.vue?vue&type=style&index=0&id=b010db64&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b010db64\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ReportDisplayField.vue?vue&type=template&id=3c97086a&scoped=true\"\nimport script from \"./ReportDisplayField.vue?vue&type=script&lang=js\"\nexport * from \"./ReportDisplayField.vue?vue&type=script&lang=js\"\n\nimport \"./ReportDisplayField.vue?vue&type=style&index=0&id=3c97086a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3c97086a\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {reactive, toRefs, computed} from 'vue';\ninterface Option {\n id: number;\n label: string;\n}\ninterface IncludeOption extends Option {\n key: string;\n}\ninterface CriterionOption extends Option {\n key: string;\n}\ninterface DisplayFieldOption {\n field_group_id: number;\n fields: Option[];\n}\ninterface Criterion {\n operator: {id: string; label: string} | null;\n valueX: string | Option | null;\n valueY: string | Option | null;\n}\ninterface DisplayField {\n fields: Option[];\n includeHeader: boolean;\n}\ninterface Criteria {\n [id: number]: Criterion;\n}\ninterface DisplayFieldGroup {\n [id: number]: DisplayField;\n}\ninterface ReportModel {\n name: string;\n includeEmployees: IncludeOption;\n criterion: CriterionOption | null;\n criteriaSelected: CriterionOption[];\n criteriaFieldValues: Criteria;\n fieldGroup: Option | null;\n fieldGroupSelected: Option[];\n displayField: Option | null;\n displayFieldSelected: DisplayFieldGroup;\n}\ninterface ReportRequestBody {\n name: string;\n include: string;\n criteria: {\n [id: number]: {\n operator: string;\n x: string;\n y: string;\n };\n };\n fieldGroup: {\n [id: number]: {\n fields: number[];\n includeHeader: boolean;\n };\n };\n}\n\nconst reportModel: ReportModel = {\n name: '',\n includeEmployees: {\n id: 1,\n key: 'onlyCurrent',\n label: '仅当前人员',\n },\n criterion: null,\n criteriaSelected: [],\n criteriaFieldValues: {},\n fieldGroup: null,\n fieldGroupSelected: [],\n displayField: null,\n displayFieldSelected: {},\n};\n\nexport default function useEmployeeReport(\n selectionCriteria: CriterionOption[],\n displayFields: DisplayFieldOption[],\n displayFieldGroups: Option[],\n) {\n const state = reactive({report: {...reportModel}});\n\n const getAllDisplayFieldsByGroupId = (groupId: number) => {\n const fieldGroup = displayFields.find(\n (group) => group.field_group_id === groupId,\n );\n return fieldGroup ? fieldGroup.fields : [];\n };\n\n const getUnusedDisplayFieldsByGroupId = (groupId: number) => {\n const selectedFieldGroup = state.report.displayFieldSelected[groupId];\n const usedDisplayFields = selectedFieldGroup\n ? selectedFieldGroup.fields\n : [];\n return getAllDisplayFieldsByGroupId(groupId).filter(\n (field) => !usedDisplayFields.find((f) => f.id === field.id),\n );\n };\n\n const addCriterion = () => {\n const criterion = state.report.criterion;\n if (criterion) {\n state.report.criteriaSelected.push(criterion);\n state.report.criteriaFieldValues[criterion.id] = {\n valueX: null,\n valueY: null,\n operator: null,\n };\n state.report.criterion = null;\n }\n };\n\n const removeCriterion = (index: number) => {\n const criterion = state.report.criteriaSelected.splice(index, 1);\n delete state.report.criteriaFieldValues[criterion[0].id];\n };\n\n const addDisplayField = () => {\n const fieldGroup = state.report.fieldGroup;\n const displayField = state.report.displayField;\n if (fieldGroup) {\n const groupIndex = state.report.fieldGroupSelected.findIndex(\n (group) => group.id === fieldGroup.id,\n );\n if (groupIndex === -1) {\n state.report.fieldGroupSelected.push(fieldGroup);\n state.report.displayFieldSelected[fieldGroup.id] = {\n fields: [],\n includeHeader: false,\n };\n }\n if (displayField) {\n state.report.displayFieldSelected[fieldGroup.id].fields.push(\n displayField,\n );\n state.report.displayField = null;\n } else {\n getUnusedDisplayFieldsByGroupId(fieldGroup.id).forEach(\n (displayField) => {\n state.report.displayFieldSelected[fieldGroup.id].fields.push(\n displayField,\n );\n },\n );\n }\n // unselect fieldGroup if all fields are used\n if (getUnusedDisplayFieldsByGroupId(fieldGroup.id).length === 0) {\n state.report.fieldGroup = null;\n }\n }\n };\n\n const removeDisplayFieldGroup = (index: number) => {\n const fieldGroup = state.report.fieldGroupSelected[index];\n state.report.fieldGroupSelected.splice(index, 1);\n delete state.report.displayFieldSelected[fieldGroup.id];\n };\n\n const removeDisplayField = (item: Option, index: number) => {\n const fieldGroup = state.report.fieldGroupSelected[index];\n const fields = state.report.displayFieldSelected[fieldGroup.id].fields;\n state.report.displayFieldSelected[fieldGroup.id].fields = fields.filter(\n (field) => field.id !== item.id,\n );\n // remove field group if no fields\n if (state.report.displayFieldSelected[fieldGroup.id].fields.length === 0) {\n removeDisplayFieldGroup(index);\n }\n };\n\n const serializeBody = (reportModel: ReportModel) => {\n const payload: ReportRequestBody = {\n name: reportModel.name,\n include: reportModel.includeEmployees.key,\n criteria: {},\n fieldGroup: {},\n };\n reportModel.fieldGroupSelected.forEach((group) => {\n const fields = reportModel.displayFieldSelected[group.id].fields;\n const includeHeader =\n reportModel.displayFieldSelected[group.id].includeHeader;\n payload.fieldGroup[group.id] = {\n fields: fields.map((field) => field.id),\n includeHeader,\n };\n });\n reportModel.criteriaSelected.forEach((criterion) => {\n const criteriaField = reportModel.criteriaFieldValues[criterion.id];\n payload.criteria[criterion.id] = {\n operator: criteriaField.operator ? criteriaField.operator.id : '',\n x:\n typeof criteriaField.valueX === 'object'\n ? String(criteriaField.valueX?.id)\n : criteriaField.valueX,\n y:\n typeof criteriaField.valueY === 'object'\n ? String(criteriaField.valueY?.id)\n : criteriaField.valueY,\n };\n });\n\n return payload;\n };\n\n const availableCriteria = computed(() => {\n return selectionCriteria.filter(\n (criterion) =>\n !state.report.criteriaSelected.find((c) => c.id === criterion.id),\n );\n });\n\n const availableFieldGroups = computed(() => {\n return displayFieldGroups.filter(\n (group) => getUnusedDisplayFieldsByGroupId(group.id).length !== 0,\n );\n });\n\n const availableDisplyFields = computed(() => {\n const fieldGroupId = state.report.fieldGroup?.id;\n return fieldGroupId ? getUnusedDisplayFieldsByGroupId(fieldGroupId) : [];\n });\n\n return {\n ...toRefs(state),\n addCriterion,\n serializeBody,\n addDisplayField,\n removeCriterion,\n removeDisplayField,\n removeDisplayFieldGroup,\n availableCriteria,\n availableFieldGroups,\n availableDisplyFields,\n };\n}\n","import { render } from \"./SaveEmployeeReport.vue?vue&type=template&id=f66184da&scoped=true\"\nimport script from \"./SaveEmployeeReport.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEmployeeReport.vue?vue&type=script&lang=js\"\n\nimport \"./employee-report.scss?vue&type=style&index=0&id=f66184da&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f66184da\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ReportsTable.vue?vue&type=template&id=32e798aa&scoped=true\"\nimport script from \"./ReportsTable.vue?vue&type=script&lang=js\"\nexport * from \"./ReportsTable.vue?vue&type=script&lang=js\"\n\nimport \"./reports-table.scss?vue&type=style&index=0&id=32e798aa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-32e798aa\"]])\n\nexport default __exports__","import { render } from \"./ViewEmployeeReport.vue?vue&type=template&id=7efa01e3\"\nimport script from \"./ViewEmployeeReport.vue?vue&type=script&lang=js\"\nexport * from \"./ViewEmployeeReport.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditEmployeeReport.vue?vue&type=template&id=0b4140eb&scoped=true\"\nimport script from \"./EditEmployeeReport.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmployeeReport.vue?vue&type=script&lang=js\"\n\nimport \"./employee-report.scss?vue&type=style&index=0&id=0b4140eb&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0b4140eb\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./UpdatePassword.vue?vue&type=template&id=1cb899de&scoped=true\"\nimport script from \"./UpdatePassword.vue?vue&type=script&lang=js\"\nexport * from \"./UpdatePassword.vue?vue&type=script&lang=js\"\n\nimport \"./update-password.scss?vue&type=style&index=0&id=1cb899de&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1cb899de\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport SaveEmployee from './pages/employee/SaveEmployee.vue';\nimport Employee from './pages/employee/Employee.vue';\nimport EmployeePersonalDetails from './pages/employee/EmployeePersonalDetails.vue';\nimport EmployeeContactDetails from './pages/employee/EmployeeContactDetails.vue';\nimport EmployeeEmergencyContacts from './pages/employee/EmployeeEmergencyContacts.vue';\nimport EmployeeDependents from './pages/employee/EmployeeDependents.vue';\nimport EmployeeProfilePicture from './pages/employee/EmployeeProfilePicture.vue';\nimport EmployeeSalary from './pages/employee/EmployeeSalary.vue';\nimport EmployeeJob from './pages/employee/EmployeeJob.vue';\nimport EmployeeQualifications from './pages/employee/EmployeeQualifications.vue';\nimport EmployeeImmigration from './pages/employee/EmployeeImmigration.vue';\nimport EmployeeReportTo from './pages/employee/EmployeeReportTo.vue';\nimport EmployeeMembership from './pages/employee/EmployeeMembership.vue';\nimport TerminationReason from './pages/terminationReason/TerminationReason.vue';\nimport EditTerminationReason from './pages/terminationReason/EditTerminationReason.vue';\nimport SaveTerminationReason from './pages/terminationReason/SaveTerminationReason.vue';\nimport ReportingMethod from './pages/reportingMethod/ReportingMethod.vue';\nimport EditReportingMethod from './pages/reportingMethod/EditReportingMethod.vue';\nimport SaveReportingMethod from './pages/reportingMethod/SaveReportingMethod.vue';\nimport CustomField from './pages/customField/CustomField.vue';\nimport EditCustomField from './pages/customField/EditCustomField.vue';\nimport SaveCustomField from './pages/customField/SaveCustomField.vue';\nimport OptionalField from './pages/optionalField/OptionalField.vue';\nimport EmployeeTaxExemption from './pages/employee/EmployeeTaxExemption.vue';\nimport EmployeeDataImport from './pages/dataImport/EmployeeDataImport.vue';\nimport EmployeeReport from './pages/reports/EmployeeReport.vue';\nimport SaveEmployeeReport from './pages/reports/SaveEmployeeReport.vue';\nimport ViewEmployeeReport from './pages/reports/ViewEmployeeReport.vue';\nimport EditEmployeeReport from './pages/reports/EditEmployeeReport.vue';\nimport UpdatePassword from './pages/updatePassword/UpdatePassword.vue';\n\nexport default {\n 'employee-save': SaveEmployee,\n 'employee-list': Employee,\n 'employee-personal-details': EmployeePersonalDetails,\n 'employee-contact-details': EmployeeContactDetails,\n 'employee-emergency-contacts': EmployeeEmergencyContacts,\n 'employee-dependents': EmployeeDependents,\n 'employee-profile-picture': EmployeeProfilePicture,\n 'employee-salary': EmployeeSalary,\n 'employee-job': EmployeeJob,\n 'employee-qualifications': EmployeeQualifications,\n 'employee-immigration': EmployeeImmigration,\n 'employee-membership': EmployeeMembership,\n 'termination-reason-list': TerminationReason,\n 'termination-reason-edit': EditTerminationReason,\n 'termination-reason-save': SaveTerminationReason,\n 'reporting-method-list': ReportingMethod,\n 'reporting-method-edit': EditReportingMethod,\n 'reporting-method-save': SaveReportingMethod,\n 'employee-report-to': EmployeeReportTo,\n 'custom-field-list': CustomField,\n 'custom-field-edit': EditCustomField,\n 'custom-field-save': SaveCustomField,\n 'optional-field-list': OptionalField,\n 'employee-tax-exemption': EmployeeTaxExemption,\n 'employee-data-import': EmployeeDataImport,\n 'employee-report-list': EmployeeReport,\n 'employee-report-save': SaveEmployeeReport,\n 'employee-report-view': ViewEmployeeReport,\n 'employee-report-edit': EditEmployeeReport,\n 'update-password': UpdatePassword,\n};\n","\n\n\n\n\n\n\n","import { render } from \"./ViewSupport.vue?vue&type=template&id=510cfbbc&scoped=true\"\nimport script from \"./ViewSupport.vue?vue&type=script&lang=js\"\nexport * from \"./ViewSupport.vue?vue&type=script&lang=js\"\n\nimport \"./ViewSupport.vue?vue&type=style&index=0&id=510cfbbc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-510cfbbc\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport ViewSupport from './pages/ViewSupport.vue';\n\nexport default {\n 'view-support': ViewSupport,\n};\n","\n\n\n\n\n","import { render } from \"./TimeSheetPeriod.vue?vue&type=template&id=62cc513e\"\nimport script from \"./TimeSheetPeriod.vue?vue&type=script&lang=js\"\nexport * from \"./TimeSheetPeriod.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Customer.vue?vue&type=template&id=1a528041\"\nimport script from \"./Customer.vue?vue&type=script&lang=js\"\nexport * from \"./Customer.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveCustomer.vue?vue&type=template&id=7b3e5769\"\nimport script from \"./SaveCustomer.vue?vue&type=script&lang=js\"\nexport * from \"./SaveCustomer.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditCustomer.vue?vue&type=template&id=db2fc3ba\"\nimport script from \"./EditCustomer.vue?vue&type=script&lang=js\"\nexport * from \"./EditCustomer.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ActivityDropdown.vue?vue&type=template&id=51ddd696&scoped=true\"\nimport script from \"./ActivityDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./ActivityDropdown.vue?vue&type=script&lang=js\"\n\nimport \"./ActivityDropdown.vue?vue&type=style&index=0&id=51ddd696&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-51ddd696\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ProjectAutocomplete.vue?vue&type=template&id=35991936&scoped=true\"\nimport script from \"./ProjectAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./ProjectAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./ProjectAutocomplete.vue?vue&type=style&index=0&id=35991936&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-35991936\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./TimesheetCommentModal.vue?vue&type=template&id=4867abf0&scoped=true\"\nimport script from \"./TimesheetCommentModal.vue?vue&type=script&lang=js\"\nexport * from \"./TimesheetCommentModal.vue?vue&type=script&lang=js\"\n\nimport \"./TimesheetCommentModal.vue?vue&type=style&index=0&id=4867abf0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4867abf0\"]])\n\nexport default __exports__","import { render } from \"./Timesheet.vue?vue&type=template&id=425cbc6c&scoped=true\"\nimport script from \"./Timesheet.vue?vue&type=script&lang=js\"\nexport * from \"./Timesheet.vue?vue&type=script&lang=js\"\n\nimport \"./timesheet.scss?vue&type=style&index=0&id=425cbc6c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-425cbc6c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {reactive} from 'vue';\nimport {AxiosResponse} from 'axios';\nimport {APIService} from '@/core/util/services/api.service';\n\ninterface State {\n isLoading: boolean;\n employee: Employee | null;\n timesheetId: number | null;\n timesheetRecords: Record[];\n timesheet: Timesheet | null;\n timesheetStatus: string | null;\n timesheetColumns: Columns | null;\n timesheetSubtotal: string | null;\n timesheetAllowedActions: AllowedAction[];\n date: string | null;\n}\n\nexport interface Project {\n id: number;\n name: string;\n deleted: boolean;\n}\n\nexport interface Customer {\n id: number;\n name: string;\n deleted: boolean;\n}\n\nexport interface Activity {\n id: number;\n name: string;\n deleted: boolean;\n}\n\nexport interface Total {\n hours: number;\n minutes: number;\n label: string;\n}\n\nexport interface Entry {\n id: number;\n date: string;\n comment?: string;\n duration: string;\n}\n\nexport interface UpdatedEntry {\n projectId: number;\n activityId: number;\n dates: Dates;\n}\n\nexport interface DeletedEntry {\n projectId: number;\n activityId: number;\n}\n\nexport interface Dates {\n [date: string]: Entry;\n}\n\nexport interface Status {\n id: string;\n name: string;\n}\n\nexport interface Timesheet {\n id: number;\n status: Status;\n startDate: string;\n endDate: string;\n}\n\nexport interface Sum {\n hours: number;\n minutes: number;\n label: string;\n}\n\nexport interface Columns {\n [date: string]: {\n total: Total;\n };\n}\n\nexport interface Employee {\n empNumber: number;\n lastName: string;\n firstName: string;\n middleName: string;\n employeeId: string;\n terminationId?: number;\n}\n\nexport interface AllowedAction {\n action: string;\n name: string;\n}\n\nexport interface Meta {\n timesheet: Timesheet;\n sum: Sum;\n columns: Columns;\n dates: string[];\n employee: Employee;\n allowedActions: AllowedAction[];\n}\n\nexport interface Record {\n project: Project;\n customer: Customer;\n activity: Activity;\n total: Total;\n dates: Dates;\n}\n\nexport interface TimesheetResponse {\n data: Timesheet;\n meta: string[];\n}\n\nexport interface TimesheetUpdateResponse {\n data: Timesheet;\n}\n\nexport interface EntriesResponse {\n data: Record[];\n meta: Meta;\n}\n\nexport interface EntriesUpdateRequest {\n entries: UpdatedEntry[];\n deletedEntries: DeletedEntry[];\n}\n\nexport default function useTimesheetAPIs(http: APIService) {\n const state = reactive({\n isLoading: false,\n employee: null,\n timesheet: null,\n timesheetId: null,\n timesheetRecords: [],\n timesheetStatus: null,\n timesheetColumns: null,\n timesheetSubtotal: null,\n timesheetAllowedActions: [],\n date: null,\n });\n\n const fetchTimesheet = (\n date: string | null,\n empNumber?: number,\n ): Promise> => {\n return http.request({\n method: 'GET',\n url: '/api/v2/time/timesheets/default',\n params: {\n date,\n empNumber,\n },\n });\n };\n\n const updateTimesheet = (\n timesheetId: number,\n action: string,\n comment?: string | null,\n empNumber?: number,\n ): Promise> => {\n return http.request({\n method: 'PUT',\n url: empNumber\n ? `/api/v2/time/employees/${empNumber}/timesheets/${timesheetId}`\n : `/api/v2/time/timesheets/${timesheetId}`,\n data: {\n action,\n comment: comment ? comment : undefined,\n },\n });\n };\n\n const fetchTimesheetEntries = (\n timesheetId: number,\n isEmployeeTimesheet?: boolean,\n ): Promise<{\n data: Record[];\n meta: Meta;\n timesheet: Timesheet;\n allowedActions: AllowedAction[];\n }> => {\n return new Promise((resolve) => {\n http\n .request({\n method: 'GET',\n url: isEmployeeTimesheet\n ? `/api/v2/time/employees/timesheets/${timesheetId}/entries`\n : `/api/v2/time/timesheets/${timesheetId}/entries`,\n })\n .then((response: AxiosResponse) => {\n const {data, meta} = response.data;\n const {timesheet, allowedActions} = meta;\n resolve({data, meta, timesheet, allowedActions});\n });\n });\n };\n\n const updateTimesheetEntries = (\n timesheetId: number,\n payload: EntriesUpdateRequest,\n isEmployeeTimesheet?: boolean,\n ): Promise> => {\n return http.request({\n method: 'PUT',\n url: isEmployeeTimesheet\n ? `/api/v2/time/employees/timesheets/${timesheetId}/entries`\n : `/api/v2/time/timesheets/${timesheetId}/entries`,\n data: {\n ...payload,\n },\n });\n };\n\n return {\n state,\n fetchTimesheet,\n updateTimesheet,\n fetchTimesheetEntries,\n updateTimesheetEntries,\n };\n}\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {computed, watchEffect} from 'vue';\nimport useTimesheetAPIs from './useTimesheetAPIs';\nimport useToast from '@/core/util/composable/useToast';\nimport {navigate} from '@ohrm/core/util/helper/navigation';\nimport {APIService} from '@/core/util/services/api.service';\nimport {freshDate, formatDate, parseDate} from '@ohrm/core/util/helper/datefns';\nimport usei18n from '@/core/util/composable/usei18n';\nimport useDateFormat from '@/core/util/composable/useDateFormat';\nimport useLocale from '@/core/util/composable/useLocale';\n\nexport default function useTimesheet(\n http: APIService,\n date: string | null,\n empNumber?: number,\n) {\n const {state, fetchTimesheet, updateTimesheet, fetchTimesheetEntries} =\n useTimesheetAPIs(http);\n const {noRecordsFound, success} = useToast();\n const {$t} = usei18n();\n const {jsDateFormat} = useDateFormat();\n const {locale} = useLocale();\n state.date = date ? date : formatDate(freshDate(), 'yyyy-MM-dd');\n\n const loadTimesheet = (date: string | null): void => {\n if (date && parseDate(date) === null) return;\n state.isLoading = true;\n fetchTimesheet(date, empNumber)\n .then((response) => {\n const {data} = response.data;\n state.timesheet = data;\n state.timesheetId = data.id;\n return data.id\n ? fetchTimesheetEntries(data.id, empNumber !== undefined)\n : null;\n })\n .then((response) => {\n if (response !== null) {\n const {data, meta, timesheet, allowedActions} = response;\n state.timesheetRecords = data;\n state.employee = meta.employee;\n state.timesheetColumns = meta.columns;\n state.timesheetSubtotal = meta.sum.label;\n state.timesheetStatus = timesheet.status.name;\n state.timesheetAllowedActions = allowedActions;\n data.length === 0 && noRecordsFound();\n } else {\n state.employee = null;\n state.timesheetRecords = [];\n state.timesheetColumns = null;\n state.timesheetStatus = null;\n state.timesheetSubtotal = null;\n state.timesheetAllowedActions = [];\n }\n })\n .finally(() => {\n state.isLoading = false;\n });\n };\n\n watchEffect(async () => state.date && loadTimesheet(state.date));\n\n const onClickPrevious = (): void => {\n const currDate = parseDate(String(state.date), 'yyyy-MM-dd') ?? freshDate();\n currDate.setDate(currDate.getDate() - 7);\n state.date = formatDate(currDate, 'yyyy-MM-dd');\n };\n\n const onClickNext = (): void => {\n const currDate = parseDate(String(state.date), 'yyyy-MM-dd') ?? freshDate();\n currDate.setDate(currDate.getDate() + 7);\n state.date = formatDate(currDate, 'yyyy-MM-dd');\n };\n\n const onClickEdit = (): void => {\n state.timesheetId &&\n navigate('/time/editTimesheet/{id}', {id: state.timesheetId});\n };\n\n const onClickSubmit = (): void => {\n if (state.timesheetId) {\n state.isLoading = true;\n updateTimesheet(state.timesheetId, 'SUBMIT', null, empNumber).then(() => {\n success({\n title: $t('general.success'),\n message: $t('time.timesheet_submitted'),\n });\n state.timesheetId = null;\n loadTimesheet(state.date);\n });\n }\n };\n\n const onClickReset = (): void => {\n if (state.timesheetId) {\n state.isLoading = true;\n updateTimesheet(state.timesheetId, 'RESET', null, empNumber).then(() => {\n success({\n title: $t('general.success'),\n message: $t('time.timesheet_reset'),\n });\n state.timesheetId = null;\n loadTimesheet(state.date);\n });\n }\n };\n\n const onClickApprove = (comment?: string): void => {\n if (state.timesheetId) {\n state.isLoading = true;\n updateTimesheet(state.timesheetId, 'APPROVE', comment, empNumber).then(\n () => {\n success({\n title: $t('general.success'),\n message: $t('time.timesheet_approved'),\n });\n state.timesheetId = null;\n loadTimesheet(state.date);\n },\n );\n }\n };\n\n const onClickReject = (comment?: string): void => {\n if (state.timesheetId) {\n state.isLoading = true;\n updateTimesheet(state.timesheetId, 'REJECT', comment, empNumber).then(\n () => {\n success({\n title: $t('general.success'),\n message: $t('time.timesheet_rejected'),\n });\n state.timesheetId = null;\n loadTimesheet(state.date);\n },\n );\n }\n };\n\n const onClickCreateTimesheet = (): void => {\n state.isLoading = true;\n http\n .request({\n method: 'POST',\n url: empNumber\n ? `/api/v2/time/employees/${empNumber}/timesheets`\n : '/api/v2/time/timesheets',\n data: {date: state.date},\n })\n .then(() => {\n success({\n title: $t('general.success'),\n message: $t('time.timesheet_successfully_created'),\n });\n loadTimesheet(state.date);\n });\n };\n\n const showCreateTimesheet = computed(() => {\n return !state.isLoading && !state.timesheetId;\n });\n\n const canSubmitTimesheet = computed(() => {\n return state.timesheetAllowedActions.find((i) => i.action === 'SUBMIT');\n });\n\n const canApproveTimesheet = computed(() => {\n return state.timesheetAllowedActions.find((i) => i.action === 'APPROVE');\n });\n\n const canRejectTimesheet = computed(() => {\n return state.timesheetAllowedActions.find((i) => i.action === 'REJECT');\n });\n\n const canResetTimesheet = computed(() => {\n return state.timesheetAllowedActions.find((i) => i.action === 'RESET');\n });\n\n const canEditTimesheet = computed(() => {\n return state.timesheetAllowedActions.find((i) => i.action === 'MODIFY');\n });\n\n const canCreateTimesheet = computed(() => {\n const currDate = parseDate(String(state.date), 'yyyy-MM-dd') ?? freshDate();\n return currDate > freshDate();\n });\n\n const timesheetPeriod = computed(() => {\n const startDate = parseDate(state.timesheet?.startDate || '');\n const endDate = parseDate(state.timesheet?.endDate || '');\n if (!startDate || !endDate) return null;\n\n return `${formatDate(startDate, jsDateFormat, {locale})} ${$t(\n 'general.to',\n ).toLowerCase()} ${formatDate(endDate, jsDateFormat, {locale})}`;\n });\n\n return {\n state,\n onClickEdit,\n onClickNext,\n onClickReset,\n onClickSubmit,\n onClickReject,\n onClickApprove,\n onClickPrevious,\n timesheetPeriod,\n canEditTimesheet,\n canResetTimesheet,\n canSubmitTimesheet,\n canRejectTimesheet,\n canCreateTimesheet,\n canApproveTimesheet,\n showCreateTimesheet,\n onClickCreateTimesheet,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./TimesheetPeriod.vue?vue&type=template&id=e0a5176c&scoped=true\"\nimport script from \"./TimesheetPeriod.vue?vue&type=script&lang=js\"\nexport * from \"./TimesheetPeriod.vue?vue&type=script&lang=js\"\n\nimport \"./timesheet-period.scss?vue&type=style&index=0&id=e0a5176c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e0a5176c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./TimesheetActions.vue?vue&type=template&id=0890f664\"\nimport script from \"./TimesheetActions.vue?vue&type=script&lang=js\"\nexport * from \"./TimesheetActions.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./MyTimesheet.vue?vue&type=template&id=be87e348\"\nimport script from \"./MyTimesheet.vue?vue&type=script&lang=js\"\nexport * from \"./MyTimesheet.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditTimeSheet.vue?vue&type=template&id=54f42850&scoped=true\"\nimport script from \"./EditTimeSheet.vue?vue&type=script&lang=js\"\nexport * from \"./EditTimeSheet.vue?vue&type=script&lang=js\"\n\nimport \"./EditTimeSheet.vue?vue&type=style&index=0&id=54f42850&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-54f42850\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./CustomerAutocomplete.vue?vue&type=template&id=6a3a9026\"\nimport script from \"./CustomerAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./CustomerAutocomplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ProjectAdminAutocomplete.vue?vue&type=template&id=78aa890e&scoped=true\"\nimport script from \"./ProjectAdminAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./ProjectAdminAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./ProjectAdminAutocomplete.vue?vue&type=style&index=0&id=78aa890e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-78aa890e\"]])\n\nexport default __exports__","import { render } from \"./Project.vue?vue&type=template&id=a60de55a\"\nimport script from \"./Project.vue?vue&type=script&lang=js\"\nexport * from \"./Project.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n","import { render } from \"./AddCustomerModal.vue?vue&type=template&id=d6a0e010\"\nimport script from \"./AddCustomerModal.vue?vue&type=script&lang=js\"\nexport * from \"./AddCustomerModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ProjectSave.vue?vue&type=template&id=006f1a34\"\nimport script from \"./ProjectSave.vue?vue&type=script&lang=js\"\nexport * from \"./ProjectSave.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./CopyActivityModal.vue?vue&type=template&id=789130a9&scoped=true\"\nimport script from \"./CopyActivityModal.vue?vue&type=script&lang=js\"\nexport * from \"./CopyActivityModal.vue?vue&type=script&lang=js\"\n\nimport \"./CopyActivityModal.vue?vue&type=style&index=0&id=789130a9&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-789130a9\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveActivityModal.vue?vue&type=template&id=2f4a8ad2\"\nimport script from \"./SaveActivityModal.vue?vue&type=script&lang=js\"\nexport * from \"./SaveActivityModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditActivityModal.vue?vue&type=template&id=c52af938\"\nimport script from \"./EditActivityModal.vue?vue&type=script&lang=js\"\nexport * from \"./EditActivityModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Activities.vue?vue&type=template&id=78f3e421&scoped=true\"\nimport script from \"./Activities.vue?vue&type=script&lang=js\"\nexport * from \"./Activities.vue?vue&type=script&lang=js\"\n\nimport \"./Activities.vue?vue&type=style&index=0&id=78f3e421&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-78f3e421\"]])\n\nexport default __exports__","import { render } from \"./ProjectEdit.vue?vue&type=template&id=fd98c45a\"\nimport script from \"./ProjectEdit.vue?vue&type=script&lang=js\"\nexport * from \"./ProjectEdit.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./TimesheetPendingActions.vue?vue&type=template&id=1a8cbf98&scoped=true\"\nimport script from \"./TimesheetPendingActions.vue?vue&type=script&lang=js\"\nexport * from \"./TimesheetPendingActions.vue?vue&type=script&lang=js\"\n\nimport \"./TimesheetPendingActions.vue?vue&type=style&index=0&id=1a8cbf98&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1a8cbf98\"]])\n\nexport default __exports__","import { render } from \"./EmployeeTimesheet.vue?vue&type=template&id=a4258700\"\nimport script from \"./EmployeeTimesheet.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTimesheet.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveTimesheetAction.vue?vue&type=template&id=208187c2\"\nimport script from \"./SaveTimesheetAction.vue?vue&type=script&lang=js\"\nexport * from \"./SaveTimesheetAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ViewEmployeeTimesheet.vue?vue&type=template&id=19981333\"\nimport script from \"./ViewEmployeeTimesheet.vue?vue&type=script&lang=js\"\nexport * from \"./ViewEmployeeTimesheet.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeTimeReport.vue?vue&type=template&id=17d6a43f&scoped=true\"\nimport script from \"./EmployeeTimeReport.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTimeReport.vue?vue&type=script&lang=js\"\n\nimport \"./time-reports.scss?vue&type=style&index=0&id=17d6a43f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-17d6a43f\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ProjectActivityReport.vue?vue&type=template&id=e0465754&scoped=true\"\nimport script from \"./ProjectActivityReport.vue?vue&type=script&lang=js\"\nexport * from \"./ProjectActivityReport.vue?vue&type=script&lang=js\"\n\nimport \"./time-reports.scss?vue&type=style&index=0&id=e0465754&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e0465754\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ActivityDetailsReport.vue?vue&type=template&id=b9b0d77c&scoped=true\"\nimport script from \"./ActivityDetailsReport.vue?vue&type=script&lang=js\"\nexport * from \"./ActivityDetailsReport.vue?vue&type=script&lang=js\"\n\nimport \"./time-reports.scss?vue&type=style&index=0&id=b9b0d77c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b9b0d77c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport TimeSheetPeriodConfig from './pages/configure/TimeSheetPeriod.vue';\nimport Customer from './pages/customer/Customer.vue';\nimport SaveCustomer from './pages/customer/SaveCustomer.vue';\nimport EditCustomer from './pages/customer/EditCustomer.vue';\nimport MyTimesheet from './pages/timesheets/MyTimesheet.vue';\nimport EditTimeSheet from './pages/timesheets/EditTimeSheet.vue';\nimport Project from './pages/project/Project.vue';\nimport ProjectSave from './pages/project/ProjectSave.vue';\nimport ProjectEdit from './pages/project/ProjectEdit.vue';\nimport EmployeeTimesheet from './pages/timesheets/EmployeeTimesheet.vue';\nimport ViewEmployeeTimesheet from './pages/timesheets/ViewEmployeeTimesheet.vue';\nimport EmployeeTimeReport from './pages/reports/EmployeeTimeReport.vue';\nimport ProjectActivityReport from './pages/reports/ProjectActivityReport.vue';\nimport ActivityDetailsReport from './pages/reports/ActivityDetailsReport.vue';\n\nexport default {\n 'time-sheet-period': TimeSheetPeriodConfig,\n 'customer-list': Customer,\n 'customer-save': SaveCustomer,\n 'customer-edit': EditCustomer,\n 'my-timesheet': MyTimesheet,\n 'edit-timesheet': EditTimeSheet,\n 'project-list': Project,\n 'project-save': ProjectSave,\n 'project-edit': ProjectEdit,\n 'employee-timesheet': EmployeeTimesheet,\n 'view-employee-timesheet': ViewEmployeeTimesheet,\n 'employee-time-report': EmployeeTimeReport,\n 'project-activity-report': ProjectActivityReport,\n 'activity-details-report': ActivityDetailsReport,\n};\n","\n\n\n\n\n\n\n","import { render } from \"./LeavePeriod.vue?vue&type=template&id=36501732&scoped=true\"\nimport script from \"./LeavePeriod.vue?vue&type=script&lang=js\"\nexport * from \"./LeavePeriod.vue?vue&type=script&lang=js\"\n\nimport \"./LeavePeriod.vue?vue&type=style&index=0&id=36501732&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-36501732\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./TimeRange.vue?vue&type=template&id=71824c05\"\nimport script from \"./TimeRange.vue?vue&type=script&lang=js\"\nexport * from \"./TimeRange.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./LeaveDurationInput.vue?vue&type=template&id=75ca43d6&scoped=true\"\nimport script from \"./LeaveDurationInput.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveDurationInput.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveDurationInput.vue?vue&type=style&index=0&id=75ca43d6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-75ca43d6\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LeaveBalanceModal.vue?vue&type=template&id=a21fbcb8&scoped=true\"\nimport script from \"./LeaveBalanceModal.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveBalanceModal.vue?vue&type=script&lang=js\"\n\nimport \"./leave-balance-modal.scss?vue&type=style&index=0&id=a21fbcb8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a21fbcb8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveBalanceInsufficientModal.vue?vue&type=template&id=94b8006c&scoped=true\"\nimport script from \"./LeaveBalanceInsufficientModal.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveBalanceInsufficientModal.vue?vue&type=script&lang=js\"\n\nimport \"./leave-balance-modal.scss?vue&type=style&index=0&id=94b8006c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-94b8006c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {APIService} from '@/core/util/services/api.service';\nimport {diffInDays} from '@ohrm/core/util/helper/datefns';\ninterface Duration {\n type: DurationOption | null;\n fromTime: string | null;\n toTime: string | null;\n}\n\ninterface Option {\n id: number;\n label: string;\n}\ninterface PartialOption extends Option {\n key: string;\n}\ninterface DurationOption extends Option {\n key: string;\n}\n\ninterface LeaveModel {\n type: Option | null;\n employee: Option | null;\n fromDate: string | null;\n toDate: string | null;\n comment: string | null;\n partialOptions: PartialOption | null;\n duration: Duration;\n endDuration: Duration;\n}\ninterface LeaveRequestBody {\n leaveTypeId: number;\n fromDate: string;\n toDate: string;\n comment: string | null;\n duration?: DurationObject;\n endDuration?: DurationObject;\n partialOption?: string;\n empNumber?: number;\n}\n\ninterface ParamsObj {\n [key: string]: string | number | undefined;\n}\n\ninterface DurationObject {\n type: string;\n fromTime?: string;\n toTime?: string;\n}\ninterface BalanceObj {\n balance: number;\n breakdown: object | null;\n metaData: object | null;\n}\n\ninterface OverlapObj {\n isConflict: boolean;\n isOverWorkshift: boolean;\n data: Array;\n}\n\nexport default function useLeaveValidators(http: APIService) {\n const serializeBody = (leave: LeaveModel) => {\n const payload: LeaveRequestBody = {\n leaveTypeId: leave.type ? leave.type.id : 1,\n fromDate: leave.fromDate ? leave.fromDate : '',\n toDate: leave.toDate ? leave.toDate : '',\n comment: leave.comment === '' ? null : leave.comment,\n empNumber: leave.employee ? leave.employee.id : undefined,\n };\n\n if (leave.duration.type) {\n const duration: DurationObject = {\n type: leave.duration.type?.key,\n };\n if (duration.type === 'specify_time') {\n if (leave.duration.fromTime) {\n duration.fromTime = leave.duration.fromTime;\n }\n if (leave.duration.toTime) {\n duration.toTime = leave.duration.toTime;\n }\n }\n payload.duration = duration;\n }\n\n const leaveDuration = diffInDays(payload.fromDate, payload.toDate);\n\n if (leaveDuration > 1 && leave.partialOptions) {\n payload.partialOption = leave.partialOptions.key;\n if (leave.endDuration.type) {\n const endDuration: DurationObject = {\n type: leave.endDuration.type.key,\n };\n if (leave.endDuration.fromTime) {\n endDuration.fromTime = leave.endDuration.fromTime;\n }\n if (leave.endDuration.toTime) {\n endDuration.toTime = leave.endDuration.toTime;\n }\n if (payload.partialOption === 'start_end') {\n payload.endDuration = endDuration;\n } else if (payload.partialOption === 'end') {\n payload.duration = endDuration;\n }\n }\n }\n\n // Validation to prevent fromTime & toTime being sent with incorrect duration.type\n if (\n payload.duration?.type !== 'specify_time' &&\n (payload.duration?.fromTime || payload.duration?.toTime)\n ) {\n payload.duration.fromTime = undefined;\n payload.duration.toTime = undefined;\n }\n\n if (\n payload.endDuration?.type !== 'specify_time' &&\n (payload.endDuration?.fromTime || payload.endDuration?.toTime)\n ) {\n payload.endDuration.fromTime = undefined;\n payload.endDuration.toTime = undefined;\n }\n\n return payload;\n };\n\n const serializeParams = (leave: LeaveModel) => {\n const payload: ParamsObj = {\n fromDate: undefined,\n toDate: undefined,\n partialOption: undefined,\n empNumber: leave.employee?.id,\n };\n\n if (leave.duration.type) {\n payload['duration[type]'] = leave.duration.type.key;\n if (payload['duration[type]'] === 'specify_time') {\n if (leave.duration.fromTime) {\n payload['duration[fromTime]'] = leave.duration.fromTime;\n }\n if (leave.duration.toTime) {\n payload['duration[toTime]'] = leave.duration.toTime;\n }\n }\n }\n\n if (leave.fromDate && leave.toDate) {\n payload.fromDate = leave.fromDate;\n payload.toDate = leave.toDate;\n const leaveDuration = diffInDays(leave.fromDate, leave.toDate);\n\n if (leaveDuration > 1 && leave.partialOptions) {\n payload.partialOption = leave.partialOptions.key;\n if (leave.endDuration.type) {\n if (payload.partialOption === 'start_end') {\n payload['endDuration[type]'] = leave.endDuration.type.key;\n if (leave.endDuration.fromTime) {\n payload['endDuration[fromTime]'] = leave.endDuration.fromTime;\n }\n if (leave.endDuration.toTime) {\n payload['endDuration[toTime]'] = leave.endDuration.toTime;\n }\n } else if (payload.partialOption === 'end') {\n payload['duration[type]'] = leave.endDuration.type.key;\n if (leave.endDuration.fromTime) {\n payload['duration[fromTime]'] = leave.endDuration.fromTime;\n }\n if (leave.endDuration.toTime) {\n payload['duration[toTime]'] = leave.endDuration.toTime;\n }\n }\n }\n }\n }\n\n // Validation to prevent fromTime & toTime being sent with incorrect duration[type]\n if (\n payload['duration[type]'] !== 'specify_time' &&\n (payload['duration[fromTime]'] || payload['duration[toTime]'])\n ) {\n payload['duration[fromTime]'] = undefined;\n payload['duration[toTime]'] = undefined;\n }\n\n if (\n payload['endDuration[type]'] !== 'specify_time' &&\n (payload['endDuration[fromTime]'] || payload['endDuration[toTime]'])\n ) {\n payload['endDuration[fromTime]'] = undefined;\n payload['endDuration[toTime]'] = undefined;\n }\n\n return payload;\n };\n\n const validateOverlapLeaves = (\n leaveData: LeaveModel,\n ): Promise => {\n return new Promise((resolve, reject) => {\n http\n .request({\n method: 'GET',\n url: '/api/v2/leave/overlap-leaves',\n params: serializeParams(leaveData),\n })\n .then((response) => {\n const {data, meta} = response.data;\n\n if (Array.isArray(data) && data.length > 0) {\n resolve({\n isConflict: true,\n isOverWorkshift: meta.isWorkShiftLengthExceeded === true,\n data,\n });\n } else {\n resolve({\n isConflict: false,\n isOverWorkshift: false,\n data: [],\n });\n }\n })\n .catch((error) => {\n reject(error);\n });\n });\n };\n\n const validateLeaveBalance = (leaveData: LeaveModel): Promise => {\n return new Promise((resolve, reject) => {\n http\n .request({\n method: 'GET',\n url: `/api/v2/leave/leave-balance/leave-type/${leaveData.type?.id}`,\n params: serializeParams(leaveData),\n })\n .then((response) => {\n let balance = 0;\n let breakdown = null;\n let metaData = null;\n if (response.status === 200) {\n const {data, meta} = response.data;\n metaData = meta;\n if (data.balance) {\n // response sends balance directly when no duration defined\n breakdown = data.balance;\n balance = data.balance?.balance;\n } else if (data.breakdown && data.negative === false) {\n // if duration is defined and the balance is not exceeded\n breakdown = data.breakdown[0].balance;\n balance = data.breakdown[0].balance?.balance;\n } else if (data.breakdown && data.negative === true) {\n // if duration is defined and the balance is exceeded\n breakdown = data.breakdown;\n balance = -1;\n } else {\n breakdown = null;\n balance = 0;\n }\n }\n resolve({balance, breakdown, metaData});\n })\n .catch((error) => {\n reject(error);\n });\n });\n };\n\n return {\n serializeBody,\n serializeParams,\n validateLeaveBalance,\n validateOverlapLeaves,\n };\n}\n","import { render } from \"./LeaveBalance.vue?vue&type=template&id=56c2fc4a&scoped=true\"\nimport script from \"./LeaveBalance.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveBalance.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveBalance.vue?vue&type=style&index=0&id=56c2fc4a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-56c2fc4a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./LeaveConflict.vue?vue&type=template&id=25265b74\"\nimport script from \"./LeaveConflict.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveConflict.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./LeaveApply.vue?vue&type=template&id=537e43ef\"\nimport script from \"./LeaveApply.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveApply.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LeaveTypeDropdown.vue?vue&type=template&id=dcd26948&scoped=true\"\nimport script from \"./LeaveTypeDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveTypeDropdown.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveTypeDropdown.vue?vue&type=style&index=0&id=dcd26948&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-dcd26948\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveAssignConfirmModal.vue?vue&type=template&id=19c585fa&scoped=true\"\nimport script from \"./LeaveAssignConfirmModal.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveAssignConfirmModal.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveAssignConfirmModal.vue?vue&type=style&index=0&id=19c585fa&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-19c585fa\"]])\n\nexport default __exports__","import { render } from \"./LeaveAssign.vue?vue&type=template&id=1f369841\"\nimport script from \"./LeaveAssign.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveAssign.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./LeaveType.vue?vue&type=template&id=c718f8b0\"\nimport script from \"./LeaveType.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveType.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./EntitlementSituationalModal.vue?vue&type=template&id=68838f5c&scoped=true\"\nimport script from \"./EntitlementSituationalModal.vue?vue&type=script&lang=js\"\nexport * from \"./EntitlementSituationalModal.vue?vue&type=script&lang=js\"\n\nimport \"./EntitlementSituationalModal.vue?vue&type=style&index=0&id=68838f5c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-68838f5c\"]])\n\nexport default __exports__","import { render } from \"./EditLeaveType.vue?vue&type=template&id=a7f7cce0&scoped=true\"\nimport script from \"./EditLeaveType.vue?vue&type=script&lang=js\"\nexport * from \"./EditLeaveType.vue?vue&type=script&lang=js\"\n\nimport \"./leave-type.scss?vue&type=style&index=0&id=a7f7cce0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a7f7cce0\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SaveLeaveType.vue?vue&type=template&id=3acf3120&scoped=true\"\nimport script from \"./SaveLeaveType.vue?vue&type=script&lang=js\"\nexport * from \"./SaveLeaveType.vue?vue&type=script&lang=js\"\n\nimport \"./leave-type.scss?vue&type=style&index=0&id=3acf3120&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3acf3120\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./LeavePeriodDropdown.vue?vue&type=template&id=157a8980\"\nimport script from \"./LeavePeriodDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./LeavePeriodDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EntitlementUpdateModal.vue?vue&type=template&id=e36392b4&scoped=true\"\nimport script from \"./EntitlementUpdateModal.vue?vue&type=script&lang=js\"\nexport * from \"./EntitlementUpdateModal.vue?vue&type=script&lang=js\"\n\nimport \"./EntitlementUpdateModal.vue?vue&type=style&index=0&id=e36392b4&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e36392b4\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EntitlementBulkUpdateModal.vue?vue&type=template&id=6f8e0531&scoped=true\"\nimport script from \"./EntitlementBulkUpdateModal.vue?vue&type=script&lang=js\"\nexport * from \"./EntitlementBulkUpdateModal.vue?vue&type=script&lang=js\"\n\nimport \"./EntitlementBulkUpdateModal.vue?vue&type=style&index=0&id=6f8e0531&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6f8e0531\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EntitlementNoMatchModal.vue?vue&type=template&id=0233dcca&scoped=true\"\nimport script from \"./EntitlementNoMatchModal.vue?vue&type=script&lang=js\"\nexport * from \"./EntitlementNoMatchModal.vue?vue&type=script&lang=js\"\n\nimport \"./EntitlementNoMatchModal.vue?vue&type=style&index=0&id=0233dcca&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0233dcca\"]])\n\nexport default __exports__","import { render } from \"./AddEntitlement.vue?vue&type=template&id=7e1993c4&scoped=true\"\nimport script from \"./AddEntitlement.vue?vue&type=script&lang=js\"\nexport * from \"./AddEntitlement.vue?vue&type=script&lang=js\"\n\nimport \"./add-entitlement.scss?vue&type=style&index=0&id=7e1993c4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7e1993c4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditEntitlement.vue?vue&type=template&id=0c8c1ae6\"\nimport script from \"./EditEntitlement.vue?vue&type=script&lang=js\"\nexport * from \"./EditEntitlement.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./LeaveEntitlementTable.vue?vue&type=template&id=1d62a736\"\nimport script from \"./LeaveEntitlementTable.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveEntitlementTable.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./LeaveEntitlements.vue?vue&type=template&id=2f593d98\"\nimport script from \"./LeaveEntitlements.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveEntitlements.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./MyLeaveEntitlements.vue?vue&type=template&id=853716cc\"\nimport script from \"./MyLeaveEntitlements.vue?vue&type=script&lang=js\"\nexport * from \"./MyLeaveEntitlements.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./WorkWeek.vue?vue&type=template&id=19aa7e2d\"\nimport script from \"./WorkWeek.vue?vue&type=script&lang=js\"\nexport * from \"./WorkWeek.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Holiday.vue?vue&type=template&id=61e6591e\"\nimport script from \"./Holiday.vue?vue&type=script&lang=js\"\nexport * from \"./Holiday.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SaveHoliday.vue?vue&type=template&id=6485b72f&scoped=true\"\nimport script from \"./SaveHoliday.vue?vue&type=script&lang=js\"\nexport * from \"./SaveHoliday.vue?vue&type=script&lang=js\"\n\nimport \"./holiday.scss?vue&type=style&index=0&id=6485b72f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6485b72f\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditHoliday.vue?vue&type=template&id=48d79cd0&scoped=true\"\nimport script from \"./EditHoliday.vue?vue&type=script&lang=js\"\nexport * from \"./EditHoliday.vue?vue&type=script&lang=js\"\n\nimport \"./holiday.scss?vue&type=style&index=0&id=48d79cd0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-48d79cd0\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","/*\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\ninterface TruncateArgs {\n length?: number;\n ellipsis?: string;\n}\n\nexport const truncate = (\n text: string | undefined,\n {length = 50, ellipsis = '...'}: TruncateArgs = {},\n) => {\n if (typeof text === 'string') {\n return text.length > length ? text.substr(0, length) + ellipsis : text;\n }\n return '';\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {APIService} from '@/core/util/services/api.service';\n\ntype LeaveAction = {\n component: string;\n props: object;\n};\n\ntype LeaveSecondaryAction = {\n label: string;\n context: string;\n};\n\ntype useLeaveActionsArgs = {\n primaryActions?: {[name: string]: LeaveAction};\n secondaryActions?: LeaveSecondaryAction[];\n};\n\nconst approve: LeaveAction = {\n component: 'oxd-button',\n props: {\n label: 'Approve',\n displayType: 'label-success',\n size: 'medium',\n onClick: null,\n },\n};\n\nconst reject: LeaveAction = {\n component: 'oxd-button',\n props: {\n label: 'Reject',\n displayType: 'label-danger',\n size: 'medium',\n onClick: null,\n },\n};\n\nconst cancel: LeaveAction = {\n component: 'oxd-button',\n props: {\n label: 'Cancel',\n displayType: 'label-warn',\n size: 'medium',\n onClick: null,\n },\n};\n\nconst more: LeaveAction = {\n component: 'oxd-table-dropdown',\n props: {\n options: [],\n style: {'margin-left': 'auto'},\n onClick: null,\n },\n};\n\nexport default function useLeaveActions(\n http: APIService,\n {primaryActions = {approve, reject, cancel, more}}: useLeaveActionsArgs = {},\n) {\n const processLeaveAction = (id: number, actionType: string) => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/leave/leaves/${id}`,\n data: {\n action: actionType,\n },\n });\n };\n\n const processLeaveRequestAction = (id: number, actionType: string) => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/leave/employees/leave-requests/${id}`,\n data: {\n action: actionType,\n },\n });\n };\n\n const processLeaveRequestBulkAction = (ids: number[], actionType: string) => {\n return http.request({\n method: 'PUT',\n url: '/api/v2/leave/employees/leave-requests/bulk',\n data: {\n data: ids.map((id) => {\n return {\n leaveRequestId: id,\n action: actionType,\n };\n }),\n },\n });\n };\n\n return {\n leaveActions: primaryActions,\n processLeaveAction,\n processLeaveRequestAction,\n processLeaveRequestBulkAction,\n };\n}\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LeaveComment.vue?vue&type=template&id=222b3933&scoped=true\"\nimport script from \"./LeaveComment.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveComment.vue?vue&type=script&lang=js\"\n\nimport \"./leave-comment.scss?vue&type=style&index=0&id=222b3933&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-222b3933\"]])\n\nexport default __exports__","import { render } from \"./LeaveCommentsModal.vue?vue&type=template&id=cbb6349a&scoped=true\"\nimport script from \"./LeaveCommentsModal.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveCommentsModal.vue?vue&type=script&lang=js\"\n\nimport \"./leave-comment-modal.scss?vue&type=style&index=0&id=cbb6349a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cbb6349a\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveBulkActionModal.vue?vue&type=template&id=7823af8c&scoped=true\"\nimport script from \"./LeaveBulkActionModal.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveBulkActionModal.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveBulkActionModal.vue?vue&type=style&index=0&id=7823af8c&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7823af8c\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveListTableHeader.vue?vue&type=template&id=78ad5c40&scoped=true\"\nimport script from \"./LeaveListTableHeader.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveListTableHeader.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveListTableHeader.vue?vue&type=style&index=0&id=78ad5c40&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-78ad5c40\"]])\n\nexport default __exports__","import { render } from \"./LeaveListTable.vue?vue&type=template&id=2e68cbb4&scoped=true\"\nimport script from \"./LeaveListTable.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveListTable.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveListTable.vue?vue&type=style&index=0&id=2e68cbb4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2e68cbb4\"]])\n\nexport default __exports__","import { render } from \"./LeaveList.vue?vue&type=template&id=7abe0f65&scoped=true\"\nimport script from \"./LeaveList.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveList.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveList.vue?vue&type=style&index=0&id=7abe0f65&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7abe0f65\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveRequest.vue?vue&type=template&id=5cf2c6b8&scoped=true\"\nimport script from \"./LeaveRequest.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveRequest.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveRequest.vue?vue&type=style&index=0&id=5cf2c6b8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5cf2c6b8\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./MyLeaveList.vue?vue&type=template&id=2d59fcda\"\nimport script from \"./MyLeaveList.vue?vue&type=script&lang=js\"\nexport * from \"./MyLeaveList.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveEntitlementReport.vue?vue&type=template&id=6ef58e5d&scoped=true\"\nimport script from \"./LeaveEntitlementReport.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveEntitlementReport.vue?vue&type=script&lang=js\"\n\nimport \"./leave-entitlement-report.scss?vue&type=style&index=0&id=6ef58e5d&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6ef58e5d\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./MyLeaveEntitlementReport.vue?vue&type=template&id=8c4f28ca\"\nimport script from \"./MyLeaveEntitlementReport.vue?vue&type=script&lang=js\"\nexport * from \"./MyLeaveEntitlementReport.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport LeavePeriod from './pages/configure/LeavePeriod.vue';\nimport LeaveApply from './pages/LeaveApply.vue';\nimport LeaveAssign from './pages/LeaveAssign.vue';\nimport LeaveType from './pages/leaveType/LeaveType.vue';\nimport EditLeaveType from './pages/leaveType/EditLeaveType.vue';\nimport SaveLeaveType from './pages/leaveType/SaveLeaveType.vue';\nimport AddEntitlement from './pages/entitlements/AddEntitlement.vue';\nimport EditEntitlement from './pages/entitlements/EditEntitlement.vue';\nimport LeaveEntitlements from './pages/entitlements/LeaveEntitlements.vue';\nimport MyLeaveEntitlements from './pages/entitlements/MyLeaveEntitlements.vue';\nimport WorkWeek from './pages/configure/WorkWeek.vue';\nimport Holiday from './pages/configure/holiday/Holiday.vue';\nimport SaveHoliday from './pages/configure/holiday/SaveHoliday.vue';\nimport EditHoliday from './pages/configure/holiday/EditHoliday.vue';\nimport LeaveList from './pages/LeaveList.vue';\nimport LeaveRequest from './pages/LeaveRequest.vue';\nimport MyLeaveList from './pages/MyLeaveList.vue';\nimport LeaveEntitlementReport from './pages/reports/LeaveEntitlementReport.vue';\nimport MyLeaveEntitlementReport from './pages/reports/MyLeaveEntitlementReport.vue';\n\nexport default {\n 'leave-period': LeavePeriod,\n 'leave-apply': LeaveApply,\n 'leave-assign': LeaveAssign,\n 'leave-type-edit': EditLeaveType,\n 'leave-type-list': LeaveType,\n 'leave-type-save': SaveLeaveType,\n 'leave-add-entitlement': AddEntitlement,\n 'leave-edit-entitlement': EditEntitlement,\n 'leave-view-entitlement': LeaveEntitlements,\n 'leave-view-my-entitlement': MyLeaveEntitlements,\n 'work-week': WorkWeek,\n 'holiday-list': Holiday,\n 'holiday-save': SaveHoliday,\n 'holiday-edit': EditHoliday,\n 'leave-list': LeaveList,\n 'leave-view-request': LeaveRequest,\n 'my-leave-list': MyLeaveList,\n 'leave-entitlement-report': LeaveEntitlementReport,\n 'my-leave-entitlement-report': MyLeaveEntitlementReport,\n};\n","\n\n\n\n\n","import { render } from \"./OAuthClient.vue?vue&type=template&id=8cf28702\"\nimport script from \"./OAuthClient.vue?vue&type=script&lang=js\"\nexport * from \"./OAuthClient.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SaveOAuthClient.vue?vue&type=template&id=6ea3f680&scoped=true\"\nimport script from \"./SaveOAuthClient.vue?vue&type=script&lang=js\"\nexport * from \"./SaveOAuthClient.vue?vue&type=script&lang=js\"\n\nimport \"./oauth-client.scss?vue&type=style&index=0&id=6ea3f680&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6ea3f680\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LoginBranding.vue?vue&type=template&id=3dda64e6&scoped=true\"\nimport script from \"./LoginBranding.vue?vue&type=script&lang=js\"\nexport * from \"./LoginBranding.vue?vue&type=script&lang=js\"\n\nimport \"./login-layout.scss?vue&type=style&index=0&id=3dda64e6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3dda64e6\"]])\n\nexport default __exports__","import { render } from \"./OAuthAuthorize.vue?vue&type=template&id=3810ee3c&scoped=true\"\nimport script from \"./OAuthAuthorize.vue?vue&type=script&lang=js\"\nexport * from \"./OAuthAuthorize.vue?vue&type=script&lang=js\"\n\nimport \"./oauth-authorize.scss?vue&type=style&index=0&id=3810ee3c&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3810ee3c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport OAuthClient from './pages/registerOAuthClient/OAuthClient.vue';\nimport SaveOAuthClient from './pages/registerOAuthClient/SaveOAuthClient.vue';\nimport OAuthAuthorize from './pages/oauth/OAuthAuthorize.vue';\n\nexport default {\n 'oauth-client-list': OAuthClient,\n 'oauth-client-save': SaveOAuthClient,\n 'oauth-authorize': OAuthAuthorize,\n};\n","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./TimezoneDropdown.vue?vue&type=template&id=2720de08\"\nimport script from \"./TimezoneDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./TimezoneDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./RecordAttendance.vue?vue&type=template&id=3d5e6918&scoped=true\"\nimport script from \"./RecordAttendance.vue?vue&type=script&lang=js\"\nexport * from \"./RecordAttendance.vue?vue&type=script&lang=js\"\n\nimport \"./record-attendance.scss?vue&type=style&index=0&id=3d5e6918&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3d5e6918\"]])\n\nexport default __exports__","import { render } from \"./PunchIn.vue?vue&type=template&id=5ee0f653\"\nimport script from \"./PunchIn.vue?vue&type=script&lang=js\"\nexport * from \"./PunchIn.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./PunchOut.vue?vue&type=template&id=25bcad09\"\nimport script from \"./PunchOut.vue?vue&type=script&lang=js\"\nexport * from \"./PunchOut.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditAttendance.vue?vue&type=template&id=40838874&scoped=true\"\nimport script from \"./EditAttendance.vue?vue&type=script&lang=js\"\nexport * from \"./EditAttendance.vue?vue&type=script&lang=js\"\n\nimport \"./edit-attendance.scss?vue&type=style&index=0&id=40838874&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-40838874\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./RecordCell.vue?vue&type=template&id=8f3074ce&scoped=true\"\nimport script from \"./RecordCell.vue?vue&type=script&lang=js\"\nexport * from \"./RecordCell.vue?vue&type=script&lang=js\"\n\nimport \"./RecordCell.vue?vue&type=style&index=0&id=8f3074ce&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8f3074ce\"]])\n\nexport default __exports__","import { render } from \"./ViewMyAttendance.vue?vue&type=template&id=50a2ff8a&scoped=true\"\nimport script from \"./ViewMyAttendance.vue?vue&type=script&lang=js\"\nexport * from \"./ViewMyAttendance.vue?vue&type=script&lang=js\"\n\nimport \"./view-my-attendance.scss?vue&type=style&index=0&id=50a2ff8a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-50a2ff8a\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./AttendanceConfiguration.vue?vue&type=template&id=026fb4c8&scoped=true\"\nimport script from \"./AttendanceConfiguration.vue?vue&type=script&lang=js\"\nexport * from \"./AttendanceConfiguration.vue?vue&type=script&lang=js\"\n\nimport \"./AttendanceConfiguration.vue?vue&type=style&index=0&id=026fb4c8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-026fb4c8\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./AttendanceSummaryReport.vue?vue&type=template&id=772a8b19\"\nimport script from \"./AttendanceSummaryReport.vue?vue&type=script&lang=js\"\nexport * from \"./AttendanceSummaryReport.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ViewEmployeeAttendanceSummary.vue?vue&type=template&id=22f945c4&scoped=true\"\nimport script from \"./ViewEmployeeAttendanceSummary.vue?vue&type=script&lang=js\"\nexport * from \"./ViewEmployeeAttendanceSummary.vue?vue&type=script&lang=js\"\n\nimport \"./ViewEmployeeAttendanceSummary.vue?vue&type=style&index=0&id=22f945c4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-22f945c4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ViewEmployeeAttendanceDetailed.vue?vue&type=template&id=5c574e8c\"\nimport script from \"./ViewEmployeeAttendanceDetailed.vue?vue&type=script&lang=js\"\nexport * from \"./ViewEmployeeAttendanceDetailed.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport PunchIn from './pages/PunchIn.vue';\nimport PunchOut from './pages/PunchOut.vue';\nimport EditAttendance from './pages/EditAttendance.vue';\nimport ViewMyAttendance from './pages/ViewMyAttendance.vue';\nimport AttendanceConfiguration from './pages/AttendanceConfiguration.vue';\nimport AttendanceSummaryReport from './pages/AttendanceSummaryReport.vue';\nimport ViewEmployeeAttendanceSummary from './pages/ViewEmployeeAttendanceSummary.vue';\nimport ViewEmployeeAttendanceDetailed from './pages/ViewEmployeeAttendanceDetailed.vue';\n\nexport default {\n 'attendance-punch-in': PunchIn,\n 'attendance-punch-out': PunchOut,\n 'edit-attendance': EditAttendance,\n 'view-my-attendance': ViewMyAttendance,\n 'attendance-configuration': AttendanceConfiguration,\n 'attendance-summary-report': AttendanceSummaryReport,\n 'view-employee-attendance-summary': ViewEmployeeAttendanceSummary,\n 'view-employee-attendance-detailed': ViewEmployeeAttendanceDetailed,\n};\n","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./SelectedEmployee.vue?vue&type=template&id=6ea34be5&scoped=true\"\nimport script from \"./SelectedEmployee.vue?vue&type=script&lang=js\"\nexport * from \"./SelectedEmployee.vue?vue&type=script&lang=js\"\n\nimport \"./SelectedEmployee.vue?vue&type=style&index=0&id=6ea34be5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6ea34be5\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmployeeRecords.vue?vue&type=template&id=f0386e30\"\nimport script from \"./EmployeeRecords.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeRecords.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ConfirmationDialog.vue?vue&type=template&id=2766d99a&scoped=true\"\nimport script from \"./ConfirmationDialog.vue?vue&type=script&lang=js\"\nexport * from \"./ConfirmationDialog.vue?vue&type=script&lang=js\"\n\nimport \"./dialog.scss?vue&type=style&index=0&id=2766d99a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2766d99a\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./MaintenanceNote.vue?vue&type=template&id=23b16e4f&scoped=true\"\nimport script from \"./MaintenanceNote.vue?vue&type=script&lang=js\"\nexport * from \"./MaintenanceNote.vue?vue&type=script&lang=js\"\n\nimport \"./MaintenanceNote.vue?vue&type=style&index=0&id=23b16e4f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-23b16e4f\"]])\n\nexport default __exports__","import { render } from \"./PurgeEmployee.vue?vue&type=template&id=2a258082\"\nimport script from \"./PurgeEmployee.vue?vue&type=script&lang=js\"\nexport * from \"./PurgeEmployee.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./VacancyAutocomplete.vue?vue&type=template&id=02c60814\"\nimport script from \"./VacancyAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./VacancyAutocomplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./CandidateRecords.vue?vue&type=template&id=c333b4c6\"\nimport script from \"./CandidateRecords.vue?vue&type=script&lang=js\"\nexport * from \"./CandidateRecords.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./SelectedCandidates.vue?vue&type=template&id=3c1da283&scoped=true\"\nimport script from \"./SelectedCandidates.vue?vue&type=script&lang=js\"\nexport * from \"./SelectedCandidates.vue?vue&type=script&lang=js\"\n\nimport \"./SelectedCandidates.vue?vue&type=style&index=0&id=3c1da283&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3c1da283\"]])\n\nexport default __exports__","import { render } from \"./PurgeCandidate.vue?vue&type=template&id=20d40fb6\"\nimport script from \"./PurgeCandidate.vue?vue&type=script&lang=js\"\nexport * from \"./PurgeCandidate.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./AccessEmployeeSearchScreen.vue?vue&type=template&id=5a691ae0\"\nimport script from \"./AccessEmployeeSearchScreen.vue?vue&type=script&lang=js\"\nexport * from \"./AccessEmployeeSearchScreen.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport PurgeEmployee from './pages/PurgeEmployee.vue';\nimport PurgeCandidate from './pages/PurgeCandidate.vue';\nimport AccessEmployeeSearchScreen from '../orangehrmMaintenancePlugin/pages/accessEmployee/AccessEmployeeSearchScreen.vue';\n\nexport default {\n 'purge-employee': PurgeEmployee,\n 'purge-candidate': PurgeCandidate,\n 'access-employee-search': AccessEmployeeSearchScreen,\n};\n","\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./VacancyDropdown.vue?vue&type=template&id=346bc494\"\nimport script from \"./VacancyDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./VacancyDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./HiringManagerDropdown.vue?vue&type=template&id=ac575596\"\nimport script from \"./HiringManagerDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./HiringManagerDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ViewJobVacancy.vue?vue&type=template&id=65c21a19&scoped=true\"\nimport script from \"./ViewJobVacancy.vue?vue&type=script&lang=js\"\nexport * from \"./ViewJobVacancy.vue?vue&type=script&lang=js\"\n\nimport \"./vacancy.scss?vue&type=style&index=0&id=65c21a19&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-65c21a19\"]])\n\nexport default __exports__","\n\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./VacancyLinkCard.vue?vue&type=template&id=7a7e694e&scoped=true\"\nimport script from \"./VacancyLinkCard.vue?vue&type=script&lang=js\"\nexport * from \"./VacancyLinkCard.vue?vue&type=script&lang=js\"\n\nimport \"./VacancyLinkCard.vue?vue&type=style&index=0&id=7a7e694e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7a7e694e\"]])\n\nexport default __exports__","import { render } from \"./AddJobVacancy.vue?vue&type=template&id=00048e4c&scoped=true\"\nimport script from \"./AddJobVacancy.vue?vue&type=script&lang=js\"\nexport * from \"./AddJobVacancy.vue?vue&type=script&lang=js\"\n\nimport \"./vacancy.scss?vue&type=style&index=0&id=00048e4c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-00048e4c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditJobVacancy.vue?vue&type=template&id=d4ce637a&scoped=true\"\nimport script from \"./EditJobVacancy.vue?vue&type=script&lang=js\"\nexport * from \"./EditJobVacancy.vue?vue&type=script&lang=js\"\n\nimport \"./vacancy.scss?vue&type=style&index=0&id=d4ce637a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d4ce637a\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./CandidateActionLayout.vue?vue&type=template&id=607faaf1\"\nimport script from \"./CandidateActionLayout.vue?vue&type=script&lang=js\"\nexport * from \"./CandidateActionLayout.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./HireAction.vue?vue&type=template&id=976724de\"\nimport script from \"./HireAction.vue?vue&type=script&lang=js\"\nexport * from \"./HireAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./InterviewFailAction.vue?vue&type=template&id=7c22f7f5\"\nimport script from \"./InterviewFailAction.vue?vue&type=script&lang=js\"\nexport * from \"./InterviewFailAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./InterviewPassedAction.vue?vue&type=template&id=4acd8c7a\"\nimport script from \"./InterviewPassedAction.vue?vue&type=script&lang=js\"\nexport * from \"./InterviewPassedAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./InterviewerAutocomplete.vue?vue&type=template&id=73842d23&scoped=true\"\nimport script from \"./InterviewerAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./InterviewerAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./InterviewerAutocomplete.vue?vue&type=style&index=0&id=73842d23&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-73842d23\"]])\n\nexport default __exports__","import { render } from \"./InterviewScheduleAction.vue?vue&type=template&id=2e02c752\"\nimport script from \"./InterviewScheduleAction.vue?vue&type=script&lang=js\"\nexport * from \"./InterviewScheduleAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./OfferJobAction.vue?vue&type=template&id=7ad654fe\"\nimport script from \"./OfferJobAction.vue?vue&type=script&lang=js\"\nexport * from \"./OfferJobAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./DeclineOfferAction.vue?vue&type=template&id=1874a396\"\nimport script from \"./DeclineOfferAction.vue?vue&type=script&lang=js\"\nexport * from \"./DeclineOfferAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./RejectAction.vue?vue&type=template&id=4b6da5d6\"\nimport script from \"./RejectAction.vue?vue&type=script&lang=js\"\nexport * from \"./RejectAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ShortlistAction.vue?vue&type=template&id=23ebf313\"\nimport script from \"./ShortlistAction.vue?vue&type=script&lang=js\"\nexport * from \"./ShortlistAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./SaveCandidate.vue?vue&type=template&id=e75f8a7a&scoped=true\"\nimport script from \"./SaveCandidate.vue?vue&type=script&lang=js\"\nexport * from \"./SaveCandidate.vue?vue&type=script&lang=js\"\n\nimport \"./SaveCandidate.vue?vue&type=style&index=0&id=e75f8a7a&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e75f8a7a\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./CandidateAutocomplete.vue?vue&type=template&id=5c755293&scoped=true\"\nimport script from \"./CandidateAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./CandidateAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./CandidateAutocomplete.vue?vue&type=style&index=0&id=5c755293&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5c755293\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./CandidateStatusDropdown.vue?vue&type=template&id=b2657cf2\"\nimport script from \"./CandidateStatusDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./CandidateStatusDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ViewCandidatesList.vue?vue&type=template&id=489664fe\"\nimport script from \"./ViewCandidatesList.vue?vue&type=script&lang=js\"\nexport * from \"./ViewCandidatesList.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./RecruitmentStatus.vue?vue&type=template&id=2d6dc297&scoped=true\"\nimport script from \"./RecruitmentStatus.vue?vue&type=script&lang=js\"\nexport * from \"./RecruitmentStatus.vue?vue&type=script&lang=js\"\n\nimport \"./RecruitmentStatus.vue?vue&type=style&index=0&id=2d6dc297&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2d6dc297\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./CandidateProfile.vue?vue&type=template&id=fa8534b2&scoped=true\"\nimport script from \"./CandidateProfile.vue?vue&type=script&lang=js\"\nexport * from \"./CandidateProfile.vue?vue&type=script&lang=js\"\n\nimport \"./CandidateProfile.vue?vue&type=style&index=0&id=fa8534b2&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fa8534b2\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./HistoryTable.vue?vue&type=template&id=5829e84c&scoped=true\"\nimport script from \"./HistoryTable.vue?vue&type=script&lang=js\"\nexport * from \"./HistoryTable.vue?vue&type=script&lang=js\"\n\nimport \"./HistoryTable.vue?vue&type=style&index=0&id=5829e84c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5829e84c\"]])\n\nexport default __exports__","import { render } from \"./ViewCandidateProfile.vue?vue&type=template&id=a9e264d4\"\nimport script from \"./ViewCandidateProfile.vue?vue&type=script&lang=js\"\nexport * from \"./ViewCandidateProfile.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ViewActionHistory.vue?vue&type=template&id=852759c2\"\nimport script from \"./ViewActionHistory.vue?vue&type=script&lang=js\"\nexport * from \"./ViewActionHistory.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./VacancyCard.vue?vue&type=template&id=251847f9&scoped=true\"\nimport script from \"./VacancyCard.vue?vue&type=script&lang=js\"\nexport * from \"./VacancyCard.vue?vue&type=script&lang=js\"\n\nimport \"../pages/public-job-vacancy.scss?vue&type=style&index=0&id=251847f9&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-251847f9\"]])\n\nexport default __exports__","import { render } from \"./VacancyList.vue?vue&type=template&id=68e0eff5&scoped=true\"\nimport script from \"./VacancyList.vue?vue&type=script&lang=js\"\nexport * from \"./VacancyList.vue?vue&type=script&lang=js\"\n\nimport \"./public-job-vacancy.scss?vue&type=style&index=0&id=68e0eff5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-68e0eff5\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./SuccessDialog.vue?vue&type=template&id=76269556&scoped=true\"\nimport script from \"./SuccessDialog.vue?vue&type=script&lang=js\"\nexport * from \"./SuccessDialog.vue?vue&type=script&lang=js\"\n\nimport \"./SuccessDialog.vue?vue&type=style&index=0&id=76269556&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-76269556\"]])\n\nexport default __exports__","import { render } from \"./ApplyJobVacancy.vue?vue&type=template&id=316ef8c9&scoped=true\"\nimport script from \"./ApplyJobVacancy.vue?vue&type=script&lang=js\"\nexport * from \"./ApplyJobVacancy.vue?vue&type=script&lang=js\"\n\nimport \"./public-job-vacancy.scss?vue&type=style&index=0&id=316ef8c9&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-316ef8c9\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveInterviewAttachment.vue?vue&type=template&id=08d320cc\"\nimport script from \"./SaveInterviewAttachment.vue?vue&type=script&lang=js\"\nexport * from \"./SaveInterviewAttachment.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditInterviewAttachment.vue?vue&type=template&id=5646de72\"\nimport script from \"./EditInterviewAttachment.vue?vue&type=script&lang=js\"\nexport * from \"./EditInterviewAttachment.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ViewInterviewAttachments.vue?vue&type=template&id=451febef&scoped=true\"\nimport script from \"./ViewInterviewAttachments.vue?vue&type=script&lang=js\"\nexport * from \"./ViewInterviewAttachments.vue?vue&type=script&lang=js\"\n\nimport \"./ViewInterviewAttachments.vue?vue&type=style&index=0&id=451febef&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-451febef\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport ViewJobVacancy from './pages/ViewJobVacancy.vue';\nimport AddJobVacancy from './pages/AddJobVacancy.vue';\nimport EditJobVacancy from './pages/EditJobVacancy.vue';\nimport HireAction from './pages/HireAction.vue';\nimport InterviewFailedAction from './pages/InterviewFailAction.vue';\nimport InterviewPassedAction from './pages/InterviewPassedAction.vue';\nimport InterviewScheduleAction from './pages/InterviewScheduleAction.vue';\nimport OfferJobAction from './pages/OfferJobAction.vue';\nimport OfferDeclinedAction from './pages/DeclineOfferAction.vue';\nimport RejectAction from './pages/RejectAction.vue';\nimport ShortlistAction from './pages/ShortlistAction.vue';\nimport SaveCandidate from './pages/SaveCandidate.vue';\nimport ViewCandidatesList from './pages/ViewCandidatesList.vue';\nimport ViewCandidateProfile from './pages/ViewCandidateProfile.vue';\nimport ViewActionHistory from './pages/ViewActionHistory.vue';\nimport VacancyList from './pages/VacancyList.vue';\nimport ApplyJobVacancy from './pages/ApplyJobVacancy.vue';\nimport ViewInterviewAttachments from './pages/ViewInterviewAttachments.vue';\n\nexport default {\n 'view-job-vacancy': ViewJobVacancy,\n 'add-job-vacancy': AddJobVacancy,\n 'edit-job-vacancy': EditJobVacancy,\n 'save-candidate': SaveCandidate,\n 'view-candidates-list': ViewCandidatesList,\n 'view-candidate-profile': ViewCandidateProfile,\n 'shortlist-action': ShortlistAction,\n 'reject-action': RejectAction,\n 'interview-schedule-action': InterviewScheduleAction,\n 'interview-passed-action': InterviewPassedAction,\n 'interview-failed-action': InterviewFailedAction,\n 'offer-job-action': OfferJobAction,\n 'offer-decline-action': OfferDeclinedAction,\n 'hire-action': HireAction,\n 'view-action-history': ViewActionHistory,\n 'vacancy-list': VacancyList,\n 'apply-job-vacancy': ApplyJobVacancy,\n 'view-interview-attachments': ViewInterviewAttachments,\n};\n","\n\n\n\n","import { render } from \"./MyTracker.vue?vue&type=template&id=98b484f2\"\nimport script from \"./MyTracker.vue?vue&type=script&lang=js\"\nexport * from \"./MyTracker.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmployeeTrackers.vue?vue&type=template&id=4cfaa9a4\"\nimport script from \"./EmployeeTrackers.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTrackers.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./KpiEdit.vue?vue&type=template&id=7cf38636&scoped=true\"\nimport script from \"./KpiEdit.vue?vue&type=script&lang=js\"\nexport * from \"./KpiEdit.vue?vue&type=script&lang=js\"\n\nimport \"./kpi.scss?vue&type=style&index=0&id=7cf38636&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7cf38636\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./KpiSave.vue?vue&type=template&id=f93b79d6&scoped=true\"\nimport script from \"./KpiSave.vue?vue&type=script&lang=js\"\nexport * from \"./KpiSave.vue?vue&type=script&lang=js\"\n\nimport \"./kpi.scss?vue&type=style&index=0&id=f93b79d6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f93b79d6\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./KpiSearch.vue?vue&type=template&id=4f1e9da6\"\nimport script from \"./KpiSearch.vue?vue&type=script&lang=js\"\nexport * from \"./KpiSearch.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SupervisorAutoComplete.vue?vue&type=template&id=bc731d42\"\nimport script from \"./SupervisorAutoComplete.vue?vue&type=script&lang=js\"\nexport * from \"./SupervisorAutoComplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./AddReview.vue?vue&type=template&id=07c0323b&scoped=true\"\nimport script from \"./AddReview.vue?vue&type=script&lang=js\"\nexport * from \"./AddReview.vue?vue&type=script&lang=js\"\n\nimport \"./review.scss?vue&type=style&index=0&id=07c0323b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-07c0323b\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./EditReview.vue?vue&type=template&id=d6976f66&scoped=true\"\nimport script from \"./EditReview.vue?vue&type=script&lang=js\"\nexport * from \"./EditReview.vue?vue&type=script&lang=js\"\n\nimport \"./review.scss?vue&type=style&index=0&id=d6976f66&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d6976f66\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./PerformanceTrackers.vue?vue&type=template&id=e408492e\"\nimport script from \"./PerformanceTrackers.vue?vue&type=script&lang=js\"\nexport * from \"./PerformanceTrackers.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ReviewerAutoComplete.vue?vue&type=template&id=36bfdafe\"\nimport script from \"./ReviewerAutoComplete.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewerAutoComplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./SavePerformanceTracker.vue?vue&type=template&id=f8e523ea\"\nimport script from \"./SavePerformanceTracker.vue?vue&type=script&lang=js\"\nexport * from \"./SavePerformanceTracker.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditPerformanceTracker.vue?vue&type=template&id=7634600b\"\nimport script from \"./EditPerformanceTracker.vue?vue&type=script&lang=js\"\nexport * from \"./EditPerformanceTracker.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\ntype ReviewAction = {\n component: string;\n props: object;\n};\n\nexport const viewIcon: ReviewAction = {\n component: 'oxd-icon-button',\n props: {\n name: 'eye-fill',\n title: 'View',\n },\n};\n\nexport const editIcon: ReviewAction = {\n component: 'oxd-icon-button',\n props: {\n name: 'pencil-fill',\n title: 'Edit',\n },\n};\n\nexport const evaluateIcon: ReviewAction = {\n component: 'oxd-icon-button',\n props: {\n name: 'file-text-fill',\n title: 'Evaluate',\n },\n};\n\nexport const viewLabel: ReviewAction = {\n component: 'oxd-button',\n props: {\n label: 'View',\n displayType: 'text',\n size: 'medium',\n style: {\n 'min-width': '120px',\n },\n },\n};\n\nexport const editLabel: ReviewAction = {\n component: 'oxd-button',\n props: {\n label: 'Edit',\n displayType: 'text',\n size: 'medium',\n style: {\n 'min-width': '120px',\n },\n },\n};\n\nexport const evaluateLabel: ReviewAction = {\n component: 'oxd-button',\n props: {\n label: 'Evaluate',\n displayType: 'text',\n size: 'medium',\n style: {\n 'min-width': '120px',\n },\n },\n};\n","\n\n\n\n\n\n\n","import { render } from \"./ReviewPeriodCell.vue?vue&type=template&id=ab384128&scoped=true\"\nimport script from \"./ReviewPeriodCell.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewPeriodCell.vue?vue&type=script&lang=js\"\n\nimport \"./ReviewPeriodCell.vue?vue&type=style&index=0&id=ab384128&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ab384128\"]])\n\nexport default __exports__","import { render } from \"./MyReviews.vue?vue&type=template&id=0a23ca8f&scoped=true\"\nimport script from \"./MyReviews.vue?vue&type=script&lang=js\"\nexport * from \"./MyReviews.vue?vue&type=script&lang=js\"\n\nimport \"./MyReviews.vue?vue&type=style&index=0&id=0a23ca8f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0a23ca8f\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./ReviewStatusDropdown.vue?vue&type=template&id=70301144\"\nimport script from \"./ReviewStatusDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewStatusDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ReviewList.vue?vue&type=template&id=2415900c&scoped=true\"\nimport script from \"./ReviewList.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewList.vue?vue&type=script&lang=js\"\n\nimport \"./ReviewList.vue?vue&type=style&index=0&id=2415900c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2415900c\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./ReviewSearch.vue?vue&type=template&id=f1a9132e&scoped=true\"\nimport script from \"./ReviewSearch.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewSearch.vue?vue&type=script&lang=js\"\n\nimport \"./ReviewSearch.vue?vue&type=style&index=0&id=f1a9132e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f1a9132e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {ref, nextTick, onMounted, onBeforeUnmount} from 'vue';\nimport {promiseDebounce} from '@ohrm/oxd';\n\ntype useInfiniteScrollArgs = {\n refName?: string;\n scrollDistance?: number;\n debounceInterval?: number;\n};\n\nexport interface CustomElement extends HTMLElement {\n $el: HTMLElement;\n}\n\nexport default function useInfiniteScroll(\n executor: () => void,\n {\n refName = 'scrollerRef',\n scrollDistance = 100,\n debounceInterval = 100,\n }: useInfiniteScrollArgs = {},\n) {\n let scrolledAmount = 0,\n isScrollDown = false;\n const scrollContainer = ref();\n const onScroll = promiseDebounce(async () => executor(), debounceInterval);\n\n const onScrollEvent = () => {\n let scrollHeight, clientHeight, scrollTop;\n\n if (scrollContainer.value) {\n ({scrollHeight, clientHeight, scrollTop} =\n scrollContainer.value.$el || scrollContainer.value);\n } else {\n scrollTop = window.scrollY;\n scrollHeight = document.body.scrollHeight;\n clientHeight = document.body.clientHeight;\n }\n\n // compare previous scroll with current scroll top to find vertical direction\n isScrollDown = scrollTop > scrolledAmount;\n scrolledAmount = scrollTop;\n\n // clientHeight = inner height of an element in pixels (without overflow)\n // scrollHeight = inner height of an element in pixels including overflown content\n // scrollTop = how much content is scrolled vertically in pixels\n const scrollerAtBottom =\n scrollTop + clientHeight >= scrollHeight - (scrollDistance || 0);\n\n if (isScrollDown && scrollerAtBottom) onScroll();\n };\n\n onMounted(async () => {\n await nextTick();\n if (scrollContainer.value) {\n (scrollContainer.value.$el || scrollContainer.value).addEventListener(\n 'scroll',\n onScrollEvent,\n );\n } else {\n document.addEventListener('scroll', onScrollEvent);\n }\n });\n\n onBeforeUnmount(() => {\n if (scrollContainer.value) {\n (scrollContainer.value.$el || scrollContainer.value).removeEventListener(\n 'scroll',\n onScrollEvent,\n );\n } else {\n document.removeEventListener('scroll', onScrollEvent);\n }\n });\n\n return {\n [refName]: scrollContainer,\n };\n}\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./TrackerLogRatingButton.vue?vue&type=template&id=21511c97&scoped=true\"\nimport script from \"./TrackerLogRatingButton.vue?vue&type=script&lang=js\"\nexport * from \"./TrackerLogRatingButton.vue?vue&type=script&lang=js\"\n\nimport \"./TrackerLogRatingButton.vue?vue&type=style&index=0&id=21511c97&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-21511c97\"]])\n\nexport default __exports__","import { render } from \"./AddTrackerLogModal.vue?vue&type=template&id=38b5fab4&scoped=true\"\nimport script from \"./AddTrackerLogModal.vue?vue&type=script&lang=js\"\nexport * from \"./AddTrackerLogModal.vue?vue&type=script&lang=js\"\n\nimport \"./tracker-log-modal.scss?vue&type=style&index=0&id=38b5fab4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-38b5fab4\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditTrackerLogModal.vue?vue&type=template&id=5f6526aa&scoped=true\"\nimport script from \"./EditTrackerLogModal.vue?vue&type=script&lang=js\"\nexport * from \"./EditTrackerLogModal.vue?vue&type=script&lang=js\"\n\nimport \"./tracker-log-modal.scss?vue&type=style&index=0&id=5f6526aa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5f6526aa\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeTrackerLogCard.vue?vue&type=template&id=6a9799ac&scoped=true\"\nimport script from \"./EmployeeTrackerLogCard.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTrackerLogCard.vue?vue&type=script&lang=js\"\n\nimport \"./tracker-log-card.scss?vue&type=style&index=0&id=6a9799ac&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6a9799ac\"]])\n\nexport default __exports__","import { render } from \"./EmployeeTrackerLogs.vue?vue&type=template&id=f225ba5e&scoped=true\"\nimport script from \"./EmployeeTrackerLogs.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTrackerLogs.vue?vue&type=script&lang=js\"\n\nimport \"./employee-tracker-log.scss?vue&type=style&index=0&id=f225ba5e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f225ba5e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ReviewSummary.vue?vue&type=template&id=21b21277&scoped=true\"\nimport script from \"./ReviewSummary.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewSummary.vue?vue&type=script&lang=js\"\n\nimport \"./review-summary.scss?vue&type=style&index=0&id=21b21277&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-21b21277\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./FinalEvaluation.vue?vue&type=template&id=2711f6e6&scoped=true\"\nimport script from \"./FinalEvaluation.vue?vue&type=script&lang=js\"\nexport * from \"./FinalEvaluation.vue?vue&type=script&lang=js\"\n\nimport \"./final-evaluation.scss?vue&type=style&index=0&id=2711f6e6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2711f6e6\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EvaluationForm.vue?vue&type=template&id=d193810c&scoped=true\"\nimport script from \"./EvaluationForm.vue?vue&type=script&lang=js\"\nexport * from \"./EvaluationForm.vue?vue&type=script&lang=js\"\n\nimport \"./evaluation-form.scss?vue&type=style&index=0&id=d193810c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d193810c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {\n lessThanOrEqual,\n greaterThanOrEqual,\n} from '@/core/util/validation/rules';\nimport usei18n from '@/core/util/composable/usei18n';\nimport {APIService} from '@/core/util/services/api.service';\n\nexport interface JobTitle {\n id: number;\n name: string;\n deleted: boolean;\n}\n\nexport interface KPI {\n id: number;\n title: string;\n jobTitle: JobTitle;\n minRating: number;\n maxRating: number;\n isDefault: boolean;\n}\n\nexport interface EvaluationData {\n id: number;\n rating: string;\n comment: string;\n kpi: KPI;\n}\n\nexport interface Reviewer {\n empNumber: number;\n firstName: string;\n lastName: string;\n middleName: string;\n terminationId: number;\n jobTitle: JobTitle;\n}\n\nexport interface ReviewerData {\n status: number;\n employee: Reviewer;\n}\n\nexport interface AllowedAction {\n action: string;\n name: string;\n}\n\nexport interface Review {\n kpis: Array<{\n kpiId: number;\n rating: number;\n comment: string;\n }>;\n generalComment: string;\n}\n\nexport default function useReviewEvaluation(http: APIService) {\n const {$t} = usei18n();\n\n const getAllKpis = (reviewId: number) => {\n return http.request({\n method: 'GET',\n url: `/api/v2/performance/reviews/${reviewId}/kpis`,\n });\n };\n\n const getSupervisorReview = (reviewId: number) => {\n return http.request({\n method: 'GET',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/supervisor`,\n });\n };\n\n const getEmployeeReview = (reviewId: number) => {\n return http.request({\n method: 'GET',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/employee`,\n });\n };\n\n const getFinalReview = (reviewId: number) => {\n return http.request({\n method: 'GET',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/final`,\n });\n };\n\n const finalizeReview = (\n reviewId: number,\n reviewData: {\n complete: boolean;\n finalComment: string;\n finalRating: number;\n completedDate: string;\n },\n ) => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/final`,\n data: {\n ...reviewData,\n finalComment:\n reviewData.finalComment === '' ? null : reviewData.finalComment,\n },\n });\n };\n\n const saveEmployeeReview = (\n reviewId: number,\n complete: boolean,\n review: Review,\n ) => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/employee`,\n data: {\n complete,\n ratings: review.kpis,\n generalComment: review.generalComment,\n },\n });\n };\n\n const saveSupervisorReview = (reviewId: number, review: Review) => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/supervisor`,\n data: {\n ratings: review.kpis,\n generalComment: review.generalComment,\n },\n });\n };\n\n const generateRules = (kpis: KPI[]) => {\n return kpis.map((kpi) => [\n greaterThanOrEqual(\n kpi.minRating,\n $t('performance.rating_should_be_greater_than_or_equal_to_minValue', {\n minValue: kpi.minRating,\n }),\n ),\n lessThanOrEqual(\n kpi.maxRating,\n $t('performance.rating_should_be_less_than_or_equal_to_maxValue', {\n maxValue: kpi.maxRating,\n }),\n ),\n ]);\n };\n\n const generateModel = (kpis: KPI[]) => {\n return {\n kpis: kpis.map((kpi) => ({\n kpiId: kpi.id,\n rating: null,\n comment: null,\n })),\n generalComment: null,\n };\n };\n\n const generateEvaluationFormData = (\n evaluationData: EvaluationData[],\n generalComment: string,\n kpis: Array<{kpiId: number}>,\n ) => {\n return {\n kpis: kpis.map(({kpiId}) => {\n const _kpi = evaluationData.find((datum) => datum.kpi.id === kpiId);\n return {\n kpiId,\n rating: _kpi?.rating,\n comment: _kpi?.comment,\n };\n }),\n generalComment: generalComment,\n };\n };\n\n const generateReviewerData = (reviewerData: ReviewerData) => {\n return {\n details: {\n empNumber: reviewerData.employee.empNumber,\n firstName: reviewerData.employee.firstName,\n lastName: reviewerData.employee.lastName,\n middleName: reviewerData.employee.middleName,\n terminationId: reviewerData.employee.terminationId,\n },\n jobTitle: reviewerData.employee.jobTitle.name,\n status: reviewerData.status,\n };\n };\n\n const generateAllowedActions = (allowedActions: AllowedAction[] | null) => {\n return new Map(\n allowedActions?.map((action) => {\n return [action.action, action.name];\n }),\n );\n };\n\n return {\n getAllKpis,\n getEmployeeReview,\n getSupervisorReview,\n getFinalReview,\n generateRules,\n generateModel,\n generateReviewerData,\n generateAllowedActions,\n generateEvaluationFormData,\n finalizeReview,\n saveEmployeeReview,\n saveSupervisorReview,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./ReviewConfirmModal.vue?vue&type=template&id=76b5ab1c&scoped=true\"\nimport script from \"./ReviewConfirmModal.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewConfirmModal.vue?vue&type=script&lang=js\"\n\nimport \"./ReviewConfirmModal.vue?vue&type=style&index=0&id=76b5ab1c&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-76b5ab1c\"]])\n\nexport default __exports__","import { render } from \"./AdminEvaluation.vue?vue&type=template&id=ecbdbb4c&scoped=true\"\nimport script from \"./AdminEvaluation.vue?vue&type=script&lang=js\"\nexport * from \"./AdminEvaluation.vue?vue&type=script&lang=js\"\n\nimport \"./review-evaluate.scss?vue&type=style&index=0&id=ecbdbb4c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ecbdbb4c\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SelfEvaluation.vue?vue&type=template&id=574fdbb6&scoped=true\"\nimport script from \"./SelfEvaluation.vue?vue&type=script&lang=js\"\nexport * from \"./SelfEvaluation.vue?vue&type=script&lang=js\"\n\nimport \"./review-evaluate.scss?vue&type=style&index=0&id=574fdbb6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-574fdbb6\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport MyTracker from './pages/MyTracker.vue';\nimport EmployeeTrackers from './pages/EmployeeTrackers.vue';\nimport KpiEdit from './pages/KpiEdit.vue';\nimport KpiSave from './pages/KpiSave.vue';\nimport KpiSearch from './pages/KpiSearch.vue';\nimport AddReview from './pages/AddReview.vue';\nimport EditReview from './pages/EditReview.vue';\nimport PerformanceTrackerList from './pages/PerformanceTrackers.vue';\nimport SavePerformanceTracker from './pages/SavePerformanceTracker.vue';\nimport EditPerformanceTracker from './pages/EditPerformanceTracker.vue';\nimport MyReviews from './pages/MyReviews.vue';\nimport ReviewList from './pages/ReviewList.vue';\nimport ReviewSearch from './pages/ReviewSearch.vue';\nimport EmployeeTrackerLogs from './pages/EmployeeTrackerLogs.vue';\nimport AdminEvaluation from './pages/AdminEvaluation.vue';\nimport SelfEvaluation from './pages/SelfEvaluation.vue';\n\nexport default {\n 'my-tracker': MyTracker,\n 'employee-trackers': EmployeeTrackers,\n 'kpi-search': KpiSearch,\n 'kpi-save': KpiSave,\n 'kpi-edit': KpiEdit,\n 'add-review': AddReview,\n 'edit-review': EditReview,\n 'performance-tracker-list': PerformanceTrackerList,\n 'performance-tracker-save': SavePerformanceTracker,\n 'performance-tracker-edit': EditPerformanceTracker,\n 'my-reviews': MyReviews,\n 'review-list': ReviewList,\n 'review-search': ReviewSearch,\n 'employee-tracker-logs': EmployeeTrackerLogs,\n 'admin-evaluation': AdminEvaluation,\n 'self-evaluation': SelfEvaluation,\n};\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ProfilePicture.vue?vue&type=template&id=49d66b74&scoped=true\"\nimport script from \"./ProfilePicture.vue?vue&type=script&lang=js\"\nexport * from \"./ProfilePicture.vue?vue&type=script&lang=js\"\n\nimport \"./ProfilePicture.vue?vue&type=style&index=0&id=49d66b74&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-49d66b74\"]])\n\nexport default __exports__","import { render } from \"./SummaryCard.vue?vue&type=template&id=0415b0f1&scoped=true\"\nimport script from \"./SummaryCard.vue?vue&type=script&lang=js\"\nexport * from \"./SummaryCard.vue?vue&type=script&lang=js\"\n\nimport \"./SummaryCard.vue?vue&type=style&index=0&id=0415b0f1&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0415b0f1\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import script from \"./QRCode.vue?vue&type=script&lang=js\"\nexport * from \"./QRCode.vue?vue&type=script&lang=js\"\n\nimport \"./QRCode.vue?vue&type=style&index=0&id=74e533de&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-74e533de\"]])\n\nexport default __exports__","import { render } from \"./EmployeeDetails.vue?vue&type=template&id=d01dcc04&scoped=true\"\nimport script from \"./EmployeeDetails.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeDetails.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeDetails.vue?vue&type=style&index=0&id=d01dcc04&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d01dcc04\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SummaryCardDetails.vue?vue&type=template&id=59b69fb8\"\nimport script from \"./SummaryCardDetails.vue?vue&type=script&lang=js\"\nexport * from \"./SummaryCardDetails.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./CorporateDirectory.vue?vue&type=template&id=0d01fa51&scoped=true\"\nimport script from \"./CorporateDirectory.vue?vue&type=script&lang=js\"\nexport * from \"./CorporateDirectory.vue?vue&type=script&lang=js\"\n\nimport \"./corporate-directory.scss?vue&type=style&index=0&id=0d01fa51&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0d01fa51\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport CorporateDirectory from './pages/CorporateDirectory.vue';\n\nexport default {\n 'corporate-directory-employee-list': CorporateDirectory,\n};\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LoginLayout.vue?vue&type=template&id=50815349&scoped=true\"\nimport script from \"./LoginLayout.vue?vue&type=script&lang=js\"\nexport * from \"./LoginLayout.vue?vue&type=script&lang=js\"\n\nimport \"./login-layout.scss?vue&type=style&index=0&id=50815349&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-50815349\"]])\n\nexport default __exports__","import { render } from \"./Login.vue?vue&type=template&id=358db50f&scoped=true\"\nimport script from \"./Login.vue?vue&type=script&lang=js\"\nexport * from \"./Login.vue?vue&type=script&lang=js\"\n\nimport \"./login.scss?vue&type=style&index=0&id=358db50f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-358db50f\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Forbidden.vue?vue&type=template&id=2d224a00\"\nimport script from \"./Forbidden.vue?vue&type=script&lang=js\"\nexport * from \"./Forbidden.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./CardNote.vue?vue&type=template&id=58e596ce&scoped=true\"\nimport script from \"./CardNote.vue?vue&type=script&lang=js\"\nexport * from \"./CardNote.vue?vue&type=script&lang=js\"\n\nimport \"./CardNote.vue?vue&type=style&index=0&id=58e596ce&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-58e596ce\"]])\n\nexport default __exports__","import { render } from \"./ResetPassword.vue?vue&type=template&id=3069512e&scoped=true\"\nimport script from \"./ResetPassword.vue?vue&type=script&lang=js\"\nexport * from \"./ResetPassword.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=3069512e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3069512e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ResetWeakPassword.vue?vue&type=template&id=cae6a014&scoped=true\"\nimport script from \"./ResetWeakPassword.vue?vue&type=script&lang=js\"\nexport * from \"./ResetWeakPassword.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=cae6a014&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cae6a014\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ResetPasswordError.vue?vue&type=template&id=0928170e&scoped=true\"\nimport script from \"./ResetPasswordError.vue?vue&type=script&lang=js\"\nexport * from \"./ResetPasswordError.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=0928170e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0928170e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./AdministratorAccess.vue?vue&type=template&id=3614f3e7&scoped=true\"\nimport script from \"./AdministratorAccess.vue?vue&type=script&lang=js\"\nexport * from \"./AdministratorAccess.vue?vue&type=script&lang=js\"\n\nimport \"./AdministratorAccess.vue?vue&type=style&index=0&id=3614f3e7&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3614f3e7\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./RequestResetPassword.vue?vue&type=template&id=cee5d450&scoped=true\"\nimport script from \"./RequestResetPassword.vue?vue&type=script&lang=js\"\nexport * from \"./RequestResetPassword.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=cee5d450&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cee5d450\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./ResetPasswordSuccess.vue?vue&type=template&id=3198c915&scoped=true\"\nimport script from \"./ResetPasswordSuccess.vue?vue&type=script&lang=js\"\nexport * from \"./ResetPasswordSuccess.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=3198c915&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3198c915\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmailConfigurationWarning.vue?vue&type=template&id=64d8674c&scoped=true\"\nimport script from \"./EmailConfigurationWarning.vue?vue&type=script&lang=js\"\nexport * from \"./EmailConfigurationWarning.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=64d8674c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-64d8674c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport Login from './pages/Login.vue';\nimport Forbidden from './pages/Forbidden.vue';\nimport ResetPassword from './pages/ResetPassword.vue';\nimport ResetWeakPassword from './pages/ResetWeakPassword.vue';\nimport ResetPasswordError from './pages/ResetPasswordError.vue';\nimport AdministratorAccess from './pages/AdministratorAccess.vue';\nimport RequestResetPassword from './pages/RequestResetPassword.vue';\nimport ResetPasswordSuccess from './pages/ResetPasswordSuccess.vue';\nimport EmailConfigurationWarning from './pages/EmailConfigurationWarning.vue';\n\nexport default {\n 'auth-login': Login,\n 'auth-forbidden': Forbidden,\n 'reset-password': ResetPassword,\n 'auth-admin-access': AdministratorAccess,\n 'reset-weak-password': ResetWeakPassword,\n 'reset-password-error': ResetPasswordError,\n 'reset-password-success': ResetPasswordSuccess,\n 'request-reset-password': RequestResetPassword,\n 'email-configuration-warning': EmailConfigurationWarning,\n};\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./BaseWidget.vue?vue&type=template&id=fcab0262&scoped=true\"\nimport script from \"./BaseWidget.vue?vue&type=script&lang=js\"\nexport * from \"./BaseWidget.vue?vue&type=script&lang=js\"\n\nimport \"./base-widget.scss?vue&type=style&index=0&id=fcab0262&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fcab0262\"]])\n\nexport default __exports__","import { render } from \"./QuickLaunchWidget.vue?vue&type=template&id=6321cefe&scoped=true\"\nimport script from \"./QuickLaunchWidget.vue?vue&type=script&lang=js\"\nexport * from \"./QuickLaunchWidget.vue?vue&type=script&lang=js\"\n\nimport \"./quick-launch-widget.scss?vue&type=style&index=0&id=6321cefe&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6321cefe\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./VideoFrame.vue?vue&type=template&id=2cbd4256&scoped=true\"\nimport script from \"./VideoFrame.vue?vue&type=script&lang=js\"\nexport * from \"./VideoFrame.vue?vue&type=script&lang=js\"\n\nimport \"./VideoFrame.vue?vue&type=style&index=0&id=2cbd4256&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2cbd4256\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {AxiosResponse} from 'axios';\nimport {APIService} from '@/core/util/services/api.service';\n\nexport interface Employee {\n empNumber: number;\n lastName: string;\n firstName: string;\n middleName: string;\n employeeId: string;\n terminationId?: number;\n}\n\nexport interface Post {\n text: string;\n employee: Employee;\n createdDate: string;\n createdTime: string;\n}\n\nexport interface PostBody {\n text: string;\n type: string;\n link?: string;\n photos?: Array;\n deletedPhotos?: Array;\n}\n\ntype Capability = 'canRead' | 'canCreate' | 'canUpdate' | 'canDelete';\n\ntype Permission = {\n [key in Capability]: boolean;\n};\n\ninterface CommentsResponse {\n data: Array<{\n comment: {\n id: number;\n createdDate: string;\n createdTime: string;\n };\n employee: Employee;\n }>;\n meta: {\n total: number;\n };\n}\n\ninterface PostsResponse {\n data: Array<{\n id: number;\n text: string;\n type: string;\n liked: boolean;\n employee: Employee;\n createdDate: string;\n createdTime: string;\n permission: Permission;\n originalPost: Post | null;\n }>;\n meta: {\n total: number;\n };\n}\n\nexport default function useBuzzAPIs(http: APIService) {\n const fetchPostComments = (\n postId: number,\n limit = 0,\n detailed = false,\n ): Promise> => {\n return http.request({\n method: 'GET',\n url: `/api/v2/buzz/shares/${postId}/comments`,\n params: {\n limit: limit,\n ...(detailed && {model: 'detailed'}),\n },\n });\n };\n\n const savePostComment = (\n postId: number,\n comment: string,\n ): Promise => {\n return http.request({\n method: 'POST',\n url: `/api/v2/buzz/shares/${postId}/comments`,\n data: {text: comment},\n });\n };\n\n const updatePostComment = (\n postId: number,\n commentId: number,\n comment: string,\n ): Promise => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/buzz/shares/${postId}/comments/${commentId}`,\n data: {text: comment},\n });\n };\n\n const deletePostComment = (\n postId: number,\n commentId: number,\n ): Promise => {\n return http.request({\n method: 'DELETE',\n url: `/api/v2/buzz/shares/${postId}/comments/${commentId}`,\n });\n };\n\n const fetchPostLikes = (postId: number): Promise => {\n return http.request({\n method: 'GET',\n url: `/api/v2/buzz/shares/${postId}/likes`,\n });\n };\n\n const fetchPosts = (\n limit: number,\n offset: number,\n sortOrder: 'ASC' | 'DESC',\n sortField:\n | 'share.createdAtUtc'\n | 'share.numOfLikes'\n | 'share.numOfComments',\n ): Promise> => {\n return http.request({\n method: 'GET',\n url: '/api/v2/buzz/feed',\n params: {\n limit,\n offset,\n sortOrder,\n sortField,\n },\n });\n };\n\n const updatePostLike = (\n postId: number,\n like: boolean,\n ): Promise => {\n return http.request({\n method: like ? 'DELETE' : 'POST',\n url: `/api/v2/buzz/shares/${postId}/likes`,\n });\n };\n\n const updateCommentLike = (\n commentId: number,\n like: boolean,\n ): Promise => {\n return http.request({\n method: like ? 'DELETE' : 'POST',\n url: `/api/v2/buzz/comments/${commentId}/likes`,\n });\n };\n\n const deletePost = (postId: number): Promise => {\n return http.request({\n method: 'DELETE',\n url: `/api/v2/buzz/shares/${postId}`,\n });\n };\n\n const updatePost = (\n postId: number,\n post: PostBody,\n ): Promise => {\n if (post.type === 'photo') {\n delete post['link'];\n }\n if (post.type === 'video') {\n delete post['photos'];\n delete post['deletedPhotos'];\n }\n if (post.type === 'text') {\n delete post['link'];\n delete post['photos'];\n }\n return http.request({\n method: 'PUT',\n url: `/api/v2/buzz/posts/${postId}`,\n data: {...post},\n params: {model: 'detailed'},\n });\n };\n\n const updateSharedPost = (\n postId: number,\n text: string,\n ): Promise => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/buzz/shares/${postId}`,\n data: {text},\n params: {model: 'detailed'},\n });\n };\n\n return {\n fetchPosts,\n updatePost,\n deletePost,\n updatePostLike,\n fetchPostLikes,\n savePostComment,\n updateSharedPost,\n updatePostComment,\n deletePostComment,\n fetchPostComments,\n updateCommentLike,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./ProfileImage.vue?vue&type=template&id=7d93b59a&scoped=true\"\nimport script from \"./ProfileImage.vue?vue&type=script&lang=js\"\nexport * from \"./ProfileImage.vue?vue&type=script&lang=js\"\n\nimport \"./ProfileImage.vue?vue&type=style&index=0&id=7d93b59a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7d93b59a\"]])\n\nexport default __exports__","import { render } from \"./BuzzLatestPostWidget.vue?vue&type=template&id=5021c2bc&scoped=true\"\nimport script from \"./BuzzLatestPostWidget.vue?vue&type=script&lang=js\"\nexport * from \"./BuzzLatestPostWidget.vue?vue&type=script&lang=js\"\n\nimport \"./buzz-latest-post-widget.scss?vue&type=style&index=0&id=5021c2bc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5021c2bc\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeSubunitWidget.vue?vue&type=template&id=8c1519ac&scoped=true\"\nimport script from \"./EmployeeSubunitWidget.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeSubunitWidget.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeSubunitWidget.vue?vue&type=style&index=0&id=8c1519ac&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8c1519ac\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./MyActionSummaryWidget.vue?vue&type=template&id=267ef1b2&scoped=true\"\nimport script from \"./MyActionSummaryWidget.vue?vue&type=script&lang=js\"\nexport * from \"./MyActionSummaryWidget.vue?vue&type=script&lang=js\"\n\nimport \"./my-action-summary-widget.scss?vue&type=style&index=0&id=267ef1b2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-267ef1b2\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeLocationWidget.vue?vue&type=template&id=f6125ed6&scoped=true\"\nimport script from \"./EmployeeLocationWidget.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeLocationWidget.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeLocationWidget.vue?vue&type=style&index=0&id=f6125ed6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f6125ed6\"]])\n\nexport default __exports__","\n\n\n
\n
\n \n
\n
\n \n {{ leave.empName }}\n \n \n {{ leave.leaveType }}\n \n
\n \n {{ leave.employeeId }}\n \n
\n \n \n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./EmployeesOnLeaveConfigModal.vue?vue&type=template&id=729478c0&scoped=true\"\nimport script from \"./EmployeesOnLeaveConfigModal.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeesOnLeaveConfigModal.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeesOnLeaveConfigModal.vue?vue&type=style&index=0&id=729478c0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-729478c0\"]])\n\nexport default __exports__","import { render } from \"./EmployeesOnLeaveWidget.vue?vue&type=template&id=0bbde4fe&scoped=true\"\nimport script from \"./EmployeesOnLeaveWidget.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeesOnLeaveWidget.vue?vue&type=script&lang=js\"\n\nimport \"./employee-on-leave-widget.scss?vue&type=style&index=0&id=0bbde4fe&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0bbde4fe\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeAttendanceWidget.vue?vue&type=template&id=98346df6&scoped=true\"\nimport script from \"./EmployeeAttendanceWidget.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeAttendanceWidget.vue?vue&type=script&lang=js\"\n\nimport \"./employee-attendance-widget.scss?vue&type=style&index=0&id=98346df6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-98346df6\"]])\n\nexport default __exports__","import { render } from \"./ViewDashboard.vue?vue&type=template&id=47e79c96&scoped=true\"\nimport script from \"./ViewDashboard.vue?vue&type=script&lang=js\"\nexport * from \"./ViewDashboard.vue?vue&type=script&lang=js\"\n\nimport \"./ViewDashboard.vue?vue&type=style&index=0&id=47e79c96&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-47e79c96\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport ViewDashboard from '@/orangehrmDashboardPlugin/pages/ViewDashboard.vue';\n\nexport default {\n 'view-dashboard': ViewDashboard,\n};\n","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport Hammer from 'hammerjs';\nimport {onBeforeUnmount, onMounted, ref} from 'vue';\nimport {CustomElement} from './useInfiniteScroll';\n\nexport default function useSwipe(executor: ($event: HammerInput) => void) {\n let manager: HammerManager;\n const swipeContainer = ref();\n\n onMounted(() => {\n if (!swipeContainer.value) return;\n\n manager = new Hammer.Manager(\n swipeContainer.value?.$el || swipeContainer.value,\n );\n const Swipe = new Hammer.Swipe();\n manager.add(Swipe);\n manager.on('swipe', executor);\n });\n\n onBeforeUnmount(() => {\n manager?.destroy();\n });\n\n return {\n swipeContainer,\n };\n}\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PhotoFrame.vue?vue&type=template&id=1e5473e0&scoped=true\"\nimport script from \"./PhotoFrame.vue?vue&type=script&lang=js\"\nexport * from \"./PhotoFrame.vue?vue&type=script&lang=js\"\n\nimport \"./photo-frame.scss?vue&type=style&index=0&id=1e5473e0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1e5473e0\"]])\n\nexport default __exports__","import { render } from \"./PostBody.vue?vue&type=template&id=6a53586a&scoped=true\"\nimport script from \"./PostBody.vue?vue&type=script&lang=js\"\nexport * from \"./PostBody.vue?vue&type=script&lang=js\"\n\nimport \"./post-body.scss?vue&type=style&index=0&id=6a53586a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6a53586a\"]])\n\nexport default __exports__","\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PostStatsModal.vue?vue&type=template&id=77c45dfa&scoped=true\"\nimport script from \"./PostStatsModal.vue?vue&type=script&lang=js\"\nexport * from \"./PostStatsModal.vue?vue&type=script&lang=js\"\n\nimport \"./post-stats-modal.scss?vue&type=style&index=0&id=77c45dfa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-77c45dfa\"]])\n\nexport default __exports__","import { render } from \"./PostStats.vue?vue&type=template&id=096b057d&scoped=true\"\nimport script from \"./PostStats.vue?vue&type=script&lang=js\"\nexport * from \"./PostStats.vue?vue&type=script&lang=js\"\n\nimport \"./post-stats.scss?vue&type=style&index=0&id=096b057d&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-096b057d\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PostModal.vue?vue&type=template&id=cbb80b9a&scoped=true\"\nimport script from \"./PostModal.vue?vue&type=script&lang=js\"\nexport * from \"./PostModal.vue?vue&type=script&lang=js\"\n\nimport \"./PostModal.vue?vue&type=style&index=0&id=cbb80b9a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cbb80b9a\"]])\n\nexport default __exports__","import { render } from \"./ShareVideoModal.vue?vue&type=template&id=88037bac\"\nimport script from \"./ShareVideoModal.vue?vue&type=script&lang=js\"\nexport * from \"./ShareVideoModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PhotoUploadArea.vue?vue&type=template&id=42c23441&scoped=true\"\nimport script from \"./PhotoUploadArea.vue?vue&type=script&lang=js\"\nexport * from \"./PhotoUploadArea.vue?vue&type=script&lang=js\"\n\nimport \"./photo-upload-area.scss?vue&type=style&index=0&id=42c23441&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-42c23441\"]])\n\nexport default __exports__","import { render } from \"./PhotoInput.vue?vue&type=template&id=7401001c&scoped=true\"\nimport script from \"./PhotoInput.vue?vue&type=script&lang=js\"\nexport * from \"./PhotoInput.vue?vue&type=script&lang=js\"\n\nimport \"./photo-input.scss?vue&type=style&index=0&id=7401001c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7401001c\"]])\n\nexport default __exports__","import { render } from \"./SharePhotoModal.vue?vue&type=template&id=cff3ca5c\"\nimport script from \"./SharePhotoModal.vue?vue&type=script&lang=js\"\nexport * from \"./SharePhotoModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./CreatePost.vue?vue&type=template&id=cc1398f0&scoped=true\"\nimport script from \"./CreatePost.vue?vue&type=script&lang=js\"\nexport * from \"./CreatePost.vue?vue&type=script&lang=js\"\n\nimport \"./create-post.scss?vue&type=style&index=0&id=cc1398f0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cc1398f0\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PostLikeButton.vue?vue&type=template&id=e149abea&scoped=true\"\nimport script from \"./PostLikeButton.vue?vue&type=script&lang=js\"\nexport * from \"./PostLikeButton.vue?vue&type=script&lang=js\"\n\nimport \"./post-like-button.scss?vue&type=style&index=0&id=e149abea&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e149abea\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./PostShareButton.vue?vue&type=template&id=75ac1ce8\"\nimport script from \"./PostShareButton.vue?vue&type=script&lang=js\"\nexport * from \"./PostShareButton.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./PostCommentButton.vue?vue&type=template&id=fd795c6a\"\nimport script from \"./PostCommentButton.vue?vue&type=script&lang=js\"\nexport * from \"./PostCommentButton.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./PostActions.vue?vue&type=template&id=f9d19a8e&scoped=true\"\nimport script from \"./PostActions.vue?vue&type=script&lang=js\"\nexport * from \"./PostActions.vue?vue&type=script&lang=js\"\n\nimport \"./PostActions.vue?vue&type=style&index=0&id=f9d19a8e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f9d19a8e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditPostModal.vue?vue&type=template&id=d7bc64d6&scoped=true\"\nimport script from \"./EditPostModal.vue?vue&type=script&lang=js\"\nexport * from \"./EditPostModal.vue?vue&type=script&lang=js\"\n\nimport \"./EditPostModal.vue?vue&type=style&index=0&id=d7bc64d6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d7bc64d6\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PhotoViewer.vue?vue&type=template&id=606dc22d&scoped=true\"\nimport script from \"./PhotoViewer.vue?vue&type=script&lang=js\"\nexport * from \"./PhotoViewer.vue?vue&type=script&lang=js\"\n\nimport \"./photo-viewer.scss?vue&type=style&index=0&id=606dc22d&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-606dc22d\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nexport default function useAutoFocus() {\n const autofocus = {\n mounted(el: HTMLElement) {\n if (!el) return;\n el.querySelector('input')?.focus();\n },\n };\n\n return {\n autofocus,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./PostComment.vue?vue&type=template&id=b16f1772&scoped=true\"\nimport script from \"./PostComment.vue?vue&type=script&lang=js\"\nexport * from \"./PostComment.vue?vue&type=script&lang=js\"\n\nimport \"./post-comment.scss?vue&type=style&index=0&id=b16f1772&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b16f1772\"]])\n\nexport default __exports__","import { render } from \"./PostCommentContainer.vue?vue&type=template&id=58a27a86&scoped=true\"\nimport script from \"./PostCommentContainer.vue?vue&type=script&lang=js\"\nexport * from \"./PostCommentContainer.vue?vue&type=script&lang=js\"\n\nimport \"./PostCommentContainer.vue?vue&type=style&index=0&id=58a27a86&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-58a27a86\"]])\n\nexport default __exports__","import { render } from \"./PostDetails.vue?vue&type=template&id=486acada&scoped=true\"\nimport script from \"./PostDetails.vue?vue&type=script&lang=js\"\nexport * from \"./PostDetails.vue?vue&type=script&lang=js\"\n\nimport \"./post-details.scss?vue&type=style&index=0&id=486acada&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-486acada\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./PostActionsPill.vue?vue&type=template&id=0963cda2&scoped=true\"\nimport script from \"./PostActionsPill.vue?vue&type=script&lang=js\"\nexport * from \"./PostActionsPill.vue?vue&type=script&lang=js\"\n\nimport \"./PostActionsPill.vue?vue&type=style&index=0&id=0963cda2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0963cda2\"]])\n\nexport default __exports__","import { render } from \"./PhotoCarousel.vue?vue&type=template&id=052f1294&scoped=true\"\nimport script from \"./PhotoCarousel.vue?vue&type=script&lang=js\"\nexport * from \"./PhotoCarousel.vue?vue&type=script&lang=js\"\n\nimport \"./photo-carousel.scss?vue&type=style&index=0&id=052f1294&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-052f1294\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./PostContainer.vue?vue&type=template&id=061e7373&scoped=true\"\nimport script from \"./PostContainer.vue?vue&type=script&lang=js\"\nexport * from \"./PostContainer.vue?vue&type=script&lang=js\"\n\nimport \"./post-container.scss?vue&type=style&index=0&id=061e7373&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-061e7373\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SharePostModal.vue?vue&type=template&id=67079a5e&scoped=true\"\nimport script from \"./SharePostModal.vue?vue&type=script&lang=js\"\nexport * from \"./SharePostModal.vue?vue&type=script&lang=js\"\n\nimport \"./SharePostModal.vue?vue&type=style&index=0&id=67079a5e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-67079a5e\"]])\n\nexport default __exports__","import { render } from \"./NewsFeed.vue?vue&type=template&id=74e739a2&scoped=true\"\nimport script from \"./NewsFeed.vue?vue&type=script&lang=js\"\nexport * from \"./NewsFeed.vue?vue&type=script&lang=js\"\n\nimport \"./news-feed.scss?vue&type=style&index=0&id=74e739a2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-74e739a2\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./PostFilters.vue?vue&type=template&id=5df7d87f&scoped=true\"\nimport script from \"./PostFilters.vue?vue&type=script&lang=js\"\nexport * from \"./PostFilters.vue?vue&type=script&lang=js\"\n\nimport \"./post-filters.scss?vue&type=style&index=0&id=5df7d87f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5df7d87f\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./UpcomingAnniversaries.vue?vue&type=template&id=7a43ba69&scoped=true\"\nimport script from \"./UpcomingAnniversaries.vue?vue&type=script&lang=js\"\nexport * from \"./UpcomingAnniversaries.vue?vue&type=script&lang=js\"\n\nimport \"./upcoming-anniversaries.scss?vue&type=style&index=0&id=7a43ba69&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7a43ba69\"]])\n\nexport default __exports__","import { render } from \"./ViewBuzz.vue?vue&type=template&id=df9a4d4c&scoped=true\"\nimport script from \"./ViewBuzz.vue?vue&type=script&lang=js\"\nexport * from \"./ViewBuzz.vue?vue&type=script&lang=js\"\n\nimport \"./view-buzz.scss?vue&type=style&index=0&id=df9a4d4c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-df9a4d4c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport ViewBuzz from '@/orangehrmBuzzPlugin/pages/ViewBuzz.vue';\n\nexport default {\n 'view-buzz': ViewBuzz,\n};\n","\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./FlexTable.vue?vue&type=template&id=29402b1e&scoped=true\"\nimport script from \"./FlexTable.vue?vue&type=script&lang=js\"\nexport * from \"./FlexTable.vue?vue&type=script&lang=js\"\n\nimport \"./FlexTable.vue?vue&type=style&index=0&id=29402b1e&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-29402b1e\"]])\n\nexport default __exports__","import { render } from \"./SystemCheckScreen.vue?vue&type=template&id=b551a176&scoped=true\"\nimport script from \"./SystemCheckScreen.vue?vue&type=script&lang=js\"\nexport * from \"./SystemCheckScreen.vue?vue&type=script&lang=js\"\n\nimport \"./SystemCheckScreen.vue?vue&type=style&index=0&id=b551a176&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b551a176\"]])\n\nexport default __exports__","/*\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport SystemCheckScreen from './pages/SystemCheckScreen.vue';\n\nexport default {\n 'system-check': SystemCheckScreen,\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport CorePages from '@/core/pages';\nimport AdminPages from '@/orangehrmAdminPlugin';\nimport PimPages from '@/orangehrmPimPlugin';\nimport HelpPages from '@/orangehrmHelpPlugin';\nimport TimePages from '@/orangehrmTimePlugin';\nimport LeavePages from '@/orangehrmLeavePlugin';\nimport OAuthPages from '@/orangehrmCoreOAuthPlugin';\nimport AttendancePages from '@/orangehrmAttendancePlugin';\nimport MaintenancePages from '@/orangehrmMaintenancePlugin';\nimport RecruitmentPages from '@/orangehrmRecruitmentPlugin';\nimport PerformancePages from '@/orangehrmPerformancePlugin';\nimport CorporateDirectoryPages from '@/orangehrmCorporateDirectoryPlugin';\nimport authenticationPages from '@/orangehrmAuthenticationPlugin';\nimport languagePages from '@/orangehrmAdminPlugin';\nimport dashboardPages from '@/orangehrmDashboardPlugin';\nimport buzzPages from '@/orangehrmBuzzPlugin';\nimport systemCheckPages from '@/orangehrmSystemCheckPlugin';\n\nexport default {\n ...AdminPages,\n ...PimPages,\n ...CorePages,\n ...HelpPages,\n ...TimePages,\n ...OAuthPages,\n ...LeavePages,\n ...AttendancePages,\n ...MaintenancePages,\n ...RecruitmentPages,\n ...PerformancePages,\n ...CorporateDirectoryPages,\n ...authenticationPages,\n ...languagePages,\n ...dashboardPages,\n ...buzzPages,\n ...systemCheckPages,\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {App, inject, ComponentOptions, getCurrentInstance} from 'vue';\n\nexport type Capability = 'canRead' | 'canCreate' | 'canUpdate' | 'canDelete';\n\nexport type DataGroup = {\n [key in Capability]: boolean;\n};\n\nexport interface Permission {\n [key: string]: DataGroup;\n}\n\nexport interface AclAPI {\n read: (...args: string[]) => boolean;\n create: (...args: string[]) => boolean;\n update: (...args: string[]) => boolean;\n delete: (...args: string[]) => boolean;\n}\n\nconst ResolvePermissions = (capability: Capability) => {\n return (...args: string[]): boolean => {\n const instance = getCurrentInstance();\n if (!instance) {\n throw new Error('Vue app context not found!');\n }\n const permissions = inject('permissions', undefined) as\n | Permission\n | undefined;\n if (permissions) {\n return args.reduce(\n (acc: boolean, rule: string) =>\n acc && Boolean(permissions[rule]) && permissions[rule][capability],\n true,\n );\n }\n return false;\n };\n};\n\nfunction defineMixin(): ComponentOptions {\n return {\n beforeCreate(): void {\n this.$can = {\n read: ResolvePermissions('canRead'),\n create: ResolvePermissions('canCreate'),\n update: ResolvePermissions('canUpdate'),\n delete: ResolvePermissions('canDelete'),\n };\n },\n };\n}\n\nexport default {\n install: (app: App) => {\n app.mixin(defineMixin());\n },\n};\n","import {nanoid} from 'nanoid';\nimport {OxdToast, TOAST_TYPES} from '@ohrm/oxd';\nimport {translate as translatorFactory} from '@/core/plugins/i18n/translate';\nimport {h, defineComponent, TransitionGroup, App, reactive, toRefs} from 'vue';\n\nconst translate = translatorFactory();\n\ninterface Toast {\n id: string;\n type: string;\n title: string;\n message: string;\n show: boolean;\n}\n\ninterface ToastMessage {\n title: string;\n message: string;\n}\n\ninterface ToasterOptions {\n animation?: string;\n class?: string;\n position?: string;\n persist?: boolean;\n duration?: number;\n}\n\ninterface ToasterState {\n toasts: Toast[];\n transition: string;\n class: string;\n position: string;\n}\n\nexport interface ToasterAPI {\n notify: (toast: Toast) => Promise;\n show: (message: ToastMessage) => Promise;\n success: (message: ToastMessage) => Promise;\n error: (message: ToastMessage) => Promise;\n info: (message: ToastMessage) => Promise;\n warn: (message: ToastMessage) => Promise;\n clear: (id: number | string) => void;\n clearAll: () => void;\n\n saveSuccess: () => Promise;\n addSuccess: () => Promise;\n updateSuccess: () => Promise;\n deleteSuccess: () => Promise;\n cannotDelete: () => Promise;\n noRecordsFound: () => Promise;\n unexpectedError: (errorMessage: string | null) => Promise;\n}\n\nconst state: ToasterState = reactive({\n toasts: [],\n transition: '',\n class: '',\n position: '',\n});\n\nconst Toaster = defineComponent({\n name: 'OxdToaster',\n setup() {\n return {\n ...toRefs(state),\n };\n },\n computed: {\n classes(): object {\n return {\n 'oxd-toast-container': true,\n [`oxd-toast-container--${this.position}`]: true,\n };\n },\n },\n methods: {\n onUpdateShow(state: boolean, index: number) {\n if (state === false) {\n this.toasts.splice(index, 1);\n }\n },\n },\n\n render() {\n return h(\n TransitionGroup,\n {appear: true, name: this.transition, tag: 'div', class: this.classes},\n {\n default: () =>\n this.toasts.map((toast: Toast, index: number) => {\n return h(OxdToast, {\n key: toast.id,\n type: toast.type,\n title: toast.title,\n message: toast.message,\n show: toast.show,\n class: this.class,\n 'onUpdate:show': (state: boolean) =>\n this.onUpdateShow(state, index),\n });\n }),\n },\n );\n },\n});\n\nexport default {\n install: (app: App, options: ToasterOptions) => {\n // Create toaster vdom element\n const toastWrapper = document.createElement('oxd-toaster');\n toastWrapper.id = 'oxd-toaster_1';\n (document.getElementById('app') as HTMLElement).appendChild(toastWrapper);\n\n // Toaster API\n const clear = (id: number | string): void => {\n if (typeof id === 'string') {\n const _index = state.toasts.findIndex((item) => item.id === id);\n if (_index > -1) {\n clear(_index);\n }\n } else if (state.toasts[id]) {\n state.toasts.splice(id, 1);\n }\n };\n\n const notify = (toast: Toast): Promise => {\n return new Promise((resolve) => {\n const _id = nanoid(8);\n state.toasts.push({...toast, id: _id});\n if (!options.persist) {\n const _duration = options.duration ? options.duration : 2500;\n setTimeout(() => {\n clear(_id);\n resolve(_id);\n }, _duration);\n } else {\n resolve(_id);\n }\n });\n };\n\n const success = (message: ToastMessage): Promise => {\n return notify({\n id: '', // Auto setting\n type: TOAST_TYPES.TYPE_SUCCESS,\n show: true,\n ...message,\n });\n };\n\n const error = (message: ToastMessage): Promise => {\n return notify({\n id: '', // Auto setting\n type: TOAST_TYPES.TYPE_ERROR,\n show: true,\n ...message,\n });\n };\n\n const info = (message: ToastMessage): Promise => {\n return notify({\n id: '', // Auto setting\n type: TOAST_TYPES.TYPE_INFO,\n show: true,\n ...message,\n });\n };\n\n const warn = (message: ToastMessage): Promise => {\n return notify({\n id: '', // Auto setting\n type: TOAST_TYPES.TYPE_WARN,\n show: true,\n ...message,\n });\n };\n\n const show = (message: ToastMessage): Promise => {\n return notify({\n id: '', // Auto setting\n type: TOAST_TYPES.TYPE_DEFAULT,\n show: true,\n ...message,\n });\n };\n\n const clearAll = (): void => {\n state.toasts = [];\n };\n\n const saveSuccess = () =>\n success({\n title: translate('general.success'),\n message: translate('general.successfully_saved'),\n });\n\n const addSuccess = () =>\n success({\n title: translate('general.success'),\n message: translate('general.successfully_added'),\n });\n\n const updateSuccess = () =>\n success({\n title: translate('general.success'),\n message: translate('general.successfully_updated'),\n });\n\n const deleteSuccess = () =>\n success({\n title: translate('general.success'),\n message: translate('general.successfully_deleted'),\n });\n\n const cannotDelete = () =>\n error({\n title: translate('general.error'),\n message: translate('general.cannot_be_deleted'),\n });\n\n const noRecordsFound = () =>\n info({\n title: translate('general.info'),\n message: translate('general.no_records_found'),\n });\n\n const unexpectedError = (errorMessage: string | null) =>\n error({\n title: translate('general.error'),\n message: errorMessage ?? translate('general.unexpected_error'),\n });\n\n state.class = options.class ? options.class : 'oxd-toast-container--toast';\n state.transition = options.animation ? options.animation : 'oxd-toast-list';\n state.position = options.position ? options.position : 'bottom';\n\n // Define Toaster component\n app.component('OxdToaster', Toaster);\n\n // Add Toaster API to Vue global scope\n const toasterAPI: ToasterAPI = {\n notify,\n show,\n success,\n error,\n info,\n warn,\n clear,\n clearAll,\n saveSuccess,\n addSuccess,\n updateSuccess,\n deleteSuccess,\n cannotDelete,\n noRecordsFound,\n unexpectedError,\n };\n app.config.globalProperties.$toast = toasterAPI;\n },\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {createApp} from 'vue';\nimport components from './components';\nimport pages from './pages';\nimport acl, {AclAPI} from './core/plugins/acl/acl';\nimport toaster, {ToasterAPI} from './core/plugins/toaster/toaster';\nimport createI18n, {TranslateAPI} from './core/plugins/i18n/translate';\nimport '@ohrm/oxd/fonts.css';\nimport '@ohrm/oxd/icons.css';\nimport '@ohrm/oxd/style.css';\nimport './core/styles/global.scss';\nimport './core/plugins/toaster/toaster.scss';\nimport './core/plugins/loader/loader.scss';\n\nconst app = createApp({\n name: 'App',\n components: pages,\n});\n\n// Global Register Components\napp.use(components);\n\napp.use(toaster, {\n duration: 2500,\n persist: false,\n animation: 'oxd-toast-list',\n position: 'bottom',\n});\n\n// @ts-expect-error: appGlobal is not in window object by default\nconst baseUrl = window.appGlobal.baseUrl;\n\nconst {i18n, init} = createI18n({\n baseUrl: baseUrl,\n resourceUrl: 'core/i18n/messages',\n});\n\napp.use(acl);\napp.use(i18n);\n\n// https://github.com/vuejs/vue-next/pull/982\ndeclare module '@vue/runtime-core' {\n interface ComponentCustomProperties {\n $toast: ToasterAPI;\n $can: AclAPI;\n $t: TranslateAPI;\n }\n}\n\napp.config.globalProperties.global = {\n baseUrl,\n};\n\ninit().then(() => app.mount('#app'));\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"orangehrm:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t};\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkorangehrm\"] = self[\"webpackChunkorangehrm\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(7355); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","id","module","exports","_createBlock","_component_oxd_button","class","label","_ctx","type","name","__exports__","render","$props","_createElementBlock","_component_oxd_divider","_createElementVNode","_hoisted_2","_createVNode","_component_oxd_text","tag","count","onClick","$event","props","loading","Boolean","required","selected","Number","total","showDivider","default","emits","_component_oxd_layout","href","role","$setup","_component_oxd_icon_button","title","_","slotData","_renderSlot","_component_about","onClose","_component_oxd_dialog","style","width","maxWidth","$options","_hoisted_1","$data","_component_oxd_loading_spinner","_component_oxd_grid","cols","_component_oxd_grid_item","companyName","productName","version","undefined","numberOfActiveEmployee","_Fragment","key","numberOfPastEmployee","TempStorage","clear","this","_tempStorage","getItem","index","Object","removeItem","setItem","value","isSupported","storage","x","DOMException","length","WebStorage","constructor","_storage","prepare","endpoint","params","query","preparedEndpoint","JSON","parse","stringify","forEach","param","paramPlaceholder","includes","paramValue","toString","replace","console","error","preparedQueryString","queryKeys","queryKey","queryValue","Array","isArray","queryValueItem","itemIndex","encodeURI","urlFor","window","appGlobal","baseUrl","navigate","path","location","reloadPage","reload","APIService","_baseUrl","_apiSection","_http","axios","baseURL","_cacheStorage","localStorage","setupResponseInterceptors","getCurrentInstance","setIgnorePath","ignorePath","_ignorePathRegex","RegExp","getAll","headers","Accept","get","create","data","post","update","put","delete","deleteAll","request","options","url","ignoreError","response","status","config","test","vm","interceptors","use","reject","$toast","appContext","globalProperties","unexpectedError","message","removeETagWeakValidatorDirective","etag","startsWith","substring","cachedEtag","cacheData","http","apiSection","components","OxdSpinner","OxdDialog","setup","isLoading","beforeMount","finally","methods","onCancel","$emit","dateFormatKey","Symbol","useDateFormat","dateFormat","inject","jsDateFormat","convertPHPDateFormat","userDateFormat","timeFormat","jsTimeFormat","about","About","OxdLayout","inheritAttrs","permissions","logoutUrl","String","supportUrl","updatePasswordUrl","helpUrl","showAboutModel","ref","provide","readonly","openAboutModel","closeAboutModel","onClickSupport","open","_component_oxd_input_field","placeholder","events","locale","onSelectYear","defaultTimezones","offset","freshDate","Date","setHours","parseDate","parsed","isNaN","valueOf","getFullYear","formatDate","format","isBefore","reference","comparable","referenceDate","comparableDate","compareAsc","isAfter","isEqual","parseTime","formatTime","compareTime","referenceTime","comparableTime","NaN","diffInDays","fromDate","toDate","from","to","isSameDay","differenceInCalendarDays","diffInTime","startTime","endTime","start","end","diffInSecs","differenceInSeconds","secondsTohhmm","seconds","hours","Math","floor","minutes","padStart","parseTimeInSeconds","time","split","parseInt","parseFloat","setClockInterval","callback","interval","timer","setTimeout","getTime","getStandardTimezone","timezoneOffset","abs","toFixed","map","substr","i","padEnd","join","guessTimezone","timezoneName","Intl","DateTimeFormat","resolvedOptions","timeZone","getTimezoneOffset","resolvedTz","find","tz","formattedOffset","langStrings","translate","parameters","translatedString","defineMixin","beforeCreate","$t","createI18n","resourceUrl","init","method","contentType","process","language","target","source","IntlMessageFormat","ignoreTag","StoreService","i18n","app","mixin","usei18n","translatorFactory","useLocale","buildLocale","months","wide","abbreviated","days","state","reactive","attributes","responseValidator","fetchWorkWeek","async","model","validateStatus","fetchEvents","event","date","year","now","setFullYear","startOfYear","endDate","endOfYear","onBeforeMount","toRefs","step","install","component","Layout","OxdCardTable","OxdButton","OxdPagination","OxdDivider","OxdText","OxdIconButton","OxdForm","OxdFormRow","OxdFormActions","OxdInputField","OxdInputGroup","OxdGrid","OxdGridItem","OxdTableFilter","SubmitButton","TableHeader","RequiredText","DateInput","TimeInput","_component_oxd_alert","show","OxdAlert","_hoisted_3","src","alt","_hoisted_5","moduleUnderDevelopment","publicPath","script","BadRequest","NoRecordsFound","ModuleUnderDevelopment","Disabled","TimeSheetPeriodNotDefined","_component_table_header","onDelete","_hoisted_4","_component_oxd_card_table","order","items","selectable","clickable","_component_oxd_pagination","current","_component_delete_confirmation","useToast","wrap","fn","args","notify","success","info","warn","clearAll","saveSuccess","addSuccess","updateSuccess","deleteSuccess","cannotDelete","noRecordsFound","fetchData","meta","getPageParams","pageSize","currentPage","limit","getQueryParams","unref","entries","defaultNormalizer","usePaginate","normalizer","prefetch","toastNoRecords","showPaginator","pages","execQuery","pageParams","queryParams","rest","formattedData","ceil","watch","_Teleport","showDialog","useSort","sortParams","sortDefinition","sortField","computed","filter","column","sortOrder","onSort","func","defaultFilters","jobTitleName","jobDescription","defaultSortOrder","DeleteConfirmationDialog","filters","serializedFilters","slot","flex","cellType","cellConfig","onClickDelete","edit","onClickEdit","checkedItems","onClickAdd","item","onClickDeleteSelected","ids","push","$refs","deleteDialog","confirmation","deleteItems","resetDataTable","_component_oxd_form","onSubmitValid","_component_oxd_form_row","rules","description","_component_file_upload_input","newFile","newSpecification","file","oldSpecification","specification","hint","note","_component_oxd_form_actions","_component_required_text","_component_submit_button","trim","shouldNotExceedCharLength","charLength","amount","validDateFormat","displayFormat","shouldBeCurrentOrPreviousDate","currentDate","isValid","validTimeFormat","max","maxValue","digitsOnly","numericOnly","digitsOnlyWithDecimalPoint","digitsOnlyWithDecimalPointAndMinusSign","beforeDate","date1","date2","afterDate","sameDate","endDateShouldBeAfterStartDate","startDate","allowSameDate","resolvedStartDate","resolvedMessage","beforeTime","time1","time2","afterTime","sameTime","endTimeShouldBeAfterStartTime","allowSameTime","resolvedStartTime","maxFileSize","size","validFileTypes","fileTypes","findIndex","validEmailFormat","validPhoneNumberFormat","startDateShouldBeBeforeEndDate","resolvedEndDate","maxCurrency","startTimeShouldBeBeforeEndTime","resolvedEndTime","shouldNotLessThanCharLength","maxValueShouldBeGreaterThanMinValue","minValue","resolvedMinValue","minValueShouldBeLowerThanMaxValue","resolvedMaxValue","numberShouldBeBetweenMinAndMaxValue","min","validHexFormat","imageShouldHaveDimensions","aspectRatio","tolerance","image","Image","base64","decode","height","greaterThanOrEqual","lessThanOrEqual","validLangString","reduce","accumulator","currentValue","validSelection","validHostnameFormat","fqdnRegex","validPortRange","rangeFrom","rangeTo","_component_oxd_input_group","_component_oxd_icon","filename","_mergeProps","disabled","OxdIcon","Function","deletable","fileSelected","fieldLabel","fileName","downloadFile","downUrl","initialJobTitle","FileUploadInput","jobTitleId","allowedFileTypes","jobTitle","v","created","jobSpecification","toLowerCase","onSave","currentJobSpecification","jobCategoryId","category","errors","_component_oxd_table_filter","username","userRoleId","_component_employee_autocomplete","empNumber","employee","_hoisted_6","afterSelected","isPastEmployee","option","apiPath","serachParam","nameOrId","firstName","middleName","lastName","_employee","terminationId","useEmployeeNameTranslate","translateEmployeeName","includeMiddle","excludePastEmpTag","resolvedMiddleName","resolvedPastEmpTag","$tEmpName","EmployeeAutocomplete","unselectableIds","userdataNormalizer","userName","userRole","displayName","empName","isSelectable","userRoles","userStatuses","onClickReset","filterItems","autocomplete","_component_password_input","password","passwordConfirm","_component_password_strength_indicator","usePasswordPolicy","passwordStrength","validatePassword","strength","messages","_component_oxd_chip","OxdChip","passwordStrengthLabel","chipClasses","PasswordStrengthIndicator","promiseDebounce","$nextTick","triggerUpdate","userModel","PasswordInput","user","validateUserName","valid","changePassword","systemUserId","userId","_component_oxd_switch_input","children","_component_oxd_tree_view","content","nodeData","_component_oxd_sheet","_hoisted_7","unitId","_hoisted_8","_component_oxd_dropdown","_component_save_org_unit","_component_edit_org_unit","orgUnitModel","orgUnit","parentId","OxdSheet","SaveOrgUnit","EditOrgUnit","OxdTreeView","OxdDropdownMenu","OxdSwitchInput","responsiveState","useResponsive","isMobile","screenType","DEVICE_TYPES","editable","showSaveModal","saveModalState","showEditModal","editModalState","fetchOrgStructure","node","onAddOrglevel","onEditOrglevel","onSaveModalClose","onEditModalClose","mode","employmentStatusId","employmentStatus","educationId","qualification","skillModel","qualificationSkillId","skill","licenseId","license","qualificationLanguageId","qualificationMembershipId","membership","noOfEmployees","registrationNumber","taxId","phone","fax","email","street1","street2","city","province","zipCode","country","numberOfEmployees","countryList","organization","nationalityId","nationality","sentAs","mailType","pathToSendmail","smtpHost","smtpPort","classes","wrapper","smtpAuthType","smtpUsername","smtpPassword","testEmailAddress","passwordPlaceHolder","defaultValues","smtpSecurityType","useTLSSecureConnection","sendTestMailEditable","emailConfiguration","initialEmailConfiguration","testEmailStatus","onReset","countryCode","locationDataNormalizer","countryName","countries","address","initialLocation","hasCreatePermissions","$can","locationId","hasUpdatePermissions","currencyNormalizer","currencies","element","currency","grade","_component_pay_grade_currency","_component_save_pay_currency","_component_edit_pay_currency","_component_inline_action_button","currencyId","minSalary","maxSalary","payCurrencyModel","payGradeId","payCurrency","currencyType","PayGradeCurrencyNormalizer","InlineActionButton","SavePayCurrency","EditPayCurrency","onclickAdd","PayGradeCurrency","admin","pim","leave","recruitment","performance","_hoisted_9","directory","_hoisted_10","maintenance","_hoisted_11","mobile","modulesModel","modules","payload","workShiftNormalizer","hoursPerDay","_component_time_input","fromTime","_component_work_shift_employee_autocomplete","empNumbers","multiple","workShiftModel","WorkShiftEmployeeAutocomplete","workShiftConfig","workShift","selectedTimeDuration","workShiftId","employees","subscribersNormalizer","subscribers","slice","_type","sub","enabled","isEnabled","_loading","cellRenderer","row","addSubscriber","switchSubscription","modelValue","loader","withContainer","header","_component_save_subscriber","subscriptionId","_component_edit_subscriber","subscriberModel","subscriber","SaveSubscriber","EditSubscriber","dateFormatList","languageList","configuration","_component_inline_color_input","primaryColor","color","secondaryColor","primaryFontColor","secondaryFontColor","primaryGradientStartColor","primaryGradientEndColor","newAttachment","oldAttachment","clientLogo","clientBanner","loginBanner","useForm","refName","form","submit","onSubmit","Event","reset","validate","invalid","isFromInvalid","errorbag","_component_oxd_label","_component_oxd_color_input","OxdLabel","OxdColorInput","context","toRef","initialValue","emit","nextTick","hasError","useField","colorModel","fileUploadModel","InlineColorInput","allowedImageTypes","aspectRatios","aspectRatioTolerance","formRef","colors","showSocialMediaImages","onFormSubmit","getAttachment","variables","currentClientLogo","currentClientBanner","currentLoginBanner","onClickPreview","document","documentElement","setProperty","_component_add_language_modal","_component_languages_dropdown","activeOnly","LanguagesDropdown","languageName","AddLanguageModal","showAddLanguageModal","onClickTranslate","displayType","export","onClickExport","onClickAddLanguage","onAddLanguageModalClose","reloadLanguages","languageId","_component_language_group_list_dropdown","groupId","sourceText","translatedText","onlyTranslated","_component_edit_translations","langstrings","langstring","langString","onUpdateTranslation","_index","modified","GroupListDropdown","EditTranslationTable","languagePackage","sourceLanguage","translationOptions","sortOptions","onSubmitLangString","langStringId","translatedValue","enable","hostname","port","encryption","ldapImplementation","bindAnonymously","bindUserDN","bindUserPassword","hasBindUserPassword","baseDistinguishedName","searchScope","userNameAttribute","userSearchFilter","userUniqueIdAttribute","dataMapping","firstNameAttribute","middleNameAttribute","lastNameAttribute","userStatus","userStatusAttribute","employeeSelectorMapping","workEmail","workEmailAttribute","employeeId","employeeIdAttribute","mergeLDAPUsersWithExistingSystemUsers","syncInterval","_component_ldap_test_connection_modal","_component_ldap_sync_connection","lastSyncDate","lastSyncTime","lastSyncStatus","lastSync","parsedDateTime","datetime","getLastSyncStatus","syncStatus","syncFinishedAt","syncStartedAt","onClickSync","catch","checks","check","getClass","configurationModel","dataMappingModel","LdapSyncConnection","LdapTestConnectionModal","showSync","encryptionOptions","searchScopeOptions","ldapImplementationOptions","testModalState","workEmailLabelClasses","employeeIdLabelClasses","userLookupSettings","userLookupSetting","baseDN","onClickTest","getRequestBody","field","attributeName","onClickSave","onCloseTestModal","JobTitle","EditJobTitle","SaveJobTitle","JobCategory","EditJobCategory","SaveJobCategory","QualificationEducation","EditQualificationEducation","SaveQualificationEducation","SystemUser","EditSystemUser","SaveSystemUser","OrgStructure","EmploymentStatus","SaveEmploymentStatus","EditEmploymentStatus","QualificationSkill","EditQualificationSkill","SaveQualificationSkill","QualificationLicense","SaveQualificationLicense","EditQualificationLicense","EditModuleConfiguration","QualificationLanguage","EditQualificationLanguage","SaveQualificationLanguage","QualificationMembership","EditQualificationMembership","SaveQualificationMembership","ViewOrganizationGeneralInformation","Nationality","EditNationality","SaveNationality","LocationList","SaveLocation","EditLocation","ViewEmailConfiguration","PayGrade","AddPayGrade","EditPayGrade","WorkShift","SaveWorkShift","EditWorkShift","EmailSubscription","EditEmailSubscription","LocalizationConfiguration","CorporateBranding","LanguagePackages","EditLanguagePackage","LdapConfiguration","_component_profile_image_input","empPicture","imgSrc","showMiddleNamePlaceholder","localizedLabel","defaultPic","employeeModel","ProfileImageInput","empId","createLogin","profilePicUrl","isPicture","includeEmployees","_component_employment_status_dropdown","empStatusId","_component_include_employee_dropdown","supervisor","_component_jobtitle_dropdown","_component_subunit_dropdown","subunitId","_indent","level","includeOpts","JobtitleDropdown","SubunitDropdown","EmploymentStatusDropdown","IncludeEmployeeDropdown","unselectableEmpNumbers","dataNormalizer","firstAndMiddleName","isDeleted","empStatus","subunit","supervisors","supervisorEmpNumbers","stopImmediatePropagation","_component_edit_employee_layout","screen","nickname","otherId","drivingLicenseNo","_component_date_input","drivingLicenseExpiredDate","ssnNumber","sinNumber","maritalStatus","birthday","gender","militaryService","smoker","_component_tabs_navigation","tabs","_component_profile_custom_fields","_component_profile_attachments","tab","active","_component_save_attachment","_component_edit_attachment","_component_profile_action_header","BYTE","KILO_BYTE","MEGA_BYTE","GIGA_BYTE","convertFilesizeToString","digits","withSuffix","filesize","divisor","suffix","attachment","attachmentModel","currentFile","actionButtonShown","SaveAttachment","EditAttachment","ProfileActionHeader","attachmentDataNormalizer","attachedDate","tableHeaders","headerActions","read","download","onClickDownload","concat","extraData","formatExtraData","fields","customFieldsModel","fieldType","fieldName","transformRequest","TabsNavigation","ProfileAttachments","ProfileCustomFields","validator","employeeName","isCurrentEmp","onClickProfilePic","EditEmployeeLayout","nationalities","showDeprecatedFields","showSsnField","showSinField","maritalStatuses","updateModel","homeTelephone","workTelephone","otherEmail","contactDetailsModel","contact","validateWorkEmail","validateOtherEmail","sameAsOtherEmail","sameAsWorkEmail","validateEmailDifferent","resolvedEmail","_component_save_emergency_contact","_component_edit_emergency_contact","relationship","homePhone","mobilePhone","officePhone","emergencyContactModel","SaveEmergencyContact","EditEmergencyContact","isDisabled","_component_save_dependent","_component_edit_dependent","relationshipType","dateOfBirth","dependentModel","dependent","relationshipOptions","showRelationship","SaveDependent","EditDependent","dependentNormalizer","_component_save_salary_component","paygrades","_component_edit_salary_component","payFrequencyId","salaryAmount","comment","directDepositAccount","directDepositAccountType","accountType","directDepositRoutingNumber","directDepositAmount","salComponentModel","directDepositModel","payFrequencies","accountTypes","includeDirectDeposit","salaryComponent","directDeposit","usableCurrencies","showOptionalAccountType","minAmount","currencyInfo","maxAmount","currenciesOpts","paygrade","newVal","currencyIndex","mounted","addDirectDeposit","salaryName","payGrade","payPeriod","directDebit","account","routingNumber","salaryNormalizer","frequency","depositAmount","SaveSalaryComponent","EditSalaryComponent","joinedDate","_component_job_spec_download","contractAttachment","_component_terminate_modal","resourceId","fileType","fileSize","fetchFile","terminationReason","terminationModel","terminationReasons","termination","terminationReasonId","submitData","jobDetailsModel","contractDetailsModel","JobSpecDownload","TerminateModal","locations","jobTitles","jobCategories","subunits","employmentStatuses","showContractDetails","job","contract","showTerminateModal","selectedJobTitleId","terminationActionLabel","terminationActionType","normalizedJobTitles","deleted","terminationDate","updateJobModel","updateContractModel","currentContractAttachment","onClickTerminate","openTerminateModal","closeTerminateModal","jobCategory","employeeTerminationRecord","_component_employee_work_experience","_component_employee_education","_component_employee_skills","_component_employee_languages","fluencies","competencies","_component_employee_license","_component_save_skill","api","_component_edit_skill","_component_qualification_dropdown","skillId","yearsOfExperience","comments","QualificationDropdown","skillNormalizer","SaveSkill","EditSkill","skillsEndpoint","_component_save_education","_component_edit_education","institute","major","score","educationModel","education","educationNormalizer","SaveEducation","EditEducation","educationEndpoint","_component_save_language","_component_edit_language","fluencyId","competencyId","languageModel","languages","allowedLanguages","allowedFluencies","languageIndex","selectedLanguage","allowedFluencyIds","fluency","competency","languageNormalizer","SaveLanguage","EditLanguage","languagesEndpoint","_component_save_work_experience","_component_edit_work_experience","company","workExpModel","workExperience","SaveWorkExperience","EditWorkExperience","workExperienceNormalizer","_component_save_license","_component_edit_license","licenseNo","issuedDate","expiryDate","years","yearRange","range","fromYear","numberOfYears","licenseModel","yearArray","SaveLicense","EditLicense","licenceEndpoint","licenseNormalizer","EmployeeSkills","EmployeeEducation","EmployeeLanguages","EmployeeWorkExperience","EmployeeLicense","_component_save_immigration","_component_edit_immigration","number","reviewDate","immigrationModel","immigration","immigrationTypeClasses","SaveImmigration","EditImmigration","immigrationNormalizer","_component_employee_supervisors","_component_employee_subordinates","_component_save_employee_report_to","_component_edit_employee_report_to","_component_report_to_employee_autocomplete","reportingMethod","reportToModel","ReportToEmployeeAutocomplete","reportingMethods","reportTo","reportingMethodId","allowedEmployeesApi","supervisorEmpNumber","subordinateEmpNumber","subordinate","EditEmployeeReportTo","SaveEmployeeReportTo","supervisorNormalizer","supervisorEndpoint","subordinateNormalizer","subordinateEndpoint","EmployeeSupervisors","EmployeeSubordinates","_component_save_membership","memberships","_component_edit_membership","subscriptionPaidBy","subscriptionFee","subscriptionCommenceDate","subscriptionRenewalDate","membershipModel","membershipId","currencyTypeId","paidBy","SaveMembership","EditMembership","membershipNormalizer","membershipName","subscriptionTypeId","subscriptionCurrencyName","terminationReasonNormalizer","reportingMethodNormalizer","customFieldLimit","screenList","fieldTypeList","screenWidth","isLoaded","remainingFields","customFieldModel","customFieldId","fieldInUse","customField","isDropDownField","c","pimShowDeprecatedFields","showSSN","showSIN","showTaxExemptions","optionalFieldModel","optionalField","federalStatus","federalExemptions","taxState","stateStatus","stateExemptions","unemploymentState","workState","taxExemptionModel","taxStateCode","unemploymentStateCode","workStateCode","provinces","statuses","taxExemption","match","_component_employee_data_import_modal","failed","failedRows","EmployeeDataImportModal","importModalState","onImportModalClose","_component_report_autocomplete","report","ReportAutocomplete","reportId","view","onClickView","criterion","criteriaSelected","_component_report_criterion","operator","criteriaFieldValues","valueX","valueY","fieldGroup","displayField","fieldGroupSelected","_component_report_display_field","includeHeader","displayFieldSelected","onDeleteChip","_resolveDynamicComponent","opts","valueXOnly","operators","ReportCriterionAutocomplete","ReportCriterionSelect","ReportCriterionRange","ReportCriterionDateRange","_component_oxd_multiselect_chips","onChipRemoved","OxdMultiSelectChips","selectedFields","onRemoveSelected","reportModel","useEmployeeReport","selectionCriteria","displayFields","displayFieldGroups","getAllDisplayFieldsByGroupId","group","field_group_id","getUnusedDisplayFieldsByGroupId","selectedFieldGroup","usedDisplayFields","f","addCriterion","removeCriterion","splice","addDisplayField","groupIndex","removeDisplayFieldGroup","removeDisplayField","serializeBody","include","criteria","criteriaField","y","availableCriteria","availableFieldGroups","availableDisplyFields","fieldGroupId","ReportCriterion","ReportDisplayField","_component_reports_table","generateReport","_component_oxd_report_table","pagination","footer","OxdReportTable","columnCount","colCount","_dateFormattingEnabled","fetchTableData","_items","_rows","setupTableHeaders","cellProperties","prop","_url","cellTemplate","CellAdapter","OxdMultilineCell","fetchTableHeaders","child","ReportsTable","reportName","opt","o","currentPassword","history","back","newPassword","SaveEmployee","Employee","EmployeePersonalDetails","EmployeeContactDetails","EmployeeEmergencyContacts","EmployeeDependents","EmployeeProfilePicture","EmployeeSalary","EmployeeJob","EmployeeQualifications","EmployeeImmigration","EmployeeMembership","TerminationReason","EditTerminationReason","SaveTerminationReason","ReportingMethod","EditReportingMethod","SaveReportingMethod","EmployeeReportTo","CustomField","EditCustomField","SaveCustomField","OptionalField","EmployeeTaxExemption","EmployeeDataImport","EmployeeReport","SaveEmployeeReport","ViewEmployeeReport","EditEmployeeReport","UpdatePassword","helpImgSrc","ViewSupport","startDay","timeSheetPeriodModel","timeSheetPeriod","fill","localize","day","updateTimeSheetPeriodModel","d","customerNormalizer","customerModel","customer","validateCustomerName","customerName","customerId","_component_timesheet","columns","records","subtotal","_component_timesheet_period","onPrevious","onNext","_component_timesheet_actions","colspan","_hoisted_12","record","_component_project_autocomplete","project","_hoisted_14","_component_activity_dropdown","activity","workday","dates","onMousedown","onBlur","onFocus","_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","_component_timesheet_comment_modal","projectId","watchEffect","onlyAllowed","excludeProjectIds","excludeCustomerName","customerOrProjectName","_customer","timesheetId","projectName","commentDate","activityId","ActivityDropdown","ProjectAutocomplete","TimesheetCommentModal","focusedField","showCommentModal","commentModalState","dailyTotals","totals","acc","duration","daysOfWeek","getDate","getDay","tableClasses","fixedColumnClasses","fixedCellClasses","deleteRow","updated","syncRecords","addRow","updateTime","$value","_date","updateComment","updateProject","updateActivity","viewComment","entry","onCommentModalClose","getProject","getActivity","getDuration","getCommentIcon","isCommentVisible","onDurationFocus","onDurationBlur","validateDuration","validateFormat","validateTotal","useTimesheetAPIs","timesheet","timesheetRecords","timesheetStatus","timesheetColumns","timesheetSubtotal","timesheetAllowedActions","fetchTimesheet","updateTimesheet","action","fetchTimesheetEntries","isEmployeeTimesheet","allowedActions","updateTimesheetEntries","useTimesheet","loadTimesheet","sum","onClickPrevious","currDate","setDate","onClickNext","onClickSubmit","onClickApprove","onClickReject","onClickCreateTimesheet","showCreateTimesheet","canSubmitTimesheet","canApproveTimesheet","canRejectTimesheet","canResetTimesheet","canEditTimesheet","canCreateTimesheet","timesheetPeriod","actionsNormalizer","performedEmployee","actionName","performedBy","Timesheet","TimesheetPeriod","TimesheetActions","myTimesheetStatus","myTimesheet","timesheetModal","onClickCancel","_duration","deletedEntries","translateEmpName","timesheetDateRange","_component_customer_autocomplete","_component_project_admin_autocomplete","projectAdmin","showDelete","remove","CustomerAutocomplete","ProjectAdminAutocomplete","projectNormalizer","projectAdmins","deleteData","onRemove","_component_add_customer_modal","defaultProjectModel","projectAdminEmpNumbers","AddCustomerModal","showCustomerModal","validateProjectName","onClickAddCustomer","onCustomerModalClose","onAddAnother","onRemoveAdmin","projectAdminsEmpNumbers","result","_component_activities","_component_copy_activity_modal","_component_save_activity_modal","_component_edit_activity_modal","unique","activities","selectedActivities","hasUnique","activityIds","CopyActivityModal","SaveActivityModal","EditActivityModal","activitiesNormalizer","showCopyFromModal","showSaveActivityModal","showEditActivityModal","editActivityModalState","onClickCopyFrom","onCloseModal","Activities","_component_timesheet_pending_actions","period","TimesheetPendingActions","viewTimesheet","_component_save_timesheet_action","rejectTimesheet","approveTimesheet","SaveTimesheetAction","employeeTimesheetStatus","timesheetState","includeTimesheet","onClickBack","TimeSheetPeriodConfig","Customer","SaveCustomer","EditCustomer","MyTimesheet","EditTimeSheet","Project","ProjectSave","ProjectEdit","EmployeeTimesheet","ViewEmployeeTimesheet","EmployeeTimeReport","ProjectActivityReport","ActivityDetailsReport","startMonth","currentPeriod","leavePeriodModel","monthDates","leavePeriod","leavePeriodDefined","month","endDay","addDays","isFollowingYear","updateLeavePeriodModel","defineLeavePeriod","resetLeavePeriod","m","currentLeavePeriod","_component_leave_conflict","_component_leave_balance","_component_leave_duration_input","toTime","partialOptions","partial","endDuration","_component_time_range","TimeRange","workLength","selectedLength","timeDifference","durations","gutters","textAlign","justifyContent","taken","scheduled","pending","asAtDate","leaveType","totalEntitlement","entitled","leaveBalance","balance","leavePeriods","flatMap","leaves","leaveDate","useLeaveValidators","leaveTypeId","leaveDuration","partialOption","serializeParams","validateOverlapLeaves","leaveData","isConflict","isOverWorkshift","isWorkShiftLengthExceeded","validateLeaveBalance","breakdown","metaData","negative","LeaveBalanceModal","LeaveBalanceInsufficientModal","showModal","onModalOpen","onModalClose","leaveBalanceModal","watchPostEffect","workshiftExceeded","lengthHours","lastComment","leaveModel","LeaveDurationInput","LeaveBalance","LeaveConflict","showLeaveConflict","isWorkShiftExceeded","leaveConflictData","yearsArray","leaveTypes","appliedLeaveDuration","showDuration","showStartDay","showEndDay","_component_leave_assign_confirm_modal","_component_leave_type_dropdown","eligibleOnly","showEmptySelector","includeAllocated","onConfirm","defaultWorkshift","LeaveTypeDropdown","LeaveAssignConfirmModal","confirmDialog","situational","_component_entitlement_situational_modal","leaveTypeModel","EntitlementSituationalModal","bulkAssign","_component_leave_period_dropdown","entitlement","_component_entitlement_update_modal","_component_entitlement_bulk_update_modal","_component_entitlement_no_match_modal","selectedPeriod","_option","updateAs","leaveEntitlementModel","LeavePeriodDropdown","EntitlementUpdateModal","EntitlementBulkUpdateModal","EntitlementNoMatchModal","leaveEntitlement","empMatchCount","fetchEmployeeCount","isBulkAssign","noMatchModal","bulkUpdateModal","updateModal","toast","entitlementId","validateEntitlement","_component_leave_entitlement_table","entitlementNormalizer","entitlementType","totalEntitlements","showDatatable","LeaveEntitlementTable","monday","tuesday","wednesday","thursday","friday","saturday","sunday","workWeekModel","dayTypes","workWeek","dayType","noWorkingDays","values","recurring","lengthName","holidayModel","holidayLengthList","holiday","today","getMonth","holidayId","h","_component_leave_list_table","includePastEmps","_component_leave_list_table_header","onOnActionClick","_component_leave_comment_modal","_component_leave_bulk_action_modal","truncate","text","ellipsis","approve","cancel","more","useLeaveActions","primaryActions","processLeaveAction","actionType","processLeaveRequestAction","processLeaveRequestBulkAction","leaveRequestId","leaveActions","comm","_component_leave_comment","createdByEmployee","fullName","LeaveComment","leaveRequest","APPROVE","REJECT","CANCEL","bulkActions","LeaveListTableHeader","LeaveCommentsModal","LeaveBulkActionModal","myLeaveList","leaveStatuses","leaveStatus","leavelistNormalizer","leaveDatePeriod","leaveBalances","durationType","leaveBreakdown","lengthDays","_balance","leaveTypeName","noOfDays","actions","leaveBulkActions","allActions","approvable","rejectable","cancelable","bulkActionModalState","assign","dropdownActions","onLeaveAction","onLeaveDropdownAction","bulkActionModal","LeaveListTable","myLeaveRequest","leaveRequestNormalizer","canComment","isLeaveRequest","onClickComments","LeavePeriod","LeaveApply","LeaveAssign","EditLeaveType","LeaveType","SaveLeaveType","AddEntitlement","EditEntitlement","LeaveEntitlements","MyLeaveEntitlements","WorkWeek","Holiday","SaveHoliday","EditHoliday","LeaveList","LeaveRequest","MyLeaveList","LeaveEntitlementReport","MyLeaveEntitlementReport","unselectableClientIds","oAuthClientNormalizer","clientId","redirectUri","clientSecret","confidential","initialOAuthClient","isSecretPlain","oAuthClient","editMode","showClientSecret","getClient","setDataFromResponse","_component_login_branding","clientName","LoginBranding","errorType","loginBannerSrc","authorized","submitUrl","authorizeForm","$el","OAuthClient","SaveOAuthClient","OAuthAuthorize","_component_record_attendance","previousRecord","_component_timezone_dropdown","timezone","_offset","attendanceRecordModal","TimezoneDropdown","isEditable","isTimezoneEditable","attendanceRecordId","attendanceRecord","validateDate","previousRecordTimezone","previousAttendanceRecordDate","userDate","previousAttendanceRecordTime","userTime","_name","setCurrentDateTime","punchIn","res","utcDate","utcTime","tzOffset","RecordAttendance","punchOut","attendanceId","isEmployeeEdit","attendance","validateRecord","totalDuration","punchInTz","startTimezone","punchOutTz","endTimezone","punchInDate","punchInTime","punchInNote","punchInOffset","punchInTimezoneName","punchOutDate","punchOutTime","punchOutNote","punchOutOffset","punchOutTimezoneName","recordId","punchInTimezoneOffset","punchOutTimezoneOffset","screenState","useInjectTableProps","showHeader","attendanceRecordNormalizer","cellData","RecordCell","canUserChangeCurrentTime","canUserModifyAttendance","canSupervisorModifyAttendance","configsModel","PunchIn","PunchOut","EditAttendance","ViewMyAttendance","AttendanceConfiguration","AttendanceSummaryReport","ViewEmployeeAttendanceSummary","ViewEmployeeAttendanceDetailed","_component_purge_employee_records","onSearch","_component_selected_employee","_component_maintenance_note","_component_purge_confirmation","subtitle","_component_full_name_input","FullNameInput","selectedEmployee","buttonLabel","emitEmpNumber","includeEmployeesParam","titleLabel","autocompleteLabel","emitEmployee","cancelLabel","confirmLabel","icon","confirmButtonType","cancelButtonType","instanceIdentifier","selectedEmployeeModel","ConfirmationDialog","EmployeeRecords","SelectedEmployee","MaintenanceNote","showPurgeableEmployee","onClickSearch","onClickPurge","purgeDialog","purgeEmployee","_component_selected_candidates","onPurge","_component_purge_candidate_records","_component_vacancy_autocomplete","vacancy","searchParam","VacancyAutocomplete","CandidateRecords","vacancyId","purgeCandidateNormalizer","dateOfApplication","SelectedCandidates","purgeCandidates","_component_employee_records","search","downloadEmployeeData","employeeNumber","PurgeEmployee","PurgeCandidate","AccessEmployeeSearchScreen","_component_vacancy_dropdown","_component_hiring_manager_dropdown","hiringManagerId","excludeInterviewers","hiringManager","VacancyDropdown","HiringManagerDropdown","statusOptions","vacancies","numOfPositions","isPublished","_component_vacancy_link_card","vacancyModel","basePath","protocol","host","VacancyLinkCard","rssFeedUrl","webUrl","addAttachment","updateAttachment","_hoisted_13","_hoisted_15","_hoisted_16","VacancyAttachmentModel","attachmentNormalizer","attachmentType","httpAttachments","isLoadingAttachment","isLoadingTable","isAddClicked","isEditClicked","currentName","vacancyAttachment","attachments","onSaveAttachment","updateVisibility","filefileSize","onUpdateAttachment","currentAttachment","fileUrl","_component_candidate_action_layout","candidateName","vacancyName","hiringManagerName","candidateModel","candidateId","candidate","recruitmentStatus","CandidateActionLayout","interviewId","interviewName","interviewer","_component_interviewer_autocomplete","interviewerName","interviewDate","interviewTime","includeEmployee","interviewModel","InterviewerAutocomplete","interview","interviewers","onRemoveInterviewer","interviewerEmpNumbers","contactNumber","resume","keywords","applyDate","notes","consentToKeepData","_component_candidate_status_dropdown","_component_candidate_autocomplete","methodOfApplication","_candidate","application","CandidateAutocomplete","CandidateStatusDropdown","candidateDataNormalizer","manager","hasAttachment","applications","onDownload","_component_recruitment_status","_component_candidate_profile","updatable","onUpdate","_component_history_table","getAllowedActions","hasWorkflow","actionId","doWorkflow","selectedAction","applicationDate","_component_confirmation_dialog","CandidateProfileModel","CandidateAttachmentModel","VacancyModel","profile","fetchCandidate","updateCandidate","getResumeUrl","ACTION_ASSIGNED_VACANCY","ACTION_SHORTLISTED","ACTION_REJECTED","ACTION_INTERVIEW_SCHEDULED","ACTION_INTERVIEW_PASSED","ACTION_INTERVIEW_FAILED","ACTION_JOB_OFFERED","ACTION_OFFER_DECLINED","ACTION_HIRED","ACTION_REMOVED","ACTION_ADDED","ACTION_APPLIED","historyDataNormalizer","performerName","performedDate","onClickAttachment","historyId","HistoryTable","CandidateProfile","RecruitmentStatus","onCandidateUpdate","actionHistoryModel","performedAction","isScheduleInterview","_component_vacancy_card","vacancyTitle","vacancyDescription","viewMore","windowWidth","isViewDetails","descriptionLength","viewDetails","apply","VacancyCard","vacancyDataNormalizer","enctype","_component_success_dialogue","_component_simple_dialog","showSuccessDialog","onSuccess","applicantModel","SuccessDialog","bannerSrc","token","applicant","successLabel","descriptionClasses","showDialogue","applicantForm","showDialogueModal","onToggleMore","_component_save_interview_attachment","_component_edit_interview_attachment","SaveInterviewAttachment","EditInterviewAttachment","closeModel","ViewJobVacancy","AddJobVacancy","EditJobVacancy","SaveCandidate","ViewCandidatesList","ViewCandidateProfile","ShortlistAction","RejectAction","InterviewScheduleAction","InterviewPassedAction","InterviewFailedAction","OfferJobAction","OfferDeclinedAction","HireAction","ViewActionHistory","VacancyList","ApplyJobVacancy","ViewInterviewAttachments","serializedFilter","trackerNormalizer","tracker","trackerName","addedDate","modifiedDate","employeeTrackerNormalizer","autcomplete","minRating","maxRating","isDefault","initialKpi","kpiId","kpi","isReadOnly","defaultMinRating","defaultMaxRating","kpiNormalizer","isDeletable","_component_supervisor_autocomplete","supervisorReviewer","dueDate","reviewModel","SupervisorAutoComplete","review","activate","reviewerEmpNumber","reviewId","reviewer","reviewPeriodStart","reviewPeriodEnd","addDate","_component_reviewer_autocomplete","reviewers","excludeEmployee","trackerModel","ReviewerAutoComplete","reviewerEmpNumbers","performanceTrackerId","ownerEditable","viewIcon","editIcon","evaluateIcon","viewLabel","editLabel","evaluateLabel","department","reviewPeriod","overallStatus","statusName","selfEvaluationStatus","selfReviewStatus","statusId","reviewPeriodCellRenderer","actionButtonCellRenderer","tableScreenStateKey","onClickEvaluate","evaluate","ReviewPeriodCell","_component_review_status_dropdown","statusOpts","ReviewStatusDropdown","reviewListDateFormat","reviewListNormalizer","actionCellRenderer","_component_delete_confirmation_dialog","el","positive","_component_employee_tracker_log_card","onEdit","_component_add_tracker_log_modal","_component_edit_tracker_log_modal","useInfiniteScroll","executor","scrollDistance","debounceInterval","scrolledAmount","isScrollDown","scrollContainer","onScroll","onScrollEvent","scrollHeight","clientHeight","scrollTop","scrollY","body","scrollerAtBottom","onMounted","addEventListener","onBeforeUnmount","removeEventListener","log","_component_tracker_log_rating_button","indexOf","iconName","buttonClasses","iconClasses","trackerLogModel","TrackerLogRatingButton","trackerId","rating","trackerLog","onClickPositive","onClickNegative","achievement","trackerLogId","reviewerPictureSrc","reviewerName","_component_oxd_table_dropdown","OxdTableDropdown","dropdownOptions","onTrackerDropdownAction","AddTrackerLogModal","EditTrackerLogModal","EmployeeTrackerLogCard","infinite","showNoRecordsFound","scrollerRef","showAddTrackerModal","showEditTrackerModal","editTrackerLogId","onAddTrackerModalClose","resetItems","onEditTrackerModalClose","_component_review_confirm_modal","_component_review_summary","details","_component_evaluation_form","kpis","collapsed","collapsible","_component_final_evaluation","finalRating","reviewDateFormat","reviewStatus","reviewDueDate","completedDate","rows","finalComment","isRequired","formattedCompletedDate","generalComment","hasOwn","isCollapsed","commentValidators","profileImgSrc","toggleForm","onUpdateRating","onUpdateComment","onUpdateGeneralComment","evaluationLabel","useReviewEvaluation","getAllKpis","getSupervisorReview","getEmployeeReview","getFinalReview","finalizeReview","reviewData","saveEmployeeReview","complete","ratings","saveSupervisorReview","generateRules","generateModel","generateEvaluationFormData","evaluationData","_kpi","datum","generateReviewerData","reviewerData","generateAllowedActions","Map","reviewerModel","ReviewSummary","FinalEvaluation","EvaluationForm","ReviewConfirmModal","isReviewer","employeeReview","supervisorReview","isFinalizeRequired","hasSupervisorUpdateAction","has","hasSaveAction","hasCompleteAction","hasCancelAction","hasActions","submitReview","MyTracker","EmployeeTrackers","KpiSearch","KpiSave","KpiEdit","AddReview","EditReview","PerformanceTrackerList","SavePerformanceTracker","EditPerformanceTracker","MyReviews","ReviewList","ReviewSearch","EmployeeTrackerLogs","AdminEvaluation","SelfEvaluation","_component_summary_card","employeeSubUnit","employeeLocation","employeeJobTitle","_component_employee_details","_component_summary_card_details","onHideDetails","_component_profile_picture","ProfilePicture","employeeDesignation","showBackButton","hasDefaultSlot","$slots","cardTitleClasses","cardSubTitleClasses","cardDescriptionClasses","onMouseleave","onMouseover","_component_qr_code","qrImgSrc","generateQR","toDataURL","QRCode","employeeWorkTelephone","employeeWorkEmail","showTelephoneClip","showEmailClip","toGoEmail","qrPayload","callEmployeeDetailsApi","openClientTelephone","openClientEmail","copyEmail","navigator","clipboard","writeText","copyTelephone","contactInfo","generateQrPayload","EmployeeDetails","SummaryCard","SummaryCardDetails","employeeDataNormalizer","currentIndex","isEmployeeSelected","oxdGridClasses","colSize","hideEmployeeDetails","showEmployeeDetails","CorporateDirectory","_component_login_layout","autofocus","loginLogoSrc","LoginLayout","showSocialMedia","isDemoMode","submitted","loginForm","navigateUrl","_component_card_note","confirmPassword","noteText","hasNote","hasNoteIcon","CardNote","resetForm","invalidCode","backUrl","noteClasses","noteContainerClass","verifyForm","Login","Forbidden","ResetPassword","AdministratorAccess","ResetWeakPassword","ResetPasswordError","ResetPasswordSuccess","RequestResetPassword","EmailConfigurationWarning","_component_employee_attendance_widget","_component_my_action_summary_widget","_component_quick_launch_widget","_component_buzz_latest_post_widget","_component_employees_on_leave_widget","_component_employee_subunit_widget","_component_employee_location_widget","_component_base_widget","empty","emptyText","iconType","widgetRef","widgetBodyClasses","BaseWidget","quickLaunchActions","isEmpty","sortedActions","sort","prevItem","ACTIONS","onClickAction","_component_profile_image","employeeFullName","dateTime","postImgSrc","postVideoSrc","_component_video_frame","frameborder","allow","allowfullscreen","videoSrc","embedURL","useBuzzAPIs","fetchPostComments","postId","detailed","savePostComment","updatePostComment","commentId","deletePostComment","fetchPostLikes","fetchPosts","updatePostLike","like","updateCommentLike","deletePost","updatePost","updateSharedPost","imageSrc","VideoFrame","ProfileImage","posts","onClickPost","createdDate","createdTime","originalPost","video","link","photoIds","_component_oxd_pie_chart","OxdPieChart","dataset","CHART_COLORS","otherEmployeeCount","unassignedEmployeeCount","myActions","leaveRequestCount","timeSheetCount","reviewCount","selfReviewCount","interviewCount","pendingActionCount","onClickPendingLeave","onClickPendingTimesheet","onClickPendingReview","onClickPendingInterview","onClickSelfReview","_component_employees_on_leave_config_modal","showAccessibleEmployeesOnly","showOnlyAccessibleEmployeesOnLeaveToday","EmployeesOnLeaveConfigModal","tEmpName","leaveList","showConfigModal","_leaveType","onClickConfig","onConfigModalClose","_component_oxd_bar_chart","grid","OxdBarChart","dayTotal","weekTotal","lastState","lastRecord","parsedDate","formattedTime","isToday","formattedDate","currentWeek","fetchWidgetData","onClickPunchIn","currentTime","totalTime","workDay","lastAction","currentDay","currentUser","QuickLaunchWidget","BuzzLatestPostWidget","EmployeeSubunitWidget","MyActionSummaryWidget","EmployeeLocationWidget","EmployeesOnLeaveWidget","EmployeeAttendanceWidget","ViewDashboard","_component_oxd_tab_container","_component_oxd_tab_panel","_component_news_feed","_component_post_filters","onUpdatePriority","_component_upcoming_anniversaries","useSwipe","swipeContainer","Hammer","Swipe","add","on","destroy","_component_create_post","onRefresh","_component_post_container","_component_post_body","onSelectPhoto","actionButton","_component_post_actions","onLike","onShare","onComment","postStats","_component_post_stats","showComments","_component_post_comment_container","onCreate","_component_edit_post_modal","_component_share_post_modal","_component_photo_carousel","photoIndex","postIndex","onCreateComment","onDeleteComment","_component_photo_frame","media","photo","photos","PhotoFrame","readMore","postClasses","onClickReadMore","onClickPicture","_component_post_stats_modal","shareCount","likesCount","EMPLOYEE_LIMIT","users","_data","PostStatsModal","directives","clickOutsideDirective","showLikeList","showSharesList","stats","numOfLikes","sharesCount","numOfShares","commentsCount","commentCount","numOfComments","likesClasses","sharesClasses","onShowComments","onShowLikeList","onShowSharesList","_component_oxd_buzz_post_input","_component_oxd_glass_button","_component_share_video_modal","_component_share_photo_modal","_component_post_modal","persistent","actionLabel","PostModal","OxdBuzzPostInput","embeddedURL","_component_photo_input","_component_photo_upload_area","PhotoUploadArea","validationMessage","fileTypeValidator","fileSizeValidator","onFileChange","$file","onClickRemove","onClickCloseAlert","showUploadArea","showUploadButton","PhotoInput","OxdGlassButton","ShareVideoModal","SharePhotoModal","showVideoModal","showPhotoModal","onClickSharePhotos","onClickShareVideos","onCloseVideoModal","onClosePhotoModal","_component_post_like","liked","_component_post_comment","_component_post_share","viewBox","xmlns","PostLikeButton","PostShareButton","PostCommentButton","deletedPhotos","originalText","originalEmployee","_component_photo_viewer","_component_post_actions_pill","_component_post_details","onClickNextPhoto","onClickPreviousPhoto","selectedPhoto","onClickClose","useAutoFocus","querySelector","focus","onKeydown","permission","canUpdate","canDelete","onClickLike","onCancelComment","PostComment","showAllComments","loadComments","onClickShowMore","onEditComment","onLikeComment","PostStats","PostCommentContainer","postDateTime","onClickComment","combinedPostStats","PhotoViewer","PostDetails","PostActionsPill","layoutClasses","showPhoto","showDetails","shareId","PostBody","CreatePost","PostActions","PhotoCarousel","PostContainer","EditPostModal","SharePostModal","POST_LIMIT","noPostsPic","showShareModal","shareModalState","showPhotoCarousel","photoCarouselState","overflow","resetFeed","onClosePhotoCarousel","onCloseShareModal","onCloseEditModal","isMostRecent","isMostLikes","isMostComments","mostRecentButtonType","mostLikesButtonType","mostCommentsButtonType","mostRecentButtonLabel","mostLikesButtonLabel","mostCommentsButtonLabel","anniversary","anniversaryYear","yearsCount","celebrationPic","noContentPic","anniversaries","anniversariesCount","anniversariesLimit","getAnniversaries","onSeeMore","NewsFeed","OxdTabPanel","PostFilters","OxdTabContainer","UpcomingAnniversaries","tabSelector","direction","offsetDirection","swipeRef","ViewBuzz","_component_flex_table","titleName","FlexTable","isInterrupted","reCheck","SystemCheckScreen","AdminPages","PimPages","CorePages","HelpPages","TimePages","OAuthPages","LeavePages","AttendancePages","MaintenancePages","RecruitmentPages","PerformancePages","CorporateDirectoryPages","authenticationPages","languagePages","dashboardPages","buzzPages","systemCheckPages","ResolvePermissions","capability","instance","rule","toasts","transition","position","Toaster","defineComponent","onUpdateShow","TransitionGroup","appear","OxdToast","toastWrapper","createElement","getElementById","appendChild","_id","nanoid","persist","TOAST_TYPES","errorMessage","animation","toasterAPI","createApp","toaster","acl","global","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","call","deferred","O","chunkIds","priority","notFulfilled","Infinity","fulfilled","j","every","r","n","getter","__esModule","a","definition","defineProperty","enumerable","chunkId","all","promises","u","miniCssF","g","globalThis","obj","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","needAttach","scripts","getElementsByTagName","s","getAttribute","charset","timeout","nc","setAttribute","onScriptComplete","prev","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","bind","head","toStringTag","p","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"js/app.js","mappings":"oCAAA,SAASA,EAAyBC,GAGjC,OAAOC,QAAQC,UAAUC,MAAK,WAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBL,EAAM,KAEjD,MADAI,EAAEE,KAAO,mBACHF,CACP,GACD,CACAL,EAAyBQ,KAAO,WAAa,MAAO,EAAI,EACxDR,EAAyBG,QAAUH,EACnCA,EAAyBS,GAAK,KAC9BC,EAAOC,QAAUX,C,+ICSfY,EAAAA,EAAAA,aAKEC,EAAAA,CAJAC,MAA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.entry\\.js.*$ include: \\.entry\\.js$ exclude: \\.system\\.entry\\.js$ namespace object","webpack://orangehrm/./src/core/components/buttons/SubmitButton.vue","webpack://orangehrm/./src/core/components/buttons/SubmitButton.vue?2913","webpack://orangehrm/./src/core/components/table/TableHeader.vue","webpack://orangehrm/./src/core/components/table/TableHeader.vue?e562","webpack://orangehrm/./src/core/components/labels/RequiredText.vue","webpack://orangehrm/./src/core/components/labels/RequiredText.vue?9d6d","webpack://orangehrm/./src/core/components/layout/Layout.vue","webpack://orangehrm/./src/core/pages/About.vue","webpack://orangehrm/./src/core/util/helper/storage.ts","webpack://orangehrm/./src/core/util/helper/url.ts","webpack://orangehrm/./src/core/util/helper/navigation.ts","webpack://orangehrm/./src/core/util/services/api.service.ts","webpack://orangehrm/./src/core/pages/About.vue?4c02","webpack://orangehrm/./src/core/util/composable/useDateFormat.ts","webpack://orangehrm/./src/core/components/layout/Layout.vue?4ce6","webpack://orangehrm/./src/core/components/inputs/DateInput.vue","webpack://orangehrm/./src/core/util/helper/datefns.ts","webpack://orangehrm/./src/core/plugins/i18n/translate.ts","webpack://orangehrm/./src/core/util/composable/usei18n.ts","webpack://orangehrm/./src/core/util/composable/useLocale.ts","webpack://orangehrm/./src/core/components/inputs/DateInput.vue?c49e","webpack://orangehrm/./src/core/components/inputs/TimeInput.vue","webpack://orangehrm/./src/core/components/inputs/TimeInput.vue?483d","webpack://orangehrm/./src/components.ts","webpack://orangehrm/./src/core/pages/NoRecordsFound.vue","webpack://orangehrm/./src/core/pages/NoRecordsFound.vue?3a5d","webpack://orangehrm/./src/core/pages/BadRequest.vue","webpack://orangehrm/./src/core/pages/BadRequest.vue?c85d","webpack://orangehrm/./src/core/pages/ModuleUnderDevelopment.vue","webpack://orangehrm/./src/core/pages/ModuleUnderDevelopment.vue?0f81","webpack://orangehrm/./src/core/pages/Disabled.vue","webpack://orangehrm/./src/core/pages/Disabled.vue?36c5","webpack://orangehrm/./src/core/pages/TimeSheetPeriodNotDefined.vue","webpack://orangehrm/./src/core/pages/TimeSheetPeriodNotDefined.vue?068c","webpack://orangehrm/./src/core/pages/index.ts","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobTitle/JobTitle.vue","webpack://orangehrm/./src/core/util/composable/useToast.ts","webpack://orangehrm/./src/core/util/composable/usePaginate.ts","webpack://orangehrm/./src/core/components/dialogs/DeleteConfirmationDialog.vue","webpack://orangehrm/./src/core/components/dialogs/DeleteConfirmationDialog.vue?712a","webpack://orangehrm/./src/core/util/composable/useSort.ts","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobTitle/JobTitle.vue?4c4b","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobTitle/EditJobTitle.vue","webpack://orangehrm/./src/core/util/validation/rules.ts","webpack://orangehrm/./src/core/components/inputs/FileUploadInput.vue","webpack://orangehrm/./src/core/components/inputs/FileUploadInput.vue?d457","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobTitle/EditJobTitle.vue?6b8b","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobTitle/SaveJobTitle.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobTitle/SaveJobTitle.vue?34a4","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobCategory/JobCategory.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobCategory/JobCategory.vue?deb9","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobCategory/EditJobCategory.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobCategory/EditJobCategory.vue?ae95","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobCategory/SaveJobCategory.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/jobCategory/SaveJobCategory.vue?1d94","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/systemUser/SystemUser.vue","webpack://orangehrm/./src/core/components/inputs/EmployeeAutocomplete.vue","webpack://orangehrm/./src/core/components/inputs/EmployeeAutocomplete.vue?e8c8","webpack://orangehrm/./src/core/util/composable/useEmployeeNameTranslate.ts","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/systemUser/SystemUser.vue?cabf","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/systemUser/SaveSystemUser.vue","webpack://orangehrm/./src/core/components/inputs/PasswordInput.vue","webpack://orangehrm/./src/core/util/composable/usePasswordPolicy.ts","webpack://orangehrm/./src/core/components/labels/PasswordStrengthIndicator.vue","webpack://orangehrm/./src/core/components/labels/PasswordStrengthIndicator.vue?d17f","webpack://orangehrm/./src/core/components/inputs/PasswordInput.vue?f415","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/systemUser/SaveSystemUser.vue?6d67","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/systemUser/EditSystemUser.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/systemUser/EditSystemUser.vue?4987","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/orgStructure/OrgStructure.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/orgStructure/SaveOrgUnit.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/orgStructure/SaveOrgUnit.vue?c769","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/orgStructure/EditOrgUnit.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/orgStructure/EditOrgUnit.vue?7e6c","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/orgStructure/OrgStructure.vue?eb57","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/employmentStatus/EditEmploymentStatus.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/employmentStatus/EditEmploymentStatus.vue?b1f5","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/employmentStatus/EmploymentStatus.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/employmentStatus/EmploymentStatus.vue?330f","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/employmentStatus/SaveEmploymentStatus.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/employmentStatus/SaveEmploymentStatus.vue?346d","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationEducation/QualificationEducation.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationEducation/QualificationEducation.vue?2175","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationEducation/EditQualificationEducation.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationEducation/EditQualificationEducation.vue?dbf8","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationEducation/SaveQualificationEducation.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationEducation/SaveQualificationEducation.vue?47a0","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationSkill/QualificationSkill.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationSkill/QualificationSkill.vue?1c3d","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationSkill/EditQualificationSkill.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationSkill/EditQualificationSkill.vue?a0db","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationSkill/SaveQualificationSkill.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationSkill/SaveQualificationSkill.vue?be31","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLicense/EditLicense.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLicense/EditLicense.vue?f6c0","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLicense/SaveLicense.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLicense/SaveLicense.vue?cdff","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLicense/License.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLicense/License.vue?a401","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLanguage/EditQualificationLanguage.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLanguage/EditQualificationLanguage.vue?8113","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLanguage/SaveQualificationLanguage.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLanguage/SaveQualificationLanguage.vue?1a22","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLanguage/QualificationLanguage.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationLanguage/QualificationLanguage.vue?5443","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationMembership/QualificationMembership.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationMembership/QualificationMembership.vue?5aef","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationMembership/EditQualificationMembership.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationMembership/EditQualificationMembership.vue?7a04","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationMembership/SaveQualificationMembership.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/qualificationMembership/SaveQualificationMembership.vue?d25e","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/organizationGeneralInformation/ViewOrganizationGeneralInformation.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/organizationGeneralInformation/ViewOrganizationGeneralInformation.vue?be83","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/nationality/Nationality.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/nationality/Nationality.vue?a5c8","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/nationality/EditNationality.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/nationality/EditNationality.vue?832a","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/nationality/SaveNationality.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/nationality/SaveNationality.vue?f143","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/emailConfiguration/ViewEmailConfiguration.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/emailConfiguration/ViewEmailConfiguration.vue?6f75","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/location/LocationList.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/location/LocationList.vue?652f","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/location/SaveLocation.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/location/SaveLocation.vue?2927","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/location/EditLocation.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/location/EditLocation.vue?b2c8","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/PayGrade.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/PayGrade.vue?f7b6","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/AddPayGrade.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/AddPayGrade.vue?610b","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/EditPayGrade.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/PayGradeCurrency.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/InlineActionButton.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/InlineActionButton.vue?5967","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/SavePayCurrency.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/SavePayCurrency.vue?035a","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/EditPayCurrency.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/EditPayCurrency.vue?2d4a","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/PayGradeCurrency.vue?67d2","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/payGrade/EditPayGrade.vue?cfad","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/moduleConfiguration/EditModuleConfiguration.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/moduleConfiguration/EditModuleConfiguration.vue?365d","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/workShift/WorkShift.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/workShift/WorkShift.vue?fa21","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/workShift/SaveWorkShift.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/WorkShiftEmployeeAutocomplete.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/WorkShiftEmployeeAutocomplete.vue?3690","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/workShift/SaveWorkShift.vue?7a66","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/workShift/EditWorkShift.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/workShift/EditWorkShift.vue?eeeb","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/emailSubscription/EmailSubscription.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/emailSubscription/EmailSubscription.vue?c34f","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/emailSubscription/EditEmailSubscription.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/emailSubscription/SaveSubscriber.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/emailSubscription/SaveSubscriber.vue?3b8f","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/emailSubscription/EditSubscriber.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/emailSubscription/EditSubscriber.vue?5236","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/emailSubscription/EditEmailSubscription.vue?8853","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/localization/LocalizationConfiguration.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/localization/LocalizationConfiguration.vue?ab39","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/corporateBranding/CorporateBranding.vue","webpack://orangehrm/./src/core/util/composable/useForm.ts","webpack://orangehrm/./src/orangehrmAdminPlugin/components/InlineColorInput.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/InlineColorInput.vue?b5f5","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/corporateBranding/CorporateBranding.vue?8289","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/languagePackage/LanguagePackage.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/AddLanguageModal.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/LanguagesDropdown.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/LanguagesDropdown.vue?abc3","webpack://orangehrm/./src/orangehrmAdminPlugin/components/AddLanguageModal.vue?0b40","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/languagePackage/LanguagePackage.vue?40a3","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/languageTranslation/languageTranslation.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/EditTranslationTable.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/EditTranslationTable.vue?6946","webpack://orangehrm/./src/orangehrmAdminPlugin/components/LanguageGroupListDropdown.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/LanguageGroupListDropdown.vue?e49d","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/languageTranslation/languageTranslation.vue?6f55","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/ldap/LdapConfiguration.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/LdapSyncConnection.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/LdapSyncConnection.vue?088b","webpack://orangehrm/./src/orangehrmAdminPlugin/components/LdapTestConnectionModal.vue","webpack://orangehrm/./src/orangehrmAdminPlugin/components/LdapTestConnectionModal.vue?f2da","webpack://orangehrm/./src/orangehrmAdminPlugin/pages/ldap/LdapConfiguration.vue?6a31","webpack://orangehrm/./src/orangehrmAdminPlugin/index.ts","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/SaveEmployee.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ProfileImageInput.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ProfileImageInput.vue?edff","webpack://orangehrm/./src/orangehrmPimPlugin/components/FullNameInput.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/FullNameInput.vue?a651","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/SaveEmployee.vue?83bf","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/Employee.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/JobtitleDropdown.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/JobtitleDropdown.vue?d8c1","webpack://orangehrm/./src/orangehrmPimPlugin/components/SubunitDropdown.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SubunitDropdown.vue?d03b","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmploymentStatusDropdown.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmploymentStatusDropdown.vue?8f5c","webpack://orangehrm/./src/core/components/dropdown/IncludeEmployeeDropdown.vue","webpack://orangehrm/./src/core/components/dropdown/IncludeEmployeeDropdown.vue?66b6","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/Employee.vue?fb14","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeePersonalDetails.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditEmployeeLayout.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/TabsNavigation.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/TabsNavigation.vue?8cd8","webpack://orangehrm/./src/orangehrmPimPlugin/components/ProfileAttachments.vue","webpack://orangehrm/./src/core/util/helper/filesize.ts","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveAttachment.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveAttachment.vue?68c5","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditAttachment.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditAttachment.vue?3401","webpack://orangehrm/./src/orangehrmPimPlugin/components/ProfileActionHeader.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ProfileActionHeader.vue?d87b","webpack://orangehrm/./src/orangehrmPimPlugin/components/ProfileAttachments.vue?c741","webpack://orangehrm/./src/orangehrmPimPlugin/components/ProfileCustomFields.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ProfileCustomFields.vue?6730","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditEmployeeLayout.vue?7934","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeePersonalDetails.vue?41d2","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeContactDetails.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeContactDetails.vue?9533","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeEmergencyContacts.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveEmergencyContact.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveEmergencyContact.vue?3388","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditEmergencyContact.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditEmergencyContact.vue?db7f","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeEmergencyContacts.vue?ca4a","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeDependents.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveDependent.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveDependent.vue?4949","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditDependent.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditDependent.vue?09bf","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeDependents.vue?b26c","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeProfilePicture.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeProfilePicture.vue?c69c","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeSalary.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveSalaryComponent.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveSalaryComponent.vue?acb4","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditSalaryComponent.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditSalaryComponent.vue?30a7","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeSalary.vue?9760","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeJob.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/JobSpecDownload.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/JobSpecDownload.vue?fb52","webpack://orangehrm/./src/orangehrmPimPlugin/components/TerminateModal.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/TerminateModal.vue?4e4d","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeJob.vue?6252","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeQualifications.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeSkills.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveSkill.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/QualificationDropdown.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/QualificationDropdown.vue?2804","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveSkill.vue?5f39","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditSkill.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditSkill.vue?1987","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeSkills.vue?532a","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeEducation.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveEducation.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveEducation.vue?5de6","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditEducation.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditEducation.vue?24c6","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeEducation.vue?1e3c","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeLanguages.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveLanguage.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveLanguage.vue?34a9","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditLanguage.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditLanguage.vue?b3ec","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeLanguages.vue?ff7d","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeWorkExperience.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveWorkExperience.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveWorkExperience.vue?89bd","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditWorkExperience.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditWorkExperience.vue?32cc","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeWorkExperience.vue?1174","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeLicense.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveLicense.vue","webpack://orangehrm/./src/core/util/helper/year-range.ts","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveLicense.vue?91f1","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditLicense.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditLicense.vue?c3bf","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeLicense.vue?595d","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeQualifications.vue?2c63","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeImmigration.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveImmigration.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveImmigration.vue?3fb8","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditImmigration.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditImmigration.vue?2047","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeImmigration.vue?7628","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeReportTo.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeSupervisors.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveEmployeeReportTo.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportToEmployeeAutocomplete.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportToEmployeeAutocomplete.vue?49c7","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveEmployeeReportTo.vue?1350","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditEmployeeReportTo.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditEmployeeReportTo.vue?de31","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeSupervisors.vue?29b3","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeSubordinates.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeSubordinates.vue?2b8b","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeReportTo.vue?366e","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeMembership.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveMembership.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/SaveMembership.vue?b8ec","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditMembership.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EditMembership.vue?407d","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeMembership.vue?23d2","webpack://orangehrm/./src/orangehrmPimPlugin/pages/terminationReason/TerminationReason.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/terminationReason/TerminationReason.vue?7c82","webpack://orangehrm/./src/orangehrmPimPlugin/pages/terminationReason/EditTerminationReason.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/terminationReason/EditTerminationReason.vue?451d","webpack://orangehrm/./src/orangehrmPimPlugin/pages/terminationReason/SaveTerminationReason.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/terminationReason/SaveTerminationReason.vue?9369","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reportingMethod/ReportingMethod.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reportingMethod/ReportingMethod.vue?9254","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reportingMethod/EditReportingMethod.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reportingMethod/EditReportingMethod.vue?8a77","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reportingMethod/SaveReportingMethod.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reportingMethod/SaveReportingMethod.vue?0669","webpack://orangehrm/./src/orangehrmPimPlugin/pages/customField/CustomField.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/customField/CustomField.vue?fd25","webpack://orangehrm/./src/orangehrmPimPlugin/pages/customField/EditCustomField.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/customField/EditCustomField.vue?b842","webpack://orangehrm/./src/orangehrmPimPlugin/pages/customField/SaveCustomField.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/customField/SaveCustomField.vue?af96","webpack://orangehrm/./src/orangehrmPimPlugin/pages/optionalField/OptionalField.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/optionalField/OptionalField.vue?9d5f","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeTaxExemption.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/employee/EmployeeTaxExemption.vue?08c8","webpack://orangehrm/./src/orangehrmPimPlugin/pages/dataImport/EmployeeDataImport.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeDataImportModal.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/EmployeeDataImportModal.vue?b48b","webpack://orangehrm/./src/orangehrmPimPlugin/pages/dataImport/EmployeeDataImport.vue?0bb6","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reports/EmployeeReport.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportAutocomplete.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportAutocomplete.vue?1c93","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reports/EmployeeReport.vue?3657","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reports/SaveEmployeeReport.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportCriterion.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportCriterionAutocomplete.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportCriterionAutocomplete.vue?b7ba","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportCriterionSelect.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportCriterionSelect.vue?5572","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportCriterionRange.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportCriterionRange.vue?24dc","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportCriterionDateRange.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportCriterionDateRange.vue?e0cd","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportCriterion.vue?c06c","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportDisplayField.vue","webpack://orangehrm/./src/orangehrmPimPlugin/components/ReportDisplayField.vue?929e","webpack://orangehrm/./src/orangehrmPimPlugin/util/composable/useEmployeeReport.ts","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reports/SaveEmployeeReport.vue?446a","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reports/ViewEmployeeReport.vue","webpack://orangehrm/./src/core/components/table/ReportsTable.vue","webpack://orangehrm/./src/core/components/table/ReportsTable.vue?1b74","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reports/ViewEmployeeReport.vue?ddf9","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reports/EditEmployeeReport.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/reports/EditEmployeeReport.vue?e4d0","webpack://orangehrm/./src/orangehrmPimPlugin/pages/updatePassword/UpdatePassword.vue","webpack://orangehrm/./src/orangehrmPimPlugin/pages/updatePassword/UpdatePassword.vue?b6cc","webpack://orangehrm/./src/orangehrmPimPlugin/index.ts","webpack://orangehrm/./src/orangehrmHelpPlugin/pages/ViewSupport.vue","webpack://orangehrm/./src/orangehrmHelpPlugin/pages/ViewSupport.vue?cd85","webpack://orangehrm/./src/orangehrmHelpPlugin/index.ts","webpack://orangehrm/./src/orangehrmTimePlugin/pages/configure/TimeSheetPeriod.vue","webpack://orangehrm/./src/orangehrmTimePlugin/pages/configure/TimeSheetPeriod.vue?abdb","webpack://orangehrm/./src/orangehrmTimePlugin/pages/customer/Customer.vue","webpack://orangehrm/./src/orangehrmTimePlugin/pages/customer/Customer.vue?e07b","webpack://orangehrm/./src/orangehrmTimePlugin/pages/customer/SaveCustomer.vue","webpack://orangehrm/./src/orangehrmTimePlugin/pages/customer/SaveCustomer.vue?6071","webpack://orangehrm/./src/orangehrmTimePlugin/pages/customer/EditCustomer.vue","webpack://orangehrm/./src/orangehrmTimePlugin/pages/customer/EditCustomer.vue?155d","webpack://orangehrm/./src/orangehrmTimePlugin/pages/timesheets/MyTimesheet.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/Timesheet.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/ActivityDropdown.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/ActivityDropdown.vue?80d6","webpack://orangehrm/./src/orangehrmTimePlugin/components/ProjectAutocomplete.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/ProjectAutocomplete.vue?b7db","webpack://orangehrm/./src/orangehrmTimePlugin/components/TimesheetCommentModal.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/TimesheetCommentModal.vue?d9af","webpack://orangehrm/./src/orangehrmTimePlugin/components/Timesheet.vue?6d28","webpack://orangehrm/./src/orangehrmTimePlugin/util/composable/useTimesheetAPIs.ts","webpack://orangehrm/./src/orangehrmTimePlugin/util/composable/useTimesheet.ts","webpack://orangehrm/./src/orangehrmTimePlugin/components/TimesheetPeriod.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/TimesheetPeriod.vue?8180","webpack://orangehrm/./src/orangehrmTimePlugin/components/TimesheetActions.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/TimesheetActions.vue?c6e1","webpack://orangehrm/./src/orangehrmTimePlugin/pages/timesheets/MyTimesheet.vue?ca73","webpack://orangehrm/./src/orangehrmTimePlugin/pages/timesheets/EditTimeSheet.vue","webpack://orangehrm/./src/orangehrmTimePlugin/pages/timesheets/EditTimeSheet.vue?b381","webpack://orangehrm/./src/orangehrmTimePlugin/pages/project/Project.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/CustomerAutocomplete.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/CustomerAutocomplete.vue?1679","webpack://orangehrm/./src/orangehrmTimePlugin/components/ProjectAdminAutocomplete.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/ProjectAdminAutocomplete.vue?586e","webpack://orangehrm/./src/orangehrmTimePlugin/pages/project/Project.vue?68e0","webpack://orangehrm/./src/orangehrmTimePlugin/pages/project/ProjectSave.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/AddCustomerModal.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/AddCustomerModal.vue?d66b","webpack://orangehrm/./src/orangehrmTimePlugin/pages/project/ProjectSave.vue?2811","webpack://orangehrm/./src/orangehrmTimePlugin/pages/project/ProjectEdit.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/Activities.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/CopyActivityModal.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/CopyActivityModal.vue?b702","webpack://orangehrm/./src/orangehrmTimePlugin/components/SaveActivityModal.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/SaveActivityModal.vue?0a10","webpack://orangehrm/./src/orangehrmTimePlugin/components/EditActivityModal.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/EditActivityModal.vue?890e","webpack://orangehrm/./src/orangehrmTimePlugin/components/Activities.vue?1839","webpack://orangehrm/./src/orangehrmTimePlugin/pages/project/ProjectEdit.vue?a075","webpack://orangehrm/./src/orangehrmTimePlugin/pages/timesheets/EmployeeTimesheet.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/TimesheetPendingActions.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/TimesheetPendingActions.vue?3e31","webpack://orangehrm/./src/orangehrmTimePlugin/pages/timesheets/EmployeeTimesheet.vue?b68e","webpack://orangehrm/./src/orangehrmTimePlugin/pages/timesheets/ViewEmployeeTimesheet.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/SaveTimesheetAction.vue","webpack://orangehrm/./src/orangehrmTimePlugin/components/SaveTimesheetAction.vue?39b8","webpack://orangehrm/./src/orangehrmTimePlugin/pages/timesheets/ViewEmployeeTimesheet.vue?65d0","webpack://orangehrm/./src/orangehrmTimePlugin/pages/reports/EmployeeTimeReport.vue","webpack://orangehrm/./src/orangehrmTimePlugin/pages/reports/EmployeeTimeReport.vue?f90d","webpack://orangehrm/./src/orangehrmTimePlugin/pages/reports/ProjectActivityReport.vue","webpack://orangehrm/./src/orangehrmTimePlugin/pages/reports/ProjectActivityReport.vue?89c6","webpack://orangehrm/./src/orangehrmTimePlugin/pages/reports/ActivityDetailsReport.vue","webpack://orangehrm/./src/orangehrmTimePlugin/pages/reports/ActivityDetailsReport.vue?f34c","webpack://orangehrm/./src/orangehrmTimePlugin/index.ts","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/configure/LeavePeriod.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/configure/LeavePeriod.vue?822e","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/LeaveApply.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveDurationInput.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/TimeRange.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/TimeRange.vue?7d7d","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveDurationInput.vue?0cc0","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveBalance.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveBalanceModal.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveBalanceModal.vue?8959","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveBalanceInsufficientModal.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveBalanceInsufficientModal.vue?a464","webpack://orangehrm/./src/orangehrmLeavePlugin/util/composable/useLeaveValidators.ts","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveBalance.vue?96ae","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveConflict.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveConflict.vue?fe69","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/LeaveApply.vue?252a","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/LeaveAssign.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveTypeDropdown.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveTypeDropdown.vue?d315","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveAssignConfirmModal.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveAssignConfirmModal.vue?1a69","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/LeaveAssign.vue?e7a9","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/leaveType/LeaveType.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/leaveType/LeaveType.vue?6fc5","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/leaveType/EditLeaveType.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/EntitlementSituationalModal.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/EntitlementSituationalModal.vue?707c","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/leaveType/EditLeaveType.vue?44af","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/leaveType/SaveLeaveType.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/leaveType/SaveLeaveType.vue?0c2d","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/entitlements/AddEntitlement.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeavePeriodDropdown.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeavePeriodDropdown.vue?bcab","webpack://orangehrm/./src/orangehrmLeavePlugin/components/EntitlementUpdateModal.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/EntitlementUpdateModal.vue?4bd2","webpack://orangehrm/./src/orangehrmLeavePlugin/components/EntitlementBulkUpdateModal.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/EntitlementBulkUpdateModal.vue?249a","webpack://orangehrm/./src/orangehrmLeavePlugin/components/EntitlementNoMatchModal.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/EntitlementNoMatchModal.vue?5137","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/entitlements/AddEntitlement.vue?ed66","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/entitlements/EditEntitlement.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/entitlements/EditEntitlement.vue?48c7","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/entitlements/LeaveEntitlements.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveEntitlementTable.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveEntitlementTable.vue?969f","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/entitlements/LeaveEntitlements.vue?8b92","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/entitlements/MyLeaveEntitlements.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/entitlements/MyLeaveEntitlements.vue?a440","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/configure/WorkWeek.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/configure/WorkWeek.vue?bc7d","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/configure/holiday/Holiday.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/configure/holiday/Holiday.vue?8f2f","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/configure/holiday/SaveHoliday.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/configure/holiday/SaveHoliday.vue?a981","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/configure/holiday/EditHoliday.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/configure/holiday/EditHoliday.vue?6865","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/LeaveList.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveListTable.vue","webpack://orangehrm/./src/core/util/helper/truncate.ts","webpack://orangehrm/./src/orangehrmLeavePlugin/util/composable/useLeaveActions.ts","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveCommentsModal.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveComment.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveComment.vue?f7e1","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveCommentsModal.vue?089e","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveBulkActionModal.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveBulkActionModal.vue?61ec","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveListTableHeader.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveListTableHeader.vue?487a","webpack://orangehrm/./src/orangehrmLeavePlugin/components/LeaveListTable.vue?e2f1","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/LeaveList.vue?a67c","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/LeaveRequest.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/LeaveRequest.vue?e562","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/MyLeaveList.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/MyLeaveList.vue?4014","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/reports/LeaveEntitlementReport.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/reports/LeaveEntitlementReport.vue?99ed","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/reports/MyLeaveEntitlementReport.vue","webpack://orangehrm/./src/orangehrmLeavePlugin/pages/reports/MyLeaveEntitlementReport.vue?1d6d","webpack://orangehrm/./src/orangehrmLeavePlugin/index.ts","webpack://orangehrm/./src/orangehrmCoreOAuthPlugin/pages/registerOAuthClient/OAuthClient.vue","webpack://orangehrm/./src/orangehrmCoreOAuthPlugin/pages/registerOAuthClient/OAuthClient.vue?7589","webpack://orangehrm/./src/orangehrmCoreOAuthPlugin/pages/registerOAuthClient/SaveOAuthClient.vue","webpack://orangehrm/./src/orangehrmCoreOAuthPlugin/pages/registerOAuthClient/SaveOAuthClient.vue?24c1","webpack://orangehrm/./src/orangehrmCoreOAuthPlugin/pages/oauth/OAuthAuthorize.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/components/LoginBranding.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/components/LoginBranding.vue?52a8","webpack://orangehrm/./src/orangehrmCoreOAuthPlugin/pages/oauth/OAuthAuthorize.vue?d77e","webpack://orangehrm/./src/orangehrmCoreOAuthPlugin/index.ts","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/PunchIn.vue","webpack://orangehrm/./src/orangehrmAttendancePlugin/components/RecordAttendance.vue","webpack://orangehrm/./src/orangehrmAttendancePlugin/components/TimezoneDropdown.vue","webpack://orangehrm/./src/orangehrmAttendancePlugin/components/TimezoneDropdown.vue?0413","webpack://orangehrm/./src/orangehrmAttendancePlugin/components/RecordAttendance.vue?f54f","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/PunchIn.vue?33b3","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/PunchOut.vue","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/PunchOut.vue?019e","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/EditAttendance.vue","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/EditAttendance.vue?260e","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/ViewMyAttendance.vue","webpack://orangehrm/./src/orangehrmAttendancePlugin/components/RecordCell.vue","webpack://orangehrm/./src/orangehrmAttendancePlugin/components/RecordCell.vue?91f9","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/ViewMyAttendance.vue?7f3f","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/AttendanceConfiguration.vue","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/AttendanceConfiguration.vue?09fd","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/AttendanceSummaryReport.vue","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/AttendanceSummaryReport.vue?430f","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/ViewEmployeeAttendanceSummary.vue","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/ViewEmployeeAttendanceSummary.vue?14f6","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/ViewEmployeeAttendanceDetailed.vue","webpack://orangehrm/./src/orangehrmAttendancePlugin/pages/ViewEmployeeAttendanceDetailed.vue?6692","webpack://orangehrm/./src/orangehrmAttendancePlugin/index.ts","webpack://orangehrm/./src/orangehrmMaintenancePlugin/pages/PurgeEmployee.vue","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/SelectedEmployee.vue","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/SelectedEmployee.vue?d20c","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/EmployeeRecords.vue","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/EmployeeRecords.vue?7947","webpack://orangehrm/./src/core/components/dialogs/ConfirmationDialog.vue","webpack://orangehrm/./src/core/components/dialogs/ConfirmationDialog.vue?b1c8","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/MaintenanceNote.vue","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/MaintenanceNote.vue?aff8","webpack://orangehrm/./src/orangehrmMaintenancePlugin/pages/PurgeEmployee.vue?2e07","webpack://orangehrm/./src/orangehrmMaintenancePlugin/pages/PurgeCandidate.vue","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/SelectedCandidates.vue","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/CandidateRecords.vue","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/VacancyAutocomplete.vue","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/VacancyAutocomplete.vue?2f76","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/CandidateRecords.vue?43c8","webpack://orangehrm/./src/orangehrmMaintenancePlugin/components/SelectedCandidates.vue?cf63","webpack://orangehrm/./src/orangehrmMaintenancePlugin/pages/PurgeCandidate.vue?da49","webpack://orangehrm/./src/orangehrmMaintenancePlugin/pages/accessEmployee/AccessEmployeeSearchScreen.vue","webpack://orangehrm/./src/orangehrmMaintenancePlugin/pages/accessEmployee/AccessEmployeeSearchScreen.vue?ed4e","webpack://orangehrm/./src/orangehrmMaintenancePlugin/index.ts","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ViewJobVacancy.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/VacancyDropdown.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/VacancyDropdown.vue?9782","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/HiringManagerDropdown.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/HiringManagerDropdown.vue?5c80","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ViewJobVacancy.vue?80c4","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/AddJobVacancy.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/VacancyLinkCard.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/VacancyLinkCard.vue?ba46","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/AddJobVacancy.vue?1f83","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/EditJobVacancy.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/EditJobVacancy.vue?0d79","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/HireAction.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/CandidateActionLayout.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/CandidateActionLayout.vue?796d","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/HireAction.vue?66de","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/InterviewFailAction.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/InterviewFailAction.vue?3129","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/InterviewPassedAction.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/InterviewPassedAction.vue?fd20","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/InterviewScheduleAction.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/InterviewerAutocomplete.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/InterviewerAutocomplete.vue?839b","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/InterviewScheduleAction.vue?3d86","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/OfferJobAction.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/OfferJobAction.vue?7dae","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/DeclineOfferAction.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/DeclineOfferAction.vue?4c87","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/RejectAction.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/RejectAction.vue?3d96","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ShortlistAction.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ShortlistAction.vue?2008","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/SaveCandidate.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/SaveCandidate.vue?f390","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ViewCandidatesList.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/CandidateAutocomplete.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/CandidateAutocomplete.vue?e150","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/CandidateStatusDropdown.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/CandidateStatusDropdown.vue?67cb","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ViewCandidatesList.vue?6846","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ViewCandidateProfile.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/RecruitmentStatus.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/RecruitmentStatus.vue?493f","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/CandidateProfile.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/CandidateProfile.vue?4121","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/HistoryTable.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/HistoryTable.vue?7837","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ViewCandidateProfile.vue?f59b","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ViewActionHistory.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ViewActionHistory.vue?df9c","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/VacancyList.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/VacancyCard.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/VacancyCard.vue?c7e2","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/VacancyList.vue?7e51","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ApplyJobVacancy.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/SuccessDialog.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/SuccessDialog.vue?ff18","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ApplyJobVacancy.vue?e53f","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ViewInterviewAttachments.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/SaveInterviewAttachment.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/SaveInterviewAttachment.vue?8abd","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/EditInterviewAttachment.vue","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/components/EditInterviewAttachment.vue?9096","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/pages/ViewInterviewAttachments.vue?0b26","webpack://orangehrm/./src/orangehrmRecruitmentPlugin/index.ts","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/MyTracker.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/MyTracker.vue?6986","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/EmployeeTrackers.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/EmployeeTrackers.vue?6b4a","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/KpiEdit.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/KpiEdit.vue?c068","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/KpiSave.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/KpiSave.vue?6aa4","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/KpiSearch.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/KpiSearch.vue?20c3","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/AddReview.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/SupervisorAutoComplete.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/SupervisorAutoComplete.vue?3007","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/AddReview.vue?6161","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/EditReview.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/EditReview.vue?9f43","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/PerformanceTrackers.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/PerformanceTrackers.vue?e011","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/SavePerformanceTracker.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/ReviewerAutoComplete.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/ReviewerAutoComplete.vue?bcd3","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/SavePerformanceTracker.vue?2401","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/EditPerformanceTracker.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/EditPerformanceTracker.vue?9922","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/MyReviews.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/util/composable/useReviewActions.ts","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/ReviewPeriodCell.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/ReviewPeriodCell.vue?3622","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/MyReviews.vue?1a93","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/ReviewList.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/ReviewStatusDropdown.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/ReviewStatusDropdown.vue?4e86","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/ReviewList.vue?9088","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/ReviewSearch.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/ReviewSearch.vue?ee2f","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/EmployeeTrackerLogs.vue","webpack://orangehrm/./src/core/util/composable/useInfiniteScroll.ts","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/AddTrackerLogModal.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/TrackerLogRatingButton.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/TrackerLogRatingButton.vue?dd26","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/AddTrackerLogModal.vue?d071","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/EditTrackerLogModal.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/EditTrackerLogModal.vue?daf6","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/EmployeeTrackerLogCard.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/EmployeeTrackerLogCard.vue?0d3b","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/EmployeeTrackerLogs.vue?0918","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/AdminEvaluation.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/ReviewSummary.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/ReviewSummary.vue?0454","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/FinalEvaluation.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/FinalEvaluation.vue?c41f","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/EvaluationForm.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/EvaluationForm.vue?d478","webpack://orangehrm/./src/orangehrmPerformancePlugin/util/composable/useReviewEvaluation.ts","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/ReviewConfirmModal.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/components/ReviewConfirmModal.vue?f2a7","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/AdminEvaluation.vue?11a9","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/SelfEvaluation.vue","webpack://orangehrm/./src/orangehrmPerformancePlugin/pages/SelfEvaluation.vue?1405","webpack://orangehrm/./src/orangehrmPerformancePlugin/index.ts","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/pages/CorporateDirectory.vue","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/components/SummaryCard.vue","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/components/ProfilePicture.vue","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/components/ProfilePicture.vue?5e89","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/components/SummaryCard.vue?179c","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/components/EmployeeDetails.vue","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/components/QRCode.vue","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/components/QRCode.vue?6f6b","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/components/EmployeeDetails.vue?77f4","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/components/SummaryCardDetails.vue","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/components/SummaryCardDetails.vue?0d2b","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/pages/CorporateDirectory.vue?37a0","webpack://orangehrm/./src/orangehrmCorporateDirectoryPlugin/index.ts","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/Login.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/components/LoginLayout.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/components/LoginLayout.vue?af19","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/Login.vue?97d8","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/Forbidden.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/Forbidden.vue?1273","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/ResetPassword.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/components/CardNote.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/components/CardNote.vue?39a3","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/ResetPassword.vue?1d3b","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/ResetWeakPassword.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/ResetWeakPassword.vue?766c","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/ResetPasswordError.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/ResetPasswordError.vue?9772","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/AdministratorAccess.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/AdministratorAccess.vue?4654","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/RequestResetPassword.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/RequestResetPassword.vue?b578","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/ResetPasswordSuccess.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/ResetPasswordSuccess.vue?ccb5","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/EmailConfigurationWarning.vue","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/pages/EmailConfigurationWarning.vue?af41","webpack://orangehrm/./src/orangehrmAuthenticationPlugin/index.ts","webpack://orangehrm/./src/orangehrmDashboardPlugin/pages/ViewDashboard.vue","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/QuickLaunchWidget.vue","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/BaseWidget.vue","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/BaseWidget.vue?2ebe","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/QuickLaunchWidget.vue?717e","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/BuzzLatestPostWidget.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/VideoFrame.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/VideoFrame.vue?a6f9","webpack://orangehrm/./src/orangehrmBuzzPlugin/util/composable/useBuzzAPIs.ts","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/ProfileImage.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/ProfileImage.vue?ce8b","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/BuzzLatestPostWidget.vue?5db9","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/EmployeeSubunitWidget.vue","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/EmployeeSubunitWidget.vue?8c0f","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/MyActionSummaryWidget.vue","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/MyActionSummaryWidget.vue?95c1","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/EmployeeLocationWidget.vue","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/EmployeeLocationWidget.vue?1dc4","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/EmployeesOnLeaveWidget.vue","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/EmployeesOnLeaveConfigModal.vue","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/EmployeesOnLeaveConfigModal.vue?ddd3","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/EmployeesOnLeaveWidget.vue?873f","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/EmployeeAttendanceWidget.vue","webpack://orangehrm/./src/orangehrmDashboardPlugin/components/EmployeeAttendanceWidget.vue?4ffe","webpack://orangehrm/./src/orangehrmDashboardPlugin/pages/ViewDashboard.vue?cc54","webpack://orangehrm/./src/orangehrmDashboardPlugin/index.ts","webpack://orangehrm/./src/orangehrmBuzzPlugin/pages/ViewBuzz.vue","webpack://orangehrm/./src/core/util/composable/useSwipe.ts","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/NewsFeed.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostBody.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PhotoFrame.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PhotoFrame.vue?c319","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostBody.vue?0526","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostStats.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostStatsModal.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostStatsModal.vue?2563","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostStats.vue?26ab","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/CreatePost.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/ShareVideoModal.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostModal.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostModal.vue?93a8","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/ShareVideoModal.vue?6b2e","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/SharePhotoModal.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PhotoInput.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PhotoUploadArea.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PhotoUploadArea.vue?f6bb","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PhotoInput.vue?923a","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/SharePhotoModal.vue?3a55","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/CreatePost.vue?62cc","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostActions.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostLikeButton.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostLikeButton.vue?c717","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostShareButton.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostShareButton.vue?24de","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostCommentButton.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostCommentButton.vue?f69f","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostActions.vue?8671","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/EditPostModal.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/EditPostModal.vue?529c","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PhotoCarousel.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PhotoViewer.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PhotoViewer.vue?a9bd","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostDetails.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostCommentContainer.vue","webpack://orangehrm/./src/core/util/composable/useAutoFocus.ts","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostComment.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostComment.vue?3678","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostCommentContainer.vue?4954","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostDetails.vue?efb1","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostActionsPill.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostActionsPill.vue?22d1","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PhotoCarousel.vue?0ee4","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostContainer.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostContainer.vue?a8c1","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/SharePostModal.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/SharePostModal.vue?a828","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/NewsFeed.vue?7b37","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostFilters.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/PostFilters.vue?7819","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/UpcomingAnniversaries.vue","webpack://orangehrm/./src/orangehrmBuzzPlugin/components/UpcomingAnniversaries.vue?4b2b","webpack://orangehrm/./src/orangehrmBuzzPlugin/pages/ViewBuzz.vue?d7dd","webpack://orangehrm/./src/orangehrmBuzzPlugin/index.ts","webpack://orangehrm/./src/orangehrmSystemCheckPlugin/pages/SystemCheckScreen.vue","webpack://orangehrm/./src/orangehrmSystemCheckPlugin/components/FlexTable.vue","webpack://orangehrm/./src/orangehrmSystemCheckPlugin/components/FlexTable.vue?e9d3","webpack://orangehrm/./src/orangehrmSystemCheckPlugin/pages/SystemCheckScreen.vue?65e7","webpack://orangehrm/./src/orangehrmSystemCheckPlugin/index.ts","webpack://orangehrm/./src/pages.ts","webpack://orangehrm/./src/core/plugins/acl/acl.ts","webpack://orangehrm/./src/core/plugins/toaster/toaster.ts","webpack://orangehrm/./src/main.ts","webpack://orangehrm/webpack/bootstrap","webpack://orangehrm/webpack/runtime/chunk loaded","webpack://orangehrm/webpack/runtime/compat get default export","webpack://orangehrm/webpack/runtime/define property getters","webpack://orangehrm/webpack/runtime/ensure chunk","webpack://orangehrm/webpack/runtime/get javascript chunk filename","webpack://orangehrm/webpack/runtime/get mini-css chunk filename","webpack://orangehrm/webpack/runtime/global","webpack://orangehrm/webpack/runtime/hasOwnProperty shorthand","webpack://orangehrm/webpack/runtime/load script","webpack://orangehrm/webpack/runtime/make namespace object","webpack://orangehrm/webpack/runtime/publicPath","webpack://orangehrm/webpack/runtime/jsonp chunk loading","webpack://orangehrm/webpack/startup"],"sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 1993;\nmodule.exports = webpackEmptyAsyncContext;","\n\n\n\n\n","import { render } from \"./SubmitButton.vue?vue&type=template&id=fe7e21e2\"\nimport script from \"./SubmitButton.vue?vue&type=script&lang=js\"\nexport * from \"./SubmitButton.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./TableHeader.vue?vue&type=template&id=0dea79bd&scoped=true\"\nimport script from \"./TableHeader.vue?vue&type=script&lang=js\"\nexport * from \"./TableHeader.vue?vue&type=script&lang=js\"\n\nimport \"./TableHeader.vue?vue&type=style&index=0&id=0dea79bd&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0dea79bd\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./RequiredText.vue?vue&type=template&id=319fc346&scoped=true\"\nimport script from \"./RequiredText.vue?vue&type=script&lang=js\"\nexport * from \"./RequiredText.vue?vue&type=script&lang=js\"\n\nimport \"./RequiredText.vue?vue&type=style&index=0&id=319fc346&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-319fc346\"]])\n\nexport default __exports__","\n\n\n","\n\n\n\n\n\n\n","/*\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nclass TempStorage {\n private _tempStorage: {[key: string]: string} = {};\n\n clear(): void {\n this._tempStorage = {};\n }\n\n getItem(name: string): string | null {\n return this._tempStorage[name] || null;\n }\n\n key(index: number): string | null {\n return Object.keys(this._tempStorage)[index] || null;\n }\n\n removeItem(name: string): void {\n delete this._tempStorage[name];\n }\n\n setItem(name: string, value: string): void {\n this._tempStorage[name] = value;\n }\n}\n\n/**\n * Check storage API available\n * https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API#testing_for_availability\n */\nfunction isSupported(storage: Storage): boolean {\n try {\n const x = '__storage_test__';\n storage.setItem(x, x);\n storage.removeItem(x);\n return true;\n } catch (e) {\n return (\n e instanceof DOMException &&\n // everything except Firefox\n (e.code === 22 ||\n // Firefox\n e.code === 1014 ||\n // test name field too, because code might not be present\n // everything except Firefox\n e.name === 'QuotaExceededError' ||\n // Firefox\n e.name === 'NS_ERROR_DOM_QUOTA_REACHED') &&\n // acknowledge QuotaExceededError only if there's something already stored\n storage &&\n storage.length !== 0\n );\n }\n}\n\nexport class WebStorage {\n private _storage;\n\n constructor(storage: Storage) {\n if (isSupported(storage)) {\n this._storage = storage;\n } else {\n this._storage = new TempStorage();\n }\n }\n\n clear(): void {\n this._storage.clear();\n }\n\n getItem(name: string): string | null {\n return this._storage.getItem(name);\n }\n\n key(index: number): string | null {\n return this._storage.key(index);\n }\n\n removeItem(name: string): void {\n this._storage.removeItem(name);\n }\n\n setItem(name: string, value: string): void {\n this._storage.setItem(name, value);\n }\n}\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\n/**\n * @param endpoint\n * @param params\n * @param query\n * @returns {string}\n */\nexport const prepare = function (\n endpoint: string,\n params: {[key: string]: string | number} = {},\n query: {[key: string]: string | number | boolean | string[]} = {},\n): string {\n let preparedEndpoint = endpoint;\n query = JSON.parse(JSON.stringify(query));\n Object.keys(params).forEach((param) => {\n const paramPlaceholder = `{${param}}`;\n if (preparedEndpoint.includes(paramPlaceholder)) {\n let paramValue = params[param];\n if (typeof paramValue === 'number') {\n paramValue = paramValue.toString();\n }\n preparedEndpoint = preparedEndpoint.replace(paramPlaceholder, paramValue);\n } else {\n // eslint-disable-next-line no-console\n console.error('Invalid parameter.');\n }\n });\n let preparedQueryString = '?';\n const queryKeys = Object.keys(query);\n queryKeys.forEach((queryKey, index) => {\n if (index !== 0) {\n preparedQueryString += '&';\n }\n const queryValue = query[queryKey];\n if (Array.isArray(queryValue)) {\n queryValue.forEach((queryValueItem, itemIndex) => {\n if (itemIndex !== 0) {\n preparedQueryString += '&';\n }\n preparedQueryString += `${queryKey}[]=${queryValueItem}`;\n });\n } else {\n preparedQueryString += `${queryKey}=${queryValue}`;\n }\n });\n return encodeURI(\n preparedEndpoint + (queryKeys.length === 0 ? '' : preparedQueryString),\n );\n};\n\n/**\n * @param endpoint\n * @param params\n * @param query\n * @returns {string}\n */\nexport const urlFor = function (\n endpoint: string,\n params: {[key: string]: string | number} = {},\n query: {[key: string]: string | number | boolean | string[]} = {},\n): string {\n // @ts-expect-error: appGlobal is not in window object by default\n return window.appGlobal.baseUrl + prepare(endpoint, params, query);\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {urlFor} from '@ohrm/core/util/helper/url';\n\n/**\n * @param path\n * @param params\n * @param query\n */\nexport const navigate = function (\n path: string,\n params: {[key: string]: string | number} = {},\n query: {[key: string]: string | number | boolean | string[]} = {},\n): void {\n window.location.href = urlFor(path, params, query);\n};\n\nexport const reloadPage = function (): void {\n window.location.reload();\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport axios, {\n AxiosError,\n AxiosInstance,\n AxiosRequestConfig,\n AxiosResponse,\n RawAxiosRequestHeaders,\n} from 'axios';\nimport {WebStorage} from '../helper/storage';\nimport {ComponentInternalInstance, getCurrentInstance} from 'vue';\nimport {reloadPage} from '@ohrm/core/util/helper/navigation';\n\ninterface ErrorResponse {\n error: {\n message?: string;\n };\n}\n\nexport class APIService {\n private _http: AxiosInstance;\n private _baseUrl: string;\n private _apiSection: string;\n private _cacheStorage: WebStorage;\n private _ignorePathRegex: RegExp | undefined;\n\n constructor(baseUrl: string, path: string) {\n this._baseUrl = baseUrl;\n this._apiSection = path;\n this._http = axios.create({\n baseURL: this._baseUrl,\n });\n this._cacheStorage = new WebStorage(localStorage);\n this.setupResponseInterceptors(getCurrentInstance());\n }\n\n setIgnorePath(ignorePath: string) {\n this._ignorePathRegex = new RegExp(ignorePath);\n }\n\n getAll(params?: object): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n 'Cache-Control':\n 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0',\n };\n return this._http.get(this._apiSection, {headers, params});\n }\n\n get(id: number, params?: object): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n };\n return this._http.get(`${this._apiSection}/${id}`, {headers, params});\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n create(data: any): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n };\n return this._http.post(this._apiSection, data, {headers});\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n update(id: number, data: any): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n };\n return this._http.put(`${this._apiSection}/${id}`, data, {headers});\n }\n\n delete(id: number): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n };\n return this._http.delete(`${this._apiSection}/${id}`, {headers});\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n deleteAll(data?: any): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n };\n return this._http.delete(`${this._apiSection}`, {headers, data});\n }\n\n request(options: AxiosRequestConfig): Promise {\n const headers = {\n 'Content-Type': 'application/json',\n };\n return this._http.request({\n url: this._apiSection,\n headers,\n ...options,\n });\n }\n\n // Function to prevent Error toast messages from showing\n ignoreError(error: AxiosError): boolean {\n if (\n this._ignorePathRegex &&\n (error.response?.status === 422 || error.response?.status === 400)\n ) {\n const url: string = error.response.config.url ?? '';\n return this._ignorePathRegex.test(url);\n }\n return false;\n }\n\n /**\n * ComponentInternalInstance is given to access $toast api.\n * will fail silently if $toast is not installed/NA\n */\n setupResponseInterceptors(vm: ComponentInternalInstance | null): void {\n this._http.interceptors.response.use(\n (response: AxiosResponse): AxiosResponse => {\n return response;\n },\n (error: AxiosError): Promise => {\n if (error.response?.status === 401) {\n reloadPage();\n return Promise.reject();\n }\n\n if (this.ignoreError(error)) {\n return Promise.reject(error.response);\n }\n\n const $toast = vm?.appContext.config.globalProperties.$toast;\n if ($toast && error.code !== 'ECONNABORTED') {\n const response = error.response?.data;\n $toast.unexpectedError(response?.error.message || null);\n }\n return Promise.reject(error);\n },\n );\n\n if (process.env.NODE_ENV !== 'development') {\n const removeETagWeakValidatorDirective = (etag: string) => {\n return etag.startsWith('W/') ? etag.substring(2) : etag;\n };\n // Additional interceptors for caching\n this._http.interceptors.request.use(\n (config: AxiosRequestConfig) => {\n if (config.url) {\n const url = config.url;\n const cachedEtag = this._cacheStorage.getItem(url);\n if (cachedEtag) {\n config.headers = {\n ...(config.headers as RawAxiosRequestHeaders),\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match\n 'If-None-Match': cachedEtag,\n };\n }\n }\n return config;\n },\n (error: AxiosError): Promise => {\n return Promise.reject(error);\n },\n );\n this._http.interceptors.response.use(\n (response: AxiosResponse) => {\n const {config, headers} = response;\n if (config.url && headers) {\n const url = config.url;\n const etag = headers['etag'];\n const cachedEtag = this._cacheStorage.getItem(url);\n if (etag && etag !== cachedEtag) {\n this._cacheStorage.removeItem(url);\n this._cacheStorage.setItem(\n url,\n removeETagWeakValidatorDirective(etag),\n );\n\n if (cachedEtag) this._cacheStorage.removeItem(cachedEtag);\n this._cacheStorage.setItem(\n removeETagWeakValidatorDirective(etag),\n JSON.stringify(response.data),\n );\n }\n }\n return response;\n },\n (error: AxiosError) => {\n if (error.response?.status === 304) {\n const etag = error.response.headers['etag'];\n if (etag) {\n const cacheData = this._cacheStorage.getItem(\n removeETagWeakValidatorDirective(etag),\n );\n if (cacheData) {\n return Promise.resolve({\n ...error.response,\n status: 200,\n data: JSON.parse(cacheData),\n });\n }\n }\n }\n return Promise.reject(error);\n },\n );\n }\n }\n\n public get http() {\n return this._http;\n }\n\n public get baseUrl() {\n return this._baseUrl;\n }\n\n public set apiSection(path: string) {\n this._apiSection = path;\n }\n}\n","import { render } from \"./About.vue?vue&type=template&id=df10eb5c&scoped=true\"\nimport script from \"./About.vue?vue&type=script&lang=js\"\nexport * from \"./About.vue?vue&type=script&lang=js\"\n\nimport \"./About.vue?vue&type=style&index=0&id=df10eb5c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-df10eb5c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {inject, InjectionKey} from 'vue';\nimport {convertPHPDateFormat} from '@ohrm/oxd';\n\ntype DateFormat = {\n id: string;\n label: string;\n};\n\nexport const dateFormatKey: InjectionKey =\n Symbol('dateFormat');\n\nexport default function useDateFormat() {\n const dateFormat = inject(dateFormatKey);\n if (!dateFormat) throw new Error('Date format is invalid');\n const jsDateFormat = convertPHPDateFormat(dateFormat.id);\n const userDateFormat = dateFormat.label;\n const timeFormat = 'HH:mm';\n const jsTimeFormat = 'hh:mm a';\n\n return {\n timeFormat,\n jsTimeFormat,\n jsDateFormat,\n userDateFormat,\n };\n}\n","import { render } from \"./Layout.vue?vue&type=template&id=4dc53262\"\nimport script from \"./Layout.vue?vue&type=script&lang=js\"\nexport * from \"./Layout.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import {\n parse,\n format,\n isDate,\n compareAsc,\n startOfYear,\n endOfYear,\n getDaysInMonth,\n addDays,\n isSameDay,\n isToday,\n differenceInSeconds,\n differenceInCalendarDays,\n} from 'date-fns';\n\nconst defaultTimezones = [\n {\n offset: 0,\n label: 'Europe/London',\n },\n {\n offset: 1,\n label: 'Europe/Belgrade',\n },\n {\n offset: 2,\n label: 'Europe/Minsk',\n },\n {\n offset: 3,\n label: 'Asia/Kuwait',\n },\n {\n offset: 4,\n label: 'Asia/Muscat',\n },\n {\n offset: 5,\n label: 'Asia/Yekaterinburg',\n },\n {\n offset: 5.5,\n label: 'Asia/Kolkata',\n },\n {\n offset: 6,\n label: 'Asia/Dhaka',\n },\n {\n offset: 7,\n label: 'Asia/Krasnoyarsk',\n },\n {\n offset: 8,\n label: 'Asia/Brunei',\n },\n {\n offset: 9,\n label: 'Asia/Seoul',\n },\n {\n offset: 9.5,\n label: 'Australia/Darwin',\n },\n {\n offset: 10,\n label: 'Australia/Canberra',\n },\n {\n offset: 11,\n label: 'Asia/Magadan',\n },\n {\n offset: 12,\n label: 'Pacific/Fiji',\n },\n {\n offset: -11,\n label: 'Pacific/Midway',\n },\n {\n offset: -10,\n label: 'Pacific/Honolulu',\n },\n {\n offset: -9,\n label: 'America/Anchorage',\n },\n {\n offset: -8,\n label: 'America/Los_Angeles',\n },\n {\n offset: -7,\n label: 'America/Denver',\n },\n {\n offset: -6,\n label: 'America/Tegucigalpa',\n },\n {\n offset: -5,\n label: 'America/New_York',\n },\n {\n offset: -4,\n label: 'America/Halifax',\n },\n {\n offset: -3.5,\n label: 'America/St_Johns',\n },\n {\n offset: -3,\n label: 'America/Argentina/Buenos_Aires',\n },\n {\n offset: -2,\n label: 'Atlantic/South_Georgia',\n },\n {\n offset: -1,\n label: 'Atlantic/Azores',\n },\n];\n\nconst freshDate = () => {\n return new Date(new Date().setHours(0, 0, 0, 0));\n};\n\nconst parseDate = (\n value: string,\n dateFormat = 'yyyy-MM-dd',\n options = {},\n): Date | null => {\n try {\n const parsed = parse(value, dateFormat, freshDate(), options);\n if (!isNaN(parsed.valueOf()) && parsed.getFullYear() >= 1000) {\n return parsed;\n }\n return null;\n } catch (error) {\n return null;\n }\n};\n\nconst formatDate = (\n value: Date,\n dateFormat: string,\n options = {},\n): string | null => {\n try {\n return format(value, dateFormat, options);\n } catch (error) {\n return null;\n }\n};\n\nconst isBefore = (\n reference: string,\n comparable: string,\n dateFormat: string,\n): boolean => {\n const referenceDate = parseDate(reference, dateFormat);\n const comparableDate = parseDate(comparable, dateFormat);\n\n if (referenceDate && comparableDate) {\n return compareAsc(referenceDate, comparableDate) === -1 ? true : false;\n }\n\n return false;\n};\n\nconst isAfter = (\n reference: string,\n comparable: string,\n dateFormat: string,\n): boolean => {\n const referenceDate = parseDate(reference, dateFormat);\n const comparableDate = parseDate(comparable, dateFormat);\n\n if (referenceDate && comparableDate) {\n return compareAsc(referenceDate, comparableDate) === 1 ? true : false;\n }\n\n return false;\n};\n\nconst isEqual = (\n reference: string,\n comparable: string,\n dateFormat: string,\n): boolean => {\n const referenceDate = parseDate(reference, dateFormat);\n const comparableDate = parseDate(comparable, dateFormat);\n\n if (referenceDate && comparableDate) {\n return compareAsc(referenceDate, comparableDate) === 0 ? true : false;\n }\n\n return false;\n};\n\nconst numberOfDaysInMonth = (\n month: number | undefined, // 1 - 12\n discardLeapYear: boolean,\n): number => {\n if (month && month > 0 && month <= 12) {\n const days = getDaysInMonth(new Date().setMonth(month - 1));\n return discardLeapYear && days === 29 ? 28 : days;\n }\n\n return 0;\n};\n\nconst parseTime = (value: string, timeFormat: string): Date | null => {\n return parseDate(value, timeFormat);\n};\n\nconst formatTime = (\n value: Date,\n timeFormat: string,\n options = {},\n): string | null => {\n return formatDate(value, timeFormat, options);\n};\n\nconst compareTime = (\n reference: string,\n comparable: string,\n timeFormat: string,\n): number => {\n const referenceTime = parseDate(reference, timeFormat);\n const comparableTime = parseDate(comparable, timeFormat);\n\n if (referenceTime && comparableTime) {\n if (referenceTime.valueOf() < comparableTime.valueOf()) {\n return 1;\n }\n if (referenceTime.valueOf() > comparableTime.valueOf()) {\n return -1;\n }\n if (referenceTime.valueOf() === comparableTime.valueOf()) {\n return 0;\n }\n }\n\n return NaN;\n};\n\nconst diffInDays = (\n fromDate: string,\n toDate: string,\n dateFormat = 'yyyy-MM-dd',\n): number => {\n const from = parseDate(fromDate, dateFormat);\n const to = parseDate(toDate, dateFormat);\n if (from && to) {\n return isSameDay(to, from) ? 1 : differenceInCalendarDays(to, from) + 1;\n }\n return 0;\n};\n\nconst diffInTime = (\n startTime: string,\n endTime: string,\n timeFormat = 'HH:mm',\n): number => {\n const start = parseTime(startTime, timeFormat);\n const end = parseTime(endTime, timeFormat);\n if (start && end) {\n const diffInSecs = differenceInSeconds(end, start);\n if (diffInSecs > 0) return diffInSecs;\n }\n return 0;\n};\n\nconst secondsTohhmm = (seconds: number): string => {\n const hours = Math.floor(seconds / 3600);\n const minutes = Math.floor((seconds - hours * 3600) / 60);\n return `${hours.toString().padStart(2, '0')}:${minutes\n .toString()\n .padStart(2, '0')}`;\n};\n\nconst parseTimeInSeconds = (value: string): number => {\n // Check if HH:mm format matches else if decimal format\n if (/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(value)) {\n const time = value.split(':');\n return parseInt(time[0]) * 60 * 60 + parseInt(time[1]) * 60;\n } else if (\n parseFloat(value) < 24 &&\n /^([0-9])+(?:\\.[0-9]{1,2})?$/.test(value)\n ) {\n return parseFloat(value) * 60 * 60;\n } else {\n return -1;\n }\n};\n\n/**\n * setClockInterval will repeatedly calls a function or executes a code snippet,\n * while being in sync with system clock. minimum resoluton 1 second.\n * @param callback {function():void} callback function to execute\n * @param interval {number} interval in miliseconds. default 1000\n */\nconst setClockInterval = (callback: (args: void) => void, interval = 1000) => {\n interval = interval < 1000 ? 1000 : interval; // minimum interval 1000 miliseconds\n const timer = () => {\n callback();\n setTimeout(timer, interval - (new Date().getTime() % interval));\n };\n timer();\n};\n\n//this function returns the timezone in standard format eg:- +05:30 when input given as float eg:- +5.5\nconst getStandardTimezone = (timezoneOffset: number) => {\n return (\n (timezoneOffset > 0 ? '+' : '-') +\n String(Math.abs(timezoneOffset).toFixed(2))\n .split('.')\n .map((substr, i) =>\n i === 0\n ? substr.padStart(2, '0')\n : String(parseInt(substr) * 0.6).padEnd(2, '0'),\n )\n .join(':')\n );\n};\n\n/**\n * guessTimezone will first try to guess the current timezone name using\n * ES6 Intl API. in the offchance it's not possible it will revert value using\n * default timezone list.\n * @typedef {Object} Timezone\n * @property {string} name - timezone's english name\n * @property {string} label - timezone's english formatted label\n * @property {number} offset - timezone's offset in hours\n */\nconst guessTimezone = () => {\n let timezoneName = Intl.DateTimeFormat().resolvedOptions().timeZone;\n // getTimezoneOffset return difference in minutes between UTC and client\n // offset is positive if the local timezone is behind UTC and negative if it is ahead\n const timezoneOffset = (new Date().getTimezoneOffset() / 60) * -1;\n if (timezoneName === undefined) {\n // assign timezone manually\n const resolvedTz = defaultTimezones.find(\n (tz) => tz.offset === timezoneOffset,\n );\n timezoneName = resolvedTz ? resolvedTz.label : defaultTimezones[0].label;\n }\n\n const formattedOffset = getStandardTimezone(timezoneOffset);\n\n return {\n name: timezoneName,\n label: `(GMT ${formattedOffset}) ${timezoneName}`,\n offset: timezoneOffset,\n };\n};\n\nexport {\n isDate,\n freshDate,\n parseDate,\n formatDate,\n isAfter,\n isBefore,\n isEqual,\n startOfYear,\n endOfYear,\n numberOfDaysInMonth,\n addDays,\n parseTime,\n diffInDays,\n diffInTime,\n secondsTohhmm,\n compareTime,\n parseTimeInSeconds,\n setClockInterval,\n guessTimezone,\n getStandardTimezone,\n isToday,\n formatTime,\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {AxiosResponse} from 'axios';\nimport {App, ComponentOptions} from 'vue';\nimport IntlMessageFormat from 'intl-messageformat';\nimport {APIService} from '@/core/util/services/api.service';\nimport {StoreService} from '@ohrm/oxd';\n\nexport type Language = {\n [key: string]: IntlMessageFormat;\n};\n\nexport interface LanguageResponse {\n [key: string]: {\n source: string;\n target: string;\n description: string;\n };\n}\n\nexport interface LanguageOptions {\n baseUrl: string;\n resourceUrl: string;\n}\n\nexport type TranslateAPI = (\n key: string,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n parameters?: {[key: string]: any},\n) => string;\n\nexport const langStrings: Record = {};\n\n/**\n * A factory function that will return translator function\n * @return {function(key, parameters): string}\n */\nexport const translate =\n () =>\n (\n key: string,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n parameters: {[key: string]: any} = {},\n ): string => {\n // IntlMessageFormat.format method will throw error if not every argument in the message pattern\n // has been provided. sourrounded by try catch to fallback incase of param resolution\n try {\n if (!langStrings[key]) return key;\n const translatedString = langStrings[key].format(parameters);\n if (Array.isArray(translatedString)) {\n return typeof translatedString[0] === 'string'\n ? translatedString[0]\n : key;\n }\n return translatedString;\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error);\n return key;\n }\n };\n\nconst defineMixin = (): ComponentOptions => {\n return {\n beforeCreate(): void {\n this.$t = translate();\n },\n };\n};\n\nfunction createI18n(options: LanguageOptions) {\n const http = new APIService(options.baseUrl, options.resourceUrl);\n return {\n init: function () {\n return new Promise((resolve) => {\n http\n .request({\n method: 'GET',\n headers: {\n Accept: 'application/json',\n contentType: 'application/json',\n ...(process.env.NODE_ENV === 'development' && {\n 'Cache-Control': 'public, max-age=60',\n }),\n },\n })\n .then((response: AxiosResponse) => {\n const {data} = response;\n const language: {[key: string]: string} = {};\n for (const key in data) {\n // https://formatjs.io/docs/intl-messageformat#intlmessageformat-constructor\n language[key] = data[key].target || data[key].source;\n langStrings[key] = new IntlMessageFormat(\n data[key].target || data[key].source,\n undefined,\n undefined,\n {ignoreTag: true}, // no html/xml markup parsing\n );\n }\n StoreService.mergeConfig({\n language,\n });\n })\n .finally(() => resolve());\n });\n },\n i18n: function (app: App) {\n app.mixin(defineMixin());\n },\n };\n}\n\nexport default createI18n;\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {translate as translatorFactory} from '@/core/plugins/i18n/translate';\n\nexport default function usei18n() {\n const translate = translatorFactory();\n\n return {\n $t: translate,\n };\n}\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport usei18n from './usei18n';\nimport {buildLocale} from '@ohrm/oxd';\n\nexport default function useLocale() {\n const {$t} = usei18n();\n\n const locale: Locale = buildLocale({\n months: {\n wide: [\n $t('general.january'),\n $t('general.february'),\n $t('general.march'),\n $t('general.april'),\n $t('general.may'),\n $t('general.june'),\n $t('general.july'),\n $t('general.august'),\n $t('general.september'),\n $t('general.october'),\n $t('general.november'),\n $t('general.december'),\n ],\n abbreviated: [\n $t('general.jan'),\n $t('general.feb'),\n $t('general.mar'),\n $t('general.apr'),\n $t('general.may'),\n $t('general.jun'),\n $t('general.jul'),\n $t('general.aug'),\n $t('general.sep'),\n $t('general.oct'),\n $t('general.nov'),\n $t('general.dec'),\n ],\n },\n days: {\n abbreviated: [\n $t('general.sun'),\n $t('general.mon'),\n $t('general.tue'),\n $t('general.wed'),\n $t('general.thu'),\n $t('general.fri'),\n $t('general.sat'),\n ],\n wide: [\n $t('general.sunday'),\n $t('general.monday'),\n $t('general.tuesday'),\n $t('general.wednesday'),\n $t('general.thursday'),\n $t('general.friday'),\n $t('general.saturday'),\n ],\n },\n });\n\n return {\n locale,\n };\n}\n","import { render } from \"./DateInput.vue?vue&type=template&id=7f7cbd26\"\nimport script from \"./DateInput.vue?vue&type=script&lang=js\"\nexport * from \"./DateInput.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./TimeInput.vue?vue&type=template&id=9b52fdd6\"\nimport script from \"./TimeInput.vue?vue&type=script&lang=js\"\nexport * from \"./TimeInput.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {App} from 'vue';\nimport SubmitButton from '@ohrm/components/buttons/SubmitButton.vue';\nimport TableHeader from '@ohrm/components/table/TableHeader.vue';\nimport RequiredText from '@ohrm/components/labels/RequiredText.vue';\nimport Layout from '@ohrm/components/layout/Layout.vue';\nimport DateInput from '@ohrm/components/inputs/DateInput.vue';\nimport TimeInput from '@ohrm/components/inputs/TimeInput.vue';\n\nimport {\n OxdCardTable,\n OxdButton,\n OxdPagination,\n OxdDivider,\n OxdText,\n OxdIconButton,\n OxdForm,\n OxdFormRow,\n OxdFormActions,\n OxdInputField,\n OxdInputGroup,\n OxdGrid,\n OxdGridItem,\n OxdTableFilter,\n} from '@ohrm/oxd';\n\nexport default {\n install: (app: App) => {\n app.component('OxdLayout', Layout);\n app.component('OxdCardTable', OxdCardTable);\n app.component('OxdButton', OxdButton);\n app.component('OxdPagination', OxdPagination);\n app.component('OxdDivider', OxdDivider);\n app.component('OxdText', OxdText);\n app.component('OxdIconButton', OxdIconButton);\n app.component('OxdForm', OxdForm);\n app.component('OxdFormRow', OxdFormRow);\n app.component('OxdFormActions', OxdFormActions);\n app.component('OxdInputField', OxdInputField);\n app.component('OxdInputGroup', OxdInputGroup);\n app.component('OxdGrid', OxdGrid);\n app.component('OxdGridItem', OxdGridItem);\n app.component('OxdTableFilter', OxdTableFilter);\n app.component('SubmitButton', SubmitButton);\n app.component('TableHeader', TableHeader);\n app.component('RequiredText', RequiredText);\n app.component('DateInput', DateInput);\n app.component('TimeInput', TimeInput);\n },\n};\n","\n\n\n\n\n","import { render } from \"./NoRecordsFound.vue?vue&type=template&id=e49e7d2e\"\nimport script from \"./NoRecordsFound.vue?vue&type=script&lang=js\"\nexport * from \"./NoRecordsFound.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./BadRequest.vue?vue&type=template&id=7ff83c8c\"\nimport script from \"./BadRequest.vue?vue&type=script&lang=js\"\nexport * from \"./BadRequest.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ModuleUnderDevelopment.vue?vue&type=template&id=c0c6b572&scoped=true\"\nimport script from \"./ModuleUnderDevelopment.vue?vue&type=script&lang=js\"\nexport * from \"./ModuleUnderDevelopment.vue?vue&type=script&lang=js\"\n\nimport \"./ModuleUnderDevelopment.vue?vue&type=style&index=0&id=c0c6b572&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c0c6b572\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Disabled.vue?vue&type=template&id=3d2f2dd1&scoped=true\"\nconst script = {}\n\nimport \"./Disabled.vue?vue&type=style&index=0&id=3d2f2dd1&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3d2f2dd1\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./TimeSheetPeriodNotDefined.vue?vue&type=template&id=0b4cb5ba\"\nimport script from \"./TimeSheetPeriodNotDefined.vue?vue&type=script&lang=js\"\nexport * from \"./TimeSheetPeriodNotDefined.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport NoRecordsFound from './NoRecordsFound.vue';\nimport BadRequest from './BadRequest.vue';\nimport ModuleUnderDevelopment from './ModuleUnderDevelopment.vue';\nimport Disabled from './Disabled.vue';\nimport TimeSheetPeriodNotDefined from './TimeSheetPeriodNotDefined.vue';\n\nexport default {\n 'bad-request': BadRequest,\n 'no-records-found': NoRecordsFound,\n 'module-under-development': ModuleUnderDevelopment,\n 'disabled-module': Disabled,\n 'time-sheet-period-not-defined': TimeSheetPeriodNotDefined,\n};\n","\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {getCurrentInstance} from 'vue';\nimport {ToasterAPI} from '../../plugins/toaster/toaster';\n\nexport default function useToast() {\n const $toast: ToasterAPI | undefined =\n getCurrentInstance()?.appContext.config.globalProperties.$toast;\n\n /**\n * typesafe & nullsafe wrapper for functions\n * https://stackoverflow.com/a/61212868/2182418\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const wrap = any>(\n fn: Func | undefined,\n ): ((...args: Parameters) => ReturnType) => {\n return (...args: Parameters): ReturnType => {\n return fn && fn(...args);\n };\n };\n\n return {\n notify: wrap($toast?.notify),\n show: wrap($toast?.show),\n success: wrap($toast?.success),\n error: wrap($toast?.error),\n info: wrap($toast?.info),\n warn: wrap($toast?.warn),\n clear: wrap($toast?.clear),\n clearAll: wrap($toast?.clearAll),\n saveSuccess: wrap($toast?.saveSuccess),\n addSuccess: wrap($toast?.addSuccess),\n updateSuccess: wrap($toast?.updateSuccess),\n deleteSuccess: wrap($toast?.deleteSuccess),\n cannotDelete: wrap($toast?.cannotDelete),\n noRecordsFound: wrap($toast?.noRecordsFound),\n };\n}\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {onBeforeMount, reactive, toRefs, watch, unref} from 'vue';\nimport {APIService} from '@/core/util/services/api.service';\nimport {AxiosResponse} from 'axios';\nimport useToast from '@/core/util/composable/useToast';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\ninterface ServerResponse {\n data?: any;\n meta?: any;\n error?: boolean;\n message?: string;\n}\n\ninterface State {\n showPaginator: boolean;\n isLoading: boolean;\n response: ServerResponse;\n total: number;\n pages: number;\n currentPage: number;\n}\n\ninterface DTO {\n [key: string]: any;\n}\n/* eslint-enable @typescript-eslint/no-explicit-any */\n\nasync function fetchData(\n http: APIService,\n params: object,\n): Promise {\n try {\n const response: AxiosResponse = await http.getAll(params);\n return {\n data: response.data.data,\n meta: response.data.meta,\n error: false,\n };\n } catch (error) {\n return {\n error: true,\n message: (error as Error).message,\n };\n }\n}\n\nfunction getPageParams(pageSize: number, currentPage: number) {\n const offset = pageSize * (currentPage - 1);\n return {\n limit: pageSize,\n offset,\n };\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction getQueryParams(query: any) {\n const params = JSON.parse(JSON.stringify(unref(query)));\n for (const [key, value] of Object.entries(params)) {\n params[key] = value === null || value === '' ? undefined : value;\n }\n return params;\n}\n\n/* Override to mutate fields after fetching */\nfunction defaultNormalizer(data: DTO[]): DTO[] {\n return data;\n}\n\ntype usePaginateArgs = {\n query?: object;\n normalizer?: (data: DTO[]) => DTO[];\n prefetch?: boolean;\n toastNoRecords?: boolean;\n pageSize?: number;\n};\n\nexport default function usePaginate(\n http: APIService,\n {\n query = {},\n normalizer = defaultNormalizer,\n prefetch = true,\n toastNoRecords = true,\n pageSize = 50,\n }: usePaginateArgs = {},\n) {\n const state = reactive({\n showPaginator: false,\n isLoading: false,\n response: {},\n total: 0,\n pages: 0,\n currentPage: 1,\n });\n const {noRecordsFound} = useToast();\n\n const execQuery = async () => {\n state.isLoading = true;\n const pageParams = getPageParams(pageSize, state.currentPage);\n const queryParams = getQueryParams(query);\n state.response = await fetchData(http, {...pageParams, ...queryParams});\n if (!state.response.error) {\n const {data, ...rest} = state.response;\n const formattedData = normalizer(data);\n state.response = {data: formattedData, ...rest};\n }\n if (state.response.meta) {\n state.total = state.response.meta.total;\n if (state.total > pageSize) {\n state.showPaginator = true;\n state.pages = Math.ceil(state.total / pageSize);\n } else {\n state.currentPage = 1;\n state.pages = 1;\n state.showPaginator = false;\n }\n\n if (state.total === 0 && toastNoRecords) {\n noRecordsFound();\n }\n }\n state.isLoading = false;\n };\n\n if (prefetch) {\n onBeforeMount(execQuery);\n }\n\n watch(() => state.currentPage, execQuery);\n\n return {\n ...toRefs(state),\n execQuery,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./DeleteConfirmationDialog.vue?vue&type=template&id=64d94959&scoped=true\"\nimport script from \"./DeleteConfirmationDialog.vue?vue&type=script&lang=js\"\nexport * from \"./DeleteConfirmationDialog.vue?vue&type=script&lang=js\"\n\nimport \"./dialog.scss?vue&type=style&index=0&id=64d94959&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-64d94959\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {computed, ref, watch} from 'vue';\n\ntype Order = 'ASC' | 'DESC' | 'DEFAULT';\n\ninterface SortDefinition {\n [column: string]: Order;\n}\n\ninterface SortParams {\n sortDefinition: SortDefinition;\n}\n\nexport default function useSort(sortParams: SortParams) {\n const sortDefinition = ref({\n ...JSON.parse(JSON.stringify(sortParams.sortDefinition)),\n });\n\n const sortField = computed(() => {\n return Object.keys(sortDefinition.value).filter((column) => {\n const order = sortDefinition.value[column];\n return order && order != 'DEFAULT';\n })[0];\n });\n\n const sortOrder = computed(() => {\n return sortDefinition.value[sortField.value];\n });\n\n const onSort = (func: () => void) => watch(sortDefinition, func);\n\n return {\n sortDefinition,\n sortField,\n sortOrder,\n onSort,\n };\n}\n","import { render } from \"./JobTitle.vue?vue&type=template&id=42949099\"\nimport script from \"./JobTitle.vue?vue&type=script&lang=js\"\nexport * from \"./JobTitle.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","/*\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {\n compareTime,\n diffInDays,\n formatDate,\n isAfter,\n isBefore,\n isEqual,\n parseDate,\n} from '../helper/datefns';\nimport {translate as translatorFactory} from '@/core/plugins/i18n/translate';\n\nconst translate = translatorFactory();\n\nexport type File = {\n name: string;\n type: string;\n size: number;\n base64: string;\n};\n\n/**\n * @param {string|number|Array} value\n * @returns {boolean|string}\n */\nexport const required = function (\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n value: string | number | Array,\n): boolean | string {\n if (typeof value === 'string') {\n return (!!value && value.trim() !== '') || translate('general.required');\n } else if (typeof value === 'number') {\n return !Number.isNaN(value) || 'general.required';\n } else if (Array.isArray(value)) {\n return (!!value && value.length !== 0) || translate('general.required');\n } else if (typeof value === 'object') {\n return value !== null || translate('general.required');\n } else {\n return translate('general.required');\n }\n};\n\n/**\n * @param {number} charLength\n */\nexport const shouldNotExceedCharLength = function (charLength: number) {\n return function (value: string): boolean | string {\n return (\n !value ||\n new String(value).length <= charLength ||\n translate('general.should_be_less_n_characters', {amount: charLength})\n );\n };\n};\n\nexport const validDateFormat = function (\n displayFormat = 'yyyy-mm-dd',\n dateFormat = 'yyyy-MM-dd',\n) {\n return function (value: string): boolean | string {\n if (!value) return true;\n const parsed = parseDate(value, dateFormat);\n return parsed\n ? true\n : translate('general.should_be_a_valid_date_in_x_format', {\n format: displayFormat,\n });\n };\n};\n\nexport const shouldBeCurrentOrPreviousDate = function () {\n return function (value: string): boolean | string {\n if (!value) return true;\n const dateFormat = 'yyyy-MM-dd';\n const currentDate = formatDate(new Date(), dateFormat) || '';\n const isValid = diffInDays(value, currentDate, dateFormat);\n return isValid > 0\n ? true\n : translate('recruitment.should_be_current_date_previous_date');\n };\n};\n\nexport const validTimeFormat = function (value: string): boolean | string {\n if (!value) return true;\n const parsed = parseDate(value, 'HH:mm');\n return parsed\n ? true\n : translate('general.should_be_a_valid_date_in_hh:mm_format');\n};\n\nexport const max = function (maxValue: number) {\n return function (value: string): boolean | string {\n return (\n Number.isNaN(parseFloat(value)) ||\n parseFloat(value) < maxValue ||\n translate('general.should_be_less_than_n', {amount: maxValue})\n );\n };\n};\n\nexport const digitsOnly = function (value: string): boolean | string {\n return (\n value == '' ||\n (/^\\d+$/.test(value) && !Number.isNaN(parseFloat(value))) ||\n translate('general.should_be_a_number')\n );\n};\n\nexport const numericOnly = function (value: string): boolean | string {\n return (\n value == '' ||\n (/^\\d+$/.test(value) && !Number.isNaN(parseFloat(value))) ||\n translate('general.should_be_a_numeric_value')\n );\n};\n\nexport const digitsOnlyWithDecimalPoint = function (\n value: string,\n): boolean | string {\n return (\n value == '' ||\n (/^\\d*\\.?\\d*$/.test(value) && !Number.isNaN(parseFloat(value))) ||\n translate('general.should_be_a_number')\n );\n};\n\nexport const digitsOnlyWithDecimalPointAndMinusSign = function (\n value: string,\n): boolean | string {\n return (\n value == '' ||\n (/^-?\\d*\\.?\\d*$/.test(value) && !Number.isNaN(parseFloat(value))) ||\n translate('general.should_be_a_number')\n );\n};\n\n/**\n * Check whether date1 is before date2\n * @param {string} date1\n * @param {string} date2\n * @param {string} dateFormat\n */\nexport const beforeDate = function (\n date1: string,\n date2: string,\n dateFormat = 'yyyy-MM-dd',\n) {\n // Skip assertion on unset values\n if (!date1 || !date2) {\n return true;\n }\n return isBefore(date1, date2, dateFormat);\n};\n\n/**\n * Check whether date1 is after date2\n * @param {string} date1\n * @param {string} date2\n * @param {string} dateFormat\n */\nexport const afterDate = function (\n date1: string,\n date2: string,\n dateFormat = 'yyyy-MM-dd',\n) {\n // Skip assertion on unset values\n if (!date1 || !date2) {\n return true;\n }\n return isAfter(date1, date2, dateFormat);\n};\n\n/**\n * Check whether date1 is same as date2\n * @param {string} date1\n * @param {string} date2\n * @param {string} dateFormat\n */\nexport const sameDate = function (\n date1: string,\n date2: string,\n dateFormat = 'yyyy-MM-dd',\n) {\n // Skip assertion on unset values\n if (!date1 || !date2) {\n return true;\n }\n return isEqual(date1, date2, dateFormat);\n};\n\n/**\n * @param {string} startDate\n * @param {string|undefined} message\n * @param {object} options\n */\nexport const endDateShouldBeAfterStartDate = (\n startDate: string | (() => string),\n message?: string,\n options: {\n allowSameDate?: boolean;\n dateFormat?: string;\n } = {\n allowSameDate: false,\n dateFormat: 'yyyy-MM-dd',\n },\n) => {\n return (value: string): boolean | string => {\n const resolvedStartDate =\n typeof startDate === 'function' ? startDate() : startDate;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.end_date_should_be_after_start_date');\n if (options.allowSameDate) {\n return (\n sameDate(value, resolvedStartDate) ||\n afterDate(value, resolvedStartDate, options.dateFormat) ||\n resolvedMessage\n );\n } else {\n return (\n afterDate(value, resolvedStartDate, options.dateFormat) ||\n resolvedMessage\n );\n }\n };\n};\n\n/**\n * Check whether time1 is before time2\n * @param {string} time1\n * @param {string} time2\n * @param {string} timeFormat\n */\nexport const beforeTime = function (\n time1: string,\n time2: string,\n timeFormat = 'yyyy-MM-dd',\n) {\n // Skip assertion on unset values\n if (!time1 || !time2) {\n return true;\n }\n return compareTime(time1, time2, timeFormat) === 1;\n};\n\n/**\n * Check whether time1 is after time2\n * @param {string} time1\n * @param {string} time2\n * @param {string} timeFormat\n */\nexport const afterTime = function (\n time1: string,\n time2: string,\n timeFormat = 'HH:mm',\n) {\n // Skip assertion on unset values\n if (!time1 || !time2) {\n return true;\n }\n return compareTime(time1, time2, timeFormat) === -1;\n};\n\n/**\n * Check whether time1 is equal time2\n * @param {string} time1\n * @param {string} time2\n * @param {string} timeFormat\n */\nexport const sameTime = function (\n time1: string,\n time2: string,\n timeFormat = 'HH:mm',\n) {\n // Skip assertion on unset values\n if (!time1 || !time2) {\n return true;\n }\n return compareTime(time1, time2, timeFormat) === 0;\n};\n\n/**\n * @param {string} startTime\n * @param {string|undefined} message\n * @param {object} options\n */\nexport const endTimeShouldBeAfterStartTime = (\n startTime: string | (() => string),\n message?: string,\n options: {\n allowSameTime?: boolean;\n timeFormat?: string;\n } = {\n allowSameTime: false,\n timeFormat: 'HH:mm',\n },\n) => {\n return (value: string): boolean | string => {\n const resolvedStartTime =\n typeof startTime === 'function' ? startTime() : startTime;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.end_time_should_be_after_start_time');\n if (options.allowSameTime) {\n return (\n sameTime(value, resolvedStartTime) ||\n afterTime(value, resolvedStartTime, options.timeFormat) ||\n resolvedMessage\n );\n } else {\n return (\n afterTime(value, resolvedStartTime, options.timeFormat) ||\n resolvedMessage\n );\n }\n };\n};\n\n/**\n * @param {number} size - File size in bytes\n */\nexport const maxFileSize = function (size: number) {\n return function (file: File): boolean | string {\n return (\n file === null ||\n (file.size && file.size <= size) ||\n translate('general.attachment_size_exceeded')\n );\n };\n};\n\nexport const validFileTypes = function (fileTypes: string[]) {\n return function (file: File): boolean | string {\n return (\n file === null ||\n (file && fileTypes.findIndex((item) => item === file.type) > -1) ||\n translate('general.file_type_not_allowed')\n );\n };\n};\n\nexport const validEmailFormat = function (value: string): boolean | string {\n return (\n !value ||\n /^[a-zA-Z0-9.!#$%&'*+\\\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/.test(\n value,\n ) ||\n translate('general.expected_email_address_format_not_matched')\n );\n};\n\nexport const validPhoneNumberFormat = function (\n value: string,\n): boolean | string {\n return (\n !value ||\n /^[0-9+\\-/() ]+$/.test(value) ||\n translate('general.allows_phone_numbers_only')\n );\n};\n\n/**\n * @param {string} endDate\n * @param {string|undefined} message\n * @param {object} options\n */\nexport const startDateShouldBeBeforeEndDate = (\n endDate: string | (() => string),\n message?: string,\n options: {\n allowSameDate?: boolean;\n dateFormat?: string;\n } = {\n allowSameDate: false,\n dateFormat: 'yyyy-MM-dd',\n },\n) => {\n return (value: string): boolean | string => {\n const resolvedEndDate = typeof endDate === 'function' ? endDate() : endDate;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.start_date_should_be_before_end_date');\n if (options.allowSameDate) {\n return (\n sameDate(value, resolvedEndDate) ||\n beforeDate(value, resolvedEndDate, options.dateFormat) ||\n resolvedMessage\n );\n } else {\n return (\n beforeDate(value, resolvedEndDate, options.dateFormat) ||\n resolvedMessage\n );\n }\n };\n};\n\nexport const maxCurrency = function (maxValue: number) {\n return function (value: string): boolean | string {\n return (\n Number.isNaN(parseFloat(value)) ||\n parseFloat(value) < maxValue ||\n translate('general.should_be_less_than_n', {\n amount: maxValue.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, ','),\n })\n );\n };\n};\n\n/**\n * @param {string} endTime\n * @param {string|undefined} message\n * @param {object} options\n */\nexport const startTimeShouldBeBeforeEndTime = (\n endTime: string | (() => string),\n message?: string,\n options: {\n allowSameTime?: boolean;\n timeFormat?: string;\n } = {\n allowSameTime: false,\n timeFormat: 'HH:mm',\n },\n) => {\n return (value: string): boolean | string => {\n const resolvedEndTime = typeof endTime === 'function' ? endTime() : endTime;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.start_time_should_be_before_end_time');\n if (options.allowSameTime) {\n return (\n sameTime(value, resolvedEndTime) ||\n beforeTime(value, resolvedEndTime, options.timeFormat) ||\n resolvedMessage\n );\n } else {\n return (\n beforeTime(value, resolvedEndTime, options.timeFormat) ||\n resolvedMessage\n );\n }\n };\n};\n\n/**\n * @param {number} charLength\n */\nexport const shouldNotLessThanCharLength = function (charLength: number) {\n return function (value: string): boolean | string {\n return (\n !value ||\n String(value).length >= charLength ||\n translate('general.should_be_least_n_characters', {amount: charLength})\n );\n };\n};\n\n/**\n * @param {string | function} minValue\n * @param {string|undefined} message\n */\nexport const maxValueShouldBeGreaterThanMinValue = (\n minValue: string | (() => string),\n message?: string,\n) => {\n return (value: string): boolean | string => {\n const resolvedMinValue =\n typeof minValue === 'function' ? minValue() : minValue;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.should_be_higher_than_minimum_value');\n if (resolvedMinValue === null || value === null) return true;\n if (resolvedMinValue === undefined || value === undefined) return true;\n if (resolvedMinValue === '' || value === '') return true;\n if (resolvedMinValue === '0' || value === '0') return true;\n return parseFloat(resolvedMinValue) < parseFloat(value) || resolvedMessage;\n };\n};\n\n/**\n * @param {string | function} maxValue\n * @param {string|undefined} message\n */\nexport const minValueShouldBeLowerThanMaxValue = (\n maxValue: string | (() => string),\n message?: string,\n) => {\n return (value: string): boolean | string => {\n const resolvedMaxValue =\n typeof maxValue === 'function' ? maxValue() : maxValue;\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.should_be_lower_than_maximum_value');\n if (resolvedMaxValue === null || value === null) return true;\n if (resolvedMaxValue === undefined || value === undefined) return true;\n if (resolvedMaxValue === '' || value === '0') return true;\n return parseFloat(resolvedMaxValue) > parseFloat(value) || resolvedMessage;\n };\n};\n\n/**\n * @param {number} minValue\n * @param {number} maxValue\n * @param {string|undefined} message\n */\nexport const numberShouldBeBetweenMinAndMaxValue = (\n minValue: number,\n maxValue: number,\n message?: string,\n) => {\n return (value: string): boolean | string => {\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.should_be_a_number_between_min_and_max', {\n min: minValue,\n max: maxValue,\n });\n return (\n (digitsOnly(value) === true &&\n parseFloat(value) >= minValue &&\n parseFloat(value) <= maxValue) ||\n resolvedMessage\n );\n };\n};\n\n/**\n * Validate #rrggbb & #rgb hex strings\n * @param {string} value hex string\n * @returns {boolean|string}\n */\nexport const validHexFormat = function (value: string): boolean | string {\n if (!value) return true;\n return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/i.test(value)\n ? true\n : translate('general.invalid');\n};\n\n/**\n * Validate image dimensions\n * @param {number} aspectRatio width/height\n * @param {number} tolerance\n * @returns {Promise}\n */\nexport const imageShouldHaveDimensions = function (\n aspectRatio: number,\n tolerance = 0.1,\n) {\n return function (file: File | null): Promise {\n return new Promise((resolve) => {\n if (file === null || file.type === 'image/svg+xml') return resolve(true);\n const image = new Image();\n image.src = `data:${file.type};base64, ${file.base64}`;\n image.decode().then(() => {\n if (Math.abs(image.width / image.height - aspectRatio) < tolerance) {\n resolve(true);\n } else {\n resolve(translate('general.incorrect_dimensions'));\n }\n });\n });\n };\n};\n\nexport const greaterThanOrEqual = function (\n minValue: number,\n message?: string,\n) {\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.greater_than_or_equal_to_n', {minValue: minValue});\n return function (value: string): boolean | string {\n if (value === null || value === '') return true;\n if (digitsOnlyWithDecimalPointAndMinusSign(value) !== true) {\n return resolvedMessage;\n }\n return parseFloat(value) >= minValue || resolvedMessage;\n };\n};\n\nexport const lessThanOrEqual = function (maxValue: number, message?: string) {\n const resolvedMessage =\n typeof message === 'string'\n ? message\n : translate('general.less_than_or_equal_to_n', {maxValue: maxValue});\n return function (value: string): boolean | string {\n if (value === null || value === '') return true;\n if (digitsOnlyWithDecimalPointAndMinusSign(value) !== true) {\n return resolvedMessage;\n }\n return parseFloat(value) <= maxValue || resolvedMessage;\n };\n};\n\nexport const validLangString = function (value: string) {\n if (value === null || value === '') {\n return true;\n }\n return value.split('').reduce((accumulator, currentValue) => {\n if (currentValue === '{') accumulator++;\n if (currentValue === '}') accumulator--;\n return accumulator;\n }, 0) !== 0\n ? translate('general.invalid')\n : true;\n};\n\n/**\n * Validate autocomplete selection\n * @param {string|object|null} value\n * @returns {boolean|string}\n */\nexport const validSelection = function (value: string | object | null) {\n return typeof value === 'string' ? translate('general.invalid') : true;\n};\n\nexport const validHostnameFormat = function (value: string): boolean | string {\n let fqdnRegex;\n\n // If string contains any letters, treat the string as a hostname. else ip address\n if (/\\p{L}/u.test(value)) {\n fqdnRegex =\n /^([\\p{L}\\p{N}\\p{S}\\-.])+(\\.?([\\p{L}\\p{N}]|xn--[\\p{L}\\p{N}-]+)+\\.?)(:[0-9]+)?$/gu;\n } else {\n fqdnRegex =\n /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/;\n }\n\n return !value || fqdnRegex.test(value) || translate('general.invalid');\n};\n\nexport const validPortRange = function (\n charLength: number,\n rangeFrom: number,\n rangeTo: number,\n) {\n return function (value: string): boolean | string {\n return (\n !value ||\n (/^\\d+$/.test(value) &&\n !Number.isNaN(parseFloat(value)) &&\n String(value).length <= charLength &&\n parseInt(value) >= rangeFrom &&\n parseInt(value) <= rangeTo) ||\n translate('general.enter_valid_port_between_a_to_b', {\n minValue: rangeFrom,\n maxValue: rangeTo,\n })\n );\n };\n};\n\n/**\n * Validate url to be a valid youtube video\n * @param {string} value url string\n * @returns\n */\nexport const validVideoURL = function (value: string): boolean | string {\n return (\n !value ||\n /^(?:https?:\\/\\/)?(?:m\\.|www\\.)?(?:youtu\\.be\\/|youtube\\.com\\/(?:shorts\\/|embed\\/|v\\/|watch\\?v=|watch\\?.+&v=))((\\w|-){11})(\\?\\S*)?$/.test(\n value,\n ) ||\n translate('general.invalid_video_url_message')\n );\n};\n","\n\n\n\n\n\n\n","import { render } from \"./FileUploadInput.vue?vue&type=template&id=0511e208&scoped=true\"\nimport script from \"./FileUploadInput.vue?vue&type=script&lang=js\"\nexport * from \"./FileUploadInput.vue?vue&type=script&lang=js\"\n\nimport \"./FileUploadInput.vue?vue&type=style&index=0&id=0511e208&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0511e208\"]])\n\nexport default __exports__","import { render } from \"./EditJobTitle.vue?vue&type=template&id=808b6d62\"\nimport script from \"./EditJobTitle.vue?vue&type=script&lang=js\"\nexport * from \"./EditJobTitle.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveJobTitle.vue?vue&type=template&id=792cfcc7\"\nimport script from \"./SaveJobTitle.vue?vue&type=script&lang=js\"\nexport * from \"./SaveJobTitle.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./JobCategory.vue?vue&type=template&id=3763dbbd\"\nimport script from \"./JobCategory.vue?vue&type=script&lang=js\"\nexport * from \"./JobCategory.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditJobCategory.vue?vue&type=template&id=f5f2ecd2\"\nimport script from \"./EditJobCategory.vue?vue&type=script&lang=js\"\nexport * from \"./EditJobCategory.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveJobCategory.vue?vue&type=template&id=3fcfb3bf\"\nimport script from \"./SaveJobCategory.vue?vue&type=script&lang=js\"\nexport * from \"./SaveJobCategory.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./EmployeeAutocomplete.vue?vue&type=template&id=1ccb3a64&scoped=true\"\nimport script from \"./EmployeeAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeAutocomplete.vue?vue&type=style&index=0&id=1ccb3a64&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1ccb3a64\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport usei18n from '@/core/util/composable/usei18n';\n\ntype Employee = {\n firstName: string;\n middleName: string | null;\n lastName: string;\n terminationId: number | null;\n};\n\ntype Options = {\n includeMiddle?: boolean;\n excludePastEmpTag?: boolean;\n};\n\nexport default function useEmployeeNameTranslate() {\n const {$t} = usei18n();\n\n const translateEmployeeName = (\n employee: Employee,\n options?: Options,\n ): string => {\n if (employee.firstName === 'Purged' && employee.lastName === 'Employee') {\n return $t('general.purged_employee');\n }\n\n const includeMiddle = options?.includeMiddle;\n const excludePastEmpTag = options?.excludePastEmpTag;\n\n const resolvedMiddleName =\n typeof includeMiddle === 'boolean' &&\n includeMiddle &&\n typeof employee.middleName === 'string'\n ? ` ${employee.middleName} `\n : ' ';\n\n if (employee.terminationId) {\n const resolvedPastEmpTag =\n typeof excludePastEmpTag === 'undefined'\n ? ` ${$t('general.past_employee')}`\n : excludePastEmpTag\n ? ''\n : ` ${$t('general.past_employee')}`;\n\n return `${employee.firstName}${resolvedMiddleName}${employee.lastName}${resolvedPastEmpTag}`;\n }\n\n return `${employee.firstName}${resolvedMiddleName}${employee.lastName}`;\n };\n\n return {\n $tEmpName: translateEmployeeName,\n };\n}\n","import { render } from \"./SystemUser.vue?vue&type=template&id=31631e2d\"\nimport script from \"./SystemUser.vue?vue&type=script&lang=js\"\nexport * from \"./SystemUser.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {ref} from 'vue';\nimport {AxiosResponse} from 'axios';\nimport {APIService} from '@/core/util/services/api.service';\n\nexport interface PasswordValidationResponse {\n data: {\n messages: string[];\n };\n meta: {\n strength: number;\n };\n}\n\nexport default function usePasswordPolicy(http: APIService) {\n const passwordStrength = ref(0);\n\n const validatePassword = (password: string) => {\n return new Promise((resolve) => {\n if (password.trim() !== '') {\n http\n .request({\n method: 'POST',\n url: `/api/v2/auth/public/validation/password`,\n data: {\n password,\n },\n })\n .then((response: AxiosResponse) => {\n const {data, meta} = response.data;\n passwordStrength.value = meta?.strength || 0;\n if (Array.isArray(data?.messages) && data.messages.length > 0) {\n resolve(data.messages[0]);\n } else {\n resolve(true);\n }\n });\n } else {\n passwordStrength.value = 0;\n resolve(true);\n }\n });\n };\n\n return {\n passwordStrength,\n validatePassword,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./PasswordStrengthIndicator.vue?vue&type=template&id=2eef2625&scoped=true\"\nimport script from \"./PasswordStrengthIndicator.vue?vue&type=script&lang=js\"\nexport * from \"./PasswordStrengthIndicator.vue?vue&type=script&lang=js\"\n\nimport \"./PasswordStrengthIndicator.vue?vue&type=style&index=0&id=2eef2625&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2eef2625\"]])\n\nexport default __exports__","import { render } from \"./PasswordInput.vue?vue&type=template&id=9345d4ba&scoped=true\"\nimport script from \"./PasswordInput.vue?vue&type=script&lang=js\"\nexport * from \"./PasswordInput.vue?vue&type=script&lang=js\"\n\nimport \"./PasswordInput.vue?vue&type=style&index=0&id=9345d4ba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-9345d4ba\"]])\n\nexport default __exports__","import { render } from \"./SaveSystemUser.vue?vue&type=template&id=7e4cce62\"\nimport script from \"./SaveSystemUser.vue?vue&type=script&lang=js\"\nexport * from \"./SaveSystemUser.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditSystemUser.vue?vue&type=template&id=370fbe82\"\nimport script from \"./EditSystemUser.vue?vue&type=script&lang=js\"\nexport * from \"./EditSystemUser.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./SaveOrgUnit.vue?vue&type=template&id=391369a4&scoped=true\"\nimport script from \"./SaveOrgUnit.vue?vue&type=script&lang=js\"\nexport * from \"./SaveOrgUnit.vue?vue&type=script&lang=js\"\n\nimport \"./SaveOrgUnit.vue?vue&type=style&index=0&id=391369a4&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-391369a4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditOrgUnit.vue?vue&type=template&id=ebf1984e\"\nimport script from \"./EditOrgUnit.vue?vue&type=script&lang=js\"\nexport * from \"./EditOrgUnit.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./OrgStructure.vue?vue&type=template&id=a525b582&scoped=true\"\nimport script from \"./OrgStructure.vue?vue&type=script&lang=js\"\nexport * from \"./OrgStructure.vue?vue&type=script&lang=js\"\n\nimport \"./org-structure.scss?vue&type=style&index=0&id=a525b582&lang=scss&scoped=true\"\nimport \"./OrgStructure.vue?vue&type=style&index=1&id=a525b582&lang=scss\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a525b582\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditEmploymentStatus.vue?vue&type=template&id=0abd1be2\"\nimport script from \"./EditEmploymentStatus.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmploymentStatus.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmploymentStatus.vue?vue&type=template&id=294d55d7\"\nimport script from \"./EmploymentStatus.vue?vue&type=script&lang=js\"\nexport * from \"./EmploymentStatus.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveEmploymentStatus.vue?vue&type=template&id=f786e420\"\nimport script from \"./SaveEmploymentStatus.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEmploymentStatus.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./QualificationEducation.vue?vue&type=template&id=653b2d66\"\nimport script from \"./QualificationEducation.vue?vue&type=script&lang=js\"\nexport * from \"./QualificationEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditQualificationEducation.vue?vue&type=template&id=e1cb816c\"\nimport script from \"./EditQualificationEducation.vue?vue&type=script&lang=js\"\nexport * from \"./EditQualificationEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveQualificationEducation.vue?vue&type=template&id=3ba1da40\"\nimport script from \"./SaveQualificationEducation.vue?vue&type=script&lang=js\"\nexport * from \"./SaveQualificationEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./QualificationSkill.vue?vue&type=template&id=85e1644a\"\nimport script from \"./QualificationSkill.vue?vue&type=script&lang=js\"\nexport * from \"./QualificationSkill.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditQualificationSkill.vue?vue&type=template&id=255527ed\"\nimport script from \"./EditQualificationSkill.vue?vue&type=script&lang=js\"\nexport * from \"./EditQualificationSkill.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveQualificationSkill.vue?vue&type=template&id=7a792904\"\nimport script from \"./SaveQualificationSkill.vue?vue&type=script&lang=js\"\nexport * from \"./SaveQualificationSkill.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditLicense.vue?vue&type=template&id=842a985a\"\nimport script from \"./EditLicense.vue?vue&type=script&lang=js\"\nexport * from \"./EditLicense.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveLicense.vue?vue&type=template&id=30a2ca2d\"\nimport script from \"./SaveLicense.vue?vue&type=script&lang=js\"\nexport * from \"./SaveLicense.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./License.vue?vue&type=template&id=5986ac9d\"\nimport script from \"./License.vue?vue&type=script&lang=js\"\nexport * from \"./License.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditQualificationLanguage.vue?vue&type=template&id=3fc924cc\"\nimport script from \"./EditQualificationLanguage.vue?vue&type=script&lang=js\"\nexport * from \"./EditQualificationLanguage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveQualificationLanguage.vue?vue&type=template&id=699adaef\"\nimport script from \"./SaveQualificationLanguage.vue?vue&type=script&lang=js\"\nexport * from \"./SaveQualificationLanguage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./QualificationLanguage.vue?vue&type=template&id=75bacb5b\"\nimport script from \"./QualificationLanguage.vue?vue&type=script&lang=js\"\nexport * from \"./QualificationLanguage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./QualificationMembership.vue?vue&type=template&id=76858558\"\nimport script from \"./QualificationMembership.vue?vue&type=script&lang=js\"\nexport * from \"./QualificationMembership.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditQualificationMembership.vue?vue&type=template&id=056a0b79\"\nimport script from \"./EditQualificationMembership.vue?vue&type=script&lang=js\"\nexport * from \"./EditQualificationMembership.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveQualificationMembership.vue?vue&type=template&id=04d69301\"\nimport script from \"./SaveQualificationMembership.vue?vue&type=script&lang=js\"\nexport * from \"./SaveQualificationMembership.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ViewOrganizationGeneralInformation.vue?vue&type=template&id=440f5057&scoped=true\"\nimport script from \"./ViewOrganizationGeneralInformation.vue?vue&type=script&lang=js\"\nexport * from \"./ViewOrganizationGeneralInformation.vue?vue&type=script&lang=js\"\n\nimport \"./general-info.scss?vue&type=style&index=0&id=440f5057&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-440f5057\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Nationality.vue?vue&type=template&id=2a6c619e\"\nimport script from \"./Nationality.vue?vue&type=script&lang=js\"\nexport * from \"./Nationality.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditNationality.vue?vue&type=template&id=cf57dbd0\"\nimport script from \"./EditNationality.vue?vue&type=script&lang=js\"\nexport * from \"./EditNationality.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveNationality.vue?vue&type=template&id=48664db2\"\nimport script from \"./SaveNationality.vue?vue&type=script&lang=js\"\nexport * from \"./SaveNationality.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ViewEmailConfiguration.vue?vue&type=template&id=5b5ad744&scoped=true\"\nimport script from \"./ViewEmailConfiguration.vue?vue&type=script&lang=js\"\nexport * from \"./ViewEmailConfiguration.vue?vue&type=script&lang=js\"\n\nimport \"./email-configuration.scss?vue&type=style&index=0&id=5b5ad744&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5b5ad744\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./LocationList.vue?vue&type=template&id=7515d202\"\nimport script from \"./LocationList.vue?vue&type=script&lang=js\"\nexport * from \"./LocationList.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveLocation.vue?vue&type=template&id=7f283258\"\nimport script from \"./SaveLocation.vue?vue&type=script&lang=js\"\nexport * from \"./SaveLocation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditLocation.vue?vue&type=template&id=47ee2c2e\"\nimport script from \"./EditLocation.vue?vue&type=script&lang=js\"\nexport * from \"./EditLocation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./PayGrade.vue?vue&type=template&id=2ba94e54\"\nimport script from \"./PayGrade.vue?vue&type=script&lang=js\"\nexport * from \"./PayGrade.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./AddPayGrade.vue?vue&type=template&id=7b85c7ad\"\nimport script from \"./AddPayGrade.vue?vue&type=script&lang=js\"\nexport * from \"./AddPayGrade.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./InlineActionButton.vue?vue&type=template&id=6526a07f&scoped=true\"\nimport script from \"./InlineActionButton.vue?vue&type=script&lang=js\"\nexport * from \"./InlineActionButton.vue?vue&type=script&lang=js\"\n\nimport \"./InlineActionButton.vue?vue&type=style&index=0&id=6526a07f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6526a07f\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./SavePayCurrency.vue?vue&type=template&id=30fcc35e\"\nimport script from \"./SavePayCurrency.vue?vue&type=script&lang=js\"\nexport * from \"./SavePayCurrency.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./EditPayCurrency.vue?vue&type=template&id=7ec75cce\"\nimport script from \"./EditPayCurrency.vue?vue&type=script&lang=js\"\nexport * from \"./EditPayCurrency.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./PayGradeCurrency.vue?vue&type=template&id=29cba704\"\nimport script from \"./PayGradeCurrency.vue?vue&type=script&lang=js\"\nexport * from \"./PayGradeCurrency.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EditPayGrade.vue?vue&type=template&id=2812b234\"\nimport script from \"./EditPayGrade.vue?vue&type=script&lang=js\"\nexport * from \"./EditPayGrade.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./EditModuleConfiguration.vue?vue&type=template&id=4e1bed3c&scoped=true\"\nimport script from \"./EditModuleConfiguration.vue?vue&type=script&lang=js\"\nexport * from \"./EditModuleConfiguration.vue?vue&type=script&lang=js\"\n\nimport \"./EditModuleConfiguration.vue?vue&type=style&index=0&id=4e1bed3c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4e1bed3c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./WorkShift.vue?vue&type=template&id=ab6299be\"\nimport script from \"./WorkShift.vue?vue&type=script&lang=js\"\nexport * from \"./WorkShift.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./WorkShiftEmployeeAutocomplete.vue?vue&type=template&id=24c42a2d\"\nimport script from \"./WorkShiftEmployeeAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./WorkShiftEmployeeAutocomplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./SaveWorkShift.vue?vue&type=template&id=003161fa&scoped=true\"\nimport script from \"./SaveWorkShift.vue?vue&type=script&lang=js\"\nexport * from \"./SaveWorkShift.vue?vue&type=script&lang=js\"\n\nimport \"./work-shift.scss?vue&type=style&index=0&id=003161fa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-003161fa\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./EditWorkShift.vue?vue&type=template&id=4e80e7d6&scoped=true\"\nimport script from \"./EditWorkShift.vue?vue&type=script&lang=js\"\nexport * from \"./EditWorkShift.vue?vue&type=script&lang=js\"\n\nimport \"./work-shift.scss?vue&type=style&index=0&id=4e80e7d6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4e80e7d6\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmailSubscription.vue?vue&type=template&id=3f566ab6\"\nimport script from \"./EmailSubscription.vue?vue&type=script&lang=js\"\nexport * from \"./EmailSubscription.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./SaveSubscriber.vue?vue&type=template&id=cc6ef064&scoped=true\"\nimport script from \"./SaveSubscriber.vue?vue&type=script&lang=js\"\nexport * from \"./SaveSubscriber.vue?vue&type=script&lang=js\"\n\nimport \"./SaveSubscriber.vue?vue&type=style&index=0&id=cc6ef064&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cc6ef064\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditSubscriber.vue?vue&type=template&id=36993096&scoped=true\"\nimport script from \"./EditSubscriber.vue?vue&type=script&lang=js\"\nexport * from \"./EditSubscriber.vue?vue&type=script&lang=js\"\n\nimport \"./EditSubscriber.vue?vue&type=style&index=0&id=36993096&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-36993096\"]])\n\nexport default __exports__","import { render } from \"./EditEmailSubscription.vue?vue&type=template&id=631a749c\"\nimport script from \"./EditEmailSubscription.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmailSubscription.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./LocalizationConfiguration.vue?vue&type=template&id=29cd6ebc\"\nimport script from \"./LocalizationConfiguration.vue?vue&type=script&lang=js\"\nexport * from \"./LocalizationConfiguration.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {ref, computed} from 'vue';\nimport {OxdForm} from '@ohrm/oxd';\n\ntype useFormArgs = {\n refName?: string;\n};\n\nexport default function useForm({refName = 'formRef'}: useFormArgs = {}) {\n // https://v3.vuejs.org/guide/typescript-support.html#typing-template-refs\n const form = ref>();\n\n const submit = () => form.value?.onSubmit(new Event('submit'));\n const reset = () => form.value?.onReset();\n const validate = () => form.value?.validate();\n\n const invalid = computed(() => form.value?.isFromInvalid);\n const errorbag = computed(() => form.value?.errorbag);\n\n return {\n reset,\n submit,\n validate,\n [refName]: form,\n errorbag,\n invalid,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./InlineColorInput.vue?vue&type=template&id=9d33cb16&scoped=true\"\nimport script from \"./InlineColorInput.vue?vue&type=script&lang=js\"\nexport * from \"./InlineColorInput.vue?vue&type=script&lang=js\"\n\nimport \"./InlineColorInput.vue?vue&type=style&index=0&id=9d33cb16&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-9d33cb16\"]])\n\nexport default __exports__","import { render } from \"./CorporateBranding.vue?vue&type=template&id=f2980770&scoped=true\"\nimport script from \"./CorporateBranding.vue?vue&type=script&lang=js\"\nexport * from \"./CorporateBranding.vue?vue&type=script&lang=js\"\n\nimport \"./corporate-branding.scss?vue&type=style&index=0&id=f2980770&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f2980770\"]])\n\nexport default __exports__","\n\n\n\n","\n\n\n\n\n","\n\n\n\n","import { render } from \"./LanguagesDropdown.vue?vue&type=template&id=211672d1\"\nimport script from \"./LanguagesDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./LanguagesDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./AddLanguageModal.vue?vue&type=template&id=08ca613a&scoped=true\"\nimport script from \"./AddLanguageModal.vue?vue&type=script&lang=js\"\nexport * from \"./AddLanguageModal.vue?vue&type=script&lang=js\"\n\nimport \"../pages/languagePackage/language-package.scss?vue&type=style&index=0&id=08ca613a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-08ca613a\"]])\n\nexport default __exports__","import { render } from \"./LanguagePackage.vue?vue&type=template&id=745f4367&scoped=true\"\nimport script from \"./LanguagePackage.vue?vue&type=script&lang=js\"\nexport * from \"./LanguagePackage.vue?vue&type=script&lang=js\"\n\nimport \"./language-package.scss?vue&type=style&index=0&id=745f4367&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-745f4367\"]])\n\nexport default __exports__","\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./EditTranslationTable.vue?vue&type=template&id=5f0f9ef8&scoped=true\"\nimport script from \"./EditTranslationTable.vue?vue&type=script&lang=js\"\nexport * from \"./EditTranslationTable.vue?vue&type=script&lang=js\"\n\nimport \"./edit-translation-table.scss?vue&type=style&index=0&id=5f0f9ef8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5f0f9ef8\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./LanguageGroupListDropdown.vue?vue&type=template&id=65691278\"\nimport script from \"./LanguageGroupListDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./LanguageGroupListDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./languageTranslation.vue?vue&type=template&id=1ad53bff&scoped=true\"\nimport script from \"./languageTranslation.vue?vue&type=script&lang=js\"\nexport * from \"./languageTranslation.vue?vue&type=script&lang=js\"\n\nimport \"./languageTranslation.vue?vue&type=style&index=0&id=1ad53bff&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1ad53bff\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LdapSyncConnection.vue?vue&type=template&id=0aa30e8a&scoped=true\"\nimport script from \"./LdapSyncConnection.vue?vue&type=script&lang=js\"\nexport * from \"./LdapSyncConnection.vue?vue&type=script&lang=js\"\n\nimport \"./ldap-sync-connection.scss?vue&type=style&index=0&id=0aa30e8a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0aa30e8a\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LdapTestConnectionModal.vue?vue&type=template&id=7b76f5a0&scoped=true\"\nimport script from \"./LdapTestConnectionModal.vue?vue&type=script&lang=js\"\nexport * from \"./LdapTestConnectionModal.vue?vue&type=script&lang=js\"\n\nimport \"./LdapTestConnectionModal.vue?vue&type=style&index=0&id=7b76f5a0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7b76f5a0\"]])\n\nexport default __exports__","import { render } from \"./LdapConfiguration.vue?vue&type=template&id=89df999a&scoped=true\"\nimport script from \"./LdapConfiguration.vue?vue&type=script&lang=js\"\nexport * from \"./LdapConfiguration.vue?vue&type=script&lang=js\"\n\nimport \"./ldap-configuration.scss?vue&type=style&index=0&id=89df999a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-89df999a\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport JobTitle from './pages/jobTitle/JobTitle.vue';\nimport EditJobTitle from './pages/jobTitle/EditJobTitle.vue';\nimport SaveJobTitle from './pages/jobTitle/SaveJobTitle.vue';\nimport JobCategory from './pages/jobCategory/JobCategory.vue';\nimport EditJobCategory from './pages/jobCategory/EditJobCategory.vue';\nimport SaveJobCategory from './pages/jobCategory/SaveJobCategory.vue';\nimport SystemUser from './pages/systemUser/SystemUser.vue';\nimport SaveSystemUser from './pages/systemUser/SaveSystemUser.vue';\nimport EditSystemUser from './pages/systemUser/EditSystemUser.vue';\nimport OrgStructure from './pages/orgStructure/OrgStructure.vue';\nimport EditEmploymentStatus from './pages/employmentStatus/EditEmploymentStatus.vue';\nimport EmploymentStatus from './pages/employmentStatus/EmploymentStatus.vue';\nimport SaveEmploymentStatus from './pages/employmentStatus/SaveEmploymentStatus.vue';\nimport QualificationEducation from './pages/qualificationEducation/QualificationEducation.vue';\nimport EditQualificationEducation from './pages/qualificationEducation/EditQualificationEducation.vue';\nimport SaveQualificationEducation from './pages/qualificationEducation/SaveQualificationEducation.vue';\nimport QualificationSkill from './pages/qualificationSkill/QualificationSkill.vue';\nimport EditQualificationSkill from './pages/qualificationSkill/EditQualificationSkill.vue';\nimport SaveQualificationSkill from './pages/qualificationSkill/SaveQualificationSkill.vue';\nimport EditQualificationLicense from './pages/qualificationLicense/EditLicense.vue';\nimport SaveQualificationLicense from './pages/qualificationLicense/SaveLicense.vue';\nimport QualificationLicense from './pages/qualificationLicense/License.vue';\nimport EditQualificationLanguage from './pages/qualificationLanguage/EditQualificationLanguage.vue';\nimport SaveQualificationLanguage from './pages/qualificationLanguage/SaveQualificationLanguage.vue';\nimport QualificationLanguage from './pages/qualificationLanguage/QualificationLanguage.vue';\nimport QualificationMembership from './pages/qualificationMembership/QualificationMembership.vue';\nimport EditQualificationMembership from './pages/qualificationMembership/EditQualificationMembership.vue';\nimport SaveQualificationMembership from './pages/qualificationMembership/SaveQualificationMembership.vue';\nimport ViewOrganizationGeneralInformation from './pages/organizationGeneralInformation/ViewOrganizationGeneralInformation.vue';\nimport Nationality from './pages/nationality/Nationality.vue';\nimport EditNationality from './pages/nationality/EditNationality.vue';\nimport SaveNationality from './pages/nationality/SaveNationality.vue';\nimport ViewEmailConfiguration from './pages/emailConfiguration/ViewEmailConfiguration.vue';\nimport LocationList from './pages/location/LocationList.vue';\nimport SaveLocation from './pages/location/SaveLocation.vue';\nimport EditLocation from './pages/location/EditLocation.vue';\nimport PayGrade from './pages/payGrade/PayGrade.vue';\nimport AddPayGrade from './pages/payGrade/AddPayGrade.vue';\nimport EditPayGrade from './pages/payGrade/EditPayGrade.vue';\nimport EditModuleConfiguration from './pages/moduleConfiguration/EditModuleConfiguration.vue';\nimport WorkShift from './pages/workShift/WorkShift.vue';\nimport SaveWorkShift from './pages/workShift/SaveWorkShift.vue';\nimport EditWorkShift from './pages/workShift/EditWorkShift.vue';\nimport EmailSubscription from './pages/emailSubscription/EmailSubscription.vue';\nimport EditEmailSubscription from './pages/emailSubscription/EditEmailSubscription.vue';\nimport LocalizationConfiguration from './pages/localization/LocalizationConfiguration.vue';\nimport CorporateBranding from './pages/corporateBranding/CorporateBranding.vue';\nimport LanguagePackages from '@/orangehrmAdminPlugin/pages/languagePackage/LanguagePackage.vue';\nimport EditLanguagePackage from '@/orangehrmAdminPlugin/pages/languageTranslation/languageTranslation.vue';\nimport LdapConfiguration from './pages/ldap/LdapConfiguration.vue';\n\nexport default {\n 'job-title-list': JobTitle,\n 'job-title-edit': EditJobTitle,\n 'job-title-save': SaveJobTitle,\n 'job-category-list': JobCategory,\n 'job-category-edit': EditJobCategory,\n 'job-category-save': SaveJobCategory,\n 'qualification-education-list': QualificationEducation,\n 'qualification-education-edit': EditQualificationEducation,\n 'qualification-education-save': SaveQualificationEducation,\n 'system-user-list': SystemUser,\n 'system-user-edit': EditSystemUser,\n 'system-user-save': SaveSystemUser,\n 'organization-structure': OrgStructure,\n 'employment-status-list': EmploymentStatus,\n 'employment-status-save': SaveEmploymentStatus,\n 'employment-status-edit': EditEmploymentStatus,\n 'qualification-skill-list': QualificationSkill,\n 'qualification-skill-edit': EditQualificationSkill,\n 'qualification-skill-save': SaveQualificationSkill,\n 'license-list': QualificationLicense,\n 'license-save': SaveQualificationLicense,\n 'license-edit': EditQualificationLicense,\n 'module-configuration-edit': EditModuleConfiguration,\n 'qualification-language-list': QualificationLanguage,\n 'qualification-language-edit': EditQualificationLanguage,\n 'qualification-language-save': SaveQualificationLanguage,\n 'qualification-membership-list': QualificationMembership,\n 'qualification-membership-edit': EditQualificationMembership,\n 'qualification-membership-save': SaveQualificationMembership,\n 'organization-general-information-view': ViewOrganizationGeneralInformation,\n 'nationality-list': Nationality,\n 'nationality-edit': EditNationality,\n 'nationality-save': SaveNationality,\n 'location-list': LocationList,\n 'location-save': SaveLocation,\n 'location-edit': EditLocation,\n 'email-configuration-view': ViewEmailConfiguration,\n 'pay-grade-list': PayGrade,\n 'pay-grade-add': AddPayGrade,\n 'pay-grade-edit': EditPayGrade,\n 'work-shift-list': WorkShift,\n 'work-shift-save': SaveWorkShift,\n 'work-shift-edit': EditWorkShift,\n 'email-subscription-list': EmailSubscription,\n 'email-subscription-edit': EditEmailSubscription,\n 'localization-configuration': LocalizationConfiguration,\n 'corporate-branding': CorporateBranding,\n 'language-package-list': LanguagePackages,\n 'language-translation-edit': EditLanguagePackage,\n 'ldap-configuration': LdapConfiguration,\n};\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ProfileImageInput.vue?vue&type=template&id=b553055e&scoped=true\"\nimport script from \"./ProfileImageInput.vue?vue&type=script&lang=js\"\nexport * from \"./ProfileImageInput.vue?vue&type=script&lang=js\"\n\nimport \"./ProfileImageInput.vue?vue&type=style&index=0&id=b553055e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b553055e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./FullNameInput.vue?vue&type=template&id=16292a35&scoped=true\"\nimport script from \"./FullNameInput.vue?vue&type=script&lang=js\"\nexport * from \"./FullNameInput.vue?vue&type=script&lang=js\"\n\nimport \"./FullNameInput.vue?vue&type=style&index=0&id=16292a35&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-16292a35\"]])\n\nexport default __exports__","import { render } from \"./SaveEmployee.vue?vue&type=template&id=e2b6125c&scoped=true\"\nimport script from \"./SaveEmployee.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEmployee.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=e2b6125c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e2b6125c\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./JobtitleDropdown.vue?vue&type=template&id=bb5253c6\"\nimport script from \"./JobtitleDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./JobtitleDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SubunitDropdown.vue?vue&type=template&id=93872f3e\"\nimport script from \"./SubunitDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./SubunitDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmploymentStatusDropdown.vue?vue&type=template&id=76ce238f\"\nimport script from \"./EmploymentStatusDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./EmploymentStatusDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./IncludeEmployeeDropdown.vue?vue&type=template&id=2935a28b\"\nimport script from \"./IncludeEmployeeDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./IncludeEmployeeDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Employee.vue?vue&type=template&id=0065ac32&scoped=true\"\nimport script from \"./Employee.vue?vue&type=script&lang=js\"\nexport * from \"./Employee.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=0065ac32&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0065ac32\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./TabsNavigation.vue?vue&type=template&id=8cad1ea8&scoped=true\"\nimport script from \"./TabsNavigation.vue?vue&type=script&lang=js\"\nexport * from \"./TabsNavigation.vue?vue&type=script&lang=js\"\n\nimport \"./TabsNavigation.vue?vue&type=style&index=0&id=8cad1ea8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8cad1ea8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nconst BYTE = 1;\nconst KILO_BYTE = 1024;\nconst MEGA_BYTE = 1048576; // 1024 * 1024\nconst GIGA_BYTE = 1073741824; // 1024 * 1024 * 1024\n\n/**\n * @param {string|number} value\n * @param {number|null} digits\n * @param {boolean} withSuffix\n */\nexport const convertFilesizeToString = function (\n value: string | number,\n digits?: number,\n withSuffix = true,\n): string {\n let divisor = BYTE;\n let suffix = 'B';\n let filesize;\n if (typeof value === 'number') {\n filesize = value;\n } else {\n filesize = parseInt(value, 10);\n }\n\n if (filesize >= GIGA_BYTE) {\n divisor = GIGA_BYTE;\n suffix = 'GB';\n } else if (filesize >= MEGA_BYTE) {\n divisor = MEGA_BYTE;\n suffix = 'MB';\n } else if (filesize >= KILO_BYTE) {\n divisor = KILO_BYTE;\n suffix = 'kB';\n }\n\n return (\n (filesize / divisor).toFixed(digits) + (withSuffix ? ' ' + suffix : '')\n );\n};\n","\n\n\n\n\n","import { render } from \"./SaveAttachment.vue?vue&type=template&id=07f96d2c\"\nimport script from \"./SaveAttachment.vue?vue&type=script&lang=js\"\nexport * from \"./SaveAttachment.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditAttachment.vue?vue&type=template&id=3987bea2\"\nimport script from \"./EditAttachment.vue?vue&type=script&lang=js\"\nexport * from \"./EditAttachment.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ProfileActionHeader.vue?vue&type=template&id=3dab643a&scoped=true\"\nimport script from \"./ProfileActionHeader.vue?vue&type=script&lang=js\"\nexport * from \"./ProfileActionHeader.vue?vue&type=script&lang=js\"\n\nimport \"./ProfileActionHeader.vue?vue&type=style&index=0&id=3dab643a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3dab643a\"]])\n\nexport default __exports__","import { render } from \"./ProfileAttachments.vue?vue&type=template&id=50e42520&scoped=true\"\nimport script from \"./ProfileAttachments.vue?vue&type=script&lang=js\"\nexport * from \"./ProfileAttachments.vue?vue&type=script&lang=js\"\n\nimport \"./ProfileAttachments.vue?vue&type=style&index=0&id=50e42520&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-50e42520\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ProfileCustomFields.vue?vue&type=template&id=1d59911f\"\nimport script from \"./ProfileCustomFields.vue?vue&type=script&lang=js\"\nexport * from \"./ProfileCustomFields.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EditEmployeeLayout.vue?vue&type=template&id=0349f171&scoped=true\"\nimport script from \"./EditEmployeeLayout.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmployeeLayout.vue?vue&type=script&lang=js\"\n\nimport \"./EditEmployeeLayout.vue?vue&type=style&index=0&id=0349f171&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0349f171\"]])\n\nexport default __exports__","import { render } from \"./EmployeePersonalDetails.vue?vue&type=template&id=305f88aa&scoped=true\"\nimport script from \"./EmployeePersonalDetails.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeePersonalDetails.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=305f88aa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-305f88aa\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmployeeContactDetails.vue?vue&type=template&id=2662146f\"\nimport script from \"./EmployeeContactDetails.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeContactDetails.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveEmergencyContact.vue?vue&type=template&id=4e5a3f23\"\nimport script from \"./SaveEmergencyContact.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEmergencyContact.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditEmergencyContact.vue?vue&type=template&id=28fb89a4\"\nimport script from \"./EditEmergencyContact.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmergencyContact.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeEmergencyContacts.vue?vue&type=template&id=f2414b96&scoped=true\"\nimport script from \"./EmployeeEmergencyContacts.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeEmergencyContacts.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=f2414b96&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f2414b96\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveDependent.vue?vue&type=template&id=4c2c81c6\"\nimport script from \"./SaveDependent.vue?vue&type=script&lang=js\"\nexport * from \"./SaveDependent.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditDependent.vue?vue&type=template&id=fd8f5d00\"\nimport script from \"./EditDependent.vue?vue&type=script&lang=js\"\nexport * from \"./EditDependent.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeDependents.vue?vue&type=template&id=7dc785b8\"\nimport script from \"./EmployeeDependents.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeDependents.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeProfilePicture.vue?vue&type=template&id=c6fb612a&scoped=true\"\nimport script from \"./EmployeeProfilePicture.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeProfilePicture.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=c6fb612a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c6fb612a\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./SaveSalaryComponent.vue?vue&type=template&id=6c600350&scoped=true\"\nimport script from \"./SaveSalaryComponent.vue?vue&type=script&lang=js\"\nexport * from \"./SaveSalaryComponent.vue?vue&type=script&lang=js\"\n\nimport \"./SaveSalaryComponent.vue?vue&type=style&index=0&id=6c600350&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6c600350\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditSalaryComponent.vue?vue&type=template&id=e3ac8428&scoped=true\"\nimport script from \"./EditSalaryComponent.vue?vue&type=script&lang=js\"\nexport * from \"./EditSalaryComponent.vue?vue&type=script&lang=js\"\n\nimport \"./EditSalaryComponent.vue?vue&type=style&index=0&id=e3ac8428&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e3ac8428\"]])\n\nexport default __exports__","import { render } from \"./EmployeeSalary.vue?vue&type=template&id=9a961a76\"\nimport script from \"./EmployeeSalary.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeSalary.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./JobSpecDownload.vue?vue&type=template&id=6dc7b054&scoped=true\"\nimport script from \"./JobSpecDownload.vue?vue&type=script&lang=js\"\nexport * from \"./JobSpecDownload.vue?vue&type=script&lang=js\"\n\nimport \"./JobSpecDownload.vue?vue&type=style&index=0&id=6dc7b054&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6dc7b054\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./TerminateModal.vue?vue&type=template&id=47863d13\"\nimport script from \"./TerminateModal.vue?vue&type=script&lang=js\"\nexport * from \"./TerminateModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeJob.vue?vue&type=template&id=1dfb2fdc&scoped=true\"\nimport script from \"./EmployeeJob.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeJob.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=1dfb2fdc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1dfb2fdc\"]])\n\nexport default __exports__","\n\n\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./QualificationDropdown.vue?vue&type=template&id=4001a5e0\"\nimport script from \"./QualificationDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./QualificationDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./SaveSkill.vue?vue&type=template&id=692cb844\"\nimport script from \"./SaveSkill.vue?vue&type=script&lang=js\"\nexport * from \"./SaveSkill.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditSkill.vue?vue&type=template&id=3ea0354e\"\nimport script from \"./EditSkill.vue?vue&type=script&lang=js\"\nexport * from \"./EditSkill.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeSkills.vue?vue&type=template&id=f00be420\"\nimport script from \"./EmployeeSkills.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeSkills.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveEducation.vue?vue&type=template&id=675dfe2e\"\nimport script from \"./SaveEducation.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditEducation.vue?vue&type=template&id=c2a6bdf4\"\nimport script from \"./EditEducation.vue?vue&type=script&lang=js\"\nexport * from \"./EditEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeEducation.vue?vue&type=template&id=1d486326\"\nimport script from \"./EmployeeEducation.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeEducation.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveLanguage.vue?vue&type=template&id=260f8f3c\"\nimport script from \"./SaveLanguage.vue?vue&type=script&lang=js\"\nexport * from \"./SaveLanguage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditLanguage.vue?vue&type=template&id=87b4acae\"\nimport script from \"./EditLanguage.vue?vue&type=script&lang=js\"\nexport * from \"./EditLanguage.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeLanguages.vue?vue&type=template&id=1dc35352\"\nimport script from \"./EmployeeLanguages.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeLanguages.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveWorkExperience.vue?vue&type=template&id=5417da2a\"\nimport script from \"./SaveWorkExperience.vue?vue&type=script&lang=js\"\nexport * from \"./SaveWorkExperience.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditWorkExperience.vue?vue&type=template&id=9d78c74c\"\nimport script from \"./EditWorkExperience.vue?vue&type=script&lang=js\"\nexport * from \"./EditWorkExperience.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeWorkExperience.vue?vue&type=template&id=6bc8cb45\"\nimport script from \"./EmployeeWorkExperience.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeWorkExperience.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","/*\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nexport const yearRange = function (\n range = 100,\n fromYear = new Date().getFullYear(),\n) {\n const numberOfYears = new Array(range);\n for (let i = 0; i < numberOfYears.length; i++) {\n numberOfYears[i] = fromYear - Math.floor(range / 2) + i;\n }\n return numberOfYears;\n};\n","import { render } from \"./SaveLicense.vue?vue&type=template&id=2daf338a\"\nimport script from \"./SaveLicense.vue?vue&type=script&lang=js\"\nexport * from \"./SaveLicense.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditLicense.vue?vue&type=template&id=7dd05208\"\nimport script from \"./EditLicense.vue?vue&type=script&lang=js\"\nexport * from \"./EditLicense.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeLicense.vue?vue&type=template&id=133311e0\"\nimport script from \"./EmployeeLicense.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeLicense.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeQualifications.vue?vue&type=template&id=43bb4be4\"\nimport script from \"./EmployeeQualifications.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeQualifications.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveImmigration.vue?vue&type=template&id=77a49cec\"\nimport script from \"./SaveImmigration.vue?vue&type=script&lang=js\"\nexport * from \"./SaveImmigration.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditImmigration.vue?vue&type=template&id=a5fb09aa\"\nimport script from \"./EditImmigration.vue?vue&type=script&lang=js\"\nexport * from \"./EditImmigration.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeImmigration.vue?vue&type=template&id=1f0dcd51&scoped=true\"\nimport script from \"./EmployeeImmigration.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeImmigration.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=1f0dcd51&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1f0dcd51\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ReportToEmployeeAutocomplete.vue?vue&type=template&id=81853cf6\"\nimport script from \"./ReportToEmployeeAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./ReportToEmployeeAutocomplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./SaveEmployeeReportTo.vue?vue&type=template&id=27f7283d\"\nimport script from \"./SaveEmployeeReportTo.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEmployeeReportTo.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditEmployeeReportTo.vue?vue&type=template&id=20de63ae\"\nimport script from \"./EditEmployeeReportTo.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmployeeReportTo.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeSupervisors.vue?vue&type=template&id=be278e1e\"\nimport script from \"./EmployeeSupervisors.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeSupervisors.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmployeeSubordinates.vue?vue&type=template&id=60cb882e\"\nimport script from \"./EmployeeSubordinates.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeSubordinates.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeReportTo.vue?vue&type=template&id=10b653a0\"\nimport script from \"./EmployeeReportTo.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeReportTo.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveMembership.vue?vue&type=template&id=17f4b9a2\"\nimport script from \"./SaveMembership.vue?vue&type=script&lang=js\"\nexport * from \"./SaveMembership.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditMembership.vue?vue&type=template&id=685d19d0\"\nimport script from \"./EditMembership.vue?vue&type=script&lang=js\"\nexport * from \"./EditMembership.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeMembership.vue?vue&type=template&id=3b144a72&scoped=true\"\nimport script from \"./EmployeeMembership.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeMembership.vue?vue&type=script&lang=js\"\n\nimport \"./employee.scss?vue&type=style&index=0&id=3b144a72&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3b144a72\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./TerminationReason.vue?vue&type=template&id=3fd8c704\"\nimport script from \"./TerminationReason.vue?vue&type=script&lang=js\"\nexport * from \"./TerminationReason.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditTerminationReason.vue?vue&type=template&id=53be0461\"\nimport script from \"./EditTerminationReason.vue?vue&type=script&lang=js\"\nexport * from \"./EditTerminationReason.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveTerminationReason.vue?vue&type=template&id=bfc4d996\"\nimport script from \"./SaveTerminationReason.vue?vue&type=script&lang=js\"\nexport * from \"./SaveTerminationReason.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ReportingMethod.vue?vue&type=template&id=3dfa57d5\"\nimport script from \"./ReportingMethod.vue?vue&type=script&lang=js\"\nexport * from \"./ReportingMethod.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditReportingMethod.vue?vue&type=template&id=415a1c17\"\nimport script from \"./EditReportingMethod.vue?vue&type=script&lang=js\"\nexport * from \"./EditReportingMethod.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveReportingMethod.vue?vue&type=template&id=2312b122\"\nimport script from \"./SaveReportingMethod.vue?vue&type=script&lang=js\"\nexport * from \"./SaveReportingMethod.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./CustomField.vue?vue&type=template&id=5c47f79e&scoped=true\"\nimport script from \"./CustomField.vue?vue&type=script&lang=js\"\nexport * from \"./CustomField.vue?vue&type=script&lang=js\"\n\nimport \"./customField.scss?vue&type=style&index=0&id=5c47f79e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5c47f79e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditCustomField.vue?vue&type=template&id=9f2c1100&scoped=true\"\nimport script from \"./EditCustomField.vue?vue&type=script&lang=js\"\nexport * from \"./EditCustomField.vue?vue&type=script&lang=js\"\n\nimport \"./customField.scss?vue&type=style&index=0&id=9f2c1100&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-9f2c1100\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SaveCustomField.vue?vue&type=template&id=2b25acf8&scoped=true\"\nimport script from \"./SaveCustomField.vue?vue&type=script&lang=js\"\nexport * from \"./SaveCustomField.vue?vue&type=script&lang=js\"\n\nimport \"./customField.scss?vue&type=style&index=0&id=2b25acf8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2b25acf8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./OptionalField.vue?vue&type=template&id=6f084a70&scoped=true\"\nimport script from \"./OptionalField.vue?vue&type=script&lang=js\"\nexport * from \"./OptionalField.vue?vue&type=script&lang=js\"\n\nimport \"./OptionalField.vue?vue&type=style&index=0&id=6f084a70&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6f084a70\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmployeeTaxExemption.vue?vue&type=template&id=cc65b2da\"\nimport script from \"./EmployeeTaxExemption.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTaxExemption.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./EmployeeDataImportModal.vue?vue&type=template&id=b8d15eb4&scoped=true\"\nimport script from \"./EmployeeDataImportModal.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeDataImportModal.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeDataImportModal.vue?vue&type=style&index=0&id=b8d15eb4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b8d15eb4\"]])\n\nexport default __exports__","import { render } from \"./EmployeeDataImport.vue?vue&type=template&id=ad061e70&scoped=true\"\nimport script from \"./EmployeeDataImport.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeDataImport.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeDataImport.vue?vue&type=style&index=0&id=ad061e70&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ad061e70\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ReportAutocomplete.vue?vue&type=template&id=15340d28\"\nimport script from \"./ReportAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./ReportAutocomplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./EmployeeReport.vue?vue&type=template&id=74b3e33f\"\nimport script from \"./EmployeeReport.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeReport.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ReportCriterionAutocomplete.vue?vue&type=template&id=36b7c266&scoped=true\"\nimport script from \"./ReportCriterionAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./ReportCriterionAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./ReportCriterionAutocomplete.vue?vue&type=style&index=0&id=36b7c266&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-36b7c266\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ReportCriterionSelect.vue?vue&type=template&id=20f3e4a9&scoped=true\"\nimport script from \"./ReportCriterionSelect.vue?vue&type=script&lang=js\"\nexport * from \"./ReportCriterionSelect.vue?vue&type=script&lang=js\"\n\nimport \"./ReportCriterionSelect.vue?vue&type=style&index=0&id=20f3e4a9&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-20f3e4a9\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ReportCriterionRange.vue?vue&type=template&id=d3b88ca8&scoped=true\"\nimport script from \"./ReportCriterionRange.vue?vue&type=script&lang=js\"\nexport * from \"./ReportCriterionRange.vue?vue&type=script&lang=js\"\n\nimport \"./ReportCriterionRange.vue?vue&type=style&index=0&id=d3b88ca8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d3b88ca8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ReportCriterionDateRange.vue?vue&type=template&id=2ea02c55&scoped=true\"\nimport script from \"./ReportCriterionDateRange.vue?vue&type=script&lang=js\"\nexport * from \"./ReportCriterionDateRange.vue?vue&type=script&lang=js\"\n\nimport \"./ReportCriterionDateRange.vue?vue&type=style&index=0&id=2ea02c55&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2ea02c55\"]])\n\nexport default __exports__","import { render } from \"./ReportCriterion.vue?vue&type=template&id=b010db64&scoped=true\"\nimport script from \"./ReportCriterion.vue?vue&type=script&lang=js\"\nexport * from \"./ReportCriterion.vue?vue&type=script&lang=js\"\n\nimport \"./ReportCriterion.vue?vue&type=style&index=0&id=b010db64&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b010db64\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ReportDisplayField.vue?vue&type=template&id=3c97086a&scoped=true\"\nimport script from \"./ReportDisplayField.vue?vue&type=script&lang=js\"\nexport * from \"./ReportDisplayField.vue?vue&type=script&lang=js\"\n\nimport \"./ReportDisplayField.vue?vue&type=style&index=0&id=3c97086a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3c97086a\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {reactive, toRefs, computed} from 'vue';\ninterface Option {\n id: number;\n label: string;\n}\ninterface IncludeOption extends Option {\n key: string;\n}\ninterface CriterionOption extends Option {\n key: string;\n}\ninterface DisplayFieldOption {\n field_group_id: number;\n fields: Option[];\n}\ninterface Criterion {\n operator: {id: string; label: string} | null;\n valueX: string | Option | null;\n valueY: string | Option | null;\n}\ninterface DisplayField {\n fields: Option[];\n includeHeader: boolean;\n}\ninterface Criteria {\n [id: number]: Criterion;\n}\ninterface DisplayFieldGroup {\n [id: number]: DisplayField;\n}\ninterface ReportModel {\n name: string;\n includeEmployees: IncludeOption;\n criterion: CriterionOption | null;\n criteriaSelected: CriterionOption[];\n criteriaFieldValues: Criteria;\n fieldGroup: Option | null;\n fieldGroupSelected: Option[];\n displayField: Option | null;\n displayFieldSelected: DisplayFieldGroup;\n}\ninterface ReportRequestBody {\n name: string;\n include: string;\n criteria: {\n [id: number]: {\n operator: string;\n x: string;\n y: string;\n };\n };\n fieldGroup: {\n [id: number]: {\n fields: number[];\n includeHeader: boolean;\n };\n };\n}\n\nconst reportModel: ReportModel = {\n name: '',\n includeEmployees: {\n id: 1,\n key: 'onlyCurrent',\n label: '仅当前人员',\n },\n criterion: null,\n criteriaSelected: [],\n criteriaFieldValues: {},\n fieldGroup: null,\n fieldGroupSelected: [],\n displayField: null,\n displayFieldSelected: {},\n};\n\nexport default function useEmployeeReport(\n selectionCriteria: CriterionOption[],\n displayFields: DisplayFieldOption[],\n displayFieldGroups: Option[],\n) {\n const state = reactive({report: {...reportModel}});\n\n const getAllDisplayFieldsByGroupId = (groupId: number) => {\n const fieldGroup = displayFields.find(\n (group) => group.field_group_id === groupId,\n );\n return fieldGroup ? fieldGroup.fields : [];\n };\n\n const getUnusedDisplayFieldsByGroupId = (groupId: number) => {\n const selectedFieldGroup = state.report.displayFieldSelected[groupId];\n const usedDisplayFields = selectedFieldGroup\n ? selectedFieldGroup.fields\n : [];\n return getAllDisplayFieldsByGroupId(groupId).filter(\n (field) => !usedDisplayFields.find((f) => f.id === field.id),\n );\n };\n\n const addCriterion = () => {\n const criterion = state.report.criterion;\n if (criterion) {\n state.report.criteriaSelected.push(criterion);\n state.report.criteriaFieldValues[criterion.id] = {\n valueX: null,\n valueY: null,\n operator: null,\n };\n state.report.criterion = null;\n }\n };\n\n const removeCriterion = (index: number) => {\n const criterion = state.report.criteriaSelected.splice(index, 1);\n delete state.report.criteriaFieldValues[criterion[0].id];\n };\n\n const addDisplayField = () => {\n const fieldGroup = state.report.fieldGroup;\n const displayField = state.report.displayField;\n if (fieldGroup) {\n const groupIndex = state.report.fieldGroupSelected.findIndex(\n (group) => group.id === fieldGroup.id,\n );\n if (groupIndex === -1) {\n state.report.fieldGroupSelected.push(fieldGroup);\n state.report.displayFieldSelected[fieldGroup.id] = {\n fields: [],\n includeHeader: false,\n };\n }\n if (displayField) {\n state.report.displayFieldSelected[fieldGroup.id].fields.push(\n displayField,\n );\n state.report.displayField = null;\n } else {\n getUnusedDisplayFieldsByGroupId(fieldGroup.id).forEach(\n (displayField) => {\n state.report.displayFieldSelected[fieldGroup.id].fields.push(\n displayField,\n );\n },\n );\n }\n // unselect fieldGroup if all fields are used\n if (getUnusedDisplayFieldsByGroupId(fieldGroup.id).length === 0) {\n state.report.fieldGroup = null;\n }\n }\n };\n\n const removeDisplayFieldGroup = (index: number) => {\n const fieldGroup = state.report.fieldGroupSelected[index];\n state.report.fieldGroupSelected.splice(index, 1);\n delete state.report.displayFieldSelected[fieldGroup.id];\n };\n\n const removeDisplayField = (item: Option, index: number) => {\n const fieldGroup = state.report.fieldGroupSelected[index];\n const fields = state.report.displayFieldSelected[fieldGroup.id].fields;\n state.report.displayFieldSelected[fieldGroup.id].fields = fields.filter(\n (field) => field.id !== item.id,\n );\n // remove field group if no fields\n if (state.report.displayFieldSelected[fieldGroup.id].fields.length === 0) {\n removeDisplayFieldGroup(index);\n }\n };\n\n const serializeBody = (reportModel: ReportModel) => {\n const payload: ReportRequestBody = {\n name: reportModel.name,\n include: reportModel.includeEmployees.key,\n criteria: {},\n fieldGroup: {},\n };\n reportModel.fieldGroupSelected.forEach((group) => {\n const fields = reportModel.displayFieldSelected[group.id].fields;\n const includeHeader =\n reportModel.displayFieldSelected[group.id].includeHeader;\n payload.fieldGroup[group.id] = {\n fields: fields.map((field) => field.id),\n includeHeader,\n };\n });\n reportModel.criteriaSelected.forEach((criterion) => {\n const criteriaField = reportModel.criteriaFieldValues[criterion.id];\n payload.criteria[criterion.id] = {\n operator: criteriaField.operator ? criteriaField.operator.id : '',\n x:\n typeof criteriaField.valueX === 'object'\n ? String(criteriaField.valueX?.id)\n : criteriaField.valueX,\n y:\n typeof criteriaField.valueY === 'object'\n ? String(criteriaField.valueY?.id)\n : criteriaField.valueY,\n };\n });\n\n return payload;\n };\n\n const availableCriteria = computed(() => {\n return selectionCriteria.filter(\n (criterion) =>\n !state.report.criteriaSelected.find((c) => c.id === criterion.id),\n );\n });\n\n const availableFieldGroups = computed(() => {\n return displayFieldGroups.filter(\n (group) => getUnusedDisplayFieldsByGroupId(group.id).length !== 0,\n );\n });\n\n const availableDisplyFields = computed(() => {\n const fieldGroupId = state.report.fieldGroup?.id;\n return fieldGroupId ? getUnusedDisplayFieldsByGroupId(fieldGroupId) : [];\n });\n\n return {\n ...toRefs(state),\n addCriterion,\n serializeBody,\n addDisplayField,\n removeCriterion,\n removeDisplayField,\n removeDisplayFieldGroup,\n availableCriteria,\n availableFieldGroups,\n availableDisplyFields,\n };\n}\n","import { render } from \"./SaveEmployeeReport.vue?vue&type=template&id=f66184da&scoped=true\"\nimport script from \"./SaveEmployeeReport.vue?vue&type=script&lang=js\"\nexport * from \"./SaveEmployeeReport.vue?vue&type=script&lang=js\"\n\nimport \"./employee-report.scss?vue&type=style&index=0&id=f66184da&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f66184da\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ReportsTable.vue?vue&type=template&id=32e798aa&scoped=true\"\nimport script from \"./ReportsTable.vue?vue&type=script&lang=js\"\nexport * from \"./ReportsTable.vue?vue&type=script&lang=js\"\n\nimport \"./reports-table.scss?vue&type=style&index=0&id=32e798aa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-32e798aa\"]])\n\nexport default __exports__","import { render } from \"./ViewEmployeeReport.vue?vue&type=template&id=7efa01e3\"\nimport script from \"./ViewEmployeeReport.vue?vue&type=script&lang=js\"\nexport * from \"./ViewEmployeeReport.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditEmployeeReport.vue?vue&type=template&id=0b4140eb&scoped=true\"\nimport script from \"./EditEmployeeReport.vue?vue&type=script&lang=js\"\nexport * from \"./EditEmployeeReport.vue?vue&type=script&lang=js\"\n\nimport \"./employee-report.scss?vue&type=style&index=0&id=0b4140eb&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0b4140eb\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./UpdatePassword.vue?vue&type=template&id=1cb899de&scoped=true\"\nimport script from \"./UpdatePassword.vue?vue&type=script&lang=js\"\nexport * from \"./UpdatePassword.vue?vue&type=script&lang=js\"\n\nimport \"./update-password.scss?vue&type=style&index=0&id=1cb899de&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1cb899de\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport SaveEmployee from './pages/employee/SaveEmployee.vue';\nimport Employee from './pages/employee/Employee.vue';\nimport EmployeePersonalDetails from './pages/employee/EmployeePersonalDetails.vue';\nimport EmployeeContactDetails from './pages/employee/EmployeeContactDetails.vue';\nimport EmployeeEmergencyContacts from './pages/employee/EmployeeEmergencyContacts.vue';\nimport EmployeeDependents from './pages/employee/EmployeeDependents.vue';\nimport EmployeeProfilePicture from './pages/employee/EmployeeProfilePicture.vue';\nimport EmployeeSalary from './pages/employee/EmployeeSalary.vue';\nimport EmployeeJob from './pages/employee/EmployeeJob.vue';\nimport EmployeeQualifications from './pages/employee/EmployeeQualifications.vue';\nimport EmployeeImmigration from './pages/employee/EmployeeImmigration.vue';\nimport EmployeeReportTo from './pages/employee/EmployeeReportTo.vue';\nimport EmployeeMembership from './pages/employee/EmployeeMembership.vue';\nimport TerminationReason from './pages/terminationReason/TerminationReason.vue';\nimport EditTerminationReason from './pages/terminationReason/EditTerminationReason.vue';\nimport SaveTerminationReason from './pages/terminationReason/SaveTerminationReason.vue';\nimport ReportingMethod from './pages/reportingMethod/ReportingMethod.vue';\nimport EditReportingMethod from './pages/reportingMethod/EditReportingMethod.vue';\nimport SaveReportingMethod from './pages/reportingMethod/SaveReportingMethod.vue';\nimport CustomField from './pages/customField/CustomField.vue';\nimport EditCustomField from './pages/customField/EditCustomField.vue';\nimport SaveCustomField from './pages/customField/SaveCustomField.vue';\nimport OptionalField from './pages/optionalField/OptionalField.vue';\nimport EmployeeTaxExemption from './pages/employee/EmployeeTaxExemption.vue';\nimport EmployeeDataImport from './pages/dataImport/EmployeeDataImport.vue';\nimport EmployeeReport from './pages/reports/EmployeeReport.vue';\nimport SaveEmployeeReport from './pages/reports/SaveEmployeeReport.vue';\nimport ViewEmployeeReport from './pages/reports/ViewEmployeeReport.vue';\nimport EditEmployeeReport from './pages/reports/EditEmployeeReport.vue';\nimport UpdatePassword from './pages/updatePassword/UpdatePassword.vue';\n\nexport default {\n 'employee-save': SaveEmployee,\n 'employee-list': Employee,\n 'employee-personal-details': EmployeePersonalDetails,\n 'employee-contact-details': EmployeeContactDetails,\n 'employee-emergency-contacts': EmployeeEmergencyContacts,\n 'employee-dependents': EmployeeDependents,\n 'employee-profile-picture': EmployeeProfilePicture,\n 'employee-salary': EmployeeSalary,\n 'employee-job': EmployeeJob,\n 'employee-qualifications': EmployeeQualifications,\n 'employee-immigration': EmployeeImmigration,\n 'employee-membership': EmployeeMembership,\n 'termination-reason-list': TerminationReason,\n 'termination-reason-edit': EditTerminationReason,\n 'termination-reason-save': SaveTerminationReason,\n 'reporting-method-list': ReportingMethod,\n 'reporting-method-edit': EditReportingMethod,\n 'reporting-method-save': SaveReportingMethod,\n 'employee-report-to': EmployeeReportTo,\n 'custom-field-list': CustomField,\n 'custom-field-edit': EditCustomField,\n 'custom-field-save': SaveCustomField,\n 'optional-field-list': OptionalField,\n 'employee-tax-exemption': EmployeeTaxExemption,\n 'employee-data-import': EmployeeDataImport,\n 'employee-report-list': EmployeeReport,\n 'employee-report-save': SaveEmployeeReport,\n 'employee-report-view': ViewEmployeeReport,\n 'employee-report-edit': EditEmployeeReport,\n 'update-password': UpdatePassword,\n};\n","\n\n\n\n\n\n\n","import { render } from \"./ViewSupport.vue?vue&type=template&id=510cfbbc&scoped=true\"\nimport script from \"./ViewSupport.vue?vue&type=script&lang=js\"\nexport * from \"./ViewSupport.vue?vue&type=script&lang=js\"\n\nimport \"./ViewSupport.vue?vue&type=style&index=0&id=510cfbbc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-510cfbbc\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport ViewSupport from './pages/ViewSupport.vue';\n\nexport default {\n 'view-support': ViewSupport,\n};\n","\n\n\n\n\n","import { render } from \"./TimeSheetPeriod.vue?vue&type=template&id=62cc513e\"\nimport script from \"./TimeSheetPeriod.vue?vue&type=script&lang=js\"\nexport * from \"./TimeSheetPeriod.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Customer.vue?vue&type=template&id=1a528041\"\nimport script from \"./Customer.vue?vue&type=script&lang=js\"\nexport * from \"./Customer.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveCustomer.vue?vue&type=template&id=7b3e5769\"\nimport script from \"./SaveCustomer.vue?vue&type=script&lang=js\"\nexport * from \"./SaveCustomer.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditCustomer.vue?vue&type=template&id=db2fc3ba\"\nimport script from \"./EditCustomer.vue?vue&type=script&lang=js\"\nexport * from \"./EditCustomer.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ActivityDropdown.vue?vue&type=template&id=51ddd696&scoped=true\"\nimport script from \"./ActivityDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./ActivityDropdown.vue?vue&type=script&lang=js\"\n\nimport \"./ActivityDropdown.vue?vue&type=style&index=0&id=51ddd696&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-51ddd696\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ProjectAutocomplete.vue?vue&type=template&id=35991936&scoped=true\"\nimport script from \"./ProjectAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./ProjectAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./ProjectAutocomplete.vue?vue&type=style&index=0&id=35991936&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-35991936\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./TimesheetCommentModal.vue?vue&type=template&id=4867abf0&scoped=true\"\nimport script from \"./TimesheetCommentModal.vue?vue&type=script&lang=js\"\nexport * from \"./TimesheetCommentModal.vue?vue&type=script&lang=js\"\n\nimport \"./TimesheetCommentModal.vue?vue&type=style&index=0&id=4867abf0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4867abf0\"]])\n\nexport default __exports__","import { render } from \"./Timesheet.vue?vue&type=template&id=425cbc6c&scoped=true\"\nimport script from \"./Timesheet.vue?vue&type=script&lang=js\"\nexport * from \"./Timesheet.vue?vue&type=script&lang=js\"\n\nimport \"./timesheet.scss?vue&type=style&index=0&id=425cbc6c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-425cbc6c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {reactive} from 'vue';\nimport {AxiosResponse} from 'axios';\nimport {APIService} from '@/core/util/services/api.service';\n\ninterface State {\n isLoading: boolean;\n employee: Employee | null;\n timesheetId: number | null;\n timesheetRecords: Record[];\n timesheet: Timesheet | null;\n timesheetStatus: string | null;\n timesheetColumns: Columns | null;\n timesheetSubtotal: string | null;\n timesheetAllowedActions: AllowedAction[];\n date: string | null;\n}\n\nexport interface Project {\n id: number;\n name: string;\n deleted: boolean;\n}\n\nexport interface Customer {\n id: number;\n name: string;\n deleted: boolean;\n}\n\nexport interface Activity {\n id: number;\n name: string;\n deleted: boolean;\n}\n\nexport interface Total {\n hours: number;\n minutes: number;\n label: string;\n}\n\nexport interface Entry {\n id: number;\n date: string;\n comment?: string;\n duration: string;\n}\n\nexport interface UpdatedEntry {\n projectId: number;\n activityId: number;\n dates: Dates;\n}\n\nexport interface DeletedEntry {\n projectId: number;\n activityId: number;\n}\n\nexport interface Dates {\n [date: string]: Entry;\n}\n\nexport interface Status {\n id: string;\n name: string;\n}\n\nexport interface Timesheet {\n id: number;\n status: Status;\n startDate: string;\n endDate: string;\n}\n\nexport interface Sum {\n hours: number;\n minutes: number;\n label: string;\n}\n\nexport interface Columns {\n [date: string]: {\n total: Total;\n };\n}\n\nexport interface Employee {\n empNumber: number;\n lastName: string;\n firstName: string;\n middleName: string;\n employeeId: string;\n terminationId?: number;\n}\n\nexport interface AllowedAction {\n action: string;\n name: string;\n}\n\nexport interface Meta {\n timesheet: Timesheet;\n sum: Sum;\n columns: Columns;\n dates: string[];\n employee: Employee;\n allowedActions: AllowedAction[];\n}\n\nexport interface Record {\n project: Project;\n customer: Customer;\n activity: Activity;\n total: Total;\n dates: Dates;\n}\n\nexport interface TimesheetResponse {\n data: Timesheet;\n meta: string[];\n}\n\nexport interface TimesheetUpdateResponse {\n data: Timesheet;\n}\n\nexport interface EntriesResponse {\n data: Record[];\n meta: Meta;\n}\n\nexport interface EntriesUpdateRequest {\n entries: UpdatedEntry[];\n deletedEntries: DeletedEntry[];\n}\n\nexport default function useTimesheetAPIs(http: APIService) {\n const state = reactive({\n isLoading: false,\n employee: null,\n timesheet: null,\n timesheetId: null,\n timesheetRecords: [],\n timesheetStatus: null,\n timesheetColumns: null,\n timesheetSubtotal: null,\n timesheetAllowedActions: [],\n date: null,\n });\n\n const fetchTimesheet = (\n date: string | null,\n empNumber?: number,\n ): Promise> => {\n return http.request({\n method: 'GET',\n url: '/api/v2/time/timesheets/default',\n params: {\n date,\n empNumber,\n },\n });\n };\n\n const updateTimesheet = (\n timesheetId: number,\n action: string,\n comment?: string | null,\n empNumber?: number,\n ): Promise> => {\n return http.request({\n method: 'PUT',\n url: empNumber\n ? `/api/v2/time/employees/${empNumber}/timesheets/${timesheetId}`\n : `/api/v2/time/timesheets/${timesheetId}`,\n data: {\n action,\n comment: comment ? comment : undefined,\n },\n });\n };\n\n const fetchTimesheetEntries = (\n timesheetId: number,\n isEmployeeTimesheet?: boolean,\n ): Promise<{\n data: Record[];\n meta: Meta;\n timesheet: Timesheet;\n allowedActions: AllowedAction[];\n }> => {\n return new Promise((resolve) => {\n http\n .request({\n method: 'GET',\n url: isEmployeeTimesheet\n ? `/api/v2/time/employees/timesheets/${timesheetId}/entries`\n : `/api/v2/time/timesheets/${timesheetId}/entries`,\n })\n .then((response: AxiosResponse) => {\n const {data, meta} = response.data;\n const {timesheet, allowedActions} = meta;\n resolve({data, meta, timesheet, allowedActions});\n });\n });\n };\n\n const updateTimesheetEntries = (\n timesheetId: number,\n payload: EntriesUpdateRequest,\n isEmployeeTimesheet?: boolean,\n ): Promise> => {\n return http.request({\n method: 'PUT',\n url: isEmployeeTimesheet\n ? `/api/v2/time/employees/timesheets/${timesheetId}/entries`\n : `/api/v2/time/timesheets/${timesheetId}/entries`,\n data: {\n ...payload,\n },\n });\n };\n\n return {\n state,\n fetchTimesheet,\n updateTimesheet,\n fetchTimesheetEntries,\n updateTimesheetEntries,\n };\n}\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {computed, watchEffect} from 'vue';\nimport useTimesheetAPIs from './useTimesheetAPIs';\nimport useToast from '@/core/util/composable/useToast';\nimport {navigate} from '@ohrm/core/util/helper/navigation';\nimport {APIService} from '@/core/util/services/api.service';\nimport {freshDate, formatDate, parseDate} from '@ohrm/core/util/helper/datefns';\nimport usei18n from '@/core/util/composable/usei18n';\nimport useDateFormat from '@/core/util/composable/useDateFormat';\nimport useLocale from '@/core/util/composable/useLocale';\n\nexport default function useTimesheet(\n http: APIService,\n date: string | null,\n empNumber?: number,\n) {\n const {state, fetchTimesheet, updateTimesheet, fetchTimesheetEntries} =\n useTimesheetAPIs(http);\n const {noRecordsFound, success} = useToast();\n const {$t} = usei18n();\n const {jsDateFormat} = useDateFormat();\n const {locale} = useLocale();\n state.date = date ? date : formatDate(freshDate(), 'yyyy-MM-dd');\n\n const loadTimesheet = (date: string | null): void => {\n if (date && parseDate(date) === null) return;\n state.isLoading = true;\n fetchTimesheet(date, empNumber)\n .then((response) => {\n const {data} = response.data;\n state.timesheet = data;\n state.timesheetId = data.id;\n return data.id\n ? fetchTimesheetEntries(data.id, empNumber !== undefined)\n : null;\n })\n .then((response) => {\n if (response !== null) {\n const {data, meta, timesheet, allowedActions} = response;\n state.timesheetRecords = data;\n state.employee = meta.employee;\n state.timesheetColumns = meta.columns;\n state.timesheetSubtotal = meta.sum.label;\n state.timesheetStatus = timesheet.status.name;\n state.timesheetAllowedActions = allowedActions;\n data.length === 0 && noRecordsFound();\n } else {\n state.employee = null;\n state.timesheetRecords = [];\n state.timesheetColumns = null;\n state.timesheetStatus = null;\n state.timesheetSubtotal = null;\n state.timesheetAllowedActions = [];\n }\n })\n .finally(() => {\n state.isLoading = false;\n });\n };\n\n watchEffect(async () => state.date && loadTimesheet(state.date));\n\n const onClickPrevious = (): void => {\n const currDate = parseDate(String(state.date), 'yyyy-MM-dd') ?? freshDate();\n currDate.setDate(currDate.getDate() - 7);\n state.date = formatDate(currDate, 'yyyy-MM-dd');\n };\n\n const onClickNext = (): void => {\n const currDate = parseDate(String(state.date), 'yyyy-MM-dd') ?? freshDate();\n currDate.setDate(currDate.getDate() + 7);\n state.date = formatDate(currDate, 'yyyy-MM-dd');\n };\n\n const onClickEdit = (): void => {\n state.timesheetId &&\n navigate('/time/editTimesheet/{id}', {id: state.timesheetId});\n };\n\n const onClickSubmit = (): void => {\n if (state.timesheetId) {\n state.isLoading = true;\n updateTimesheet(state.timesheetId, 'SUBMIT', null, empNumber).then(() => {\n success({\n title: $t('general.success'),\n message: $t('time.timesheet_submitted'),\n });\n state.timesheetId = null;\n loadTimesheet(state.date);\n });\n }\n };\n\n const onClickReset = (): void => {\n if (state.timesheetId) {\n state.isLoading = true;\n updateTimesheet(state.timesheetId, 'RESET', null, empNumber).then(() => {\n success({\n title: $t('general.success'),\n message: $t('time.timesheet_reset'),\n });\n state.timesheetId = null;\n loadTimesheet(state.date);\n });\n }\n };\n\n const onClickApprove = (comment?: string): void => {\n if (state.timesheetId) {\n state.isLoading = true;\n updateTimesheet(state.timesheetId, 'APPROVE', comment, empNumber).then(\n () => {\n success({\n title: $t('general.success'),\n message: $t('time.timesheet_approved'),\n });\n state.timesheetId = null;\n loadTimesheet(state.date);\n },\n );\n }\n };\n\n const onClickReject = (comment?: string): void => {\n if (state.timesheetId) {\n state.isLoading = true;\n updateTimesheet(state.timesheetId, 'REJECT', comment, empNumber).then(\n () => {\n success({\n title: $t('general.success'),\n message: $t('time.timesheet_rejected'),\n });\n state.timesheetId = null;\n loadTimesheet(state.date);\n },\n );\n }\n };\n\n const onClickCreateTimesheet = (): void => {\n state.isLoading = true;\n http\n .request({\n method: 'POST',\n url: empNumber\n ? `/api/v2/time/employees/${empNumber}/timesheets`\n : '/api/v2/time/timesheets',\n data: {date: state.date},\n })\n .then(() => {\n success({\n title: $t('general.success'),\n message: $t('time.timesheet_successfully_created'),\n });\n loadTimesheet(state.date);\n });\n };\n\n const showCreateTimesheet = computed(() => {\n return !state.isLoading && !state.timesheetId;\n });\n\n const canSubmitTimesheet = computed(() => {\n return state.timesheetAllowedActions.find((i) => i.action === 'SUBMIT');\n });\n\n const canApproveTimesheet = computed(() => {\n return state.timesheetAllowedActions.find((i) => i.action === 'APPROVE');\n });\n\n const canRejectTimesheet = computed(() => {\n return state.timesheetAllowedActions.find((i) => i.action === 'REJECT');\n });\n\n const canResetTimesheet = computed(() => {\n return state.timesheetAllowedActions.find((i) => i.action === 'RESET');\n });\n\n const canEditTimesheet = computed(() => {\n return state.timesheetAllowedActions.find((i) => i.action === 'MODIFY');\n });\n\n const canCreateTimesheet = computed(() => {\n const currDate = parseDate(String(state.date), 'yyyy-MM-dd') ?? freshDate();\n return currDate > freshDate();\n });\n\n const timesheetPeriod = computed(() => {\n const startDate = parseDate(state.timesheet?.startDate || '');\n const endDate = parseDate(state.timesheet?.endDate || '');\n if (!startDate || !endDate) return null;\n\n return `${formatDate(startDate, jsDateFormat, {locale})} ${$t(\n 'general.to',\n ).toLowerCase()} ${formatDate(endDate, jsDateFormat, {locale})}`;\n });\n\n return {\n state,\n onClickEdit,\n onClickNext,\n onClickReset,\n onClickSubmit,\n onClickReject,\n onClickApprove,\n onClickPrevious,\n timesheetPeriod,\n canEditTimesheet,\n canResetTimesheet,\n canSubmitTimesheet,\n canRejectTimesheet,\n canCreateTimesheet,\n canApproveTimesheet,\n showCreateTimesheet,\n onClickCreateTimesheet,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./TimesheetPeriod.vue?vue&type=template&id=e0a5176c&scoped=true\"\nimport script from \"./TimesheetPeriod.vue?vue&type=script&lang=js\"\nexport * from \"./TimesheetPeriod.vue?vue&type=script&lang=js\"\n\nimport \"./timesheet-period.scss?vue&type=style&index=0&id=e0a5176c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e0a5176c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./TimesheetActions.vue?vue&type=template&id=0890f664\"\nimport script from \"./TimesheetActions.vue?vue&type=script&lang=js\"\nexport * from \"./TimesheetActions.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./MyTimesheet.vue?vue&type=template&id=be87e348\"\nimport script from \"./MyTimesheet.vue?vue&type=script&lang=js\"\nexport * from \"./MyTimesheet.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditTimeSheet.vue?vue&type=template&id=54f42850&scoped=true\"\nimport script from \"./EditTimeSheet.vue?vue&type=script&lang=js\"\nexport * from \"./EditTimeSheet.vue?vue&type=script&lang=js\"\n\nimport \"./EditTimeSheet.vue?vue&type=style&index=0&id=54f42850&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-54f42850\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./CustomerAutocomplete.vue?vue&type=template&id=6a3a9026\"\nimport script from \"./CustomerAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./CustomerAutocomplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ProjectAdminAutocomplete.vue?vue&type=template&id=78aa890e&scoped=true\"\nimport script from \"./ProjectAdminAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./ProjectAdminAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./ProjectAdminAutocomplete.vue?vue&type=style&index=0&id=78aa890e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-78aa890e\"]])\n\nexport default __exports__","import { render } from \"./Project.vue?vue&type=template&id=a60de55a\"\nimport script from \"./Project.vue?vue&type=script&lang=js\"\nexport * from \"./Project.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n","import { render } from \"./AddCustomerModal.vue?vue&type=template&id=d6a0e010\"\nimport script from \"./AddCustomerModal.vue?vue&type=script&lang=js\"\nexport * from \"./AddCustomerModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ProjectSave.vue?vue&type=template&id=006f1a34\"\nimport script from \"./ProjectSave.vue?vue&type=script&lang=js\"\nexport * from \"./ProjectSave.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./CopyActivityModal.vue?vue&type=template&id=789130a9&scoped=true\"\nimport script from \"./CopyActivityModal.vue?vue&type=script&lang=js\"\nexport * from \"./CopyActivityModal.vue?vue&type=script&lang=js\"\n\nimport \"./CopyActivityModal.vue?vue&type=style&index=0&id=789130a9&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-789130a9\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SaveActivityModal.vue?vue&type=template&id=2f4a8ad2\"\nimport script from \"./SaveActivityModal.vue?vue&type=script&lang=js\"\nexport * from \"./SaveActivityModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditActivityModal.vue?vue&type=template&id=c52af938\"\nimport script from \"./EditActivityModal.vue?vue&type=script&lang=js\"\nexport * from \"./EditActivityModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Activities.vue?vue&type=template&id=78f3e421&scoped=true\"\nimport script from \"./Activities.vue?vue&type=script&lang=js\"\nexport * from \"./Activities.vue?vue&type=script&lang=js\"\n\nimport \"./Activities.vue?vue&type=style&index=0&id=78f3e421&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-78f3e421\"]])\n\nexport default __exports__","import { render } from \"./ProjectEdit.vue?vue&type=template&id=fd98c45a\"\nimport script from \"./ProjectEdit.vue?vue&type=script&lang=js\"\nexport * from \"./ProjectEdit.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./TimesheetPendingActions.vue?vue&type=template&id=1a8cbf98&scoped=true\"\nimport script from \"./TimesheetPendingActions.vue?vue&type=script&lang=js\"\nexport * from \"./TimesheetPendingActions.vue?vue&type=script&lang=js\"\n\nimport \"./TimesheetPendingActions.vue?vue&type=style&index=0&id=1a8cbf98&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1a8cbf98\"]])\n\nexport default __exports__","import { render } from \"./EmployeeTimesheet.vue?vue&type=template&id=a4258700\"\nimport script from \"./EmployeeTimesheet.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTimesheet.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveTimesheetAction.vue?vue&type=template&id=208187c2\"\nimport script from \"./SaveTimesheetAction.vue?vue&type=script&lang=js\"\nexport * from \"./SaveTimesheetAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ViewEmployeeTimesheet.vue?vue&type=template&id=19981333\"\nimport script from \"./ViewEmployeeTimesheet.vue?vue&type=script&lang=js\"\nexport * from \"./ViewEmployeeTimesheet.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeTimeReport.vue?vue&type=template&id=17d6a43f&scoped=true\"\nimport script from \"./EmployeeTimeReport.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTimeReport.vue?vue&type=script&lang=js\"\n\nimport \"./time-reports.scss?vue&type=style&index=0&id=17d6a43f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-17d6a43f\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ProjectActivityReport.vue?vue&type=template&id=e0465754&scoped=true\"\nimport script from \"./ProjectActivityReport.vue?vue&type=script&lang=js\"\nexport * from \"./ProjectActivityReport.vue?vue&type=script&lang=js\"\n\nimport \"./time-reports.scss?vue&type=style&index=0&id=e0465754&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e0465754\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ActivityDetailsReport.vue?vue&type=template&id=b9b0d77c&scoped=true\"\nimport script from \"./ActivityDetailsReport.vue?vue&type=script&lang=js\"\nexport * from \"./ActivityDetailsReport.vue?vue&type=script&lang=js\"\n\nimport \"./time-reports.scss?vue&type=style&index=0&id=b9b0d77c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b9b0d77c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport TimeSheetPeriodConfig from './pages/configure/TimeSheetPeriod.vue';\nimport Customer from './pages/customer/Customer.vue';\nimport SaveCustomer from './pages/customer/SaveCustomer.vue';\nimport EditCustomer from './pages/customer/EditCustomer.vue';\nimport MyTimesheet from './pages/timesheets/MyTimesheet.vue';\nimport EditTimeSheet from './pages/timesheets/EditTimeSheet.vue';\nimport Project from './pages/project/Project.vue';\nimport ProjectSave from './pages/project/ProjectSave.vue';\nimport ProjectEdit from './pages/project/ProjectEdit.vue';\nimport EmployeeTimesheet from './pages/timesheets/EmployeeTimesheet.vue';\nimport ViewEmployeeTimesheet from './pages/timesheets/ViewEmployeeTimesheet.vue';\nimport EmployeeTimeReport from './pages/reports/EmployeeTimeReport.vue';\nimport ProjectActivityReport from './pages/reports/ProjectActivityReport.vue';\nimport ActivityDetailsReport from './pages/reports/ActivityDetailsReport.vue';\n\nexport default {\n 'time-sheet-period': TimeSheetPeriodConfig,\n 'customer-list': Customer,\n 'customer-save': SaveCustomer,\n 'customer-edit': EditCustomer,\n 'my-timesheet': MyTimesheet,\n 'edit-timesheet': EditTimeSheet,\n 'project-list': Project,\n 'project-save': ProjectSave,\n 'project-edit': ProjectEdit,\n 'employee-timesheet': EmployeeTimesheet,\n 'view-employee-timesheet': ViewEmployeeTimesheet,\n 'employee-time-report': EmployeeTimeReport,\n 'project-activity-report': ProjectActivityReport,\n 'activity-details-report': ActivityDetailsReport,\n};\n","\n\n\n\n\n\n\n","import { render } from \"./LeavePeriod.vue?vue&type=template&id=36501732&scoped=true\"\nimport script from \"./LeavePeriod.vue?vue&type=script&lang=js\"\nexport * from \"./LeavePeriod.vue?vue&type=script&lang=js\"\n\nimport \"./LeavePeriod.vue?vue&type=style&index=0&id=36501732&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-36501732\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./TimeRange.vue?vue&type=template&id=71824c05\"\nimport script from \"./TimeRange.vue?vue&type=script&lang=js\"\nexport * from \"./TimeRange.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./LeaveDurationInput.vue?vue&type=template&id=75ca43d6&scoped=true\"\nimport script from \"./LeaveDurationInput.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveDurationInput.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveDurationInput.vue?vue&type=style&index=0&id=75ca43d6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-75ca43d6\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LeaveBalanceModal.vue?vue&type=template&id=a21fbcb8&scoped=true\"\nimport script from \"./LeaveBalanceModal.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveBalanceModal.vue?vue&type=script&lang=js\"\n\nimport \"./leave-balance-modal.scss?vue&type=style&index=0&id=a21fbcb8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a21fbcb8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveBalanceInsufficientModal.vue?vue&type=template&id=94b8006c&scoped=true\"\nimport script from \"./LeaveBalanceInsufficientModal.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveBalanceInsufficientModal.vue?vue&type=script&lang=js\"\n\nimport \"./leave-balance-modal.scss?vue&type=style&index=0&id=94b8006c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-94b8006c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {APIService} from '@/core/util/services/api.service';\nimport {diffInDays} from '@ohrm/core/util/helper/datefns';\ninterface Duration {\n type: DurationOption | null;\n fromTime: string | null;\n toTime: string | null;\n}\n\ninterface Option {\n id: number;\n label: string;\n}\ninterface PartialOption extends Option {\n key: string;\n}\ninterface DurationOption extends Option {\n key: string;\n}\n\ninterface LeaveModel {\n type: Option | null;\n employee: Option | null;\n fromDate: string | null;\n toDate: string | null;\n comment: string | null;\n partialOptions: PartialOption | null;\n duration: Duration;\n endDuration: Duration;\n}\ninterface LeaveRequestBody {\n leaveTypeId: number;\n fromDate: string;\n toDate: string;\n comment: string | null;\n duration?: DurationObject;\n endDuration?: DurationObject;\n partialOption?: string;\n empNumber?: number;\n}\n\ninterface ParamsObj {\n [key: string]: string | number | undefined;\n}\n\ninterface DurationObject {\n type: string;\n fromTime?: string;\n toTime?: string;\n}\ninterface BalanceObj {\n balance: number;\n breakdown: object | null;\n metaData: object | null;\n}\n\ninterface OverlapObj {\n isConflict: boolean;\n isOverWorkshift: boolean;\n data: Array;\n}\n\nexport default function useLeaveValidators(http: APIService) {\n const serializeBody = (leave: LeaveModel) => {\n const payload: LeaveRequestBody = {\n leaveTypeId: leave.type ? leave.type.id : 1,\n fromDate: leave.fromDate ? leave.fromDate : '',\n toDate: leave.toDate ? leave.toDate : '',\n comment: leave.comment === '' ? null : leave.comment,\n empNumber: leave.employee ? leave.employee.id : undefined,\n };\n\n if (leave.duration.type) {\n const duration: DurationObject = {\n type: leave.duration.type?.key,\n };\n if (duration.type === 'specify_time') {\n if (leave.duration.fromTime) {\n duration.fromTime = leave.duration.fromTime;\n }\n if (leave.duration.toTime) {\n duration.toTime = leave.duration.toTime;\n }\n }\n payload.duration = duration;\n }\n\n const leaveDuration = diffInDays(payload.fromDate, payload.toDate);\n\n if (leaveDuration > 1 && leave.partialOptions) {\n payload.partialOption = leave.partialOptions.key;\n if (leave.endDuration.type) {\n const endDuration: DurationObject = {\n type: leave.endDuration.type.key,\n };\n if (leave.endDuration.fromTime) {\n endDuration.fromTime = leave.endDuration.fromTime;\n }\n if (leave.endDuration.toTime) {\n endDuration.toTime = leave.endDuration.toTime;\n }\n if (payload.partialOption === 'start_end') {\n payload.endDuration = endDuration;\n } else if (payload.partialOption === 'end') {\n payload.duration = endDuration;\n }\n }\n }\n\n // Validation to prevent fromTime & toTime being sent with incorrect duration.type\n if (\n payload.duration?.type !== 'specify_time' &&\n (payload.duration?.fromTime || payload.duration?.toTime)\n ) {\n payload.duration.fromTime = undefined;\n payload.duration.toTime = undefined;\n }\n\n if (\n payload.endDuration?.type !== 'specify_time' &&\n (payload.endDuration?.fromTime || payload.endDuration?.toTime)\n ) {\n payload.endDuration.fromTime = undefined;\n payload.endDuration.toTime = undefined;\n }\n\n return payload;\n };\n\n const serializeParams = (leave: LeaveModel) => {\n const payload: ParamsObj = {\n fromDate: undefined,\n toDate: undefined,\n partialOption: undefined,\n empNumber: leave.employee?.id,\n };\n\n if (leave.duration.type) {\n payload['duration[type]'] = leave.duration.type.key;\n if (payload['duration[type]'] === 'specify_time') {\n if (leave.duration.fromTime) {\n payload['duration[fromTime]'] = leave.duration.fromTime;\n }\n if (leave.duration.toTime) {\n payload['duration[toTime]'] = leave.duration.toTime;\n }\n }\n }\n\n if (leave.fromDate && leave.toDate) {\n payload.fromDate = leave.fromDate;\n payload.toDate = leave.toDate;\n const leaveDuration = diffInDays(leave.fromDate, leave.toDate);\n\n if (leaveDuration > 1 && leave.partialOptions) {\n payload.partialOption = leave.partialOptions.key;\n if (leave.endDuration.type) {\n if (payload.partialOption === 'start_end') {\n payload['endDuration[type]'] = leave.endDuration.type.key;\n if (leave.endDuration.fromTime) {\n payload['endDuration[fromTime]'] = leave.endDuration.fromTime;\n }\n if (leave.endDuration.toTime) {\n payload['endDuration[toTime]'] = leave.endDuration.toTime;\n }\n } else if (payload.partialOption === 'end') {\n payload['duration[type]'] = leave.endDuration.type.key;\n if (leave.endDuration.fromTime) {\n payload['duration[fromTime]'] = leave.endDuration.fromTime;\n }\n if (leave.endDuration.toTime) {\n payload['duration[toTime]'] = leave.endDuration.toTime;\n }\n }\n }\n }\n }\n\n // Validation to prevent fromTime & toTime being sent with incorrect duration[type]\n if (\n payload['duration[type]'] !== 'specify_time' &&\n (payload['duration[fromTime]'] || payload['duration[toTime]'])\n ) {\n payload['duration[fromTime]'] = undefined;\n payload['duration[toTime]'] = undefined;\n }\n\n if (\n payload['endDuration[type]'] !== 'specify_time' &&\n (payload['endDuration[fromTime]'] || payload['endDuration[toTime]'])\n ) {\n payload['endDuration[fromTime]'] = undefined;\n payload['endDuration[toTime]'] = undefined;\n }\n\n return payload;\n };\n\n const validateOverlapLeaves = (\n leaveData: LeaveModel,\n ): Promise => {\n return new Promise((resolve, reject) => {\n http\n .request({\n method: 'GET',\n url: '/api/v2/leave/overlap-leaves',\n params: serializeParams(leaveData),\n })\n .then((response) => {\n const {data, meta} = response.data;\n\n if (Array.isArray(data) && data.length > 0) {\n resolve({\n isConflict: true,\n isOverWorkshift: meta.isWorkShiftLengthExceeded === true,\n data,\n });\n } else {\n resolve({\n isConflict: false,\n isOverWorkshift: false,\n data: [],\n });\n }\n })\n .catch((error) => {\n reject(error);\n });\n });\n };\n\n const validateLeaveBalance = (leaveData: LeaveModel): Promise => {\n return new Promise((resolve, reject) => {\n http\n .request({\n method: 'GET',\n url: `/api/v2/leave/leave-balance/leave-type/${leaveData.type?.id}`,\n params: serializeParams(leaveData),\n })\n .then((response) => {\n let balance = 0;\n let breakdown = null;\n let metaData = null;\n if (response.status === 200) {\n const {data, meta} = response.data;\n metaData = meta;\n if (data.balance) {\n // response sends balance directly when no duration defined\n breakdown = data.balance;\n balance = data.balance?.balance;\n } else if (data.breakdown && data.negative === false) {\n // if duration is defined and the balance is not exceeded\n breakdown = data.breakdown[0].balance;\n balance = data.breakdown[0].balance?.balance;\n } else if (data.breakdown && data.negative === true) {\n // if duration is defined and the balance is exceeded\n breakdown = data.breakdown;\n balance = -1;\n } else {\n breakdown = null;\n balance = 0;\n }\n }\n resolve({balance, breakdown, metaData});\n })\n .catch((error) => {\n reject(error);\n });\n });\n };\n\n return {\n serializeBody,\n serializeParams,\n validateLeaveBalance,\n validateOverlapLeaves,\n };\n}\n","import { render } from \"./LeaveBalance.vue?vue&type=template&id=56c2fc4a&scoped=true\"\nimport script from \"./LeaveBalance.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveBalance.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveBalance.vue?vue&type=style&index=0&id=56c2fc4a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-56c2fc4a\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./LeaveConflict.vue?vue&type=template&id=25265b74\"\nimport script from \"./LeaveConflict.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveConflict.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./LeaveApply.vue?vue&type=template&id=537e43ef\"\nimport script from \"./LeaveApply.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveApply.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LeaveTypeDropdown.vue?vue&type=template&id=dcd26948&scoped=true\"\nimport script from \"./LeaveTypeDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveTypeDropdown.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveTypeDropdown.vue?vue&type=style&index=0&id=dcd26948&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-dcd26948\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveAssignConfirmModal.vue?vue&type=template&id=19c585fa&scoped=true\"\nimport script from \"./LeaveAssignConfirmModal.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveAssignConfirmModal.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveAssignConfirmModal.vue?vue&type=style&index=0&id=19c585fa&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-19c585fa\"]])\n\nexport default __exports__","import { render } from \"./LeaveAssign.vue?vue&type=template&id=1f369841\"\nimport script from \"./LeaveAssign.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveAssign.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./LeaveType.vue?vue&type=template&id=c718f8b0\"\nimport script from \"./LeaveType.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveType.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./EntitlementSituationalModal.vue?vue&type=template&id=68838f5c&scoped=true\"\nimport script from \"./EntitlementSituationalModal.vue?vue&type=script&lang=js\"\nexport * from \"./EntitlementSituationalModal.vue?vue&type=script&lang=js\"\n\nimport \"./EntitlementSituationalModal.vue?vue&type=style&index=0&id=68838f5c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-68838f5c\"]])\n\nexport default __exports__","import { render } from \"./EditLeaveType.vue?vue&type=template&id=a7f7cce0&scoped=true\"\nimport script from \"./EditLeaveType.vue?vue&type=script&lang=js\"\nexport * from \"./EditLeaveType.vue?vue&type=script&lang=js\"\n\nimport \"./leave-type.scss?vue&type=style&index=0&id=a7f7cce0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a7f7cce0\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SaveLeaveType.vue?vue&type=template&id=3acf3120&scoped=true\"\nimport script from \"./SaveLeaveType.vue?vue&type=script&lang=js\"\nexport * from \"./SaveLeaveType.vue?vue&type=script&lang=js\"\n\nimport \"./leave-type.scss?vue&type=style&index=0&id=3acf3120&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3acf3120\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./LeavePeriodDropdown.vue?vue&type=template&id=157a8980\"\nimport script from \"./LeavePeriodDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./LeavePeriodDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EntitlementUpdateModal.vue?vue&type=template&id=e36392b4&scoped=true\"\nimport script from \"./EntitlementUpdateModal.vue?vue&type=script&lang=js\"\nexport * from \"./EntitlementUpdateModal.vue?vue&type=script&lang=js\"\n\nimport \"./EntitlementUpdateModal.vue?vue&type=style&index=0&id=e36392b4&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e36392b4\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EntitlementBulkUpdateModal.vue?vue&type=template&id=6f8e0531&scoped=true\"\nimport script from \"./EntitlementBulkUpdateModal.vue?vue&type=script&lang=js\"\nexport * from \"./EntitlementBulkUpdateModal.vue?vue&type=script&lang=js\"\n\nimport \"./EntitlementBulkUpdateModal.vue?vue&type=style&index=0&id=6f8e0531&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6f8e0531\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EntitlementNoMatchModal.vue?vue&type=template&id=0233dcca&scoped=true\"\nimport script from \"./EntitlementNoMatchModal.vue?vue&type=script&lang=js\"\nexport * from \"./EntitlementNoMatchModal.vue?vue&type=script&lang=js\"\n\nimport \"./EntitlementNoMatchModal.vue?vue&type=style&index=0&id=0233dcca&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0233dcca\"]])\n\nexport default __exports__","import { render } from \"./AddEntitlement.vue?vue&type=template&id=7e1993c4&scoped=true\"\nimport script from \"./AddEntitlement.vue?vue&type=script&lang=js\"\nexport * from \"./AddEntitlement.vue?vue&type=script&lang=js\"\n\nimport \"./add-entitlement.scss?vue&type=style&index=0&id=7e1993c4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7e1993c4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditEntitlement.vue?vue&type=template&id=0c8c1ae6\"\nimport script from \"./EditEntitlement.vue?vue&type=script&lang=js\"\nexport * from \"./EditEntitlement.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./LeaveEntitlementTable.vue?vue&type=template&id=1d62a736\"\nimport script from \"./LeaveEntitlementTable.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveEntitlementTable.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./LeaveEntitlements.vue?vue&type=template&id=2f593d98\"\nimport script from \"./LeaveEntitlements.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveEntitlements.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./MyLeaveEntitlements.vue?vue&type=template&id=853716cc\"\nimport script from \"./MyLeaveEntitlements.vue?vue&type=script&lang=js\"\nexport * from \"./MyLeaveEntitlements.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./WorkWeek.vue?vue&type=template&id=19aa7e2d\"\nimport script from \"./WorkWeek.vue?vue&type=script&lang=js\"\nexport * from \"./WorkWeek.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Holiday.vue?vue&type=template&id=61e6591e\"\nimport script from \"./Holiday.vue?vue&type=script&lang=js\"\nexport * from \"./Holiday.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SaveHoliday.vue?vue&type=template&id=6485b72f&scoped=true\"\nimport script from \"./SaveHoliday.vue?vue&type=script&lang=js\"\nexport * from \"./SaveHoliday.vue?vue&type=script&lang=js\"\n\nimport \"./holiday.scss?vue&type=style&index=0&id=6485b72f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6485b72f\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditHoliday.vue?vue&type=template&id=48d79cd0&scoped=true\"\nimport script from \"./EditHoliday.vue?vue&type=script&lang=js\"\nexport * from \"./EditHoliday.vue?vue&type=script&lang=js\"\n\nimport \"./holiday.scss?vue&type=style&index=0&id=48d79cd0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-48d79cd0\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","/*\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\ninterface TruncateArgs {\n length?: number;\n ellipsis?: string;\n}\n\nexport const truncate = (\n text: string | undefined,\n {length = 50, ellipsis = '...'}: TruncateArgs = {},\n) => {\n if (typeof text === 'string') {\n return text.length > length ? text.substr(0, length) + ellipsis : text;\n }\n return '';\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {APIService} from '@/core/util/services/api.service';\n\ntype LeaveAction = {\n component: string;\n props: object;\n};\n\ntype LeaveSecondaryAction = {\n label: string;\n context: string;\n};\n\ntype useLeaveActionsArgs = {\n primaryActions?: {[name: string]: LeaveAction};\n secondaryActions?: LeaveSecondaryAction[];\n};\n\nconst approve: LeaveAction = {\n component: 'oxd-button',\n props: {\n label: 'Approve',\n displayType: 'label-success',\n size: 'medium',\n onClick: null,\n },\n};\n\nconst reject: LeaveAction = {\n component: 'oxd-button',\n props: {\n label: 'Reject',\n displayType: 'label-danger',\n size: 'medium',\n onClick: null,\n },\n};\n\nconst cancel: LeaveAction = {\n component: 'oxd-button',\n props: {\n label: 'Cancel',\n displayType: 'label-warn',\n size: 'medium',\n onClick: null,\n },\n};\n\nconst more: LeaveAction = {\n component: 'oxd-table-dropdown',\n props: {\n options: [],\n style: {'margin-left': 'auto'},\n onClick: null,\n },\n};\n\nexport default function useLeaveActions(\n http: APIService,\n {primaryActions = {approve, reject, cancel, more}}: useLeaveActionsArgs = {},\n) {\n const processLeaveAction = (id: number, actionType: string) => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/leave/leaves/${id}`,\n data: {\n action: actionType,\n },\n });\n };\n\n const processLeaveRequestAction = (id: number, actionType: string) => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/leave/employees/leave-requests/${id}`,\n data: {\n action: actionType,\n },\n });\n };\n\n const processLeaveRequestBulkAction = (ids: number[], actionType: string) => {\n return http.request({\n method: 'PUT',\n url: '/api/v2/leave/employees/leave-requests/bulk',\n data: {\n data: ids.map((id) => {\n return {\n leaveRequestId: id,\n action: actionType,\n };\n }),\n },\n });\n };\n\n return {\n leaveActions: primaryActions,\n processLeaveAction,\n processLeaveRequestAction,\n processLeaveRequestBulkAction,\n };\n}\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LeaveComment.vue?vue&type=template&id=222b3933&scoped=true\"\nimport script from \"./LeaveComment.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveComment.vue?vue&type=script&lang=js\"\n\nimport \"./leave-comment.scss?vue&type=style&index=0&id=222b3933&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-222b3933\"]])\n\nexport default __exports__","import { render } from \"./LeaveCommentsModal.vue?vue&type=template&id=cbb6349a&scoped=true\"\nimport script from \"./LeaveCommentsModal.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveCommentsModal.vue?vue&type=script&lang=js\"\n\nimport \"./leave-comment-modal.scss?vue&type=style&index=0&id=cbb6349a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cbb6349a\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveBulkActionModal.vue?vue&type=template&id=7823af8c&scoped=true\"\nimport script from \"./LeaveBulkActionModal.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveBulkActionModal.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveBulkActionModal.vue?vue&type=style&index=0&id=7823af8c&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7823af8c\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveListTableHeader.vue?vue&type=template&id=78ad5c40&scoped=true\"\nimport script from \"./LeaveListTableHeader.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveListTableHeader.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveListTableHeader.vue?vue&type=style&index=0&id=78ad5c40&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-78ad5c40\"]])\n\nexport default __exports__","import { render } from \"./LeaveListTable.vue?vue&type=template&id=2e68cbb4&scoped=true\"\nimport script from \"./LeaveListTable.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveListTable.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveListTable.vue?vue&type=style&index=0&id=2e68cbb4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2e68cbb4\"]])\n\nexport default __exports__","import { render } from \"./LeaveList.vue?vue&type=template&id=7abe0f65&scoped=true\"\nimport script from \"./LeaveList.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveList.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveList.vue?vue&type=style&index=0&id=7abe0f65&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7abe0f65\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveRequest.vue?vue&type=template&id=5cf2c6b8&scoped=true\"\nimport script from \"./LeaveRequest.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveRequest.vue?vue&type=script&lang=js\"\n\nimport \"./LeaveRequest.vue?vue&type=style&index=0&id=5cf2c6b8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5cf2c6b8\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./MyLeaveList.vue?vue&type=template&id=2d59fcda\"\nimport script from \"./MyLeaveList.vue?vue&type=script&lang=js\"\nexport * from \"./MyLeaveList.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./LeaveEntitlementReport.vue?vue&type=template&id=6ef58e5d&scoped=true\"\nimport script from \"./LeaveEntitlementReport.vue?vue&type=script&lang=js\"\nexport * from \"./LeaveEntitlementReport.vue?vue&type=script&lang=js\"\n\nimport \"./leave-entitlement-report.scss?vue&type=style&index=0&id=6ef58e5d&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6ef58e5d\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./MyLeaveEntitlementReport.vue?vue&type=template&id=8c4f28ca\"\nimport script from \"./MyLeaveEntitlementReport.vue?vue&type=script&lang=js\"\nexport * from \"./MyLeaveEntitlementReport.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport LeavePeriod from './pages/configure/LeavePeriod.vue';\nimport LeaveApply from './pages/LeaveApply.vue';\nimport LeaveAssign from './pages/LeaveAssign.vue';\nimport LeaveType from './pages/leaveType/LeaveType.vue';\nimport EditLeaveType from './pages/leaveType/EditLeaveType.vue';\nimport SaveLeaveType from './pages/leaveType/SaveLeaveType.vue';\nimport AddEntitlement from './pages/entitlements/AddEntitlement.vue';\nimport EditEntitlement from './pages/entitlements/EditEntitlement.vue';\nimport LeaveEntitlements from './pages/entitlements/LeaveEntitlements.vue';\nimport MyLeaveEntitlements from './pages/entitlements/MyLeaveEntitlements.vue';\nimport WorkWeek from './pages/configure/WorkWeek.vue';\nimport Holiday from './pages/configure/holiday/Holiday.vue';\nimport SaveHoliday from './pages/configure/holiday/SaveHoliday.vue';\nimport EditHoliday from './pages/configure/holiday/EditHoliday.vue';\nimport LeaveList from './pages/LeaveList.vue';\nimport LeaveRequest from './pages/LeaveRequest.vue';\nimport MyLeaveList from './pages/MyLeaveList.vue';\nimport LeaveEntitlementReport from './pages/reports/LeaveEntitlementReport.vue';\nimport MyLeaveEntitlementReport from './pages/reports/MyLeaveEntitlementReport.vue';\n\nexport default {\n 'leave-period': LeavePeriod,\n 'leave-apply': LeaveApply,\n 'leave-assign': LeaveAssign,\n 'leave-type-edit': EditLeaveType,\n 'leave-type-list': LeaveType,\n 'leave-type-save': SaveLeaveType,\n 'leave-add-entitlement': AddEntitlement,\n 'leave-edit-entitlement': EditEntitlement,\n 'leave-view-entitlement': LeaveEntitlements,\n 'leave-view-my-entitlement': MyLeaveEntitlements,\n 'work-week': WorkWeek,\n 'holiday-list': Holiday,\n 'holiday-save': SaveHoliday,\n 'holiday-edit': EditHoliday,\n 'leave-list': LeaveList,\n 'leave-view-request': LeaveRequest,\n 'my-leave-list': MyLeaveList,\n 'leave-entitlement-report': LeaveEntitlementReport,\n 'my-leave-entitlement-report': MyLeaveEntitlementReport,\n};\n","\n\n\n\n\n","import { render } from \"./OAuthClient.vue?vue&type=template&id=8cf28702\"\nimport script from \"./OAuthClient.vue?vue&type=script&lang=js\"\nexport * from \"./OAuthClient.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SaveOAuthClient.vue?vue&type=template&id=6ea3f680&scoped=true\"\nimport script from \"./SaveOAuthClient.vue?vue&type=script&lang=js\"\nexport * from \"./SaveOAuthClient.vue?vue&type=script&lang=js\"\n\nimport \"./oauth-client.scss?vue&type=style&index=0&id=6ea3f680&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6ea3f680\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LoginBranding.vue?vue&type=template&id=3dda64e6&scoped=true\"\nimport script from \"./LoginBranding.vue?vue&type=script&lang=js\"\nexport * from \"./LoginBranding.vue?vue&type=script&lang=js\"\n\nimport \"./login-layout.scss?vue&type=style&index=0&id=3dda64e6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3dda64e6\"]])\n\nexport default __exports__","import { render } from \"./OAuthAuthorize.vue?vue&type=template&id=3810ee3c&scoped=true\"\nimport script from \"./OAuthAuthorize.vue?vue&type=script&lang=js\"\nexport * from \"./OAuthAuthorize.vue?vue&type=script&lang=js\"\n\nimport \"./oauth-authorize.scss?vue&type=style&index=0&id=3810ee3c&scoped=true&lang=scss\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3810ee3c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport OAuthClient from './pages/registerOAuthClient/OAuthClient.vue';\nimport SaveOAuthClient from './pages/registerOAuthClient/SaveOAuthClient.vue';\nimport OAuthAuthorize from './pages/oauth/OAuthAuthorize.vue';\n\nexport default {\n 'oauth-client-list': OAuthClient,\n 'oauth-client-save': SaveOAuthClient,\n 'oauth-authorize': OAuthAuthorize,\n};\n","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./TimezoneDropdown.vue?vue&type=template&id=2720de08\"\nimport script from \"./TimezoneDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./TimezoneDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./RecordAttendance.vue?vue&type=template&id=3d5e6918&scoped=true\"\nimport script from \"./RecordAttendance.vue?vue&type=script&lang=js\"\nexport * from \"./RecordAttendance.vue?vue&type=script&lang=js\"\n\nimport \"./record-attendance.scss?vue&type=style&index=0&id=3d5e6918&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3d5e6918\"]])\n\nexport default __exports__","import { render } from \"./PunchIn.vue?vue&type=template&id=5ee0f653\"\nimport script from \"./PunchIn.vue?vue&type=script&lang=js\"\nexport * from \"./PunchIn.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./PunchOut.vue?vue&type=template&id=25bcad09\"\nimport script from \"./PunchOut.vue?vue&type=script&lang=js\"\nexport * from \"./PunchOut.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditAttendance.vue?vue&type=template&id=40838874&scoped=true\"\nimport script from \"./EditAttendance.vue?vue&type=script&lang=js\"\nexport * from \"./EditAttendance.vue?vue&type=script&lang=js\"\n\nimport \"./edit-attendance.scss?vue&type=style&index=0&id=40838874&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-40838874\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./RecordCell.vue?vue&type=template&id=8f3074ce&scoped=true\"\nimport script from \"./RecordCell.vue?vue&type=script&lang=js\"\nexport * from \"./RecordCell.vue?vue&type=script&lang=js\"\n\nimport \"./RecordCell.vue?vue&type=style&index=0&id=8f3074ce&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8f3074ce\"]])\n\nexport default __exports__","import { render } from \"./ViewMyAttendance.vue?vue&type=template&id=50a2ff8a&scoped=true\"\nimport script from \"./ViewMyAttendance.vue?vue&type=script&lang=js\"\nexport * from \"./ViewMyAttendance.vue?vue&type=script&lang=js\"\n\nimport \"./view-my-attendance.scss?vue&type=style&index=0&id=50a2ff8a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-50a2ff8a\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./AttendanceConfiguration.vue?vue&type=template&id=026fb4c8&scoped=true\"\nimport script from \"./AttendanceConfiguration.vue?vue&type=script&lang=js\"\nexport * from \"./AttendanceConfiguration.vue?vue&type=script&lang=js\"\n\nimport \"./AttendanceConfiguration.vue?vue&type=style&index=0&id=026fb4c8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-026fb4c8\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./AttendanceSummaryReport.vue?vue&type=template&id=772a8b19\"\nimport script from \"./AttendanceSummaryReport.vue?vue&type=script&lang=js\"\nexport * from \"./AttendanceSummaryReport.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ViewEmployeeAttendanceSummary.vue?vue&type=template&id=22f945c4&scoped=true\"\nimport script from \"./ViewEmployeeAttendanceSummary.vue?vue&type=script&lang=js\"\nexport * from \"./ViewEmployeeAttendanceSummary.vue?vue&type=script&lang=js\"\n\nimport \"./ViewEmployeeAttendanceSummary.vue?vue&type=style&index=0&id=22f945c4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-22f945c4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ViewEmployeeAttendanceDetailed.vue?vue&type=template&id=5c574e8c\"\nimport script from \"./ViewEmployeeAttendanceDetailed.vue?vue&type=script&lang=js\"\nexport * from \"./ViewEmployeeAttendanceDetailed.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport PunchIn from './pages/PunchIn.vue';\nimport PunchOut from './pages/PunchOut.vue';\nimport EditAttendance from './pages/EditAttendance.vue';\nimport ViewMyAttendance from './pages/ViewMyAttendance.vue';\nimport AttendanceConfiguration from './pages/AttendanceConfiguration.vue';\nimport AttendanceSummaryReport from './pages/AttendanceSummaryReport.vue';\nimport ViewEmployeeAttendanceSummary from './pages/ViewEmployeeAttendanceSummary.vue';\nimport ViewEmployeeAttendanceDetailed from './pages/ViewEmployeeAttendanceDetailed.vue';\n\nexport default {\n 'attendance-punch-in': PunchIn,\n 'attendance-punch-out': PunchOut,\n 'edit-attendance': EditAttendance,\n 'view-my-attendance': ViewMyAttendance,\n 'attendance-configuration': AttendanceConfiguration,\n 'attendance-summary-report': AttendanceSummaryReport,\n 'view-employee-attendance-summary': ViewEmployeeAttendanceSummary,\n 'view-employee-attendance-detailed': ViewEmployeeAttendanceDetailed,\n};\n","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./SelectedEmployee.vue?vue&type=template&id=6ea34be5&scoped=true\"\nimport script from \"./SelectedEmployee.vue?vue&type=script&lang=js\"\nexport * from \"./SelectedEmployee.vue?vue&type=script&lang=js\"\n\nimport \"./SelectedEmployee.vue?vue&type=style&index=0&id=6ea34be5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6ea34be5\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmployeeRecords.vue?vue&type=template&id=f0386e30\"\nimport script from \"./EmployeeRecords.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeRecords.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ConfirmationDialog.vue?vue&type=template&id=2766d99a&scoped=true\"\nimport script from \"./ConfirmationDialog.vue?vue&type=script&lang=js\"\nexport * from \"./ConfirmationDialog.vue?vue&type=script&lang=js\"\n\nimport \"./dialog.scss?vue&type=style&index=0&id=2766d99a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2766d99a\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./MaintenanceNote.vue?vue&type=template&id=23b16e4f&scoped=true\"\nimport script from \"./MaintenanceNote.vue?vue&type=script&lang=js\"\nexport * from \"./MaintenanceNote.vue?vue&type=script&lang=js\"\n\nimport \"./MaintenanceNote.vue?vue&type=style&index=0&id=23b16e4f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-23b16e4f\"]])\n\nexport default __exports__","import { render } from \"./PurgeEmployee.vue?vue&type=template&id=2a258082\"\nimport script from \"./PurgeEmployee.vue?vue&type=script&lang=js\"\nexport * from \"./PurgeEmployee.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./VacancyAutocomplete.vue?vue&type=template&id=02c60814\"\nimport script from \"./VacancyAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./VacancyAutocomplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./CandidateRecords.vue?vue&type=template&id=c333b4c6\"\nimport script from \"./CandidateRecords.vue?vue&type=script&lang=js\"\nexport * from \"./CandidateRecords.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./SelectedCandidates.vue?vue&type=template&id=3c1da283&scoped=true\"\nimport script from \"./SelectedCandidates.vue?vue&type=script&lang=js\"\nexport * from \"./SelectedCandidates.vue?vue&type=script&lang=js\"\n\nimport \"./SelectedCandidates.vue?vue&type=style&index=0&id=3c1da283&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3c1da283\"]])\n\nexport default __exports__","import { render } from \"./PurgeCandidate.vue?vue&type=template&id=20d40fb6\"\nimport script from \"./PurgeCandidate.vue?vue&type=script&lang=js\"\nexport * from \"./PurgeCandidate.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./AccessEmployeeSearchScreen.vue?vue&type=template&id=5a691ae0\"\nimport script from \"./AccessEmployeeSearchScreen.vue?vue&type=script&lang=js\"\nexport * from \"./AccessEmployeeSearchScreen.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport PurgeEmployee from './pages/PurgeEmployee.vue';\nimport PurgeCandidate from './pages/PurgeCandidate.vue';\nimport AccessEmployeeSearchScreen from '../orangehrmMaintenancePlugin/pages/accessEmployee/AccessEmployeeSearchScreen.vue';\n\nexport default {\n 'purge-employee': PurgeEmployee,\n 'purge-candidate': PurgeCandidate,\n 'access-employee-search': AccessEmployeeSearchScreen,\n};\n","\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./VacancyDropdown.vue?vue&type=template&id=346bc494\"\nimport script from \"./VacancyDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./VacancyDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./HiringManagerDropdown.vue?vue&type=template&id=ac575596\"\nimport script from \"./HiringManagerDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./HiringManagerDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ViewJobVacancy.vue?vue&type=template&id=65c21a19&scoped=true\"\nimport script from \"./ViewJobVacancy.vue?vue&type=script&lang=js\"\nexport * from \"./ViewJobVacancy.vue?vue&type=script&lang=js\"\n\nimport \"./vacancy.scss?vue&type=style&index=0&id=65c21a19&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-65c21a19\"]])\n\nexport default __exports__","\n\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./VacancyLinkCard.vue?vue&type=template&id=7a7e694e&scoped=true\"\nimport script from \"./VacancyLinkCard.vue?vue&type=script&lang=js\"\nexport * from \"./VacancyLinkCard.vue?vue&type=script&lang=js\"\n\nimport \"./VacancyLinkCard.vue?vue&type=style&index=0&id=7a7e694e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7a7e694e\"]])\n\nexport default __exports__","import { render } from \"./AddJobVacancy.vue?vue&type=template&id=00048e4c&scoped=true\"\nimport script from \"./AddJobVacancy.vue?vue&type=script&lang=js\"\nexport * from \"./AddJobVacancy.vue?vue&type=script&lang=js\"\n\nimport \"./vacancy.scss?vue&type=style&index=0&id=00048e4c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-00048e4c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditJobVacancy.vue?vue&type=template&id=d4ce637a&scoped=true\"\nimport script from \"./EditJobVacancy.vue?vue&type=script&lang=js\"\nexport * from \"./EditJobVacancy.vue?vue&type=script&lang=js\"\n\nimport \"./vacancy.scss?vue&type=style&index=0&id=d4ce637a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d4ce637a\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./CandidateActionLayout.vue?vue&type=template&id=607faaf1\"\nimport script from \"./CandidateActionLayout.vue?vue&type=script&lang=js\"\nexport * from \"./CandidateActionLayout.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./HireAction.vue?vue&type=template&id=976724de\"\nimport script from \"./HireAction.vue?vue&type=script&lang=js\"\nexport * from \"./HireAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./InterviewFailAction.vue?vue&type=template&id=7c22f7f5\"\nimport script from \"./InterviewFailAction.vue?vue&type=script&lang=js\"\nexport * from \"./InterviewFailAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./InterviewPassedAction.vue?vue&type=template&id=4acd8c7a\"\nimport script from \"./InterviewPassedAction.vue?vue&type=script&lang=js\"\nexport * from \"./InterviewPassedAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./InterviewerAutocomplete.vue?vue&type=template&id=73842d23&scoped=true\"\nimport script from \"./InterviewerAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./InterviewerAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./InterviewerAutocomplete.vue?vue&type=style&index=0&id=73842d23&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-73842d23\"]])\n\nexport default __exports__","import { render } from \"./InterviewScheduleAction.vue?vue&type=template&id=2e02c752\"\nimport script from \"./InterviewScheduleAction.vue?vue&type=script&lang=js\"\nexport * from \"./InterviewScheduleAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./OfferJobAction.vue?vue&type=template&id=7ad654fe\"\nimport script from \"./OfferJobAction.vue?vue&type=script&lang=js\"\nexport * from \"./OfferJobAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./DeclineOfferAction.vue?vue&type=template&id=1874a396\"\nimport script from \"./DeclineOfferAction.vue?vue&type=script&lang=js\"\nexport * from \"./DeclineOfferAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./RejectAction.vue?vue&type=template&id=4b6da5d6\"\nimport script from \"./RejectAction.vue?vue&type=script&lang=js\"\nexport * from \"./RejectAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ShortlistAction.vue?vue&type=template&id=23ebf313\"\nimport script from \"./ShortlistAction.vue?vue&type=script&lang=js\"\nexport * from \"./ShortlistAction.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./SaveCandidate.vue?vue&type=template&id=e75f8a7a&scoped=true\"\nimport script from \"./SaveCandidate.vue?vue&type=script&lang=js\"\nexport * from \"./SaveCandidate.vue?vue&type=script&lang=js\"\n\nimport \"./SaveCandidate.vue?vue&type=style&index=0&id=e75f8a7a&scoped=true&lang=scss\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e75f8a7a\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./CandidateAutocomplete.vue?vue&type=template&id=5c755293&scoped=true\"\nimport script from \"./CandidateAutocomplete.vue?vue&type=script&lang=js\"\nexport * from \"./CandidateAutocomplete.vue?vue&type=script&lang=js\"\n\nimport \"./CandidateAutocomplete.vue?vue&type=style&index=0&id=5c755293&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5c755293\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./CandidateStatusDropdown.vue?vue&type=template&id=b2657cf2\"\nimport script from \"./CandidateStatusDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./CandidateStatusDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ViewCandidatesList.vue?vue&type=template&id=489664fe\"\nimport script from \"./ViewCandidatesList.vue?vue&type=script&lang=js\"\nexport * from \"./ViewCandidatesList.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./RecruitmentStatus.vue?vue&type=template&id=2d6dc297&scoped=true\"\nimport script from \"./RecruitmentStatus.vue?vue&type=script&lang=js\"\nexport * from \"./RecruitmentStatus.vue?vue&type=script&lang=js\"\n\nimport \"./RecruitmentStatus.vue?vue&type=style&index=0&id=2d6dc297&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2d6dc297\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./CandidateProfile.vue?vue&type=template&id=fa8534b2&scoped=true\"\nimport script from \"./CandidateProfile.vue?vue&type=script&lang=js\"\nexport * from \"./CandidateProfile.vue?vue&type=script&lang=js\"\n\nimport \"./CandidateProfile.vue?vue&type=style&index=0&id=fa8534b2&scoped=true&lang=scss\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fa8534b2\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./HistoryTable.vue?vue&type=template&id=5829e84c&scoped=true\"\nimport script from \"./HistoryTable.vue?vue&type=script&lang=js\"\nexport * from \"./HistoryTable.vue?vue&type=script&lang=js\"\n\nimport \"./HistoryTable.vue?vue&type=style&index=0&id=5829e84c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5829e84c\"]])\n\nexport default __exports__","import { render } from \"./ViewCandidateProfile.vue?vue&type=template&id=a9e264d4\"\nimport script from \"./ViewCandidateProfile.vue?vue&type=script&lang=js\"\nexport * from \"./ViewCandidateProfile.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ViewActionHistory.vue?vue&type=template&id=852759c2\"\nimport script from \"./ViewActionHistory.vue?vue&type=script&lang=js\"\nexport * from \"./ViewActionHistory.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./VacancyCard.vue?vue&type=template&id=251847f9&scoped=true\"\nimport script from \"./VacancyCard.vue?vue&type=script&lang=js\"\nexport * from \"./VacancyCard.vue?vue&type=script&lang=js\"\n\nimport \"../pages/public-job-vacancy.scss?vue&type=style&index=0&id=251847f9&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-251847f9\"]])\n\nexport default __exports__","import { render } from \"./VacancyList.vue?vue&type=template&id=68e0eff5&scoped=true\"\nimport script from \"./VacancyList.vue?vue&type=script&lang=js\"\nexport * from \"./VacancyList.vue?vue&type=script&lang=js\"\n\nimport \"./public-job-vacancy.scss?vue&type=style&index=0&id=68e0eff5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-68e0eff5\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./SuccessDialog.vue?vue&type=template&id=76269556&scoped=true\"\nimport script from \"./SuccessDialog.vue?vue&type=script&lang=js\"\nexport * from \"./SuccessDialog.vue?vue&type=script&lang=js\"\n\nimport \"./SuccessDialog.vue?vue&type=style&index=0&id=76269556&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-76269556\"]])\n\nexport default __exports__","import { render } from \"./ApplyJobVacancy.vue?vue&type=template&id=316ef8c9&scoped=true\"\nimport script from \"./ApplyJobVacancy.vue?vue&type=script&lang=js\"\nexport * from \"./ApplyJobVacancy.vue?vue&type=script&lang=js\"\n\nimport \"./public-job-vacancy.scss?vue&type=style&index=0&id=316ef8c9&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-316ef8c9\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SaveInterviewAttachment.vue?vue&type=template&id=08d320cc\"\nimport script from \"./SaveInterviewAttachment.vue?vue&type=script&lang=js\"\nexport * from \"./SaveInterviewAttachment.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditInterviewAttachment.vue?vue&type=template&id=5646de72\"\nimport script from \"./EditInterviewAttachment.vue?vue&type=script&lang=js\"\nexport * from \"./EditInterviewAttachment.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ViewInterviewAttachments.vue?vue&type=template&id=451febef&scoped=true\"\nimport script from \"./ViewInterviewAttachments.vue?vue&type=script&lang=js\"\nexport * from \"./ViewInterviewAttachments.vue?vue&type=script&lang=js\"\n\nimport \"./ViewInterviewAttachments.vue?vue&type=style&index=0&id=451febef&scoped=true&lang=scss\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-451febef\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport ViewJobVacancy from './pages/ViewJobVacancy.vue';\nimport AddJobVacancy from './pages/AddJobVacancy.vue';\nimport EditJobVacancy from './pages/EditJobVacancy.vue';\nimport HireAction from './pages/HireAction.vue';\nimport InterviewFailedAction from './pages/InterviewFailAction.vue';\nimport InterviewPassedAction from './pages/InterviewPassedAction.vue';\nimport InterviewScheduleAction from './pages/InterviewScheduleAction.vue';\nimport OfferJobAction from './pages/OfferJobAction.vue';\nimport OfferDeclinedAction from './pages/DeclineOfferAction.vue';\nimport RejectAction from './pages/RejectAction.vue';\nimport ShortlistAction from './pages/ShortlistAction.vue';\nimport SaveCandidate from './pages/SaveCandidate.vue';\nimport ViewCandidatesList from './pages/ViewCandidatesList.vue';\nimport ViewCandidateProfile from './pages/ViewCandidateProfile.vue';\nimport ViewActionHistory from './pages/ViewActionHistory.vue';\nimport VacancyList from './pages/VacancyList.vue';\nimport ApplyJobVacancy from './pages/ApplyJobVacancy.vue';\nimport ViewInterviewAttachments from './pages/ViewInterviewAttachments.vue';\n\nexport default {\n 'view-job-vacancy': ViewJobVacancy,\n 'add-job-vacancy': AddJobVacancy,\n 'edit-job-vacancy': EditJobVacancy,\n 'save-candidate': SaveCandidate,\n 'view-candidates-list': ViewCandidatesList,\n 'view-candidate-profile': ViewCandidateProfile,\n 'shortlist-action': ShortlistAction,\n 'reject-action': RejectAction,\n 'interview-schedule-action': InterviewScheduleAction,\n 'interview-passed-action': InterviewPassedAction,\n 'interview-failed-action': InterviewFailedAction,\n 'offer-job-action': OfferJobAction,\n 'offer-decline-action': OfferDeclinedAction,\n 'hire-action': HireAction,\n 'view-action-history': ViewActionHistory,\n 'vacancy-list': VacancyList,\n 'apply-job-vacancy': ApplyJobVacancy,\n 'view-interview-attachments': ViewInterviewAttachments,\n};\n","\n\n\n\n","import { render } from \"./MyTracker.vue?vue&type=template&id=98b484f2\"\nimport script from \"./MyTracker.vue?vue&type=script&lang=js\"\nexport * from \"./MyTracker.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmployeeTrackers.vue?vue&type=template&id=4cfaa9a4\"\nimport script from \"./EmployeeTrackers.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTrackers.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./KpiEdit.vue?vue&type=template&id=7cf38636&scoped=true\"\nimport script from \"./KpiEdit.vue?vue&type=script&lang=js\"\nexport * from \"./KpiEdit.vue?vue&type=script&lang=js\"\n\nimport \"./kpi.scss?vue&type=style&index=0&id=7cf38636&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7cf38636\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./KpiSave.vue?vue&type=template&id=f93b79d6&scoped=true\"\nimport script from \"./KpiSave.vue?vue&type=script&lang=js\"\nexport * from \"./KpiSave.vue?vue&type=script&lang=js\"\n\nimport \"./kpi.scss?vue&type=style&index=0&id=f93b79d6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f93b79d6\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./KpiSearch.vue?vue&type=template&id=4f1e9da6\"\nimport script from \"./KpiSearch.vue?vue&type=script&lang=js\"\nexport * from \"./KpiSearch.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./SupervisorAutoComplete.vue?vue&type=template&id=bc731d42\"\nimport script from \"./SupervisorAutoComplete.vue?vue&type=script&lang=js\"\nexport * from \"./SupervisorAutoComplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./AddReview.vue?vue&type=template&id=07c0323b&scoped=true\"\nimport script from \"./AddReview.vue?vue&type=script&lang=js\"\nexport * from \"./AddReview.vue?vue&type=script&lang=js\"\n\nimport \"./review.scss?vue&type=style&index=0&id=07c0323b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-07c0323b\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./EditReview.vue?vue&type=template&id=d6976f66&scoped=true\"\nimport script from \"./EditReview.vue?vue&type=script&lang=js\"\nexport * from \"./EditReview.vue?vue&type=script&lang=js\"\n\nimport \"./review.scss?vue&type=style&index=0&id=d6976f66&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d6976f66\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./PerformanceTrackers.vue?vue&type=template&id=e408492e\"\nimport script from \"./PerformanceTrackers.vue?vue&type=script&lang=js\"\nexport * from \"./PerformanceTrackers.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ReviewerAutoComplete.vue?vue&type=template&id=36bfdafe\"\nimport script from \"./ReviewerAutoComplete.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewerAutoComplete.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./SavePerformanceTracker.vue?vue&type=template&id=f8e523ea\"\nimport script from \"./SavePerformanceTracker.vue?vue&type=script&lang=js\"\nexport * from \"./SavePerformanceTracker.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditPerformanceTracker.vue?vue&type=template&id=7634600b\"\nimport script from \"./EditPerformanceTracker.vue?vue&type=script&lang=js\"\nexport * from \"./EditPerformanceTracker.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\ntype ReviewAction = {\n component: string;\n props: object;\n};\n\nexport const viewIcon: ReviewAction = {\n component: 'oxd-icon-button',\n props: {\n name: 'eye-fill',\n title: 'View',\n },\n};\n\nexport const editIcon: ReviewAction = {\n component: 'oxd-icon-button',\n props: {\n name: 'pencil-fill',\n title: 'Edit',\n },\n};\n\nexport const evaluateIcon: ReviewAction = {\n component: 'oxd-icon-button',\n props: {\n name: 'file-text-fill',\n title: 'Evaluate',\n },\n};\n\nexport const viewLabel: ReviewAction = {\n component: 'oxd-button',\n props: {\n label: 'View',\n displayType: 'text',\n size: 'medium',\n style: {\n 'min-width': '120px',\n },\n },\n};\n\nexport const editLabel: ReviewAction = {\n component: 'oxd-button',\n props: {\n label: 'Edit',\n displayType: 'text',\n size: 'medium',\n style: {\n 'min-width': '120px',\n },\n },\n};\n\nexport const evaluateLabel: ReviewAction = {\n component: 'oxd-button',\n props: {\n label: 'Evaluate',\n displayType: 'text',\n size: 'medium',\n style: {\n 'min-width': '120px',\n },\n },\n};\n","\n\n\n\n\n\n\n","import { render } from \"./ReviewPeriodCell.vue?vue&type=template&id=ab384128&scoped=true\"\nimport script from \"./ReviewPeriodCell.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewPeriodCell.vue?vue&type=script&lang=js\"\n\nimport \"./ReviewPeriodCell.vue?vue&type=style&index=0&id=ab384128&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ab384128\"]])\n\nexport default __exports__","import { render } from \"./MyReviews.vue?vue&type=template&id=0a23ca8f&scoped=true\"\nimport script from \"./MyReviews.vue?vue&type=script&lang=js\"\nexport * from \"./MyReviews.vue?vue&type=script&lang=js\"\n\nimport \"./MyReviews.vue?vue&type=style&index=0&id=0a23ca8f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0a23ca8f\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./ReviewStatusDropdown.vue?vue&type=template&id=70301144\"\nimport script from \"./ReviewStatusDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewStatusDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./ReviewList.vue?vue&type=template&id=2415900c&scoped=true\"\nimport script from \"./ReviewList.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewList.vue?vue&type=script&lang=js\"\n\nimport \"./ReviewList.vue?vue&type=style&index=0&id=2415900c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2415900c\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./ReviewSearch.vue?vue&type=template&id=f1a9132e&scoped=true\"\nimport script from \"./ReviewSearch.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewSearch.vue?vue&type=script&lang=js\"\n\nimport \"./ReviewSearch.vue?vue&type=style&index=0&id=f1a9132e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f1a9132e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {ref, nextTick, onMounted, onBeforeUnmount} from 'vue';\nimport {promiseDebounce} from '@ohrm/oxd';\n\ntype useInfiniteScrollArgs = {\n refName?: string;\n scrollDistance?: number;\n debounceInterval?: number;\n};\n\nexport interface CustomElement extends HTMLElement {\n $el: HTMLElement;\n}\n\nexport default function useInfiniteScroll(\n executor: () => void,\n {\n refName = 'scrollerRef',\n scrollDistance = 100,\n debounceInterval = 100,\n }: useInfiniteScrollArgs = {},\n) {\n let scrolledAmount = 0,\n isScrollDown = false;\n const scrollContainer = ref();\n const onScroll = promiseDebounce(async () => executor(), debounceInterval);\n\n const onScrollEvent = () => {\n let scrollHeight, clientHeight, scrollTop;\n\n if (scrollContainer.value) {\n ({scrollHeight, clientHeight, scrollTop} =\n scrollContainer.value.$el || scrollContainer.value);\n } else {\n scrollTop = window.scrollY;\n scrollHeight = document.body.scrollHeight;\n clientHeight = document.body.clientHeight;\n }\n\n // compare previous scroll with current scroll top to find vertical direction\n isScrollDown = scrollTop > scrolledAmount;\n scrolledAmount = scrollTop;\n\n // clientHeight = inner height of an element in pixels (without overflow)\n // scrollHeight = inner height of an element in pixels including overflown content\n // scrollTop = how much content is scrolled vertically in pixels\n const scrollerAtBottom =\n scrollTop + clientHeight >= scrollHeight - (scrollDistance || 0);\n\n if (isScrollDown && scrollerAtBottom) onScroll();\n };\n\n onMounted(async () => {\n await nextTick();\n if (scrollContainer.value) {\n (scrollContainer.value.$el || scrollContainer.value).addEventListener(\n 'scroll',\n onScrollEvent,\n );\n } else {\n document.addEventListener('scroll', onScrollEvent);\n }\n });\n\n onBeforeUnmount(() => {\n if (scrollContainer.value) {\n (scrollContainer.value.$el || scrollContainer.value).removeEventListener(\n 'scroll',\n onScrollEvent,\n );\n } else {\n document.removeEventListener('scroll', onScrollEvent);\n }\n });\n\n return {\n [refName]: scrollContainer,\n };\n}\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./TrackerLogRatingButton.vue?vue&type=template&id=21511c97&scoped=true\"\nimport script from \"./TrackerLogRatingButton.vue?vue&type=script&lang=js\"\nexport * from \"./TrackerLogRatingButton.vue?vue&type=script&lang=js\"\n\nimport \"./TrackerLogRatingButton.vue?vue&type=style&index=0&id=21511c97&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-21511c97\"]])\n\nexport default __exports__","import { render } from \"./AddTrackerLogModal.vue?vue&type=template&id=38b5fab4&scoped=true\"\nimport script from \"./AddTrackerLogModal.vue?vue&type=script&lang=js\"\nexport * from \"./AddTrackerLogModal.vue?vue&type=script&lang=js\"\n\nimport \"./tracker-log-modal.scss?vue&type=style&index=0&id=38b5fab4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-38b5fab4\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditTrackerLogModal.vue?vue&type=template&id=5f6526aa&scoped=true\"\nimport script from \"./EditTrackerLogModal.vue?vue&type=script&lang=js\"\nexport * from \"./EditTrackerLogModal.vue?vue&type=script&lang=js\"\n\nimport \"./tracker-log-modal.scss?vue&type=style&index=0&id=5f6526aa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5f6526aa\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeTrackerLogCard.vue?vue&type=template&id=6a9799ac&scoped=true\"\nimport script from \"./EmployeeTrackerLogCard.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTrackerLogCard.vue?vue&type=script&lang=js\"\n\nimport \"./tracker-log-card.scss?vue&type=style&index=0&id=6a9799ac&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6a9799ac\"]])\n\nexport default __exports__","import { render } from \"./EmployeeTrackerLogs.vue?vue&type=template&id=f225ba5e&scoped=true\"\nimport script from \"./EmployeeTrackerLogs.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeTrackerLogs.vue?vue&type=script&lang=js\"\n\nimport \"./employee-tracker-log.scss?vue&type=style&index=0&id=f225ba5e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f225ba5e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ReviewSummary.vue?vue&type=template&id=21b21277&scoped=true\"\nimport script from \"./ReviewSummary.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewSummary.vue?vue&type=script&lang=js\"\n\nimport \"./review-summary.scss?vue&type=style&index=0&id=21b21277&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-21b21277\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./FinalEvaluation.vue?vue&type=template&id=2711f6e6&scoped=true\"\nimport script from \"./FinalEvaluation.vue?vue&type=script&lang=js\"\nexport * from \"./FinalEvaluation.vue?vue&type=script&lang=js\"\n\nimport \"./final-evaluation.scss?vue&type=style&index=0&id=2711f6e6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2711f6e6\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EvaluationForm.vue?vue&type=template&id=d193810c&scoped=true\"\nimport script from \"./EvaluationForm.vue?vue&type=script&lang=js\"\nexport * from \"./EvaluationForm.vue?vue&type=script&lang=js\"\n\nimport \"./evaluation-form.scss?vue&type=style&index=0&id=d193810c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d193810c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {\n lessThanOrEqual,\n greaterThanOrEqual,\n} from '@/core/util/validation/rules';\nimport usei18n from '@/core/util/composable/usei18n';\nimport {APIService} from '@/core/util/services/api.service';\n\nexport interface JobTitle {\n id: number;\n name: string;\n deleted: boolean;\n}\n\nexport interface KPI {\n id: number;\n title: string;\n jobTitle: JobTitle;\n minRating: number;\n maxRating: number;\n isDefault: boolean;\n}\n\nexport interface EvaluationData {\n id: number;\n rating: string;\n comment: string;\n kpi: KPI;\n}\n\nexport interface Reviewer {\n empNumber: number;\n firstName: string;\n lastName: string;\n middleName: string;\n terminationId: number;\n jobTitle: JobTitle;\n}\n\nexport interface ReviewerData {\n status: number;\n employee: Reviewer;\n}\n\nexport interface AllowedAction {\n action: string;\n name: string;\n}\n\nexport interface Review {\n kpis: Array<{\n kpiId: number;\n rating: number;\n comment: string;\n }>;\n generalComment: string;\n}\n\nexport default function useReviewEvaluation(http: APIService) {\n const {$t} = usei18n();\n\n const getAllKpis = (reviewId: number) => {\n return http.request({\n method: 'GET',\n url: `/api/v2/performance/reviews/${reviewId}/kpis`,\n });\n };\n\n const getSupervisorReview = (reviewId: number) => {\n return http.request({\n method: 'GET',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/supervisor`,\n });\n };\n\n const getEmployeeReview = (reviewId: number) => {\n return http.request({\n method: 'GET',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/employee`,\n });\n };\n\n const getFinalReview = (reviewId: number) => {\n return http.request({\n method: 'GET',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/final`,\n });\n };\n\n const finalizeReview = (\n reviewId: number,\n reviewData: {\n complete: boolean;\n finalComment: string;\n finalRating: number;\n completedDate: string;\n },\n ) => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/final`,\n data: {\n ...reviewData,\n finalComment:\n reviewData.finalComment === '' ? null : reviewData.finalComment,\n },\n });\n };\n\n const saveEmployeeReview = (\n reviewId: number,\n complete: boolean,\n review: Review,\n ) => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/employee`,\n data: {\n complete,\n ratings: review.kpis,\n generalComment: review.generalComment,\n },\n });\n };\n\n const saveSupervisorReview = (reviewId: number, review: Review) => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/performance/reviews/${reviewId}/evaluation/supervisor`,\n data: {\n ratings: review.kpis,\n generalComment: review.generalComment,\n },\n });\n };\n\n const generateRules = (kpis: KPI[]) => {\n return kpis.map((kpi) => [\n greaterThanOrEqual(\n kpi.minRating,\n $t('performance.rating_should_be_greater_than_or_equal_to_minValue', {\n minValue: kpi.minRating,\n }),\n ),\n lessThanOrEqual(\n kpi.maxRating,\n $t('performance.rating_should_be_less_than_or_equal_to_maxValue', {\n maxValue: kpi.maxRating,\n }),\n ),\n ]);\n };\n\n const generateModel = (kpis: KPI[]) => {\n return {\n kpis: kpis.map((kpi) => ({\n kpiId: kpi.id,\n rating: null,\n comment: null,\n })),\n generalComment: null,\n };\n };\n\n const generateEvaluationFormData = (\n evaluationData: EvaluationData[],\n generalComment: string,\n kpis: Array<{kpiId: number}>,\n ) => {\n return {\n kpis: kpis.map(({kpiId}) => {\n const _kpi = evaluationData.find((datum) => datum.kpi.id === kpiId);\n return {\n kpiId,\n rating: _kpi?.rating,\n comment: _kpi?.comment,\n };\n }),\n generalComment: generalComment,\n };\n };\n\n const generateReviewerData = (reviewerData: ReviewerData) => {\n return {\n details: {\n empNumber: reviewerData.employee.empNumber,\n firstName: reviewerData.employee.firstName,\n lastName: reviewerData.employee.lastName,\n middleName: reviewerData.employee.middleName,\n terminationId: reviewerData.employee.terminationId,\n },\n jobTitle: reviewerData.employee.jobTitle.name,\n status: reviewerData.status,\n };\n };\n\n const generateAllowedActions = (allowedActions: AllowedAction[] | null) => {\n return new Map(\n allowedActions?.map((action) => {\n return [action.action, action.name];\n }),\n );\n };\n\n return {\n getAllKpis,\n getEmployeeReview,\n getSupervisorReview,\n getFinalReview,\n generateRules,\n generateModel,\n generateReviewerData,\n generateAllowedActions,\n generateEvaluationFormData,\n finalizeReview,\n saveEmployeeReview,\n saveSupervisorReview,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./ReviewConfirmModal.vue?vue&type=template&id=76b5ab1c&scoped=true\"\nimport script from \"./ReviewConfirmModal.vue?vue&type=script&lang=js\"\nexport * from \"./ReviewConfirmModal.vue?vue&type=script&lang=js\"\n\nimport \"./ReviewConfirmModal.vue?vue&type=style&index=0&id=76b5ab1c&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-76b5ab1c\"]])\n\nexport default __exports__","import { render } from \"./AdminEvaluation.vue?vue&type=template&id=ecbdbb4c&scoped=true\"\nimport script from \"./AdminEvaluation.vue?vue&type=script&lang=js\"\nexport * from \"./AdminEvaluation.vue?vue&type=script&lang=js\"\n\nimport \"./review-evaluate.scss?vue&type=style&index=0&id=ecbdbb4c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ecbdbb4c\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SelfEvaluation.vue?vue&type=template&id=574fdbb6&scoped=true\"\nimport script from \"./SelfEvaluation.vue?vue&type=script&lang=js\"\nexport * from \"./SelfEvaluation.vue?vue&type=script&lang=js\"\n\nimport \"./review-evaluate.scss?vue&type=style&index=0&id=574fdbb6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-574fdbb6\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport MyTracker from './pages/MyTracker.vue';\nimport EmployeeTrackers from './pages/EmployeeTrackers.vue';\nimport KpiEdit from './pages/KpiEdit.vue';\nimport KpiSave from './pages/KpiSave.vue';\nimport KpiSearch from './pages/KpiSearch.vue';\nimport AddReview from './pages/AddReview.vue';\nimport EditReview from './pages/EditReview.vue';\nimport PerformanceTrackerList from './pages/PerformanceTrackers.vue';\nimport SavePerformanceTracker from './pages/SavePerformanceTracker.vue';\nimport EditPerformanceTracker from './pages/EditPerformanceTracker.vue';\nimport MyReviews from './pages/MyReviews.vue';\nimport ReviewList from './pages/ReviewList.vue';\nimport ReviewSearch from './pages/ReviewSearch.vue';\nimport EmployeeTrackerLogs from './pages/EmployeeTrackerLogs.vue';\nimport AdminEvaluation from './pages/AdminEvaluation.vue';\nimport SelfEvaluation from './pages/SelfEvaluation.vue';\n\nexport default {\n 'my-tracker': MyTracker,\n 'employee-trackers': EmployeeTrackers,\n 'kpi-search': KpiSearch,\n 'kpi-save': KpiSave,\n 'kpi-edit': KpiEdit,\n 'add-review': AddReview,\n 'edit-review': EditReview,\n 'performance-tracker-list': PerformanceTrackerList,\n 'performance-tracker-save': SavePerformanceTracker,\n 'performance-tracker-edit': EditPerformanceTracker,\n 'my-reviews': MyReviews,\n 'review-list': ReviewList,\n 'review-search': ReviewSearch,\n 'employee-tracker-logs': EmployeeTrackerLogs,\n 'admin-evaluation': AdminEvaluation,\n 'self-evaluation': SelfEvaluation,\n};\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./ProfilePicture.vue?vue&type=template&id=49d66b74&scoped=true\"\nimport script from \"./ProfilePicture.vue?vue&type=script&lang=js\"\nexport * from \"./ProfilePicture.vue?vue&type=script&lang=js\"\n\nimport \"./ProfilePicture.vue?vue&type=style&index=0&id=49d66b74&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-49d66b74\"]])\n\nexport default __exports__","import { render } from \"./SummaryCard.vue?vue&type=template&id=0415b0f1&scoped=true\"\nimport script from \"./SummaryCard.vue?vue&type=script&lang=js\"\nexport * from \"./SummaryCard.vue?vue&type=script&lang=js\"\n\nimport \"./SummaryCard.vue?vue&type=style&index=0&id=0415b0f1&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0415b0f1\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","import script from \"./QRCode.vue?vue&type=script&lang=js\"\nexport * from \"./QRCode.vue?vue&type=script&lang=js\"\n\nimport \"./QRCode.vue?vue&type=style&index=0&id=74e533de&scoped=true&lang=css\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-74e533de\"]])\n\nexport default __exports__","import { render } from \"./EmployeeDetails.vue?vue&type=template&id=d01dcc04&scoped=true\"\nimport script from \"./EmployeeDetails.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeDetails.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeDetails.vue?vue&type=style&index=0&id=d01dcc04&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d01dcc04\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./SummaryCardDetails.vue?vue&type=template&id=59b69fb8\"\nimport script from \"./SummaryCardDetails.vue?vue&type=script&lang=js\"\nexport * from \"./SummaryCardDetails.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./CorporateDirectory.vue?vue&type=template&id=0d01fa51&scoped=true\"\nimport script from \"./CorporateDirectory.vue?vue&type=script&lang=js\"\nexport * from \"./CorporateDirectory.vue?vue&type=script&lang=js\"\n\nimport \"./corporate-directory.scss?vue&type=style&index=0&id=0d01fa51&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0d01fa51\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport CorporateDirectory from './pages/CorporateDirectory.vue';\n\nexport default {\n 'corporate-directory-employee-list': CorporateDirectory,\n};\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./LoginLayout.vue?vue&type=template&id=50815349&scoped=true\"\nimport script from \"./LoginLayout.vue?vue&type=script&lang=js\"\nexport * from \"./LoginLayout.vue?vue&type=script&lang=js\"\n\nimport \"./login-layout.scss?vue&type=style&index=0&id=50815349&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-50815349\"]])\n\nexport default __exports__","import { render } from \"./Login.vue?vue&type=template&id=358db50f&scoped=true\"\nimport script from \"./Login.vue?vue&type=script&lang=js\"\nexport * from \"./Login.vue?vue&type=script&lang=js\"\n\nimport \"./login.scss?vue&type=style&index=0&id=358db50f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-358db50f\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Forbidden.vue?vue&type=template&id=2d224a00\"\nimport script from \"./Forbidden.vue?vue&type=script&lang=js\"\nexport * from \"./Forbidden.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./CardNote.vue?vue&type=template&id=58e596ce&scoped=true\"\nimport script from \"./CardNote.vue?vue&type=script&lang=js\"\nexport * from \"./CardNote.vue?vue&type=script&lang=js\"\n\nimport \"./CardNote.vue?vue&type=style&index=0&id=58e596ce&scoped=true&lang=scss\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-58e596ce\"]])\n\nexport default __exports__","import { render } from \"./ResetPassword.vue?vue&type=template&id=3069512e&scoped=true\"\nimport script from \"./ResetPassword.vue?vue&type=script&lang=js\"\nexport * from \"./ResetPassword.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=3069512e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3069512e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ResetWeakPassword.vue?vue&type=template&id=cae6a014&scoped=true\"\nimport script from \"./ResetWeakPassword.vue?vue&type=script&lang=js\"\nexport * from \"./ResetWeakPassword.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=cae6a014&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cae6a014\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./ResetPasswordError.vue?vue&type=template&id=0928170e&scoped=true\"\nimport script from \"./ResetPasswordError.vue?vue&type=script&lang=js\"\nexport * from \"./ResetPasswordError.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=0928170e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0928170e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./AdministratorAccess.vue?vue&type=template&id=3614f3e7&scoped=true\"\nimport script from \"./AdministratorAccess.vue?vue&type=script&lang=js\"\nexport * from \"./AdministratorAccess.vue?vue&type=script&lang=js\"\n\nimport \"./AdministratorAccess.vue?vue&type=style&index=0&id=3614f3e7&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3614f3e7\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./RequestResetPassword.vue?vue&type=template&id=cee5d450&scoped=true\"\nimport script from \"./RequestResetPassword.vue?vue&type=script&lang=js\"\nexport * from \"./RequestResetPassword.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=cee5d450&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cee5d450\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./ResetPasswordSuccess.vue?vue&type=template&id=3198c915&scoped=true\"\nimport script from \"./ResetPasswordSuccess.vue?vue&type=script&lang=js\"\nexport * from \"./ResetPasswordSuccess.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=3198c915&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3198c915\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EmailConfigurationWarning.vue?vue&type=template&id=64d8674c&scoped=true\"\nimport script from \"./EmailConfigurationWarning.vue?vue&type=script&lang=js\"\nexport * from \"./EmailConfigurationWarning.vue?vue&type=script&lang=js\"\n\nimport \"./reset-password.scss?vue&type=style&index=0&id=64d8674c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-64d8674c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport Login from './pages/Login.vue';\nimport Forbidden from './pages/Forbidden.vue';\nimport ResetPassword from './pages/ResetPassword.vue';\nimport ResetWeakPassword from './pages/ResetWeakPassword.vue';\nimport ResetPasswordError from './pages/ResetPasswordError.vue';\nimport AdministratorAccess from './pages/AdministratorAccess.vue';\nimport RequestResetPassword from './pages/RequestResetPassword.vue';\nimport ResetPasswordSuccess from './pages/ResetPasswordSuccess.vue';\nimport EmailConfigurationWarning from './pages/EmailConfigurationWarning.vue';\n\nexport default {\n 'auth-login': Login,\n 'auth-forbidden': Forbidden,\n 'reset-password': ResetPassword,\n 'auth-admin-access': AdministratorAccess,\n 'reset-weak-password': ResetWeakPassword,\n 'reset-password-error': ResetPasswordError,\n 'reset-password-success': ResetPasswordSuccess,\n 'request-reset-password': RequestResetPassword,\n 'email-configuration-warning': EmailConfigurationWarning,\n};\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./BaseWidget.vue?vue&type=template&id=fcab0262&scoped=true\"\nimport script from \"./BaseWidget.vue?vue&type=script&lang=js\"\nexport * from \"./BaseWidget.vue?vue&type=script&lang=js\"\n\nimport \"./base-widget.scss?vue&type=style&index=0&id=fcab0262&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fcab0262\"]])\n\nexport default __exports__","import { render } from \"./QuickLaunchWidget.vue?vue&type=template&id=6321cefe&scoped=true\"\nimport script from \"./QuickLaunchWidget.vue?vue&type=script&lang=js\"\nexport * from \"./QuickLaunchWidget.vue?vue&type=script&lang=js\"\n\nimport \"./quick-launch-widget.scss?vue&type=style&index=0&id=6321cefe&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6321cefe\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./VideoFrame.vue?vue&type=template&id=2cbd4256&scoped=true\"\nimport script from \"./VideoFrame.vue?vue&type=script&lang=js\"\nexport * from \"./VideoFrame.vue?vue&type=script&lang=js\"\n\nimport \"./VideoFrame.vue?vue&type=style&index=0&id=2cbd4256&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2cbd4256\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {AxiosResponse} from 'axios';\nimport {APIService} from '@/core/util/services/api.service';\n\nexport interface Employee {\n empNumber: number;\n lastName: string;\n firstName: string;\n middleName: string;\n employeeId: string;\n terminationId?: number;\n}\n\nexport interface Post {\n text: string;\n employee: Employee;\n createdDate: string;\n createdTime: string;\n}\n\nexport interface PostBody {\n text: string;\n type: string;\n link?: string;\n photos?: Array;\n deletedPhotos?: Array;\n}\n\ntype Capability = 'canRead' | 'canCreate' | 'canUpdate' | 'canDelete';\n\ntype Permission = {\n [key in Capability]: boolean;\n};\n\ninterface CommentsResponse {\n data: Array<{\n comment: {\n id: number;\n createdDate: string;\n createdTime: string;\n };\n employee: Employee;\n }>;\n meta: {\n total: number;\n };\n}\n\ninterface PostsResponse {\n data: Array<{\n id: number;\n text: string;\n type: string;\n liked: boolean;\n employee: Employee;\n createdDate: string;\n createdTime: string;\n permission: Permission;\n originalPost: Post | null;\n }>;\n meta: {\n total: number;\n };\n}\n\nexport default function useBuzzAPIs(http: APIService) {\n const fetchPostComments = (\n postId: number,\n limit = 0,\n detailed = false,\n ): Promise> => {\n return http.request({\n method: 'GET',\n url: `/api/v2/buzz/shares/${postId}/comments`,\n params: {\n limit: limit,\n ...(detailed && {model: 'detailed'}),\n },\n });\n };\n\n const savePostComment = (\n postId: number,\n comment: string,\n ): Promise => {\n return http.request({\n method: 'POST',\n url: `/api/v2/buzz/shares/${postId}/comments`,\n data: {text: comment},\n });\n };\n\n const updatePostComment = (\n postId: number,\n commentId: number,\n comment: string,\n ): Promise => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/buzz/shares/${postId}/comments/${commentId}`,\n data: {text: comment},\n });\n };\n\n const deletePostComment = (\n postId: number,\n commentId: number,\n ): Promise => {\n return http.request({\n method: 'DELETE',\n url: `/api/v2/buzz/shares/${postId}/comments/${commentId}`,\n });\n };\n\n const fetchPostLikes = (postId: number): Promise => {\n return http.request({\n method: 'GET',\n url: `/api/v2/buzz/shares/${postId}/likes`,\n });\n };\n\n const fetchPosts = (\n limit: number,\n offset: number,\n sortOrder: 'ASC' | 'DESC',\n sortField:\n | 'share.createdAtUtc'\n | 'share.numOfLikes'\n | 'share.numOfComments',\n ): Promise> => {\n return http.request({\n method: 'GET',\n url: '/api/v2/buzz/feed',\n params: {\n limit,\n offset,\n sortOrder,\n sortField,\n },\n });\n };\n\n const updatePostLike = (\n postId: number,\n like: boolean,\n ): Promise => {\n return http.request({\n method: like ? 'DELETE' : 'POST',\n url: `/api/v2/buzz/shares/${postId}/likes`,\n });\n };\n\n const updateCommentLike = (\n commentId: number,\n like: boolean,\n ): Promise => {\n return http.request({\n method: like ? 'DELETE' : 'POST',\n url: `/api/v2/buzz/comments/${commentId}/likes`,\n });\n };\n\n const deletePost = (postId: number): Promise => {\n return http.request({\n method: 'DELETE',\n url: `/api/v2/buzz/shares/${postId}`,\n });\n };\n\n const updatePost = (\n postId: number,\n post: PostBody,\n ): Promise => {\n if (post.type === 'photo') {\n delete post['link'];\n }\n if (post.type === 'video') {\n delete post['photos'];\n delete post['deletedPhotos'];\n }\n if (post.type === 'text') {\n delete post['link'];\n delete post['photos'];\n }\n return http.request({\n method: 'PUT',\n url: `/api/v2/buzz/posts/${postId}`,\n data: {...post},\n params: {model: 'detailed'},\n });\n };\n\n const updateSharedPost = (\n postId: number,\n text: string,\n ): Promise => {\n return http.request({\n method: 'PUT',\n url: `/api/v2/buzz/shares/${postId}`,\n data: {text},\n params: {model: 'detailed'},\n });\n };\n\n return {\n fetchPosts,\n updatePost,\n deletePost,\n updatePostLike,\n fetchPostLikes,\n savePostComment,\n updateSharedPost,\n updatePostComment,\n deletePostComment,\n fetchPostComments,\n updateCommentLike,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./ProfileImage.vue?vue&type=template&id=7d93b59a&scoped=true\"\nimport script from \"./ProfileImage.vue?vue&type=script&lang=js\"\nexport * from \"./ProfileImage.vue?vue&type=script&lang=js\"\n\nimport \"./ProfileImage.vue?vue&type=style&index=0&id=7d93b59a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7d93b59a\"]])\n\nexport default __exports__","import { render } from \"./BuzzLatestPostWidget.vue?vue&type=template&id=5021c2bc&scoped=true\"\nimport script from \"./BuzzLatestPostWidget.vue?vue&type=script&lang=js\"\nexport * from \"./BuzzLatestPostWidget.vue?vue&type=script&lang=js\"\n\nimport \"./buzz-latest-post-widget.scss?vue&type=style&index=0&id=5021c2bc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5021c2bc\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeSubunitWidget.vue?vue&type=template&id=8c1519ac&scoped=true\"\nimport script from \"./EmployeeSubunitWidget.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeSubunitWidget.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeSubunitWidget.vue?vue&type=style&index=0&id=8c1519ac&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8c1519ac\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./MyActionSummaryWidget.vue?vue&type=template&id=267ef1b2&scoped=true\"\nimport script from \"./MyActionSummaryWidget.vue?vue&type=script&lang=js\"\nexport * from \"./MyActionSummaryWidget.vue?vue&type=script&lang=js\"\n\nimport \"./my-action-summary-widget.scss?vue&type=style&index=0&id=267ef1b2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-267ef1b2\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeLocationWidget.vue?vue&type=template&id=f6125ed6&scoped=true\"\nimport script from \"./EmployeeLocationWidget.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeLocationWidget.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeeLocationWidget.vue?vue&type=style&index=0&id=f6125ed6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f6125ed6\"]])\n\nexport default __exports__","\n\n\n
\n
\n \n
\n
\n \n {{ leave.empName }}\n \n \n {{ leave.leaveType }}\n \n
\n \n {{ leave.employeeId }}\n \n
\n \n \n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./EmployeesOnLeaveConfigModal.vue?vue&type=template&id=729478c0&scoped=true\"\nimport script from \"./EmployeesOnLeaveConfigModal.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeesOnLeaveConfigModal.vue?vue&type=script&lang=js\"\n\nimport \"./EmployeesOnLeaveConfigModal.vue?vue&type=style&index=0&id=729478c0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-729478c0\"]])\n\nexport default __exports__","import { render } from \"./EmployeesOnLeaveWidget.vue?vue&type=template&id=0bbde4fe&scoped=true\"\nimport script from \"./EmployeesOnLeaveWidget.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeesOnLeaveWidget.vue?vue&type=script&lang=js\"\n\nimport \"./employee-on-leave-widget.scss?vue&type=style&index=0&id=0bbde4fe&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0bbde4fe\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EmployeeAttendanceWidget.vue?vue&type=template&id=98346df6&scoped=true\"\nimport script from \"./EmployeeAttendanceWidget.vue?vue&type=script&lang=js\"\nexport * from \"./EmployeeAttendanceWidget.vue?vue&type=script&lang=js\"\n\nimport \"./employee-attendance-widget.scss?vue&type=style&index=0&id=98346df6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-98346df6\"]])\n\nexport default __exports__","import { render } from \"./ViewDashboard.vue?vue&type=template&id=47e79c96&scoped=true\"\nimport script from \"./ViewDashboard.vue?vue&type=script&lang=js\"\nexport * from \"./ViewDashboard.vue?vue&type=script&lang=js\"\n\nimport \"./ViewDashboard.vue?vue&type=style&index=0&id=47e79c96&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-47e79c96\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport ViewDashboard from '@/orangehrmDashboardPlugin/pages/ViewDashboard.vue';\n\nexport default {\n 'view-dashboard': ViewDashboard,\n};\n","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport Hammer from 'hammerjs';\nimport {onBeforeUnmount, onMounted, ref} from 'vue';\nimport {CustomElement} from './useInfiniteScroll';\n\nexport default function useSwipe(executor: ($event: HammerInput) => void) {\n let manager: HammerManager;\n const swipeContainer = ref();\n\n onMounted(() => {\n if (!swipeContainer.value) return;\n\n manager = new Hammer.Manager(\n swipeContainer.value?.$el || swipeContainer.value,\n );\n const Swipe = new Hammer.Swipe();\n manager.add(Swipe);\n manager.on('swipe', executor);\n });\n\n onBeforeUnmount(() => {\n manager?.destroy();\n });\n\n return {\n swipeContainer,\n };\n}\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PhotoFrame.vue?vue&type=template&id=1e5473e0&scoped=true\"\nimport script from \"./PhotoFrame.vue?vue&type=script&lang=js\"\nexport * from \"./PhotoFrame.vue?vue&type=script&lang=js\"\n\nimport \"./photo-frame.scss?vue&type=style&index=0&id=1e5473e0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1e5473e0\"]])\n\nexport default __exports__","import { render } from \"./PostBody.vue?vue&type=template&id=6a53586a&scoped=true\"\nimport script from \"./PostBody.vue?vue&type=script&lang=js\"\nexport * from \"./PostBody.vue?vue&type=script&lang=js\"\n\nimport \"./post-body.scss?vue&type=style&index=0&id=6a53586a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6a53586a\"]])\n\nexport default __exports__","\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PostStatsModal.vue?vue&type=template&id=77c45dfa&scoped=true\"\nimport script from \"./PostStatsModal.vue?vue&type=script&lang=js\"\nexport * from \"./PostStatsModal.vue?vue&type=script&lang=js\"\n\nimport \"./post-stats-modal.scss?vue&type=style&index=0&id=77c45dfa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-77c45dfa\"]])\n\nexport default __exports__","import { render } from \"./PostStats.vue?vue&type=template&id=096b057d&scoped=true\"\nimport script from \"./PostStats.vue?vue&type=script&lang=js\"\nexport * from \"./PostStats.vue?vue&type=script&lang=js\"\n\nimport \"./post-stats.scss?vue&type=style&index=0&id=096b057d&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-096b057d\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PostModal.vue?vue&type=template&id=cbb80b9a&scoped=true\"\nimport script from \"./PostModal.vue?vue&type=script&lang=js\"\nexport * from \"./PostModal.vue?vue&type=script&lang=js\"\n\nimport \"./PostModal.vue?vue&type=style&index=0&id=cbb80b9a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cbb80b9a\"]])\n\nexport default __exports__","import { render } from \"./ShareVideoModal.vue?vue&type=template&id=88037bac\"\nimport script from \"./ShareVideoModal.vue?vue&type=script&lang=js\"\nexport * from \"./ShareVideoModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PhotoUploadArea.vue?vue&type=template&id=42c23441&scoped=true\"\nimport script from \"./PhotoUploadArea.vue?vue&type=script&lang=js\"\nexport * from \"./PhotoUploadArea.vue?vue&type=script&lang=js\"\n\nimport \"./photo-upload-area.scss?vue&type=style&index=0&id=42c23441&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-42c23441\"]])\n\nexport default __exports__","import { render } from \"./PhotoInput.vue?vue&type=template&id=7401001c&scoped=true\"\nimport script from \"./PhotoInput.vue?vue&type=script&lang=js\"\nexport * from \"./PhotoInput.vue?vue&type=script&lang=js\"\n\nimport \"./photo-input.scss?vue&type=style&index=0&id=7401001c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7401001c\"]])\n\nexport default __exports__","import { render } from \"./SharePhotoModal.vue?vue&type=template&id=cff3ca5c\"\nimport script from \"./SharePhotoModal.vue?vue&type=script&lang=js\"\nexport * from \"./SharePhotoModal.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./CreatePost.vue?vue&type=template&id=cc1398f0&scoped=true\"\nimport script from \"./CreatePost.vue?vue&type=script&lang=js\"\nexport * from \"./CreatePost.vue?vue&type=script&lang=js\"\n\nimport \"./create-post.scss?vue&type=style&index=0&id=cc1398f0&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-cc1398f0\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PostLikeButton.vue?vue&type=template&id=e149abea&scoped=true\"\nimport script from \"./PostLikeButton.vue?vue&type=script&lang=js\"\nexport * from \"./PostLikeButton.vue?vue&type=script&lang=js\"\n\nimport \"./post-like-button.scss?vue&type=style&index=0&id=e149abea&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e149abea\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./PostShareButton.vue?vue&type=template&id=75ac1ce8\"\nimport script from \"./PostShareButton.vue?vue&type=script&lang=js\"\nexport * from \"./PostShareButton.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./PostCommentButton.vue?vue&type=template&id=fd795c6a\"\nimport script from \"./PostCommentButton.vue?vue&type=script&lang=js\"\nexport * from \"./PostCommentButton.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./PostActions.vue?vue&type=template&id=f9d19a8e&scoped=true\"\nimport script from \"./PostActions.vue?vue&type=script&lang=js\"\nexport * from \"./PostActions.vue?vue&type=script&lang=js\"\n\nimport \"./PostActions.vue?vue&type=style&index=0&id=f9d19a8e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f9d19a8e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./EditPostModal.vue?vue&type=template&id=d7bc64d6&scoped=true\"\nimport script from \"./EditPostModal.vue?vue&type=script&lang=js\"\nexport * from \"./EditPostModal.vue?vue&type=script&lang=js\"\n\nimport \"./EditPostModal.vue?vue&type=style&index=0&id=d7bc64d6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d7bc64d6\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","import { render } from \"./PhotoViewer.vue?vue&type=template&id=606dc22d&scoped=true\"\nimport script from \"./PhotoViewer.vue?vue&type=script&lang=js\"\nexport * from \"./PhotoViewer.vue?vue&type=script&lang=js\"\n\nimport \"./photo-viewer.scss?vue&type=style&index=0&id=606dc22d&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-606dc22d\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nexport default function useAutoFocus() {\n const autofocus = {\n mounted(el: HTMLElement) {\n if (!el) return;\n el.querySelector('input')?.focus();\n },\n };\n\n return {\n autofocus,\n };\n}\n","\n\n\n\n\n\n\n","import { render } from \"./PostComment.vue?vue&type=template&id=b16f1772&scoped=true\"\nimport script from \"./PostComment.vue?vue&type=script&lang=js\"\nexport * from \"./PostComment.vue?vue&type=script&lang=js\"\n\nimport \"./post-comment.scss?vue&type=style&index=0&id=b16f1772&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b16f1772\"]])\n\nexport default __exports__","import { render } from \"./PostCommentContainer.vue?vue&type=template&id=58a27a86&scoped=true\"\nimport script from \"./PostCommentContainer.vue?vue&type=script&lang=js\"\nexport * from \"./PostCommentContainer.vue?vue&type=script&lang=js\"\n\nimport \"./PostCommentContainer.vue?vue&type=style&index=0&id=58a27a86&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-58a27a86\"]])\n\nexport default __exports__","import { render } from \"./PostDetails.vue?vue&type=template&id=486acada&scoped=true\"\nimport script from \"./PostDetails.vue?vue&type=script&lang=js\"\nexport * from \"./PostDetails.vue?vue&type=script&lang=js\"\n\nimport \"./post-details.scss?vue&type=style&index=0&id=486acada&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-486acada\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./PostActionsPill.vue?vue&type=template&id=0963cda2&scoped=true\"\nimport script from \"./PostActionsPill.vue?vue&type=script&lang=js\"\nexport * from \"./PostActionsPill.vue?vue&type=script&lang=js\"\n\nimport \"./PostActionsPill.vue?vue&type=style&index=0&id=0963cda2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0963cda2\"]])\n\nexport default __exports__","import { render } from \"./PhotoCarousel.vue?vue&type=template&id=052f1294&scoped=true\"\nimport script from \"./PhotoCarousel.vue?vue&type=script&lang=js\"\nexport * from \"./PhotoCarousel.vue?vue&type=script&lang=js\"\n\nimport \"./photo-carousel.scss?vue&type=style&index=0&id=052f1294&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-052f1294\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./PostContainer.vue?vue&type=template&id=061e7373&scoped=true\"\nimport script from \"./PostContainer.vue?vue&type=script&lang=js\"\nexport * from \"./PostContainer.vue?vue&type=script&lang=js\"\n\nimport \"./post-container.scss?vue&type=style&index=0&id=061e7373&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-061e7373\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./SharePostModal.vue?vue&type=template&id=67079a5e&scoped=true\"\nimport script from \"./SharePostModal.vue?vue&type=script&lang=js\"\nexport * from \"./SharePostModal.vue?vue&type=script&lang=js\"\n\nimport \"./SharePostModal.vue?vue&type=style&index=0&id=67079a5e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-67079a5e\"]])\n\nexport default __exports__","import { render } from \"./NewsFeed.vue?vue&type=template&id=74e739a2&scoped=true\"\nimport script from \"./NewsFeed.vue?vue&type=script&lang=js\"\nexport * from \"./NewsFeed.vue?vue&type=script&lang=js\"\n\nimport \"./news-feed.scss?vue&type=style&index=0&id=74e739a2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-74e739a2\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./PostFilters.vue?vue&type=template&id=5df7d87f&scoped=true\"\nimport script from \"./PostFilters.vue?vue&type=script&lang=js\"\nexport * from \"./PostFilters.vue?vue&type=script&lang=js\"\n\nimport \"./post-filters.scss?vue&type=style&index=0&id=5df7d87f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5df7d87f\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./UpcomingAnniversaries.vue?vue&type=template&id=7a43ba69&scoped=true\"\nimport script from \"./UpcomingAnniversaries.vue?vue&type=script&lang=js\"\nexport * from \"./UpcomingAnniversaries.vue?vue&type=script&lang=js\"\n\nimport \"./upcoming-anniversaries.scss?vue&type=style&index=0&id=7a43ba69&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7a43ba69\"]])\n\nexport default __exports__","import { render } from \"./ViewBuzz.vue?vue&type=template&id=df9a4d4c&scoped=true\"\nimport script from \"./ViewBuzz.vue?vue&type=script&lang=js\"\nexport * from \"./ViewBuzz.vue?vue&type=script&lang=js\"\n\nimport \"./view-buzz.scss?vue&type=style&index=0&id=df9a4d4c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-df9a4d4c\"]])\n\nexport default __exports__","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport ViewBuzz from '@/orangehrmBuzzPlugin/pages/ViewBuzz.vue';\n\nexport default {\n 'view-buzz': ViewBuzz,\n};\n","\n\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./FlexTable.vue?vue&type=template&id=29402b1e&scoped=true\"\nimport script from \"./FlexTable.vue?vue&type=script&lang=js\"\nexport * from \"./FlexTable.vue?vue&type=script&lang=js\"\n\nimport \"./FlexTable.vue?vue&type=style&index=0&id=29402b1e&scoped=true&lang=scss\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-29402b1e\"]])\n\nexport default __exports__","import { render } from \"./SystemCheckScreen.vue?vue&type=template&id=b551a176&scoped=true\"\nimport script from \"./SystemCheckScreen.vue?vue&type=script&lang=js\"\nexport * from \"./SystemCheckScreen.vue?vue&type=script&lang=js\"\n\nimport \"./SystemCheckScreen.vue?vue&type=style&index=0&id=b551a176&scoped=true&lang=scss\"\n\nimport exportComponent from \"/data/docker/jwht-hrm-5.4/src/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b551a176\"]])\n\nexport default __exports__","/*\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport SystemCheckScreen from './pages/SystemCheckScreen.vue';\n\nexport default {\n 'system-check': SystemCheckScreen,\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport CorePages from '@/core/pages';\nimport AdminPages from '@/orangehrmAdminPlugin';\nimport PimPages from '@/orangehrmPimPlugin';\nimport HelpPages from '@/orangehrmHelpPlugin';\nimport TimePages from '@/orangehrmTimePlugin';\nimport LeavePages from '@/orangehrmLeavePlugin';\nimport OAuthPages from '@/orangehrmCoreOAuthPlugin';\nimport AttendancePages from '@/orangehrmAttendancePlugin';\nimport MaintenancePages from '@/orangehrmMaintenancePlugin';\nimport RecruitmentPages from '@/orangehrmRecruitmentPlugin';\nimport PerformancePages from '@/orangehrmPerformancePlugin';\nimport CorporateDirectoryPages from '@/orangehrmCorporateDirectoryPlugin';\nimport authenticationPages from '@/orangehrmAuthenticationPlugin';\nimport languagePages from '@/orangehrmAdminPlugin';\nimport dashboardPages from '@/orangehrmDashboardPlugin';\nimport buzzPages from '@/orangehrmBuzzPlugin';\nimport systemCheckPages from '@/orangehrmSystemCheckPlugin';\n\nexport default {\n ...AdminPages,\n ...PimPages,\n ...CorePages,\n ...HelpPages,\n ...TimePages,\n ...OAuthPages,\n ...LeavePages,\n ...AttendancePages,\n ...MaintenancePages,\n ...RecruitmentPages,\n ...PerformancePages,\n ...CorporateDirectoryPages,\n ...authenticationPages,\n ...languagePages,\n ...dashboardPages,\n ...buzzPages,\n ...systemCheckPages,\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {App, inject, ComponentOptions, getCurrentInstance} from 'vue';\n\nexport type Capability = 'canRead' | 'canCreate' | 'canUpdate' | 'canDelete';\n\nexport type DataGroup = {\n [key in Capability]: boolean;\n};\n\nexport interface Permission {\n [key: string]: DataGroup;\n}\n\nexport interface AclAPI {\n read: (...args: string[]) => boolean;\n create: (...args: string[]) => boolean;\n update: (...args: string[]) => boolean;\n delete: (...args: string[]) => boolean;\n}\n\nconst ResolvePermissions = (capability: Capability) => {\n return (...args: string[]): boolean => {\n const instance = getCurrentInstance();\n if (!instance) {\n throw new Error('Vue app context not found!');\n }\n const permissions = inject('permissions', undefined) as\n | Permission\n | undefined;\n if (permissions) {\n return args.reduce(\n (acc: boolean, rule: string) =>\n acc && Boolean(permissions[rule]) && permissions[rule][capability],\n true,\n );\n }\n return false;\n };\n};\n\nfunction defineMixin(): ComponentOptions {\n return {\n beforeCreate(): void {\n this.$can = {\n read: ResolvePermissions('canRead'),\n create: ResolvePermissions('canCreate'),\n update: ResolvePermissions('canUpdate'),\n delete: ResolvePermissions('canDelete'),\n };\n },\n };\n}\n\nexport default {\n install: (app: App) => {\n app.mixin(defineMixin());\n },\n};\n","import {nanoid} from 'nanoid';\nimport {OxdToast, TOAST_TYPES} from '@ohrm/oxd';\nimport {translate as translatorFactory} from '@/core/plugins/i18n/translate';\nimport {h, defineComponent, TransitionGroup, App, reactive, toRefs} from 'vue';\n\nconst translate = translatorFactory();\n\ninterface Toast {\n id: string;\n type: string;\n title: string;\n message: string;\n show: boolean;\n}\n\ninterface ToastMessage {\n title: string;\n message: string;\n}\n\ninterface ToasterOptions {\n animation?: string;\n class?: string;\n position?: string;\n persist?: boolean;\n duration?: number;\n}\n\ninterface ToasterState {\n toasts: Toast[];\n transition: string;\n class: string;\n position: string;\n}\n\nexport interface ToasterAPI {\n notify: (toast: Toast) => Promise;\n show: (message: ToastMessage) => Promise;\n success: (message: ToastMessage) => Promise;\n error: (message: ToastMessage) => Promise;\n info: (message: ToastMessage) => Promise;\n warn: (message: ToastMessage) => Promise;\n clear: (id: number | string) => void;\n clearAll: () => void;\n\n saveSuccess: () => Promise;\n addSuccess: () => Promise;\n updateSuccess: () => Promise;\n deleteSuccess: () => Promise;\n cannotDelete: () => Promise;\n noRecordsFound: () => Promise;\n unexpectedError: (errorMessage: string | null) => Promise;\n}\n\nconst state: ToasterState = reactive({\n toasts: [],\n transition: '',\n class: '',\n position: '',\n});\n\nconst Toaster = defineComponent({\n name: 'OxdToaster',\n setup() {\n return {\n ...toRefs(state),\n };\n },\n computed: {\n classes(): object {\n return {\n 'oxd-toast-container': true,\n [`oxd-toast-container--${this.position}`]: true,\n };\n },\n },\n methods: {\n onUpdateShow(state: boolean, index: number) {\n if (state === false) {\n this.toasts.splice(index, 1);\n }\n },\n },\n\n render() {\n return h(\n TransitionGroup,\n {appear: true, name: this.transition, tag: 'div', class: this.classes},\n {\n default: () =>\n this.toasts.map((toast: Toast, index: number) => {\n return h(OxdToast, {\n key: toast.id,\n type: toast.type,\n title: toast.title,\n message: toast.message,\n show: toast.show,\n class: this.class,\n 'onUpdate:show': (state: boolean) =>\n this.onUpdateShow(state, index),\n });\n }),\n },\n );\n },\n});\n\nexport default {\n install: (app: App, options: ToasterOptions) => {\n // Create toaster vdom element\n const toastWrapper = document.createElement('oxd-toaster');\n toastWrapper.id = 'oxd-toaster_1';\n (document.getElementById('app') as HTMLElement).appendChild(toastWrapper);\n\n // Toaster API\n const clear = (id: number | string): void => {\n if (typeof id === 'string') {\n const _index = state.toasts.findIndex((item) => item.id === id);\n if (_index > -1) {\n clear(_index);\n }\n } else if (state.toasts[id]) {\n state.toasts.splice(id, 1);\n }\n };\n\n const notify = (toast: Toast): Promise => {\n return new Promise((resolve) => {\n const _id = nanoid(8);\n state.toasts.push({...toast, id: _id});\n if (!options.persist) {\n const _duration = options.duration ? options.duration : 2500;\n setTimeout(() => {\n clear(_id);\n resolve(_id);\n }, _duration);\n } else {\n resolve(_id);\n }\n });\n };\n\n const success = (message: ToastMessage): Promise => {\n return notify({\n id: '', // Auto setting\n type: TOAST_TYPES.TYPE_SUCCESS,\n show: true,\n ...message,\n });\n };\n\n const error = (message: ToastMessage): Promise => {\n return notify({\n id: '', // Auto setting\n type: TOAST_TYPES.TYPE_ERROR,\n show: true,\n ...message,\n });\n };\n\n const info = (message: ToastMessage): Promise => {\n return notify({\n id: '', // Auto setting\n type: TOAST_TYPES.TYPE_INFO,\n show: true,\n ...message,\n });\n };\n\n const warn = (message: ToastMessage): Promise => {\n return notify({\n id: '', // Auto setting\n type: TOAST_TYPES.TYPE_WARN,\n show: true,\n ...message,\n });\n };\n\n const show = (message: ToastMessage): Promise => {\n return notify({\n id: '', // Auto setting\n type: TOAST_TYPES.TYPE_DEFAULT,\n show: true,\n ...message,\n });\n };\n\n const clearAll = (): void => {\n state.toasts = [];\n };\n\n const saveSuccess = () =>\n success({\n title: translate('general.success'),\n message: translate('general.successfully_saved'),\n });\n\n const addSuccess = () =>\n success({\n title: translate('general.success'),\n message: translate('general.successfully_added'),\n });\n\n const updateSuccess = () =>\n success({\n title: translate('general.success'),\n message: translate('general.successfully_updated'),\n });\n\n const deleteSuccess = () =>\n success({\n title: translate('general.success'),\n message: translate('general.successfully_deleted'),\n });\n\n const cannotDelete = () =>\n error({\n title: translate('general.error'),\n message: translate('general.cannot_be_deleted'),\n });\n\n const noRecordsFound = () =>\n info({\n title: translate('general.info'),\n message: translate('general.no_records_found'),\n });\n\n const unexpectedError = (errorMessage: string | null) =>\n error({\n title: translate('general.error'),\n message: errorMessage ?? translate('general.unexpected_error'),\n });\n\n state.class = options.class ? options.class : 'oxd-toast-container--toast';\n state.transition = options.animation ? options.animation : 'oxd-toast-list';\n state.position = options.position ? options.position : 'bottom';\n\n // Define Toaster component\n app.component('OxdToaster', Toaster);\n\n // Add Toaster API to Vue global scope\n const toasterAPI: ToasterAPI = {\n notify,\n show,\n success,\n error,\n info,\n warn,\n clear,\n clearAll,\n saveSuccess,\n addSuccess,\n updateSuccess,\n deleteSuccess,\n cannotDelete,\n noRecordsFound,\n unexpectedError,\n };\n app.config.globalProperties.$toast = toasterAPI;\n },\n};\n","/**\n * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures\n * all the essential functionalities required for any enterprise.\n * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com\n *\n * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along with this program;\n * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA\n */\n\nimport {createApp} from 'vue';\nimport components from './components';\nimport pages from './pages';\nimport acl, {AclAPI} from './core/plugins/acl/acl';\nimport toaster, {ToasterAPI} from './core/plugins/toaster/toaster';\nimport createI18n, {TranslateAPI} from './core/plugins/i18n/translate';\nimport '@ohrm/oxd/fonts.css';\nimport '@ohrm/oxd/icons.css';\nimport '@ohrm/oxd/style.css';\nimport './core/styles/global.scss';\nimport './core/plugins/toaster/toaster.scss';\nimport './core/plugins/loader/loader.scss';\n\nconst app = createApp({\n name: 'App',\n components: pages,\n});\n\n// Global Register Components\napp.use(components);\n\napp.use(toaster, {\n duration: 2500,\n persist: false,\n animation: 'oxd-toast-list',\n position: 'bottom',\n});\n\n// @ts-expect-error: appGlobal is not in window object by default\nconst baseUrl = window.appGlobal.baseUrl;\n\nconst {i18n, init} = createI18n({\n baseUrl: baseUrl,\n resourceUrl: 'core/i18n/messages',\n});\n\napp.use(acl);\napp.use(i18n);\n\n// https://github.com/vuejs/vue-next/pull/982\ndeclare module '@vue/runtime-core' {\n interface ComponentCustomProperties {\n $toast: ToasterAPI;\n $can: AclAPI;\n $t: TranslateAPI;\n }\n}\n\napp.config.globalProperties.global = {\n baseUrl,\n};\n\ninit().then(() => app.mount('#app'));\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"orangehrm:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t};\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkorangehrm\"] = self[\"webpackChunkorangehrm\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(6238); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","id","module","exports","_createBlock","_component_oxd_button","class","label","_ctx","type","name","__exports__","render","$props","_createElementBlock","_component_oxd_divider","_createElementVNode","_hoisted_2","_createVNode","_component_oxd_text","tag","count","onClick","$event","props","loading","Boolean","required","selected","Number","total","showDivider","default","emits","_component_oxd_layout","href","role","$setup","_component_oxd_icon_button","title","_","slotData","_renderSlot","_component_about","onClose","_component_oxd_dialog","style","width","maxWidth","$options","_hoisted_1","$data","_component_oxd_loading_spinner","_component_oxd_grid","cols","_component_oxd_grid_item","companyName","productName","version","undefined","numberOfActiveEmployee","_Fragment","key","numberOfPastEmployee","TempStorage","clear","this","_tempStorage","getItem","index","Object","removeItem","setItem","value","isSupported","storage","x","DOMException","length","WebStorage","constructor","_storage","prepare","endpoint","params","query","preparedEndpoint","JSON","parse","stringify","forEach","param","paramPlaceholder","includes","paramValue","toString","replace","console","error","preparedQueryString","queryKeys","queryKey","queryValue","Array","isArray","queryValueItem","itemIndex","encodeURI","urlFor","window","appGlobal","baseUrl","navigate","path","location","reloadPage","reload","APIService","_baseUrl","_apiSection","_http","axios","baseURL","_cacheStorage","localStorage","setupResponseInterceptors","getCurrentInstance","setIgnorePath","ignorePath","_ignorePathRegex","RegExp","getAll","headers","Accept","get","create","data","post","update","put","delete","deleteAll","request","options","url","ignoreError","response","status","config","test","vm","interceptors","use","reject","$toast","appContext","globalProperties","unexpectedError","message","removeETagWeakValidatorDirective","etag","startsWith","substring","cachedEtag","cacheData","http","apiSection","components","OxdSpinner","OxdDialog","setup","isLoading","beforeMount","finally","methods","onCancel","$emit","dateFormatKey","Symbol","useDateFormat","dateFormat","inject","jsDateFormat","convertPHPDateFormat","userDateFormat","timeFormat","jsTimeFormat","about","About","OxdLayout","inheritAttrs","permissions","logoutUrl","String","supportUrl","updatePasswordUrl","helpUrl","showAboutModel","ref","provide","readonly","openAboutModel","closeAboutModel","onClickSupport","open","_component_oxd_input_field","placeholder","events","locale","onSelectYear","defaultTimezones","offset","freshDate","Date","setHours","parseDate","parsed","isNaN","valueOf","getFullYear","formatDate","format","isBefore","reference","comparable","referenceDate","comparableDate","compareAsc","isAfter","isEqual","parseTime","formatTime","compareTime","referenceTime","comparableTime","NaN","diffInDays","fromDate","toDate","from","to","isSameDay","differenceInCalendarDays","diffInTime","startTime","endTime","start","end","diffInSecs","differenceInSeconds","secondsTohhmm","seconds","hours","Math","floor","minutes","padStart","parseTimeInSeconds","time","split","parseInt","parseFloat","setClockInterval","callback","interval","timer","setTimeout","getTime","getStandardTimezone","timezoneOffset","abs","toFixed","map","substr","i","padEnd","join","guessTimezone","timezoneName","Intl","DateTimeFormat","resolvedOptions","timeZone","getTimezoneOffset","resolvedTz","find","tz","formattedOffset","langStrings","translate","parameters","translatedString","defineMixin","beforeCreate","$t","createI18n","resourceUrl","init","method","contentType","process","language","target","source","IntlMessageFormat","ignoreTag","StoreService","i18n","app","mixin","usei18n","translatorFactory","useLocale","buildLocale","months","wide","abbreviated","days","state","reactive","attributes","responseValidator","fetchWorkWeek","async","model","validateStatus","fetchEvents","event","date","year","now","setFullYear","startOfYear","endDate","endOfYear","onBeforeMount","toRefs","step","install","component","Layout","OxdCardTable","OxdButton","OxdPagination","OxdDivider","OxdText","OxdIconButton","OxdForm","OxdFormRow","OxdFormActions","OxdInputField","OxdInputGroup","OxdGrid","OxdGridItem","OxdTableFilter","SubmitButton","TableHeader","RequiredText","DateInput","TimeInput","_component_oxd_alert","show","OxdAlert","_hoisted_3","src","alt","_hoisted_5","moduleUnderDevelopment","publicPath","script","BadRequest","NoRecordsFound","ModuleUnderDevelopment","Disabled","TimeSheetPeriodNotDefined","_component_table_header","onDelete","_hoisted_4","_component_oxd_card_table","order","items","selectable","clickable","_component_oxd_pagination","current","_component_delete_confirmation","useToast","wrap","fn","args","notify","success","info","warn","clearAll","saveSuccess","addSuccess","updateSuccess","deleteSuccess","cannotDelete","noRecordsFound","fetchData","meta","getPageParams","pageSize","currentPage","limit","getQueryParams","unref","entries","defaultNormalizer","usePaginate","normalizer","prefetch","toastNoRecords","showPaginator","pages","execQuery","pageParams","queryParams","rest","formattedData","ceil","watch","_Teleport","showDialog","useSort","sortParams","sortDefinition","sortField","computed","filter","column","sortOrder","onSort","func","defaultFilters","jobTitleName","jobDescription","defaultSortOrder","DeleteConfirmationDialog","filters","serializedFilters","slot","flex","cellType","cellConfig","onClickDelete","edit","onClickEdit","checkedItems","onClickAdd","item","onClickDeleteSelected","ids","push","$refs","deleteDialog","confirmation","deleteItems","resetDataTable","_component_oxd_form","onSubmitValid","_component_oxd_form_row","rules","description","_component_file_upload_input","newFile","newSpecification","file","oldSpecification","specification","hint","note","_component_oxd_form_actions","_component_required_text","_component_submit_button","trim","shouldNotExceedCharLength","charLength","amount","validDateFormat","displayFormat","shouldBeCurrentOrPreviousDate","currentDate","isValid","validTimeFormat","max","maxValue","digitsOnly","numericOnly","digitsOnlyWithDecimalPoint","digitsOnlyWithDecimalPointAndMinusSign","beforeDate","date1","date2","afterDate","sameDate","endDateShouldBeAfterStartDate","startDate","allowSameDate","resolvedStartDate","resolvedMessage","beforeTime","time1","time2","afterTime","sameTime","endTimeShouldBeAfterStartTime","allowSameTime","resolvedStartTime","maxFileSize","size","validFileTypes","fileTypes","findIndex","validEmailFormat","validPhoneNumberFormat","startDateShouldBeBeforeEndDate","resolvedEndDate","maxCurrency","startTimeShouldBeBeforeEndTime","resolvedEndTime","shouldNotLessThanCharLength","maxValueShouldBeGreaterThanMinValue","minValue","resolvedMinValue","minValueShouldBeLowerThanMaxValue","resolvedMaxValue","numberShouldBeBetweenMinAndMaxValue","min","validHexFormat","imageShouldHaveDimensions","aspectRatio","tolerance","image","Image","base64","decode","height","greaterThanOrEqual","lessThanOrEqual","validLangString","reduce","accumulator","currentValue","validSelection","validHostnameFormat","fqdnRegex","validPortRange","rangeFrom","rangeTo","_component_oxd_input_group","_component_oxd_icon","filename","_mergeProps","disabled","OxdIcon","Function","deletable","fileSelected","fieldLabel","fileName","downloadFile","downUrl","initialJobTitle","FileUploadInput","jobTitleId","allowedFileTypes","jobTitle","v","created","jobSpecification","toLowerCase","onSave","currentJobSpecification","jobCategoryId","category","errors","_component_oxd_table_filter","username","userRoleId","_component_employee_autocomplete","empNumber","employee","_hoisted_6","afterSelected","isPastEmployee","option","apiPath","serachParam","nameOrId","firstName","middleName","lastName","_employee","terminationId","useEmployeeNameTranslate","translateEmployeeName","includeMiddle","excludePastEmpTag","resolvedMiddleName","resolvedPastEmpTag","$tEmpName","EmployeeAutocomplete","unselectableIds","userdataNormalizer","userName","userRole","displayName","empName","isSelectable","userRoles","userStatuses","onClickReset","filterItems","autocomplete","_component_password_input","password","passwordConfirm","_component_password_strength_indicator","usePasswordPolicy","passwordStrength","validatePassword","strength","messages","_component_oxd_chip","OxdChip","passwordStrengthLabel","chipClasses","PasswordStrengthIndicator","promiseDebounce","$nextTick","triggerUpdate","userModel","PasswordInput","user","validateUserName","valid","changePassword","systemUserId","userId","_component_oxd_switch_input","children","_component_oxd_tree_view","content","nodeData","_component_oxd_sheet","_hoisted_7","unitId","_hoisted_8","_component_oxd_dropdown","_component_save_org_unit","_component_edit_org_unit","orgUnitModel","orgUnit","parentId","OxdSheet","SaveOrgUnit","EditOrgUnit","OxdTreeView","OxdDropdownMenu","OxdSwitchInput","responsiveState","useResponsive","isMobile","screenType","DEVICE_TYPES","editable","showSaveModal","saveModalState","showEditModal","editModalState","fetchOrgStructure","node","onAddOrglevel","onEditOrglevel","onSaveModalClose","onEditModalClose","mode","employmentStatusId","employmentStatus","educationId","qualification","skillModel","qualificationSkillId","skill","licenseId","license","qualificationLanguageId","qualificationMembershipId","membership","noOfEmployees","registrationNumber","taxId","phone","fax","email","street1","street2","city","province","zipCode","country","numberOfEmployees","countryList","organization","nationalityId","nationality","sentAs","mailType","pathToSendmail","smtpHost","smtpPort","classes","wrapper","smtpAuthType","smtpUsername","smtpPassword","testEmailAddress","passwordPlaceHolder","defaultValues","smtpSecurityType","useTLSSecureConnection","sendTestMailEditable","emailConfiguration","initialEmailConfiguration","testEmailStatus","onReset","countryCode","locationDataNormalizer","countryName","countries","address","initialLocation","hasCreatePermissions","$can","locationId","hasUpdatePermissions","currencyNormalizer","currencies","element","currency","grade","_component_pay_grade_currency","_component_save_pay_currency","_component_edit_pay_currency","_component_inline_action_button","currencyId","minSalary","maxSalary","payCurrencyModel","payGradeId","payCurrency","currencyType","PayGradeCurrencyNormalizer","InlineActionButton","SavePayCurrency","EditPayCurrency","onclickAdd","PayGradeCurrency","admin","pim","leave","recruitment","performance","_hoisted_9","directory","_hoisted_10","maintenance","_hoisted_11","mobile","modulesModel","modules","payload","workShiftNormalizer","hoursPerDay","_component_time_input","fromTime","_component_work_shift_employee_autocomplete","empNumbers","multiple","workShiftModel","WorkShiftEmployeeAutocomplete","workShiftConfig","workShift","selectedTimeDuration","workShiftId","employees","subscribersNormalizer","subscribers","slice","_type","sub","enabled","isEnabled","_loading","cellRenderer","row","addSubscriber","switchSubscription","modelValue","loader","withContainer","header","_component_save_subscriber","subscriptionId","_component_edit_subscriber","subscriberModel","subscriber","SaveSubscriber","EditSubscriber","dateFormatList","languageList","configuration","_component_inline_color_input","primaryColor","color","secondaryColor","primaryFontColor","secondaryFontColor","primaryGradientStartColor","primaryGradientEndColor","newAttachment","oldAttachment","clientLogo","clientBanner","loginBanner","useForm","refName","form","submit","onSubmit","Event","reset","validate","invalid","isFromInvalid","errorbag","_component_oxd_label","_component_oxd_color_input","OxdLabel","OxdColorInput","context","toRef","initialValue","emit","nextTick","hasError","useField","colorModel","fileUploadModel","InlineColorInput","allowedImageTypes","aspectRatios","aspectRatioTolerance","formRef","colors","showSocialMediaImages","onFormSubmit","getAttachment","variables","currentClientLogo","currentClientBanner","currentLoginBanner","onClickPreview","document","documentElement","setProperty","_component_add_language_modal","_component_languages_dropdown","activeOnly","LanguagesDropdown","languageName","AddLanguageModal","showAddLanguageModal","onClickTranslate","displayType","export","onClickExport","onClickAddLanguage","onAddLanguageModalClose","reloadLanguages","languageId","_component_language_group_list_dropdown","groupId","sourceText","translatedText","onlyTranslated","_component_edit_translations","langstrings","langstring","langString","onUpdateTranslation","_index","modified","GroupListDropdown","EditTranslationTable","languagePackage","sourceLanguage","translationOptions","sortOptions","onSubmitLangString","langStringId","translatedValue","enable","hostname","port","encryption","ldapImplementation","bindAnonymously","bindUserDN","bindUserPassword","hasBindUserPassword","baseDistinguishedName","searchScope","userNameAttribute","userSearchFilter","userUniqueIdAttribute","dataMapping","firstNameAttribute","middleNameAttribute","lastNameAttribute","userStatus","userStatusAttribute","employeeSelectorMapping","workEmail","workEmailAttribute","employeeId","employeeIdAttribute","mergeLDAPUsersWithExistingSystemUsers","syncInterval","_component_ldap_test_connection_modal","_component_ldap_sync_connection","lastSyncDate","lastSyncTime","lastSyncStatus","lastSync","parsedDateTime","datetime","getLastSyncStatus","syncStatus","syncFinishedAt","syncStartedAt","onClickSync","catch","checks","check","getClass","configurationModel","dataMappingModel","LdapSyncConnection","LdapTestConnectionModal","showSync","encryptionOptions","searchScopeOptions","ldapImplementationOptions","testModalState","workEmailLabelClasses","employeeIdLabelClasses","userLookupSettings","userLookupSetting","baseDN","onClickTest","getRequestBody","field","attributeName","onClickSave","onCloseTestModal","JobTitle","EditJobTitle","SaveJobTitle","JobCategory","EditJobCategory","SaveJobCategory","QualificationEducation","EditQualificationEducation","SaveQualificationEducation","SystemUser","EditSystemUser","SaveSystemUser","OrgStructure","EmploymentStatus","SaveEmploymentStatus","EditEmploymentStatus","QualificationSkill","EditQualificationSkill","SaveQualificationSkill","QualificationLicense","SaveQualificationLicense","EditQualificationLicense","EditModuleConfiguration","QualificationLanguage","EditQualificationLanguage","SaveQualificationLanguage","QualificationMembership","EditQualificationMembership","SaveQualificationMembership","ViewOrganizationGeneralInformation","Nationality","EditNationality","SaveNationality","LocationList","SaveLocation","EditLocation","ViewEmailConfiguration","PayGrade","AddPayGrade","EditPayGrade","WorkShift","SaveWorkShift","EditWorkShift","EmailSubscription","EditEmailSubscription","LocalizationConfiguration","CorporateBranding","LanguagePackages","EditLanguagePackage","LdapConfiguration","_component_profile_image_input","empPicture","imgSrc","showMiddleNamePlaceholder","localizedLabel","defaultPic","employeeModel","ProfileImageInput","empId","createLogin","profilePicUrl","isPicture","includeEmployees","_component_employment_status_dropdown","empStatusId","_component_include_employee_dropdown","supervisor","_component_jobtitle_dropdown","_component_subunit_dropdown","subunitId","_indent","level","includeOpts","JobtitleDropdown","SubunitDropdown","EmploymentStatusDropdown","IncludeEmployeeDropdown","unselectableEmpNumbers","dataNormalizer","firstAndMiddleName","isDeleted","empStatus","subunit","supervisors","supervisorEmpNumbers","stopImmediatePropagation","_component_edit_employee_layout","screen","nickname","otherId","drivingLicenseNo","_component_date_input","drivingLicenseExpiredDate","ssnNumber","sinNumber","maritalStatus","birthday","gender","militaryService","smoker","_component_tabs_navigation","tabs","_component_profile_custom_fields","_component_profile_attachments","tab","active","_component_save_attachment","_component_edit_attachment","_component_profile_action_header","BYTE","KILO_BYTE","MEGA_BYTE","GIGA_BYTE","convertFilesizeToString","digits","withSuffix","filesize","divisor","suffix","attachment","attachmentModel","currentFile","actionButtonShown","SaveAttachment","EditAttachment","ProfileActionHeader","attachmentDataNormalizer","attachedDate","tableHeaders","headerActions","read","download","onClickDownload","concat","extraData","formatExtraData","fields","customFieldsModel","fieldType","fieldName","transformRequest","TabsNavigation","ProfileAttachments","ProfileCustomFields","validator","employeeName","isCurrentEmp","onClickProfilePic","EditEmployeeLayout","nationalities","showDeprecatedFields","showSsnField","showSinField","maritalStatuses","updateModel","homeTelephone","workTelephone","otherEmail","contactDetailsModel","contact","validateWorkEmail","validateOtherEmail","sameAsOtherEmail","sameAsWorkEmail","validateEmailDifferent","resolvedEmail","_component_save_emergency_contact","_component_edit_emergency_contact","relationship","homePhone","mobilePhone","officePhone","emergencyContactModel","SaveEmergencyContact","EditEmergencyContact","isDisabled","_component_save_dependent","_component_edit_dependent","relationshipType","dateOfBirth","dependentModel","dependent","relationshipOptions","showRelationship","SaveDependent","EditDependent","dependentNormalizer","_component_save_salary_component","paygrades","_component_edit_salary_component","payFrequencyId","salaryAmount","comment","directDepositAccount","directDepositAccountType","accountType","directDepositRoutingNumber","directDepositAmount","salComponentModel","directDepositModel","payFrequencies","accountTypes","includeDirectDeposit","salaryComponent","directDeposit","usableCurrencies","showOptionalAccountType","minAmount","currencyInfo","maxAmount","currenciesOpts","paygrade","newVal","currencyIndex","mounted","addDirectDeposit","salaryName","payGrade","payPeriod","directDebit","account","routingNumber","salaryNormalizer","frequency","depositAmount","SaveSalaryComponent","EditSalaryComponent","joinedDate","_component_job_spec_download","contractAttachment","_component_terminate_modal","resourceId","fileType","fileSize","fetchFile","terminationReason","terminationModel","terminationReasons","termination","terminationReasonId","submitData","jobDetailsModel","contractDetailsModel","JobSpecDownload","TerminateModal","locations","jobTitles","jobCategories","subunits","employmentStatuses","showContractDetails","job","contract","showTerminateModal","selectedJobTitleId","terminationActionLabel","terminationActionType","normalizedJobTitles","deleted","terminationDate","updateJobModel","updateContractModel","currentContractAttachment","onClickTerminate","openTerminateModal","closeTerminateModal","jobCategory","employeeTerminationRecord","_component_employee_work_experience","_component_employee_education","_component_employee_skills","_component_employee_languages","fluencies","competencies","_component_employee_license","_component_save_skill","api","_component_edit_skill","_component_qualification_dropdown","skillId","yearsOfExperience","comments","QualificationDropdown","skillNormalizer","SaveSkill","EditSkill","skillsEndpoint","_component_save_education","_component_edit_education","institute","major","score","educationModel","education","educationNormalizer","SaveEducation","EditEducation","educationEndpoint","_component_save_language","_component_edit_language","fluencyId","competencyId","languageModel","languages","allowedLanguages","allowedFluencies","languageIndex","selectedLanguage","allowedFluencyIds","fluency","competency","languageNormalizer","SaveLanguage","EditLanguage","languagesEndpoint","_component_save_work_experience","_component_edit_work_experience","company","workExpModel","workExperience","SaveWorkExperience","EditWorkExperience","workExperienceNormalizer","_component_save_license","_component_edit_license","licenseNo","issuedDate","expiryDate","years","yearRange","range","fromYear","numberOfYears","licenseModel","yearArray","SaveLicense","EditLicense","licenceEndpoint","licenseNormalizer","EmployeeSkills","EmployeeEducation","EmployeeLanguages","EmployeeWorkExperience","EmployeeLicense","_component_save_immigration","_component_edit_immigration","number","reviewDate","immigrationModel","immigration","immigrationTypeClasses","SaveImmigration","EditImmigration","immigrationNormalizer","_component_employee_supervisors","_component_employee_subordinates","_component_save_employee_report_to","_component_edit_employee_report_to","_component_report_to_employee_autocomplete","reportingMethod","reportToModel","ReportToEmployeeAutocomplete","reportingMethods","reportTo","reportingMethodId","allowedEmployeesApi","supervisorEmpNumber","subordinateEmpNumber","subordinate","EditEmployeeReportTo","SaveEmployeeReportTo","supervisorNormalizer","supervisorEndpoint","subordinateNormalizer","subordinateEndpoint","EmployeeSupervisors","EmployeeSubordinates","_component_save_membership","memberships","_component_edit_membership","subscriptionPaidBy","subscriptionFee","subscriptionCommenceDate","subscriptionRenewalDate","membershipModel","membershipId","currencyTypeId","paidBy","SaveMembership","EditMembership","membershipNormalizer","membershipName","subscriptionTypeId","subscriptionCurrencyName","terminationReasonNormalizer","reportingMethodNormalizer","customFieldLimit","screenList","fieldTypeList","screenWidth","isLoaded","remainingFields","customFieldModel","customFieldId","fieldInUse","customField","isDropDownField","c","pimShowDeprecatedFields","showSSN","showSIN","showTaxExemptions","optionalFieldModel","optionalField","federalStatus","federalExemptions","taxState","stateStatus","stateExemptions","unemploymentState","workState","taxExemptionModel","taxStateCode","unemploymentStateCode","workStateCode","provinces","statuses","taxExemption","match","_component_employee_data_import_modal","failed","failedRows","EmployeeDataImportModal","importModalState","onImportModalClose","_component_report_autocomplete","report","ReportAutocomplete","reportId","view","onClickView","criterion","criteriaSelected","_component_report_criterion","operator","criteriaFieldValues","valueX","valueY","fieldGroup","displayField","fieldGroupSelected","_component_report_display_field","includeHeader","displayFieldSelected","onDeleteChip","_resolveDynamicComponent","opts","valueXOnly","operators","ReportCriterionAutocomplete","ReportCriterionSelect","ReportCriterionRange","ReportCriterionDateRange","_component_oxd_multiselect_chips","onChipRemoved","OxdMultiSelectChips","selectedFields","onRemoveSelected","reportModel","useEmployeeReport","selectionCriteria","displayFields","displayFieldGroups","getAllDisplayFieldsByGroupId","group","field_group_id","getUnusedDisplayFieldsByGroupId","selectedFieldGroup","usedDisplayFields","f","addCriterion","removeCriterion","splice","addDisplayField","groupIndex","removeDisplayFieldGroup","removeDisplayField","serializeBody","include","criteria","criteriaField","y","availableCriteria","availableFieldGroups","availableDisplyFields","fieldGroupId","ReportCriterion","ReportDisplayField","_component_reports_table","generateReport","_component_oxd_report_table","pagination","footer","OxdReportTable","columnCount","colCount","_dateFormattingEnabled","fetchTableData","_items","_rows","setupTableHeaders","cellProperties","prop","_url","cellTemplate","CellAdapter","OxdMultilineCell","fetchTableHeaders","child","ReportsTable","reportName","opt","o","currentPassword","history","back","newPassword","SaveEmployee","Employee","EmployeePersonalDetails","EmployeeContactDetails","EmployeeEmergencyContacts","EmployeeDependents","EmployeeProfilePicture","EmployeeSalary","EmployeeJob","EmployeeQualifications","EmployeeImmigration","EmployeeMembership","TerminationReason","EditTerminationReason","SaveTerminationReason","ReportingMethod","EditReportingMethod","SaveReportingMethod","EmployeeReportTo","CustomField","EditCustomField","SaveCustomField","OptionalField","EmployeeTaxExemption","EmployeeDataImport","EmployeeReport","SaveEmployeeReport","ViewEmployeeReport","EditEmployeeReport","UpdatePassword","helpImgSrc","ViewSupport","startDay","timeSheetPeriodModel","timeSheetPeriod","fill","localize","day","updateTimeSheetPeriodModel","d","customerNormalizer","customerModel","customer","validateCustomerName","customerName","customerId","_component_timesheet","columns","records","subtotal","_component_timesheet_period","onPrevious","onNext","_component_timesheet_actions","colspan","_hoisted_12","record","_component_project_autocomplete","project","_hoisted_14","_component_activity_dropdown","activity","workday","dates","onMousedown","onBlur","onFocus","_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","_component_timesheet_comment_modal","projectId","watchEffect","onlyAllowed","excludeProjectIds","excludeCustomerName","customerOrProjectName","_customer","timesheetId","projectName","commentDate","activityId","ActivityDropdown","ProjectAutocomplete","TimesheetCommentModal","focusedField","showCommentModal","commentModalState","dailyTotals","totals","acc","duration","daysOfWeek","getDate","getDay","tableClasses","fixedColumnClasses","fixedCellClasses","deleteRow","updated","syncRecords","addRow","updateTime","$value","_date","updateComment","updateProject","updateActivity","viewComment","entry","onCommentModalClose","getProject","getActivity","getDuration","getCommentIcon","isCommentVisible","onDurationFocus","onDurationBlur","validateDuration","validateFormat","validateTotal","useTimesheetAPIs","timesheet","timesheetRecords","timesheetStatus","timesheetColumns","timesheetSubtotal","timesheetAllowedActions","fetchTimesheet","updateTimesheet","action","fetchTimesheetEntries","isEmployeeTimesheet","allowedActions","updateTimesheetEntries","useTimesheet","loadTimesheet","sum","onClickPrevious","currDate","setDate","onClickNext","onClickSubmit","onClickApprove","onClickReject","onClickCreateTimesheet","showCreateTimesheet","canSubmitTimesheet","canApproveTimesheet","canRejectTimesheet","canResetTimesheet","canEditTimesheet","canCreateTimesheet","timesheetPeriod","actionsNormalizer","performedEmployee","actionName","performedBy","Timesheet","TimesheetPeriod","TimesheetActions","myTimesheetStatus","myTimesheet","timesheetModal","onClickCancel","_duration","deletedEntries","translateEmpName","timesheetDateRange","_component_customer_autocomplete","_component_project_admin_autocomplete","projectAdmin","showDelete","remove","CustomerAutocomplete","ProjectAdminAutocomplete","projectNormalizer","projectAdmins","deleteData","onRemove","_component_add_customer_modal","defaultProjectModel","projectAdminEmpNumbers","AddCustomerModal","showCustomerModal","validateProjectName","onClickAddCustomer","onCustomerModalClose","onAddAnother","onRemoveAdmin","projectAdminsEmpNumbers","result","_component_activities","_component_copy_activity_modal","_component_save_activity_modal","_component_edit_activity_modal","unique","activities","selectedActivities","hasUnique","activityIds","CopyActivityModal","SaveActivityModal","EditActivityModal","activitiesNormalizer","showCopyFromModal","showSaveActivityModal","showEditActivityModal","editActivityModalState","onClickCopyFrom","onCloseModal","Activities","_component_timesheet_pending_actions","period","TimesheetPendingActions","viewTimesheet","_component_save_timesheet_action","rejectTimesheet","approveTimesheet","SaveTimesheetAction","employeeTimesheetStatus","timesheetState","includeTimesheet","onClickBack","TimeSheetPeriodConfig","Customer","SaveCustomer","EditCustomer","MyTimesheet","EditTimeSheet","Project","ProjectSave","ProjectEdit","EmployeeTimesheet","ViewEmployeeTimesheet","EmployeeTimeReport","ProjectActivityReport","ActivityDetailsReport","startMonth","currentPeriod","leavePeriodModel","monthDates","leavePeriod","leavePeriodDefined","month","endDay","addDays","isFollowingYear","updateLeavePeriodModel","defineLeavePeriod","resetLeavePeriod","m","currentLeavePeriod","_component_leave_conflict","_component_leave_balance","_component_leave_duration_input","toTime","partialOptions","partial","endDuration","_component_time_range","TimeRange","workLength","selectedLength","timeDifference","durations","gutters","textAlign","justifyContent","taken","scheduled","pending","asAtDate","leaveType","totalEntitlement","entitled","leaveBalance","balance","leavePeriods","flatMap","leaves","leaveDate","useLeaveValidators","leaveTypeId","leaveDuration","partialOption","serializeParams","validateOverlapLeaves","leaveData","isConflict","isOverWorkshift","isWorkShiftLengthExceeded","validateLeaveBalance","breakdown","metaData","negative","LeaveBalanceModal","LeaveBalanceInsufficientModal","showModal","onModalOpen","onModalClose","leaveBalanceModal","watchPostEffect","workshiftExceeded","lengthHours","lastComment","leaveModel","LeaveDurationInput","LeaveBalance","LeaveConflict","showLeaveConflict","isWorkShiftExceeded","leaveConflictData","yearsArray","leaveTypes","appliedLeaveDuration","showDuration","showStartDay","showEndDay","_component_leave_assign_confirm_modal","_component_leave_type_dropdown","eligibleOnly","showEmptySelector","includeAllocated","onConfirm","defaultWorkshift","LeaveTypeDropdown","LeaveAssignConfirmModal","confirmDialog","situational","_component_entitlement_situational_modal","leaveTypeModel","EntitlementSituationalModal","bulkAssign","_component_leave_period_dropdown","entitlement","_component_entitlement_update_modal","_component_entitlement_bulk_update_modal","_component_entitlement_no_match_modal","selectedPeriod","_option","updateAs","leaveEntitlementModel","LeavePeriodDropdown","EntitlementUpdateModal","EntitlementBulkUpdateModal","EntitlementNoMatchModal","leaveEntitlement","empMatchCount","fetchEmployeeCount","isBulkAssign","noMatchModal","bulkUpdateModal","updateModal","toast","entitlementId","validateEntitlement","_component_leave_entitlement_table","entitlementNormalizer","entitlementType","totalEntitlements","showDatatable","LeaveEntitlementTable","monday","tuesday","wednesday","thursday","friday","saturday","sunday","workWeekModel","dayTypes","workWeek","dayType","noWorkingDays","values","recurring","lengthName","holidayModel","holidayLengthList","holiday","today","getMonth","holidayId","h","_component_leave_list_table","includePastEmps","_component_leave_list_table_header","onOnActionClick","_component_leave_comment_modal","_component_leave_bulk_action_modal","truncate","text","ellipsis","approve","cancel","more","useLeaveActions","primaryActions","processLeaveAction","actionType","processLeaveRequestAction","processLeaveRequestBulkAction","leaveRequestId","leaveActions","comm","_component_leave_comment","createdByEmployee","fullName","LeaveComment","leaveRequest","APPROVE","REJECT","CANCEL","bulkActions","LeaveListTableHeader","LeaveCommentsModal","LeaveBulkActionModal","myLeaveList","leaveStatuses","leaveStatus","leavelistNormalizer","leaveDatePeriod","leaveBalances","durationType","leaveBreakdown","lengthDays","_balance","leaveTypeName","noOfDays","actions","leaveBulkActions","allActions","approvable","rejectable","cancelable","bulkActionModalState","assign","dropdownActions","onLeaveAction","onLeaveDropdownAction","bulkActionModal","LeaveListTable","myLeaveRequest","leaveRequestNormalizer","canComment","isLeaveRequest","onClickComments","LeavePeriod","LeaveApply","LeaveAssign","EditLeaveType","LeaveType","SaveLeaveType","AddEntitlement","EditEntitlement","LeaveEntitlements","MyLeaveEntitlements","WorkWeek","Holiday","SaveHoliday","EditHoliday","LeaveList","LeaveRequest","MyLeaveList","LeaveEntitlementReport","MyLeaveEntitlementReport","unselectableClientIds","oAuthClientNormalizer","clientId","redirectUri","clientSecret","confidential","initialOAuthClient","isSecretPlain","oAuthClient","editMode","showClientSecret","getClient","setDataFromResponse","_component_login_branding","clientName","LoginBranding","errorType","loginBannerSrc","authorized","submitUrl","authorizeForm","$el","OAuthClient","SaveOAuthClient","OAuthAuthorize","_component_record_attendance","previousRecord","_component_timezone_dropdown","timezone","_offset","attendanceRecordModal","TimezoneDropdown","isEditable","isTimezoneEditable","attendanceRecordId","attendanceRecord","validateDate","previousRecordTimezone","previousAttendanceRecordDate","userDate","previousAttendanceRecordTime","userTime","_name","setCurrentDateTime","punchIn","res","utcDate","utcTime","tzOffset","RecordAttendance","punchOut","attendanceId","isEmployeeEdit","attendance","validateRecord","totalDuration","punchInTz","startTimezone","punchOutTz","endTimezone","punchInDate","punchInTime","punchInNote","punchInOffset","punchInTimezoneName","punchOutDate","punchOutTime","punchOutNote","punchOutOffset","punchOutTimezoneName","recordId","punchInTimezoneOffset","punchOutTimezoneOffset","screenState","useInjectTableProps","showHeader","attendanceRecordNormalizer","cellData","RecordCell","canUserChangeCurrentTime","canUserModifyAttendance","canSupervisorModifyAttendance","configsModel","PunchIn","PunchOut","EditAttendance","ViewMyAttendance","AttendanceConfiguration","AttendanceSummaryReport","ViewEmployeeAttendanceSummary","ViewEmployeeAttendanceDetailed","_component_purge_employee_records","onSearch","_component_selected_employee","_component_maintenance_note","_component_purge_confirmation","subtitle","_component_full_name_input","FullNameInput","selectedEmployee","buttonLabel","emitEmpNumber","includeEmployeesParam","titleLabel","autocompleteLabel","emitEmployee","cancelLabel","confirmLabel","icon","confirmButtonType","cancelButtonType","instanceIdentifier","selectedEmployeeModel","ConfirmationDialog","EmployeeRecords","SelectedEmployee","MaintenanceNote","showPurgeableEmployee","onClickSearch","onClickPurge","purgeDialog","purgeEmployee","_component_selected_candidates","onPurge","_component_purge_candidate_records","_component_vacancy_autocomplete","vacancy","searchParam","VacancyAutocomplete","CandidateRecords","vacancyId","purgeCandidateNormalizer","dateOfApplication","SelectedCandidates","purgeCandidates","_component_employee_records","search","downloadEmployeeData","employeeNumber","PurgeEmployee","PurgeCandidate","AccessEmployeeSearchScreen","_component_vacancy_dropdown","_component_hiring_manager_dropdown","hiringManagerId","excludeInterviewers","hiringManager","VacancyDropdown","HiringManagerDropdown","statusOptions","vacancies","numOfPositions","isPublished","_component_vacancy_link_card","vacancyModel","basePath","protocol","host","VacancyLinkCard","rssFeedUrl","webUrl","addAttachment","updateAttachment","_hoisted_13","_hoisted_15","_hoisted_16","VacancyAttachmentModel","attachmentNormalizer","attachmentType","httpAttachments","isLoadingAttachment","isLoadingTable","isAddClicked","isEditClicked","currentName","vacancyAttachment","attachments","onSaveAttachment","updateVisibility","filefileSize","onUpdateAttachment","currentAttachment","fileUrl","_component_candidate_action_layout","candidateName","vacancyName","hiringManagerName","candidateModel","candidateId","candidate","recruitmentStatus","CandidateActionLayout","interviewId","interviewName","interviewer","_component_interviewer_autocomplete","interviewerName","interviewDate","interviewTime","includeEmployee","interviewModel","InterviewerAutocomplete","interview","interviewers","onRemoveInterviewer","interviewerEmpNumbers","contactNumber","resume","keywords","applyDate","notes","consentToKeepData","_component_candidate_status_dropdown","_component_candidate_autocomplete","methodOfApplication","_candidate","application","CandidateAutocomplete","CandidateStatusDropdown","candidateDataNormalizer","manager","hasAttachment","applications","onDownload","_component_recruitment_status","_component_candidate_profile","updatable","onUpdate","_component_history_table","getAllowedActions","hasWorkflow","actionId","doWorkflow","selectedAction","applicationDate","_component_confirmation_dialog","CandidateProfileModel","CandidateAttachmentModel","VacancyModel","profile","fetchCandidate","updateCandidate","getResumeUrl","ACTION_ASSIGNED_VACANCY","ACTION_SHORTLISTED","ACTION_REJECTED","ACTION_INTERVIEW_SCHEDULED","ACTION_INTERVIEW_PASSED","ACTION_INTERVIEW_FAILED","ACTION_JOB_OFFERED","ACTION_OFFER_DECLINED","ACTION_HIRED","ACTION_REMOVED","ACTION_ADDED","ACTION_APPLIED","historyDataNormalizer","performerName","performedDate","onClickAttachment","historyId","HistoryTable","CandidateProfile","RecruitmentStatus","onCandidateUpdate","actionHistoryModel","performedAction","isScheduleInterview","_component_vacancy_card","vacancyTitle","vacancyDescription","viewMore","windowWidth","isViewDetails","descriptionLength","viewDetails","apply","VacancyCard","vacancyDataNormalizer","enctype","_component_success_dialogue","_component_simple_dialog","showSuccessDialog","onSuccess","applicantModel","SuccessDialog","bannerSrc","token","applicant","successLabel","descriptionClasses","showDialogue","applicantForm","showDialogueModal","onToggleMore","_component_save_interview_attachment","_component_edit_interview_attachment","SaveInterviewAttachment","EditInterviewAttachment","closeModel","ViewJobVacancy","AddJobVacancy","EditJobVacancy","SaveCandidate","ViewCandidatesList","ViewCandidateProfile","ShortlistAction","RejectAction","InterviewScheduleAction","InterviewPassedAction","InterviewFailedAction","OfferJobAction","OfferDeclinedAction","HireAction","ViewActionHistory","VacancyList","ApplyJobVacancy","ViewInterviewAttachments","serializedFilter","trackerNormalizer","tracker","trackerName","addedDate","modifiedDate","employeeTrackerNormalizer","autcomplete","minRating","maxRating","isDefault","initialKpi","kpiId","kpi","isReadOnly","defaultMinRating","defaultMaxRating","kpiNormalizer","isDeletable","_component_supervisor_autocomplete","supervisorReviewer","dueDate","reviewModel","SupervisorAutoComplete","review","activate","reviewerEmpNumber","reviewId","reviewer","reviewPeriodStart","reviewPeriodEnd","addDate","_component_reviewer_autocomplete","reviewers","excludeEmployee","trackerModel","ReviewerAutoComplete","reviewerEmpNumbers","performanceTrackerId","ownerEditable","viewIcon","editIcon","evaluateIcon","viewLabel","editLabel","evaluateLabel","department","reviewPeriod","overallStatus","statusName","selfEvaluationStatus","selfReviewStatus","statusId","reviewPeriodCellRenderer","actionButtonCellRenderer","tableScreenStateKey","onClickEvaluate","evaluate","ReviewPeriodCell","_component_review_status_dropdown","statusOpts","ReviewStatusDropdown","reviewListDateFormat","reviewListNormalizer","actionCellRenderer","_component_delete_confirmation_dialog","el","positive","_component_employee_tracker_log_card","onEdit","_component_add_tracker_log_modal","_component_edit_tracker_log_modal","useInfiniteScroll","executor","scrollDistance","debounceInterval","scrolledAmount","isScrollDown","scrollContainer","onScroll","onScrollEvent","scrollHeight","clientHeight","scrollTop","scrollY","body","scrollerAtBottom","onMounted","addEventListener","onBeforeUnmount","removeEventListener","log","_component_tracker_log_rating_button","indexOf","iconName","buttonClasses","iconClasses","trackerLogModel","TrackerLogRatingButton","trackerId","rating","trackerLog","onClickPositive","onClickNegative","achievement","trackerLogId","reviewerPictureSrc","reviewerName","_component_oxd_table_dropdown","OxdTableDropdown","dropdownOptions","onTrackerDropdownAction","AddTrackerLogModal","EditTrackerLogModal","EmployeeTrackerLogCard","infinite","showNoRecordsFound","scrollerRef","showAddTrackerModal","showEditTrackerModal","editTrackerLogId","onAddTrackerModalClose","resetItems","onEditTrackerModalClose","_component_review_confirm_modal","_component_review_summary","details","_component_evaluation_form","kpis","collapsed","collapsible","_component_final_evaluation","finalRating","reviewDateFormat","reviewStatus","reviewDueDate","completedDate","rows","finalComment","isRequired","formattedCompletedDate","generalComment","hasOwn","isCollapsed","commentValidators","profileImgSrc","toggleForm","onUpdateRating","onUpdateComment","onUpdateGeneralComment","evaluationLabel","useReviewEvaluation","getAllKpis","getSupervisorReview","getEmployeeReview","getFinalReview","finalizeReview","reviewData","saveEmployeeReview","complete","ratings","saveSupervisorReview","generateRules","generateModel","generateEvaluationFormData","evaluationData","_kpi","datum","generateReviewerData","reviewerData","generateAllowedActions","Map","reviewerModel","ReviewSummary","FinalEvaluation","EvaluationForm","ReviewConfirmModal","isReviewer","employeeReview","supervisorReview","isFinalizeRequired","hasSupervisorUpdateAction","has","hasSaveAction","hasCompleteAction","hasCancelAction","hasActions","submitReview","MyTracker","EmployeeTrackers","KpiSearch","KpiSave","KpiEdit","AddReview","EditReview","PerformanceTrackerList","SavePerformanceTracker","EditPerformanceTracker","MyReviews","ReviewList","ReviewSearch","EmployeeTrackerLogs","AdminEvaluation","SelfEvaluation","_component_summary_card","employeeSubUnit","employeeLocation","employeeJobTitle","_component_employee_details","_component_summary_card_details","onHideDetails","_component_profile_picture","ProfilePicture","employeeDesignation","showBackButton","hasDefaultSlot","$slots","cardTitleClasses","cardSubTitleClasses","cardDescriptionClasses","onMouseleave","onMouseover","_component_qr_code","qrImgSrc","generateQR","toDataURL","QRCode","employeeWorkTelephone","employeeWorkEmail","showTelephoneClip","showEmailClip","toGoEmail","qrPayload","callEmployeeDetailsApi","openClientTelephone","openClientEmail","copyEmail","navigator","clipboard","writeText","copyTelephone","contactInfo","generateQrPayload","EmployeeDetails","SummaryCard","SummaryCardDetails","employeeDataNormalizer","currentIndex","isEmployeeSelected","oxdGridClasses","colSize","hideEmployeeDetails","showEmployeeDetails","CorporateDirectory","_component_login_layout","autofocus","loginLogoSrc","LoginLayout","showSocialMedia","isDemoMode","submitted","loginForm","navigateUrl","_component_card_note","confirmPassword","noteText","hasNote","hasNoteIcon","CardNote","resetForm","invalidCode","backUrl","noteClasses","noteContainerClass","verifyForm","Login","Forbidden","ResetPassword","AdministratorAccess","ResetWeakPassword","ResetPasswordError","ResetPasswordSuccess","RequestResetPassword","EmailConfigurationWarning","_component_employee_attendance_widget","_component_my_action_summary_widget","_component_quick_launch_widget","_component_buzz_latest_post_widget","_component_employees_on_leave_widget","_component_employee_subunit_widget","_component_employee_location_widget","_component_base_widget","empty","emptyText","iconType","widgetRef","widgetBodyClasses","BaseWidget","quickLaunchActions","isEmpty","sortedActions","sort","prevItem","ACTIONS","onClickAction","_component_profile_image","employeeFullName","dateTime","postImgSrc","postVideoSrc","_component_video_frame","frameborder","allow","allowfullscreen","videoSrc","embedURL","useBuzzAPIs","fetchPostComments","postId","detailed","savePostComment","updatePostComment","commentId","deletePostComment","fetchPostLikes","fetchPosts","updatePostLike","like","updateCommentLike","deletePost","updatePost","updateSharedPost","imageSrc","VideoFrame","ProfileImage","posts","onClickPost","createdDate","createdTime","originalPost","video","link","photoIds","_component_oxd_pie_chart","OxdPieChart","dataset","CHART_COLORS","otherEmployeeCount","unassignedEmployeeCount","myActions","leaveRequestCount","timeSheetCount","reviewCount","selfReviewCount","interviewCount","pendingActionCount","onClickPendingLeave","onClickPendingTimesheet","onClickPendingReview","onClickPendingInterview","onClickSelfReview","_component_employees_on_leave_config_modal","showAccessibleEmployeesOnly","showOnlyAccessibleEmployeesOnLeaveToday","EmployeesOnLeaveConfigModal","tEmpName","leaveList","showConfigModal","_leaveType","onClickConfig","onConfigModalClose","_component_oxd_bar_chart","grid","OxdBarChart","dayTotal","weekTotal","lastState","lastRecord","parsedDate","formattedTime","isToday","formattedDate","currentWeek","fetchWidgetData","onClickPunchIn","currentTime","totalTime","workDay","lastAction","currentDay","currentUser","QuickLaunchWidget","BuzzLatestPostWidget","EmployeeSubunitWidget","MyActionSummaryWidget","EmployeeLocationWidget","EmployeesOnLeaveWidget","EmployeeAttendanceWidget","ViewDashboard","_component_oxd_tab_container","_component_oxd_tab_panel","_component_news_feed","_component_post_filters","onUpdatePriority","_component_upcoming_anniversaries","useSwipe","swipeContainer","Hammer","Swipe","add","on","destroy","_component_create_post","onRefresh","_component_post_container","_component_post_body","onSelectPhoto","actionButton","_component_post_actions","onLike","onShare","onComment","postStats","_component_post_stats","showComments","_component_post_comment_container","onCreate","_component_edit_post_modal","_component_share_post_modal","_component_photo_carousel","photoIndex","postIndex","onCreateComment","onDeleteComment","_component_photo_frame","media","photo","photos","PhotoFrame","readMore","postClasses","onClickReadMore","onClickPicture","_component_post_stats_modal","shareCount","likesCount","EMPLOYEE_LIMIT","users","_data","PostStatsModal","directives","clickOutsideDirective","showLikeList","showSharesList","stats","numOfLikes","sharesCount","numOfShares","commentsCount","commentCount","numOfComments","likesClasses","sharesClasses","onShowComments","onShowLikeList","onShowSharesList","_component_oxd_buzz_post_input","_component_oxd_glass_button","_component_share_video_modal","_component_share_photo_modal","_component_post_modal","persistent","actionLabel","PostModal","OxdBuzzPostInput","embeddedURL","_component_photo_input","_component_photo_upload_area","PhotoUploadArea","validationMessage","fileTypeValidator","fileSizeValidator","onFileChange","$file","onClickRemove","onClickCloseAlert","showUploadArea","showUploadButton","PhotoInput","OxdGlassButton","ShareVideoModal","SharePhotoModal","showVideoModal","showPhotoModal","onClickSharePhotos","onClickShareVideos","onCloseVideoModal","onClosePhotoModal","_component_post_like","liked","_component_post_comment","_component_post_share","viewBox","xmlns","PostLikeButton","PostShareButton","PostCommentButton","deletedPhotos","originalText","originalEmployee","_component_photo_viewer","_component_post_actions_pill","_component_post_details","onClickNextPhoto","onClickPreviousPhoto","selectedPhoto","onClickClose","useAutoFocus","querySelector","focus","onKeydown","permission","canUpdate","canDelete","onClickLike","onCancelComment","PostComment","showAllComments","loadComments","onClickShowMore","onEditComment","onLikeComment","PostStats","PostCommentContainer","postDateTime","onClickComment","combinedPostStats","PhotoViewer","PostDetails","PostActionsPill","layoutClasses","showPhoto","showDetails","shareId","PostBody","CreatePost","PostActions","PhotoCarousel","PostContainer","EditPostModal","SharePostModal","POST_LIMIT","noPostsPic","showShareModal","shareModalState","showPhotoCarousel","photoCarouselState","overflow","resetFeed","onClosePhotoCarousel","onCloseShareModal","onCloseEditModal","isMostRecent","isMostLikes","isMostComments","mostRecentButtonType","mostLikesButtonType","mostCommentsButtonType","mostRecentButtonLabel","mostLikesButtonLabel","mostCommentsButtonLabel","anniversary","anniversaryYear","yearsCount","celebrationPic","noContentPic","anniversaries","anniversariesCount","anniversariesLimit","getAnniversaries","onSeeMore","NewsFeed","OxdTabPanel","PostFilters","OxdTabContainer","UpcomingAnniversaries","tabSelector","direction","offsetDirection","swipeRef","ViewBuzz","_component_flex_table","titleName","FlexTable","isInterrupted","reCheck","SystemCheckScreen","AdminPages","PimPages","CorePages","HelpPages","TimePages","OAuthPages","LeavePages","AttendancePages","MaintenancePages","RecruitmentPages","PerformancePages","CorporateDirectoryPages","authenticationPages","languagePages","dashboardPages","buzzPages","systemCheckPages","ResolvePermissions","capability","instance","rule","toasts","transition","position","Toaster","defineComponent","onUpdateShow","TransitionGroup","appear","OxdToast","toastWrapper","createElement","getElementById","appendChild","_id","nanoid","persist","TOAST_TYPES","errorMessage","animation","toasterAPI","createApp","toaster","acl","global","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","call","deferred","O","chunkIds","priority","notFulfilled","Infinity","fulfilled","j","every","r","n","getter","__esModule","a","definition","defineProperty","enumerable","chunkId","all","promises","u","miniCssF","g","globalThis","obj","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","needAttach","scripts","getElementsByTagName","s","getAttribute","charset","timeout","nc","setAttribute","onScriptComplete","prev","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","bind","head","toStringTag","p","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/web/images/ohrm_branding.png b/web/images/ohrm_branding.png deleted file mode 100644 index f749f21438f3fd17726dc1a8d4305e3164aeae38..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 25658 zcmeFYWpErzwl&&fW@fU;VrFJ;fyK&K%EHi)AO9zfY;OPn zW`d`Ry0emj8?n8kovDSj39++>y$P|2yM-wL;J#XvZsusrw9POaHqt(<9g9m2bDe54WU5S;T=VbAhi@QA$6i7&TA8C$4>>~{mqhAs zPWpPczIck*TRFWoKQ9tUzP>%wY=L@R+CEIAX+)`n8$QXO454o+#Gp|IL|lIFt+>g0 zYUxxvTzI+q8f@M5viGA>YkOuX-UiS0eA)G-)|zP$UB0wEtX9~2NV768Oe{Hy_xd}Y z<(b2fc;n)jdE^cYdJ6jRo9-!J)%BiDCT>&)PRfe}!$VH?W64s73<>kV?0~{Dwi=L) z3Eo8h-3b?`?l*#^FUZ^V^Y0X{BueUWhVf_^L;-=O)D_L%}4Y?9dQZDzC2wdJVK@!HK zL#Q+@#}2WTiOhG($_1g~F`%v zQT1a}9EmT`t0hI(>$Kxr4-1qVp*C+i9)6m^V47*R$>NG>j*%iiO;!77c|}#{AR>=# zu0e{9+nUceqcA1z<2_}0my#^s!Jl9$(Y*j0HcB*PzN34yzp#>BEH_ zji2UKTcO3;nYQ_vadoj#QEE#1=+3}N@A||*=90`Odi=2fA=7=+3}$i2IVP+dw(6I? z3$=qchfQtjcXqp-9OFr9m-lbuuj3g!cNt9r#x`HqlHY;(tw6pbvJJOi*%fCR^n$dAIArpQ8b{u3stJt&#~9)H76`2~M(FvPkAXGZpq|Io98`wpLm0 z@y1OvFO9Tx>b4YBvJ8R4%u)F)q*Fv=a-{K$??(2TjiK@GQsmWezFsF$g444*Ixsht z89W>N?@;&~$FXi=Jgk=t$)X&tNnf2~gE_nOxVr4M43gkh`9pNfH$N0!`K-f95}G8p z3KN|JvPPy>%NmclsDHFbo;&ZKIjwyMBQ;wyL03XO)lRWzNp+qwoaK6`=SJaoD;i-?rTb)h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