diff --git a/installer/Migration/V5_4_0/Migration.php b/installer/Migration/V5_4_0/Migration.php index cbdfcf1..92594bd 100644 --- a/installer/Migration/V5_4_0/Migration.php +++ b/installer/Migration/V5_4_0/Migration.php @@ -28,7 +28,6 @@ use OrangeHRM\Installer\Util\V1\AbstractMigration; class Migration extends AbstractMigration { protected ?LangStringHelper $langStringHelper = null; - protected ?TranslationHelper $translationHelper = null; /** @@ -48,10 +47,9 @@ class Migration extends AbstractMigration foreach ($langCodes as $langCode) { $this->getTranslationHelper()->addTranslations($langCode); } - + $this->updateLangStringVersion($this->getVersion()); - $this->getConnection()->createQueryBuilder() ->insert('ohrm_module') ->values( @@ -157,7 +155,7 @@ class Migration extends AbstractMigration } return $this->translationHelper; } - + private function updateLangStringVersion(string $version): void { $qb = $this->createQueryBuilder() diff --git a/installer/client/dist/build b/installer/client/dist/build index 62d0d16..d11ec99 100644 --- a/installer/client/dist/build +++ b/installer/client/dist/build @@ -1 +1 @@ -1683284647501 \ No newline at end of file +1683297384078 \ No newline at end of file diff --git a/installer/client/dist/css/app.css b/installer/client/dist/css/app.css index b64efa0..fdf5fb4 100644 --- a/installer/client/dist/css/app.css +++ b/installer/client/dist/css/app.css @@ -1 +1 @@ -body[data-v-9862f0ac],html[data-v-9862f0ac]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-9862f0ac]{width:inherit;height:inherit}.orangehrm-copyright[data-v-9862f0ac]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-9862f0ac]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-9862f0ac]{margin-left:10px}.orangehrm-divider[data-v-9862f0ac]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-9862f0ac]{margin:0 -10px;width:100%}[data-v-9862f0ac] .oxd-table td,[data-v-9862f0ac] .oxd-table th{padding:.1rem 0}[data-v-9862f0ac] .oxd-table tr,[data-v-9862f0ac] .oxd-table tr:hover{border:unset;cursor:unset;color:unset;background-color:unset}[data-v-9862f0ac] .oxd-checkbox-wrapper span{flex-shrink:0}[data-v-9862f0ac] .oxd-checkbox-wrapper label{font-weight:700}.orangehrm-database-config-dialog[data-v-9862f0ac]{font-size:14px}.orangehrm-database-config-dialog-title[data-v-9862f0ac]{font-weight:700}.orangehrm-database-config-dialog-content[data-v-9862f0ac]{padding-bottom:1rem}.orangehrm-database-config-dialog-table[data-v-9862f0ac]{margin-bottom:2em;table-layout:fixed}.orangehrm-installer-page[data-v-820d11b2]{font-size:14px}.orangehrm-installer-page-title[data-v-820d11b2]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-820d11b2]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-820d11b2]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-820d11b2]{padding:1rem 0}body[data-v-820d11b2],html[data-v-820d11b2]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-820d11b2]{width:inherit;height:inherit}.orangehrm-copyright[data-v-820d11b2]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-820d11b2]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-820d11b2]{margin-left:10px}.orangehrm-divider[data-v-820d11b2]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-820d11b2]{margin:0 -10px;width:100%}[data-v-820d11b2] .oxd-radio-wrapper label{font-weight:700;margin-left:-.5rem}body[data-v-52344ae6],html[data-v-52344ae6]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-52344ae6]{width:inherit;height:inherit}.orangehrm-copyright[data-v-52344ae6]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-52344ae6]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-52344ae6]{margin-left:10px}.orangehrm-divider[data-v-52344ae6]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-52344ae6]{margin:0 -10px;width:100%}.notice-title[data-v-52344ae6]{font-size:14px;font-weight:700;margin-bottom:.5rem;text-transform:uppercase}.orangehrm-installer-page[data-v-1a13fdc2]{font-size:14px}.orangehrm-installer-page-title[data-v-1a13fdc2]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-1a13fdc2]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-1a13fdc2]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-1a13fdc2]{padding:1rem 0}body[data-v-1a13fdc2],html[data-v-1a13fdc2]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-1a13fdc2]{width:inherit;height:inherit}.orangehrm-copyright[data-v-1a13fdc2]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-1a13fdc2]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-1a13fdc2]{margin-left:10px}.orangehrm-divider[data-v-1a13fdc2]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-1a13fdc2]{margin:0 -10px;width:100%}.orangehrm-database-info-port[data-v-1a13fdc2]{width:50%}.orangehrm-database-info-error[data-v-1a13fdc2]{color:#eb0910}body[data-v-4d11017b],html[data-v-4d11017b]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-4d11017b]{width:inherit;height:inherit}.orangehrm-copyright[data-v-4d11017b]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-4d11017b]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-4d11017b]{margin-left:10px}.orangehrm-divider[data-v-4d11017b]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-4d11017b]{margin:0 -10px;width:100%}.orangehrm-flex-table[data-v-4d11017b]{margin-bottom:.75rem}.orangehrm-flex-table-title[data-v-4d11017b]{font-weight:700;font-size:16px}.orangehrm-flex-table-value[data-v-4d11017b]{font-weight:700}.orangehrm-flex-table-value.--success[data-v-4d11017b]{color:#34bc40}.orangehrm-flex-table-value.--warning[data-v-4d11017b]{color:#ffa62f}.orangehrm-flex-table-value.--error[data-v-4d11017b]{color:#eb0910}.orangehrm-flex-table-row[data-v-4d11017b]{display:flex;width:100%;padding:.2rem 0}.orangehrm-flex-table-content[data-v-4d11017b]{flex:1}.orangehrm-flex-table-divider[data-v-4d11017b]{border-top-color:#64728c}body[data-v-81d60558],html[data-v-81d60558]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-81d60558]{width:inherit;height:inherit}.orangehrm-copyright[data-v-81d60558]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-81d60558]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-81d60558]{margin-left:10px}.orangehrm-divider[data-v-81d60558]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-81d60558]{margin:0 -10px;width:100%}.orangehrm-installer-page[data-v-81d60558]{font-size:14px}.orangehrm-installer-page-title[data-v-81d60558]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-81d60558]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-81d60558]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-81d60558]{padding:1rem 0}body[data-v-ca27e1a8],html[data-v-ca27e1a8]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-ca27e1a8]{width:inherit;height:inherit}.orangehrm-copyright[data-v-ca27e1a8]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-ca27e1a8]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-ca27e1a8]{margin-left:10px}.orangehrm-divider[data-v-ca27e1a8]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-ca27e1a8]{margin:0 -10px;width:100%}.orangehrm-installer-page[data-v-ca27e1a8]{font-size:14px}.orangehrm-installer-page-title[data-v-ca27e1a8]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-ca27e1a8]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-ca27e1a8]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-ca27e1a8]{padding:1rem 0}.orangehrm-installer-page[data-v-375f2eba]{font-size:14px}.orangehrm-installer-page-title[data-v-375f2eba]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-375f2eba]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-375f2eba]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-375f2eba]{padding:1rem 0}body[data-v-375f2eba],html[data-v-375f2eba]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-375f2eba]{width:inherit;height:inherit}.orangehrm-copyright[data-v-375f2eba]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-375f2eba]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-375f2eba]{margin-left:10px}.orangehrm-divider[data-v-375f2eba]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-375f2eba]{margin:0 -10px;width:100%}.orangehrm-upgrader-complete[data-v-375f2eba]{padding:0 1rem;color:#64728c}.orangehrm-upgrader-complete-button[data-v-375f2eba]{margin-right:auto}body[data-v-2d9c1a11],html[data-v-2d9c1a11]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-2d9c1a11]{width:inherit;height:inherit}.orangehrm-copyright[data-v-2d9c1a11]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-2d9c1a11]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-2d9c1a11]{margin-left:10px}.orangehrm-divider[data-v-2d9c1a11]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-2d9c1a11]{margin:0 -10px;width:100%}.orangehrm-installer-task-item[data-v-2d9c1a11]{width:70%;max-width:320px;display:flex;padding:.5rem 0;justify-content:space-between;align-items:center}.orangehrm-installer-task-item-name[data-v-2d9c1a11]{font-size:16px}.orangehrm-installer-task-item-name.--active[data-v-2d9c1a11]{font-weight:700}.orangehrm-installer-task-item-name.--error[data-v-2d9c1a11]{font-weight:700;color:#eb0910}.orangehrm-installer-task-icon[data-v-2d9c1a11]{width:20px;height:20px;border-radius:50%;text-align:center;line-height:20px;font-size:16px}.orangehrm-installer-task-icon.--done[data-v-2d9c1a11]{background-color:#76bc21}.orangehrm-installer-task-icon.--pending[data-v-2d9c1a11]{background-color:#64728c}.orangehrm-installer-task-icon.--error[data-v-2d9c1a11]{background-color:#eb0910}[data-v-2d9c1a11] .oxd-loading-spinner{width:10px;height:10px}[data-v-2d9c1a11] .oxd-icon{color:#fff}.orangehrm-installer-page[data-v-fe668f50]{font-size:14px}.orangehrm-installer-page-title[data-v-fe668f50]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-fe668f50]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-fe668f50]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-fe668f50]{padding:1rem 0}body[data-v-fe668f50],html[data-v-fe668f50]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-fe668f50]{width:inherit;height:inherit}.orangehrm-copyright[data-v-fe668f50]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-fe668f50]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-fe668f50]{margin-left:10px}.orangehrm-divider[data-v-fe668f50]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-fe668f50]{margin:0 -10px;width:100%}.orangehrm-installer-page-content.--center[data-v-fe668f50]{text-align:center}.orangehrm-installer-page-content.--progress[data-v-fe668f50]{text-align:center;font-weight:700;color:#76bc21}.orangehrm-installer-page-content.--error[data-v-fe668f50]{color:#eb0910}.orangehrm-installer-page[data-v-70efe06a]{font-size:14px}.orangehrm-installer-page-title[data-v-70efe06a]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-70efe06a]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-70efe06a]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-70efe06a]{padding:1rem 0}body[data-v-70efe06a],html[data-v-70efe06a]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-70efe06a]{width:inherit;height:inherit}.orangehrm-copyright[data-v-70efe06a]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-70efe06a]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-70efe06a]{margin-left:10px}.orangehrm-divider[data-v-70efe06a]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-70efe06a]{margin:0 -10px;width:100%}[data-v-70efe06a] .oxd-checkbox-wrapper span{flex-shrink:0}[data-v-70efe06a] .oxd-radio-wrapper label{margin-left:-.5rem;margin-right:1rem}.orangehrm-database-info-row[data-v-70efe06a]{margin-top:5px;flex-direction:row}.orangehrm-database-info-check[data-v-70efe06a]{display:flex;align-items:center}@media(min-width:1000px){.orangehrm-database-info-check[data-v-70efe06a]{grid-column:3/full}}.orangehrm-database-info-port[data-v-70efe06a]{width:50%;white-space:nowrap}.orangehrm-database-info-error[data-v-70efe06a]{color:#eb0910}@media(min-width:1000px){[data-v-70efe06a] .orangehrm-database-info-user .oxd-label{width:70%}}.orangehrm-installer-page[data-v-8abc5e12]{font-size:14px}.orangehrm-installer-page-title[data-v-8abc5e12]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-8abc5e12]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-8abc5e12]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-8abc5e12]{padding:1rem 0}body[data-v-8abc5e12],html[data-v-8abc5e12]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-8abc5e12]{width:inherit;height:inherit}.orangehrm-copyright[data-v-8abc5e12]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-8abc5e12]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-8abc5e12]{margin-left:10px}.orangehrm-divider[data-v-8abc5e12]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-8abc5e12]{margin:0 -10px;width:100%}.orangehrm-register-consent[data-v-8abc5e12]{max-width:50%}.orangehrm-register-consent[data-v-8abc5e12] .oxd-checkbox-wrapper span{flex-shrink:0}.orangehrm-register-notice[data-v-8abc5e12]{display:flex;color:#929baa}.orangehrm-register-notice-icon[data-v-8abc5e12]{color:inherit;font-size:16px;margin-right:.5em}.orangehrm-register-notice-text[data-v-8abc5e12]{color:inherit}body[data-v-bb67a12c],html[data-v-bb67a12c]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-bb67a12c]{width:inherit;height:inherit}.orangehrm-copyright[data-v-bb67a12c]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-bb67a12c]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-bb67a12c]{margin-left:10px}.orangehrm-divider[data-v-bb67a12c]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-bb67a12c]{margin:0 -10px;width:100%}.orangehrm-installer-page[data-v-bb67a12c]{font-size:14px}.orangehrm-installer-page-title[data-v-bb67a12c]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-bb67a12c]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-bb67a12c]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-bb67a12c]{padding:1rem 0}body[data-v-5c19fe96],html[data-v-5c19fe96]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-5c19fe96]{width:inherit;height:inherit}.orangehrm-copyright[data-v-5c19fe96]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-5c19fe96]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-5c19fe96]{margin-left:10px}.orangehrm-divider[data-v-5c19fe96]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-5c19fe96]{margin:0 -10px;width:100%}.orangehrm-installer-page[data-v-5c19fe96]{font-size:14px}.orangehrm-installer-page-title[data-v-5c19fe96]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-5c19fe96]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-5c19fe96]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-5c19fe96]{padding:1rem 0}.orangehrm-installer-page[data-v-3cd00f92]{font-size:14px}.orangehrm-installer-page-title[data-v-3cd00f92]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-3cd00f92]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-3cd00f92]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-3cd00f92]{padding:1rem 0}body[data-v-3cd00f92],html[data-v-3cd00f92]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-3cd00f92]{width:inherit;height:inherit}.orangehrm-copyright[data-v-3cd00f92]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-3cd00f92]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-3cd00f92]{margin-left:10px}.orangehrm-divider[data-v-3cd00f92]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-3cd00f92]{margin:0 -10px;width:100%}.confirmation-text-header[data-v-3cd00f92]{font-weight:700;font-size:20px}.confirmation-text-section[data-v-3cd00f92]{font-weight:700}.confirmation-text-info[data-v-3cd00f92]{font-size:16px}.orangehrm-installer-page[data-v-0ba11067]{font-size:14px}.orangehrm-installer-page-title[data-v-0ba11067]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-0ba11067]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-0ba11067]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-0ba11067]{padding:1rem 0}body[data-v-0ba11067],html[data-v-0ba11067]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-0ba11067]{width:inherit;height:inherit}.orangehrm-copyright[data-v-0ba11067]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-0ba11067]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-0ba11067]{margin-left:10px}.orangehrm-divider[data-v-0ba11067]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-0ba11067]{margin:0 -10px;width:100%}.orangehrm-installer-complete-button[data-v-0ba11067]{margin-right:auto}.orangehrm-installer-page[data-v-2e98947a]{font-size:14px}.orangehrm-installer-page-title[data-v-2e98947a]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-2e98947a]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-2e98947a]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-2e98947a]{padding:1rem 0}body[data-v-2e98947a],html[data-v-2e98947a]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-2e98947a]{width:inherit;height:inherit}.orangehrm-copyright[data-v-2e98947a]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-2e98947a]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-2e98947a]{margin-left:10px}.orangehrm-divider[data-v-2e98947a]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-2e98947a]{margin:0 -10px;width:100%}.orangehrm-installer-page-content.--center[data-v-2e98947a]{text-align:center}.orangehrm-installer-page-content.--progress[data-v-2e98947a]{text-align:center;font-weight:700;color:#76bc21}.orangehrm-installer-page-content.--error[data-v-2e98947a]{color:#eb0910}body[data-v-3a7a11f2],html[data-v-3a7a11f2]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-3a7a11f2]{width:inherit;height:inherit}.orangehrm-copyright[data-v-3a7a11f2]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-3a7a11f2]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-3a7a11f2]{margin-left:10px}.orangehrm-divider[data-v-3a7a11f2]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-3a7a11f2]{margin:0 -10px;width:100%}.orangehrm-installer-steps[data-v-3a7a11f2]{padding:0;list-style:none;margin-top:120px}.orangehrm-installer-steps-item[data-v-3a7a11f2]{display:flex;margin-bottom:1rem;align-items:baseline}.orangehrm-installer-steps-count[data-v-3a7a11f2],.orangehrm-installer-steps-name[data-v-3a7a11f2]{font-size:16px;color:#fff;font-weight:600}.orangehrm-installer-steps-count[data-v-3a7a11f2]{display:block;width:1.4rem;height:1.4rem;border-radius:50%;text-align:center;line-height:1.4rem;border:2px solid #fff;box-shadow:0 4px 10px rgba(0,0,0,.15)}.orangehrm-installer-steps-count.--success[data-v-3a7a11f2]{border-color:#34bc40;background-color:#34bc40}.orangehrm-installer-steps-name[data-v-3a7a11f2]{margin-left:1rem;text-shadow:0 4px 8px rgba(0,0,0,.18)}.orangehrm-installer-steps-icon[data-v-3a7a11f2]{color:#fff}.orangehrm-installer-steps-item.--active>.orangehrm-installer-steps-count[data-v-3a7a11f2]{color:#ff8226;background-color:#fff}.orangehrm-installer-steps-item.--active>.orangehrm-installer-steps-name[data-v-3a7a11f2]{font-weight:700}body[data-v-15c09d5a],html[data-v-15c09d5a]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-15c09d5a]{width:inherit;height:inherit}.orangehrm-copyright[data-v-15c09d5a]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-15c09d5a]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-15c09d5a]{margin-left:10px}.orangehrm-divider[data-v-15c09d5a]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-15c09d5a]{margin:0 -10px;width:100%}.orangehrm-installer[data-v-15c09d5a]{height:inherit;display:grid;grid-template-areas:"sidebar header" "sidebar content";grid-template-rows:120px 1fr;grid-template-columns:300px auto}.orangehrm-installer-header[data-v-15c09d5a]{grid-area:header;margin-left:auto;padding:1rem 2rem;box-sizing:border-box}.orangehrm-installer-sidebar[data-v-15c09d5a]{position:relative;grid-area:sidebar;padding:0 2rem;box-sizing:border-box;background:linear-gradient(180deg,#fa9e2e,#e55422 90%)}.orangehrm-installer-content[data-v-15c09d5a]{overflow-y:auto;grid-area:content;box-sizing:border-box;padding-left:2rem;padding-right:2rem;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-installer-content[data-v-15c09d5a]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-installer-content[data-v-15c09d5a]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-installer-content[data-v-15c09d5a]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-installer-content[data-v-15c09d5a]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-installer-footer[data-v-15c09d5a]{bottom:0;position:absolute}.orangehrm-installer-guide[data-v-15c09d5a]{font-size:16px;font-weight:600;color:#fff;text-decoration:none}.orangehrm-installer-guide-icon[data-v-15c09d5a]{color:inherit;vertical-align:middle}body[data-v-2c9af954],html[data-v-2c9af954]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-2c9af954]{width:inherit;height:inherit}.orangehrm-copyright[data-v-2c9af954]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-2c9af954]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-2c9af954]{margin-left:10px}.orangehrm-divider[data-v-2c9af954]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-2c9af954]{margin:0 -10px;width:100%}.orangehrm-form-hint[data-v-2c9af954]{margin-right:auto;font-weight:600;font-size:.75rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden} \ No newline at end of file +body[data-v-9862f0ac],html[data-v-9862f0ac]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-9862f0ac]{width:inherit;height:inherit}.orangehrm-copyright[data-v-9862f0ac]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-9862f0ac]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-9862f0ac]{margin-left:10px}.orangehrm-divider[data-v-9862f0ac]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-9862f0ac]{margin:0 -10px;width:100%}[data-v-9862f0ac] .oxd-table td,[data-v-9862f0ac] .oxd-table th{padding:.1rem 0}[data-v-9862f0ac] .oxd-table tr,[data-v-9862f0ac] .oxd-table tr:hover{border:unset;cursor:unset;color:unset;background-color:unset}[data-v-9862f0ac] .oxd-checkbox-wrapper span{flex-shrink:0}[data-v-9862f0ac] .oxd-checkbox-wrapper label{font-weight:700}.orangehrm-database-config-dialog[data-v-9862f0ac]{font-size:14px}.orangehrm-database-config-dialog-title[data-v-9862f0ac]{font-weight:700}.orangehrm-database-config-dialog-content[data-v-9862f0ac]{padding-bottom:1rem}.orangehrm-database-config-dialog-table[data-v-9862f0ac]{margin-bottom:2em;table-layout:fixed}.orangehrm-installer-page[data-v-820d11b2]{font-size:14px}.orangehrm-installer-page-title[data-v-820d11b2]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-820d11b2]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-820d11b2]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-820d11b2]{padding:1rem 0}body[data-v-820d11b2],html[data-v-820d11b2]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-820d11b2]{width:inherit;height:inherit}.orangehrm-copyright[data-v-820d11b2]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-820d11b2]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-820d11b2]{margin-left:10px}.orangehrm-divider[data-v-820d11b2]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-820d11b2]{margin:0 -10px;width:100%}[data-v-820d11b2] .oxd-radio-wrapper label{font-weight:700;margin-left:-.5rem}body[data-v-52344ae6],html[data-v-52344ae6]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-52344ae6]{width:inherit;height:inherit}.orangehrm-copyright[data-v-52344ae6]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-52344ae6]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-52344ae6]{margin-left:10px}.orangehrm-divider[data-v-52344ae6]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-52344ae6]{margin:0 -10px;width:100%}.notice-title[data-v-52344ae6]{font-size:14px;font-weight:700;margin-bottom:.5rem;text-transform:uppercase}.orangehrm-installer-page[data-v-1a13fdc2]{font-size:14px}.orangehrm-installer-page-title[data-v-1a13fdc2]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-1a13fdc2]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-1a13fdc2]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-1a13fdc2]{padding:1rem 0}body[data-v-1a13fdc2],html[data-v-1a13fdc2]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-1a13fdc2]{width:inherit;height:inherit}.orangehrm-copyright[data-v-1a13fdc2]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-1a13fdc2]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-1a13fdc2]{margin-left:10px}.orangehrm-divider[data-v-1a13fdc2]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-1a13fdc2]{margin:0 -10px;width:100%}.orangehrm-database-info-port[data-v-1a13fdc2]{width:50%}.orangehrm-database-info-error[data-v-1a13fdc2]{color:#eb0910}body[data-v-4d11017b],html[data-v-4d11017b]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-4d11017b]{width:inherit;height:inherit}.orangehrm-copyright[data-v-4d11017b]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-4d11017b]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-4d11017b]{margin-left:10px}.orangehrm-divider[data-v-4d11017b]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-4d11017b]{margin:0 -10px;width:100%}.orangehrm-flex-table[data-v-4d11017b]{margin-bottom:.75rem}.orangehrm-flex-table-title[data-v-4d11017b]{font-weight:700;font-size:16px}.orangehrm-flex-table-value[data-v-4d11017b]{font-weight:700}.orangehrm-flex-table-value.--success[data-v-4d11017b]{color:#34bc40}.orangehrm-flex-table-value.--warning[data-v-4d11017b]{color:#ffa62f}.orangehrm-flex-table-value.--error[data-v-4d11017b]{color:#eb0910}.orangehrm-flex-table-row[data-v-4d11017b]{display:flex;width:100%;padding:.2rem 0}.orangehrm-flex-table-content[data-v-4d11017b]{flex:1}.orangehrm-flex-table-divider[data-v-4d11017b]{border-top-color:#64728c}body[data-v-81d60558],html[data-v-81d60558]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-81d60558]{width:inherit;height:inherit}.orangehrm-copyright[data-v-81d60558]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-81d60558]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-81d60558]{margin-left:10px}.orangehrm-divider[data-v-81d60558]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-81d60558]{margin:0 -10px;width:100%}.orangehrm-installer-page[data-v-81d60558]{font-size:14px}.orangehrm-installer-page-title[data-v-81d60558]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-81d60558]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-81d60558]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-81d60558]{padding:1rem 0}body[data-v-ca27e1a8],html[data-v-ca27e1a8]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-ca27e1a8]{width:inherit;height:inherit}.orangehrm-copyright[data-v-ca27e1a8]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-ca27e1a8]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-ca27e1a8]{margin-left:10px}.orangehrm-divider[data-v-ca27e1a8]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-ca27e1a8]{margin:0 -10px;width:100%}.orangehrm-installer-page[data-v-ca27e1a8]{font-size:14px}.orangehrm-installer-page-title[data-v-ca27e1a8]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-ca27e1a8]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-ca27e1a8]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-ca27e1a8]{padding:1rem 0}.orangehrm-installer-page[data-v-375f2eba]{font-size:14px}.orangehrm-installer-page-title[data-v-375f2eba]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-375f2eba]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-375f2eba]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-375f2eba]{padding:1rem 0}body[data-v-375f2eba],html[data-v-375f2eba]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-375f2eba]{width:inherit;height:inherit}.orangehrm-copyright[data-v-375f2eba]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-375f2eba]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-375f2eba]{margin-left:10px}.orangehrm-divider[data-v-375f2eba]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-375f2eba]{margin:0 -10px;width:100%}.orangehrm-upgrader-complete[data-v-375f2eba]{padding:0 1rem;color:#64728c}.orangehrm-upgrader-complete-button[data-v-375f2eba]{margin-right:auto}body[data-v-2d9c1a11],html[data-v-2d9c1a11]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-2d9c1a11]{width:inherit;height:inherit}.orangehrm-copyright[data-v-2d9c1a11]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-2d9c1a11]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-2d9c1a11]{margin-left:10px}.orangehrm-divider[data-v-2d9c1a11]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-2d9c1a11]{margin:0 -10px;width:100%}.orangehrm-installer-task-item[data-v-2d9c1a11]{width:70%;max-width:320px;display:flex;padding:.5rem 0;justify-content:space-between;align-items:center}.orangehrm-installer-task-item-name[data-v-2d9c1a11]{font-size:16px}.orangehrm-installer-task-item-name.--active[data-v-2d9c1a11]{font-weight:700}.orangehrm-installer-task-item-name.--error[data-v-2d9c1a11]{font-weight:700;color:#eb0910}.orangehrm-installer-task-icon[data-v-2d9c1a11]{width:20px;height:20px;border-radius:50%;text-align:center;line-height:20px;font-size:16px}.orangehrm-installer-task-icon.--done[data-v-2d9c1a11]{background-color:#76bc21}.orangehrm-installer-task-icon.--pending[data-v-2d9c1a11]{background-color:#64728c}.orangehrm-installer-task-icon.--error[data-v-2d9c1a11]{background-color:#eb0910}[data-v-2d9c1a11] .oxd-loading-spinner{width:10px;height:10px}[data-v-2d9c1a11] .oxd-icon{color:#fff}.orangehrm-installer-page[data-v-fe668f50]{font-size:14px}.orangehrm-installer-page-title[data-v-fe668f50]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-fe668f50]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-fe668f50]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-fe668f50]{padding:1rem 0}body[data-v-fe668f50],html[data-v-fe668f50]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-fe668f50]{width:inherit;height:inherit}.orangehrm-copyright[data-v-fe668f50]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-fe668f50]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-fe668f50]{margin-left:10px}.orangehrm-divider[data-v-fe668f50]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-fe668f50]{margin:0 -10px;width:100%}.orangehrm-installer-page-content.--center[data-v-fe668f50]{text-align:center}.orangehrm-installer-page-content.--progress[data-v-fe668f50]{text-align:center;font-weight:700;color:#76bc21}.orangehrm-installer-page-content.--error[data-v-fe668f50]{color:#eb0910}.orangehrm-installer-page[data-v-4f8870ea]{font-size:14px}.orangehrm-installer-page-title[data-v-4f8870ea]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-4f8870ea]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-4f8870ea]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-4f8870ea]{padding:1rem 0}body[data-v-4f8870ea],html[data-v-4f8870ea]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-4f8870ea]{width:inherit;height:inherit}.orangehrm-copyright[data-v-4f8870ea]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-4f8870ea]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-4f8870ea]{margin-left:10px}.orangehrm-divider[data-v-4f8870ea]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-4f8870ea]{margin:0 -10px;width:100%}[data-v-4f8870ea] .oxd-checkbox-wrapper span{flex-shrink:0}[data-v-4f8870ea] .oxd-radio-wrapper label{margin-left:-.5rem;margin-right:1rem}.orangehrm-database-info-row[data-v-4f8870ea]{margin-top:5px;flex-direction:row}.orangehrm-database-info-check[data-v-4f8870ea]{display:flex;align-items:center}@media(min-width:1000px){.orangehrm-database-info-check[data-v-4f8870ea]{grid-column:3/full}}.orangehrm-database-info-port[data-v-4f8870ea]{width:50%;white-space:nowrap}.orangehrm-database-info-error[data-v-4f8870ea]{color:#eb0910}@media(min-width:1000px){[data-v-4f8870ea] .orangehrm-database-info-user .oxd-label{width:70%}}.orangehrm-installer-page[data-v-4159f1d8]{font-size:14px}.orangehrm-installer-page-title[data-v-4159f1d8]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-4159f1d8]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-4159f1d8]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-4159f1d8]{padding:1rem 0}body[data-v-4159f1d8],html[data-v-4159f1d8]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-4159f1d8]{width:inherit;height:inherit}.orangehrm-copyright[data-v-4159f1d8]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-4159f1d8]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-4159f1d8]{margin-left:10px}.orangehrm-divider[data-v-4159f1d8]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-4159f1d8]{margin:0 -10px;width:100%}.orangehrm-register-consent[data-v-4159f1d8]{max-width:50%}.orangehrm-register-consent[data-v-4159f1d8] .oxd-checkbox-wrapper span{flex-shrink:0}.orangehrm-register-notice[data-v-4159f1d8]{display:flex;color:#929baa}.orangehrm-register-notice-icon[data-v-4159f1d8]{color:inherit;font-size:16px;margin-right:.5em}.orangehrm-register-notice-text[data-v-4159f1d8]{color:inherit}body[data-v-bb67a12c],html[data-v-bb67a12c]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-bb67a12c]{width:inherit;height:inherit}.orangehrm-copyright[data-v-bb67a12c]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-bb67a12c]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-bb67a12c]{margin-left:10px}.orangehrm-divider[data-v-bb67a12c]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-bb67a12c]{margin:0 -10px;width:100%}.orangehrm-installer-page[data-v-bb67a12c]{font-size:14px}.orangehrm-installer-page-title[data-v-bb67a12c]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-bb67a12c]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-bb67a12c]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-bb67a12c]{padding:1rem 0}body[data-v-5c19fe96],html[data-v-5c19fe96]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-5c19fe96]{width:inherit;height:inherit}.orangehrm-copyright[data-v-5c19fe96]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-5c19fe96]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-5c19fe96]{margin-left:10px}.orangehrm-divider[data-v-5c19fe96]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-5c19fe96]{margin:0 -10px;width:100%}.orangehrm-installer-page[data-v-5c19fe96]{font-size:14px}.orangehrm-installer-page-title[data-v-5c19fe96]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-5c19fe96]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-5c19fe96]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-5c19fe96]{padding:1rem 0}.orangehrm-installer-page[data-v-e34b6520]{font-size:14px}.orangehrm-installer-page-title[data-v-e34b6520]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-e34b6520]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-e34b6520]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-e34b6520]{padding:1rem 0}body[data-v-e34b6520],html[data-v-e34b6520]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-e34b6520]{width:inherit;height:inherit}.orangehrm-copyright[data-v-e34b6520]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-e34b6520]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-e34b6520]{margin-left:10px}.orangehrm-divider[data-v-e34b6520]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-e34b6520]{margin:0 -10px;width:100%}.confirmation-text-header[data-v-e34b6520]{font-weight:700;font-size:20px}.confirmation-text-section[data-v-e34b6520]{font-weight:700}.confirmation-text-info[data-v-e34b6520]{font-size:16px}.orangehrm-installer-page[data-v-0ba11067]{font-size:14px}.orangehrm-installer-page-title[data-v-0ba11067]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-0ba11067]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-0ba11067]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-0ba11067]{padding:1rem 0}body[data-v-0ba11067],html[data-v-0ba11067]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-0ba11067]{width:inherit;height:inherit}.orangehrm-copyright[data-v-0ba11067]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-0ba11067]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-0ba11067]{margin-left:10px}.orangehrm-divider[data-v-0ba11067]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-0ba11067]{margin:0 -10px;width:100%}.orangehrm-installer-complete-button[data-v-0ba11067]{margin-right:auto}.orangehrm-installer-page[data-v-2e98947a]{font-size:14px}.orangehrm-installer-page-title[data-v-2e98947a]{font-weight:700;color:#ff7b1d}.orangehrm-installer-page-content.--label[data-v-2e98947a]{margin-left:1.5rem}.orangehrm-installer-page-row[data-v-2e98947a]{display:flex;flex-direction:column;padding-bottom:1rem}.orangehrm-installer-page-action[data-v-2e98947a]{padding:1rem 0}body[data-v-2e98947a],html[data-v-2e98947a]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-2e98947a]{width:inherit;height:inherit}.orangehrm-copyright[data-v-2e98947a]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-2e98947a]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-2e98947a]{margin-left:10px}.orangehrm-divider[data-v-2e98947a]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-2e98947a]{margin:0 -10px;width:100%}.orangehrm-installer-page-content.--center[data-v-2e98947a]{text-align:center}.orangehrm-installer-page-content.--progress[data-v-2e98947a]{text-align:center;font-weight:700;color:#76bc21}.orangehrm-installer-page-content.--error[data-v-2e98947a]{color:#eb0910}body[data-v-3a7a11f2],html[data-v-3a7a11f2]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-3a7a11f2]{width:inherit;height:inherit}.orangehrm-copyright[data-v-3a7a11f2]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-3a7a11f2]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-3a7a11f2]{margin-left:10px}.orangehrm-divider[data-v-3a7a11f2]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-3a7a11f2]{margin:0 -10px;width:100%}.orangehrm-installer-steps[data-v-3a7a11f2]{padding:0;list-style:none;margin-top:120px}.orangehrm-installer-steps-item[data-v-3a7a11f2]{display:flex;margin-bottom:1rem;align-items:baseline}.orangehrm-installer-steps-count[data-v-3a7a11f2],.orangehrm-installer-steps-name[data-v-3a7a11f2]{font-size:16px;color:#fff;font-weight:600}.orangehrm-installer-steps-count[data-v-3a7a11f2]{display:block;width:1.4rem;height:1.4rem;border-radius:50%;text-align:center;line-height:1.4rem;border:2px solid #fff;box-shadow:0 4px 10px rgba(0,0,0,.15)}.orangehrm-installer-steps-count.--success[data-v-3a7a11f2]{border-color:#34bc40;background-color:#34bc40}.orangehrm-installer-steps-name[data-v-3a7a11f2]{margin-left:1rem;text-shadow:0 4px 8px rgba(0,0,0,.18)}.orangehrm-installer-steps-icon[data-v-3a7a11f2]{color:#fff}.orangehrm-installer-steps-item.--active>.orangehrm-installer-steps-count[data-v-3a7a11f2]{color:#ff8226;background-color:#fff}.orangehrm-installer-steps-item.--active>.orangehrm-installer-steps-name[data-v-3a7a11f2]{font-weight:700}body[data-v-15c09d5a],html[data-v-15c09d5a]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-15c09d5a]{width:inherit;height:inherit}.orangehrm-copyright[data-v-15c09d5a]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-15c09d5a]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-15c09d5a]{margin-left:10px}.orangehrm-divider[data-v-15c09d5a]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-15c09d5a]{margin:0 -10px;width:100%}.orangehrm-installer[data-v-15c09d5a]{height:inherit;display:grid;grid-template-areas:"sidebar header" "sidebar content";grid-template-rows:120px 1fr;grid-template-columns:300px auto}.orangehrm-installer-header[data-v-15c09d5a]{grid-area:header;margin-left:auto;padding:1rem 2rem;box-sizing:border-box}.orangehrm-installer-sidebar[data-v-15c09d5a]{position:relative;grid-area:sidebar;padding:0 2rem;box-sizing:border-box;background:linear-gradient(180deg,#fa9e2e,#e55422 90%)}.orangehrm-installer-content[data-v-15c09d5a]{overflow-y:auto;grid-area:content;box-sizing:border-box;padding-left:2rem;padding-right:2rem;scrollbar-color:#cfd3de #f6f5fb;scrollbar-width:thin}.orangehrm-installer-content[data-v-15c09d5a]::-webkit-scrollbar{width:.5rem;height:.5rem}.orangehrm-installer-content[data-v-15c09d5a]::-webkit-scrollbar-thumb{background:#cfd3de;border-radius:20px}.orangehrm-installer-content[data-v-15c09d5a]::-webkit-scrollbar-track{background:#f6f5fb}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.orangehrm-installer-content[data-v-15c09d5a]{scrollbar-face-color:#cfd3de;scrollbar-track-color:#f6f5fb;scrollbar-arrow-color:#929baa}}.orangehrm-installer-footer[data-v-15c09d5a]{bottom:0;position:absolute}.orangehrm-installer-guide[data-v-15c09d5a]{font-size:16px;font-weight:600;color:#fff;text-decoration:none}.orangehrm-installer-guide-icon[data-v-15c09d5a]{color:inherit;vertical-align:middle}body[data-v-2c9af954],html[data-v-2c9af954]{margin:0;width:100%;height:100%;font-family:Nunito Sans}#app[data-v-2c9af954]{width:inherit;height:inherit}.orangehrm-copyright[data-v-2c9af954]{display:block;font-size:.65rem;color:#fff!important}.orangehrm-copyright a[data-v-2c9af954]{color:inherit;text-decoration:none}.orangehrm-left-space[data-v-2c9af954]{margin-left:10px}.orangehrm-divider[data-v-2c9af954]{margin:.5rem 0;border-color:#e8eaef}.orangehrm-full-width-grid[data-v-2c9af954]{margin:0 -10px;width:100%}.orangehrm-form-hint[data-v-2c9af954]{margin-right:auto;font-weight:600;font-size:.75rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden} \ No newline at end of file diff --git a/installer/client/dist/js/app.js b/installer/client/dist/js/app.js index 3ca41b5..aaf3816 100644 --- a/installer/client/dist/js/app.js +++ b/installer/client/dist/js/app.js @@ -1,2 +1,2 @@ -(function(){"use strict";var e={9170:function(e,t,a){var n=a(9199);const o=e=>((0,n.dD)("data-v-820d11b2"),e=e(),(0,n.Cn)(),e),r=o((()=>(0,n._)("br",null,null,-1))),s=o((()=>(0,n._)("br",null,null,-1))),i=o((()=>(0,n._)("br",null,null,-1))),l=o((()=>(0,n._)("b",null,"下一步",-1)));function d(e,t,a,o,d,u){const c=(0,n.up)("oxd-text"),m=(0,n.up)("oxd-radio-input"),p=(0,n.up)("oxd-form-row"),h=(0,n.up)("oxd-button"),g=(0,n.up)("oxd-form-actions"),f=(0,n.up)("oxd-form"),b=(0,n.up)("database-config-dialog");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n.Wm)(f,{class:"orangehrm-installer-page",onSubmit:u.toggleModal},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 欢迎使用经纬航通 HRM"+(0,n.zw)(a.productversion)+" 安装程序 ",1)])),_:1}),r,(0,n.Wm)(c,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 此设置向导将指导完成安装/升级 JingweiHRM 组件及其依赖项所需的步骤。 ")])),_:1}),s,(0,n.Wm)(c,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 选择安装类型; ")])),_:1}),i,(0,n.Wm)(p,{class:"orangehrm-installer-page-row"},{default:(0,n.w5)((()=>[(0,n.Wm)(m,{modelValue:d.selected,"onUpdate:modelValue":t[0]||(t[0]=e=>d.selected=e),value:"install","option-label":"全新安装"},null,8,["modelValue"]),(0,n.Wm)(c,{tag:"p",class:"orangehrm-installer-page-content --label"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 如果您是第一次安装 JingweiHRM Starter,请选择此选项 ")])),_:1})])),_:1}),(0,n.Wm)(p,{class:"orangehrm-installer-page-row"},{default:(0,n.w5)((()=>[(0,n.Wm)(m,{modelValue:d.selected,"onUpdate:modelValue":t[1]||(t[1]=e=>d.selected=e),value:"upgrade","option-label":"升级现有版本"},null,8,["modelValue"]),(0,n.Wm)(c,{tag:"p",class:"orangehrm-installer-page-content --label"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 如果您已经在使用 JingweiHRM 的早期版本,请选择此选项升级到 "),(0,n._)("b",null,(0,n.zw)(a.productversion),1)])),_:1})])),_:1}),(0,n.Wm)(c,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 点击 "),l,(0,n.Uk)(" 继续 ")])),_:1}),(0,n.Wm)(g,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(h,{"display-type":"secondary",label:"下一步",type:"submit"})])),_:1})])),_:1},8,["onSubmit"]),d.showModal?((0,n.wg)(),(0,n.j4)(b,{key:0,onCloseModel:u.closeModel},null,8,["onCloseModel"])):(0,n.kq)("",!0)],64)}const u=function(e,t={},a={}){let n=e;a=JSON.parse(JSON.stringify(a)),Object.keys(t).forEach((e=>{const a=`{${e}}`;if(n.includes(a)){let o=t[e];"number"===typeof o&&(o=o.toString()),n=n.replace(a,o)}else console.error("Invalid parameter.")}));let o="?";const r=Object.keys(a);return r.forEach(((e,t)=>{0!==t&&(o+="&");const n=a[e];Array.isArray(n)?n.forEach(((t,a)=>{0!==a&&(o+="&"),o+=`${e}[]=${t}`})):o+=`${e}=${n}`})),encodeURI(n+(0===r.length?"":o))},c=function(e,t={},a={}){return window.appGlobal.baseUrl+u(e,t,a)},m=function(e,t={},a={}){window.location.href=c(e,t,a)};var p=a(3846);function h(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-divider"),d=(0,n.up)("oxd-classic-table"),u=(0,n.up)("oxd-check-box"),c=(0,n.up)("oxd-button"),m=(0,n.up)("oxd-form-actions"),p=(0,n.up)("oxd-form"),h=(0,n.up)("oxd-dialog");return(0,n.wg)(),(0,n.j4)(h,{class:"orangehrm-consent-dialog",style:{width:"90%",maxWidth:"600px"},"onUpdate:show":s.cancelInstallation},{default:(0,n.w5)((()=>[(0,n.Wm)(p,{class:"orangehrm-database-config-dialog",onSubmit:s.submitInfo},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h6",class:"orangehrm-database-config-dialog-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Warning ")])),_:1}),(0,n.Wm)(l,{class:"orangehrm-divider"}),(0,n.Wm)(i,{tag:"p",class:"orangehrm-database-config-dialog-content orangehrm-database-config--title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" The following features and add-ons are not supported by OrangeHRM Starter version 5.4. You may continue to upgrade your system to version 5.4, but please note that any data used in these features will be inaccessible. ")])),_:1}),(0,n.Wm)(d,{headers:r.headers,items:r.items,class:"orangehrm-database-config-dialog-table"},null,8,["headers","items"]),(0,n.Wm)(u,{modelValue:r.checked,"onUpdate:modelValue":t[0]||(t[0]=e=>r.checked=e),"option-label":"I want to continue upgrading the OrangeHRM system to version 5.4 and I am aware that by doing so, any gathered data in incomplete features/add-ons will be inaccessible."},null,8,["modelValue"]),(0,n.Wm)(l,{class:"orangehrm-divider"}),(0,n.Wm)(m,{class:"orangehrm-database-config-dialog-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{"display-type":"ghost",label:"Cancel",type:"button",onClick:s.cancelInstallation},null,8,["onClick"]),(0,n.Wm)(c,{class:"orangehrm-left-space","display-type":"secondary",label:"Continue",disabled:!r.checked,type:"submit"},null,8,["disabled"])])),_:1})])),_:1},8,["onSubmit"])])),_:1},8,["onUpdate:show"])}var g=a(3466),f=a(3589),b=a(8899),w={name:"DatabaseConfigDialog",components:{"oxd-dialog":g.Z,"oxd-check-box":b.Z,"oxd-classic-table":f.Z},emits:["closeModel"],data(){return{checked:!1,headers:[{title:"Features",name:"feat"},{title:"Add-ons",name:"addon"},{title:"Other",name:"other"}],items:[{feat:"- Social Media Authentication",addon:"- Claim",other:"- Marketplace"},{addon:"- Toggl"}]}},methods:{submitInfo(){this.$emit("closeModel",this.checked)},cancelInstallation(){this.$emit("closeModel",!1)}}},y=a(89);const v=(0,y.Z)(w,[["render",h],["__scopeId","data-v-9862f0ac"]]);var k=v,_={name:"WelcomeScreen",components:{"oxd-radio-input":p.Z,"database-config-dialog":k},props:{productversion:{type:String,required:!0}},data(){return{selected:"install",showModal:!1}},methods:{toggleModal(){if("install"===this.selected)return m("/installer/licence-acceptance");this.showModal=!this.showModal},closeModel(e){if(!e||"upgrade"!==this.selected)return this.toggleModal();m("/upgrader/database-config")}}};const U=(0,y.Z)(_,[["render",d],["__scopeId","data-v-820d11b2"]]);var x=U;const W=e=>((0,n.dD)("data-v-1a13fdc2"),e=e(),(0,n.Cn)(),e),S=W((()=>(0,n._)("br",null,null,-1))),T=W((()=>(0,n._)("br",null,null,-1))),I=W((()=>(0,n._)("br",null,null,-1))),C=W((()=>(0,n._)("br",null,null,-1))),P=W((()=>(0,n._)("b",null,"Next",-1))),E=W((()=>(0,n._)("br",null,null,-1)));function O(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("Notice"),d=(0,n.up)("oxd-input-field"),u=(0,n.up)("oxd-grid-item"),c=(0,n.up)("oxd-grid"),m=(0,n.up)("required-text"),p=(0,n.up)("oxd-button"),h=(0,n.up)("oxd-form-actions"),g=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(g,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Database Information ")])),_:1}),S,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Please provide the database information of the database you are going to upgrade. ")])),_:1}),T,(0,n.Wm)(l,{title:"important",class:"orangehrm-installer-page-notice"},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Make sure it's a copy of the database of your current OrangeHRM installation and not the original database. It's highly discouraged to use the original database for upgrading since it won't be recoverable if an error occurred during the upgrade. ")])),_:1})])),_:1}),I,(0,n.Wm)(l,{title:"encryption",class:"orangehrm-installer-page-notice"},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" If you have enabled data encryption in your current version, you need to copy the file 'lib/confs/cryptokeys/key.ohrm' from your current installation to corresponding location in the new version. ")])),_:1})])),_:1}),C,(0,n.Wm)(c,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(u,null,{default:(0,n.w5)((()=>[(0,n.Wm)(d,{modelValue:r.database.dbHost,"onUpdate:modelValue":t[0]||(t[0]=e=>r.database.dbHost=e),label:"Database Host Name",rules:r.rules.dbHost,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(u,{class:"orangehrm-database-info-port"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{modelValue:r.database.dbPort,"onUpdate:modelValue":t[1]||(t[1]=e=>r.database.dbPort=e),label:"Database Host Port",rules:r.rules.dbPort,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(u,{class:"--offset-row-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{modelValue:r.database.dbName,"onUpdate:modelValue":t[2]||(t[2]=e=>r.database.dbName=e),label:"Database Name",rules:r.rules.dbName,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(u,{class:"--offset-row-3"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{modelValue:r.database.dbUser,"onUpdate:modelValue":t[3]||(t[3]=e=>r.database.dbUser=e),label:"Database Username",rules:r.rules.dbUser,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(u,{class:"--offset-row-3"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{modelValue:r.database.dbPassword,"onUpdate:modelValue":t[4]||(t[4]=e=>r.database.dbPassword=e),label:"Database User Password",type:"password"},null,8,["modelValue"])])),_:1})])),_:1}),(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Click "),P,(0,n.Uk)(" to continue ")])),_:1}),E,(0,n.wy)((0,n.Wm)(i,{class:"orangehrm-installer-page-content orangehrm-database-info-error"},{default:(0,n.w5)((()=>[(0,n._)("b",null,(0,n.zw)(r.errorMessage),1)])),_:1},512),[[n.F8,r.errorMessage]]),(0,n.Wm)(h,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(m),(0,n.Wm)(p,{"display-type":"ghost",label:"Back",type:"button",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(p,{class:"orangehrm-left-space","display-type":"secondary",label:"Next",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}const R=function(e){return"string"===typeof e?!!e&&""!==e.trim()||"Required":"number"===typeof e?!Number.isNaN(e)||"Required":Array.isArray(e)?!!e&&0!==e.length||"Required":"object"===typeof e&&null!==e||"Required"},D=function(e){return function(t){return!t||new String(t).length<=e||`Should not exceed ${e} characters`}},A=function(e,t,a){return function(n){return!n||/^\d+$/.test(n)&&!Number.isNaN(parseFloat(n))&&String(n).length<=e&&parseInt(n)>=t&&parseInt(n)<=a||`Enter a valid port number: ${t}-${a}`}},N=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)||"Expected format: admin@example.com"},L=function(e){return!e||/^[0-9+\-/() ]+$/.test(e)||"Allows numbers and only + - / ( )"},V=function(e){return function(t){return!t||String(t).length>=e||`Should be at least ${e} characters`}},M=e=>{const t=e??"Allows alphanumeric characters and only _";return function(e){return!e||/^[a-zA-Z0-9_]*$/.test(e)||t}};var H=a(7327),F=a(6943);class q{constructor(e,t){(0,H.Z)(this,"_http",void 0),(0,H.Z)(this,"_baseUrl",void 0),(0,H.Z)(this,"_apiSection",void 0),this._baseUrl=e,this._apiSection=t,this._http=F.Z.create({baseURL:this._baseUrl}),this.setupResponseInterceptors((0,n.FN)())}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 a={"Content-Type":"application/json"};return this._http.get(`${this._apiSection}/${e}`,{headers:a,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 a={"Content-Type":"application/json"};return this._http.put(`${this._apiSection}/${e}`,t,{headers:a})}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})}setupResponseInterceptors(e){this._http.interceptors.response.use((e=>e),(t=>{if(401===t.response?.status)return Promise.reject();const a=e?.appContext.config.globalProperties.$toast;if(a){const e=t.response?.data?.error?.message;a.error({title:"Error",message:e??"Unexpected Error!"})}return Promise.reject(t)}))}get http(){return this._http}get baseUrl(){return this._baseUrl}set apiSection(e){this._apiSection=e}}function G(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-sheet");return(0,n.wg)(),(0,n.j4)(l,{type:"gray-lighten-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"p",class:"notice-title"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(a.title),1)])),_:1}),(0,n._)("div",null,[(0,n.WI)(e.$slots,"default",{},void 0,!0)])])),_:3})}var Y=a(4277),Z=a(9677),j={components:{"oxd-sheet":Y.Z,"oxd-text":Z.Z},props:{title:{type:String,required:!0}}};const z=(0,y.Z)(j,[["render",G],["__scopeId","data-v-52344ae6"]]);var B=z,$={name:"DatabaseConfigScreen",components:{Notice:B},setup(){const e=new q(window.appGlobal.baseUrl,"/upgrader/api/database-config");return{http:e}},data(){return{rules:{dbHost:[R],dbPort:[R,A(5,0,65535)],dbName:[R],dbUser:[R]},isLoading:!1,database:{dbHost:null,dbPort:null,dbName:null,dbUser:null,dbPassword:null},errorMessage:""}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.database={...t,dbPassword:null},this.database.dbPort||(this.database.dbPort=3306),this.isLoading=!1}))},methods:{onSubmit(){this.isLoading=!0,this.errorMessage="",this.http.create({...this.database}).then((()=>{m("/upgrader/system-check")})).catch((({response:e})=>{const{error:t}=e.data;this.errorMessage=t?.message??t,this.isLoading=!1}))},navigateUrl(){m("/welcome")}}};const J=(0,y.Z)($,[["render",O],["__scopeId","data-v-1a13fdc2"]]);var K=J;const Q=e=>((0,n.dD)("data-v-81d60558"),e=e(),(0,n.Cn)(),e),X={class:"orangehrm-installer-page"},ee=Q((()=>(0,n._)("br",null,null,-1))),te=Q((()=>(0,n._)("br",null,null,-1)));function ae(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("flex-table"),d=(0,n.up)("oxd-button"),u=(0,n.up)("oxd-form-actions"),c=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(c,{loading:r.isLoading},{default:(0,n.w5)((()=>[(0,n._)("div",X,[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 检测运行环境 ")])),_:1}),ee,(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 为了让您的 JingweiHRM 安装正常运行,请确保下面列出的所有系统检查项目 都是绿色的。 如果有红色的,请采取必要的步骤来修复它们。 ")])),_:1}),te,((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(r.items,(e=>((0,n.wg)(),(0,n.j4)(l,{key:e.category,items:e.checks,"title-name":e.category},null,8,["items","title-name"])))),128)),(0,n.Wm)(u,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{"display-type":"ghost",label:"上一步",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(d,{class:"orangehrm-left-space","display-type":"ghost",label:"重新检查",type:"submit",onClick:s.reCheck},null,8,["onClick"]),(0,n.Wm)(d,{class:"orangehrm-left-space","display-type":"secondary",disabled:r.isInterrupted,label:"下一步",onClick:t[0]||(t[0]=e=>s.goToScreen())},null,8,["disabled"])])),_:1})])])),_:1},8,["loading"])}const ne={class:"orangehrm-flex-table"};function oe(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-divider");return(0,n.wg)(),(0,n.iD)("div",ne,[(0,n.Wm)(i,{tag:"p",class:"orangehrm-flex-table-title"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(a.titleName),1)])),_:1}),(0,n.Wm)(l,{class:"orangehrm-flex-table-divider"}),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.items,((e,t)=>((0,n.wg)(),(0,n.iD)("div",{key:t,class:"orangehrm-flex-table-row"},[(0,n.Wm)(i,{class:"orangehrm-flex-table-content"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(e.label),1)])),_:2},1024),(0,n.Wm)(i,{class:(0,n.C_)(s.getClass(e.value.status))},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(e.value.message),1)])),_:2},1032,["class"])])))),128))])}var re={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 se=(0,y.Z)(re,[["render",oe],["__scopeId","data-v-4d11017b"]]);var ie=se,le={name:"SystemCheckScreen",components:{"flex-table":ie},props:{installer:{type:Boolean,default:!1}},setup(e){const t=new q(window.appGlobal.baseUrl,(e.installer?"installer":"upgrader")+"/api/system-check");return{http:t}},data(){return{items:[],isLoading:!1,isInterrupted:!0}},beforeMount(){this.fetchData()},methods:{fetchData(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t,meta:a}=e.data;this.items=t,this.isInterrupted=a.isInterrupted})).finally((()=>{this.isLoading=!1}))},navigateUrl(){m(this.installer?"/installer/database-config":"/upgrader/database-config")},goToScreen(){m(this.installer?"/installer/instance-creation":"/upgrader/current-version")},reCheck(){this.fetchData()}}};const de=(0,y.Z)(le,[["render",ae],["__scopeId","data-v-81d60558"]]);var ue=de;const ce=e=>((0,n.dD)("data-v-ca27e1a8"),e=e(),(0,n.Cn)(),e),me=ce((()=>(0,n._)("br",null,null,-1))),pe=ce((()=>(0,n._)("br",null,null,-1))),he=ce((()=>(0,n._)("b",null,"Next",-1)));function ge(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("version-dropdown"),d=(0,n.up)("oxd-grid-item"),u=(0,n.up)("oxd-grid"),c=(0,n.up)("oxd-form-row"),m=(0,n.up)("required-text"),p=(0,n.up)("oxd-button"),h=(0,n.up)("oxd-form-actions"),g=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(g,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Current Version Details ")])),_:1}),me,(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Select your current OrangeHRM version here. You can find the version at the bottom of the OrangeHRM login page. OrangeHRM Upgrader only supports versions listed in the dropdown. Selecting a different version would lead to an upgrade failure and a database corruption. ")])),_:1}),pe,(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,null,{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.version,"onUpdate:modelValue":t[0]||(t[0]=e=>r.version=e),rules:r.rules.version,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Click "),he,(0,n.Uk)(" to commence upgrading your instance ")])),_:1}),(0,n.Wm)(h,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(m),(0,n.Wm)(p,{"display-type":"ghost",label:"Back",onClick:s.onClickBack},null,8,["onClick"]),(0,n.Wm)(p,{class:"orangehrm-left-space","display-type":"secondary",label:"Next",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}function fe(e,t,a,o,r,s){const i=(0,n.up)("oxd-input-field");return(0,n.wg)(),(0,n.j4)(i,{type:"select",label:"Current OrangeHRM Version",options:o.options},null,8,["options"])}var be={name:"VersionDropdown",setup(){const e=(0,n.iH)([]),t=new q(window.appGlobal.baseUrl,"upgrader/api/versions");return(0,n.wF)((()=>{t.getAll().then((({data:t})=>{e.value=t.map((e=>({id:e,label:e})))}))})),{options:e}}};const we=(0,y.Z)(be,[["render",fe]]);var ye=we,ve={name:"CurrentVersionScreen",components:{"version-dropdown":ye},setup(){const e=new q(window.appGlobal.baseUrl,"");return{http:e}},data(){return{isLoading:!1,version:null,rules:{version:[R]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:"/upgrader/api/current-version"}).then((e=>{const{version:t}=e.data;t&&(this.version={id:t,label:t}),this.isLoading=!1}))},methods:{onClickBack(){m("/upgrader/system-check")},onSubmit(){this.isLoading=!0,this.http.request({method:"POST",url:"/upgrader/api/current-version",data:{currentVersion:this.version?.id}}).then((()=>this.http.request({method:"POST",url:"/upgrader/api/send-data/upgrader-start"}))).then((()=>{m("/upgrader/process")}))}}};const ke=(0,y.Z)(ve,[["render",ge],["__scopeId","data-v-ca27e1a8"]]);var _e=ke;const Ue=e=>((0,n.dD)("data-v-375f2eba"),e=e(),(0,n.Cn)(),e),xe={class:"orangehrm-installer-page"},We=Ue((()=>(0,n._)("br",null,null,-1))),Se=Ue((()=>(0,n._)("br",null,null,-1))),Te=Ue((()=>(0,n._)("br",null,null,-1)));function Ie(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-button");return(0,n.wg)(),(0,n.iD)("div",xe,[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Upgrade Complete ")])),_:1}),We,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" You have successfully upgraded to OrangeHRM Starter version "+(0,n.zw)(a.productversion)+". ",1)])),_:1}),Se,Te,(0,n.Wm)(l,{class:"orangehrm-upgrader-complete-button","display-type":"secondary",label:"Launch OrangeHRM",onClick:s.launch},null,8,["onClick"])])}var Ce={name:"UpgraderCompleteScreen",props:{productversion:{type:String,required:!0}},methods:{launch(){m("/")}}};const Pe=(0,y.Z)(Ce,[["render",Ie],["__scopeId","data-v-375f2eba"]]);var Ee=Pe;const Oe=e=>((0,n.dD)("data-v-fe668f50"),e=e(),(0,n.Cn)(),e),Re={class:"orangehrm-installer-page"},De=Oe((()=>(0,n._)("br",null,null,-1))),Ae=Oe((()=>(0,n._)("br",null,null,-1))),Ne=Oe((()=>(0,n._)("br",null,null,-1))),Le=Oe((()=>(0,n._)("br",null,null,-1))),Ve=Oe((()=>(0,n._)("br",null,null,-1)));function Me(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("installer-tasks"),d=(0,n.up)("oxd-progress"),u=(0,n.up)("oxd-button"),c=(0,n.up)("oxd-form-actions");return(0,n.wg)(),(0,n.iD)("div",Re,[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Upgrading OrangeHRM ")])),_:1}),De,o.taskFailed?(0,n.kq)("",!0):((0,n.wg)(),(0,n.j4)(i,{key:0,tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" This may take some time. Please do not close the window till progress becomes 100% ")])),_:1})),Ae,(0,n.Wm)(l,{tasks:o.tasks},null,8,["tasks"]),Ne,(0,n.Wm)(i,{tag:"h5",class:(0,n.C_)({"orangehrm-installer-page-content":!0,"--progress":!0,"--error":o.taskFailed})},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(o.progressText),1)])),_:1},8,["class"]),Le,(0,n.Wm)(d,{progress:o.progress,type:o.progressType,"show-label":!1},null,8,["progress","type"]),Ve,100===o.progress?((0,n.wg)(),(0,n.j4)(c,{key:1,class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{"display-type":"secondary",label:"Next",onClick:o.onClickNext},null,8,["onClick"])])),_:1})):((0,n.wg)(),(0,n.j4)(i,{key:2,tag:"p",class:(0,n.C_)({"orangehrm-installer-page-content":!0,"--center":!0,"--error":o.taskFailed})},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(o.progressNotice),1)])),_:1},8,["class"]))])}const He={class:"orangehrm-installer-task"},Fe={class:"orangehrm-installer-task-item-progress"},qe={key:1,class:"orangehrm-installer-task-icon --done"},Ge={key:2,class:"orangehrm-installer-task-icon --error"},Ye={key:3,class:"orangehrm-installer-task-icon --pending"};function Ze(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-loading-spinner"),d=(0,n.up)("oxd-icon");return(0,n.wg)(),(0,n.iD)("div",He,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.tasks,(e=>((0,n.wg)(),(0,n.iD)("div",{key:e,class:"orangehrm-installer-task-item"},[(0,n.Wm)(i,{tag:"p",class:(0,n.C_)({"orangehrm-installer-task-item-name":!0,"--active":1===e.state,"--error":3===e.state})},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(e.name),1)])),_:2},1032,["class"]),(0,n._)("div",Fe,[1===e.state?((0,n.wg)(),(0,n.j4)(l,{key:0,"with-container":!1})):2===e.state?((0,n.wg)(),(0,n.iD)("div",qe,[(0,n.Wm)(d,{name:"check"})])):3===e.state?((0,n.wg)(),(0,n.iD)("div",Ge,[(0,n.Wm)(d,{name:"exclamation"})])):((0,n.wg)(),(0,n.iD)("div",Ye,[(0,n.Wm)(d,{name:"dash"})]))])])))),128))])}var je=a(5287),ze=a(3312),Be={name:"InstallerTasks",components:{"oxd-icon":je.Z,"oxd-loading-spinner":ze.Z},props:{tasks:{type:Array,default:()=>[]}}};const $e=(0,y.Z)(Be,[["render",Ze],["__scopeId","data-v-2d9c1a11"]]);var Je=$e,Ke=a(349);function Qe(e){let t=!1;const a=t=>{if(!e.value)return t.preventDefault(),t.returnValue=!0,t},o=()=>{!t&&window.addEventListener("beforeunload",a),t=!0};return(0,n.bv)((()=>{window.addEventListener("mousemove",o)})),(0,n.SK)((()=>{window.removeEventListener("mousemove",o),window.removeEventListener("beforeunload",a)})),{triggerUnload:a}}function Xe(e){const t=(t=!0)=>e.request({method:"GET",url:"upgrader/api/versions",params:{excludeLatest:t}}),a=()=>e.request({method:"GET",url:"upgrader/api/current-version"}),n=()=>e.request({method:"POST",url:"upgrader/api/config-file"}),o=(t,a)=>{let n;return n=t?{fromVersion:t,toVersion:a}:{version:a},e.request({method:"POST",url:"upgrader/api/migration",data:n})};function*r(e,t){let a=e.findIndex((e=>e===t));if(-1===a)return null;while(e[a+1])yield e[a+1],a++}const s=async()=>{let e=[],n=null;const s=Promise.all([t(!1),a()]),[i,l]=await s;if(e=[...i.data],n=l.data?.version,!n)throw new Error("version not detected");for(const t of r(e,n))await o(null,t)},i=()=>e.request({method:"POST",url:"upgrader/api/installation/pre-migration"});return{getVersionList:t,getCurrentVersion:a,migrateToVersion:o,runAllMigrations:s,createConfigFiles:n,versionGenerator:r,preMigrationCheck:i}}function et(){let e,t=0,a=!0;const o=100,r=(0,n.iH)(0);function*s(){const e=0;while(e<1)yield 1-Math.exp(-1*t/1e3),t+=o}const i=()=>{setTimeout((()=>{100!==r.value&&a&&(r.value=100*e.next().value,i())}),o+500*Math.random())},l=()=>{t=0,a=!0,r.value=0,e=s(),i()},d=()=>{r.value=100},u=()=>{a=!1};return{end:d,stop:u,start:l,progress:r}}var tt={name:"UpgradeScreen",components:{"oxd-progress":Ke.Z,"installer-tasks":Je},setup(){const e=(0,n.iH)(null),{progress:t,start:a,stop:o,end:r}=et(),{runAllMigrations:s,createConfigFiles:i,preMigrationCheck:l}=Xe(new q(window.appGlobal.baseUrl,"")),d=(0,n.iH)([{name:"Checking database permissions",state:0,task:l},{name:"Applying database changes",state:0,task:s},{name:"Creating configuration files",state:0,task:i}]);(0,n.wF)((async()=>{a();for(let a=0;a{m("/upgrader/complete")},c=(0,n.Fl)((()=>`${Math.floor(t.value)}%`)),p=(0,n.Fl)((()=>d.value.findIndex((e=>3===e.state))>-1)),h=(0,n.Fl)((()=>p.value?`${e.value?e.value:"Upgrading has failed"}. For more details check the error log in /src/log/installer.log file`:"Please Wait. Upgrading in Progress")),g=(0,n.Fl)((()=>p.value?"error":"secondary")),f=(0,n.Fl)((()=>p.value||100===t.value));return Qe(f),{tasks:d,progress:t,taskFailed:p,progressText:c,progressType:g,progressNotice:h,onClickNext:u}}};const at=(0,y.Z)(tt,[["render",Me],["__scopeId","data-v-fe668f50"]]);var nt=at;const ot=e=>((0,n.dD)("data-v-70efe06a"),e=e(),(0,n.Cn)(),e),rt=ot((()=>(0,n._)("br",null,null,-1))),st=ot((()=>(0,n._)("br",null,null,-1))),it=ot((()=>(0,n._)("br",null,null,-1))),lt=ot((()=>(0,n._)("b",null,"下一步",-1))),dt=ot((()=>(0,n._)("br",null,null,-1)));function ut(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-radio-input"),d=(0,n.up)("oxd-form-row"),u=(0,n.up)("oxd-input-field"),c=(0,n.up)("oxd-grid-item"),m=(0,n.up)("oxd-grid"),p=(0,n.up)("required-text"),h=(0,n.up)("oxd-button"),g=(0,n.up)("oxd-form-actions"),f=(0,n.up)("oxd-form"),b=(0,n.Q2)("tooltip");return(0,n.wg)(),(0,n.j4)(f,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 数据库配置 ")])),_:1}),rt,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 请在下面输入您的数据库配置信息,如果您不确定 要填写什么,我们建议您使用默认值。 ")])),_:1}),st,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Select Database to Use ")])),_:1}),(0,n.Wm)(d,{class:"orangehrm-database-info-row"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.database.dbType,"onUpdate:modelValue":t[0]||(t[0]=e=>r.database.dbType=e),value:"new","option-label":"新建数据库"},null,8,["modelValue"]),(0,n.Wm)(l,{modelValue:r.database.dbType,"onUpdate:modelValue":t[1]||(t[1]=e=>r.database.dbType=e),value:"existing","option-label":"已有数据库 (Docker 运行)"},null,8,["modelValue"])])),_:1}),it,(0,n.Wm)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.dbHost,"onUpdate:modelValue":t[2]||(t[2]=e=>r.database.dbHost=e),label:"主机名",rules:r.rules.dbHost,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(c,{class:"orangehrm-database-info-port"},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.dbPort,"onUpdate:modelValue":t[3]||(t[3]=e=>r.database.dbPort=e),label:"主机端口",rules:r.rules.dbPort,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(c,{class:"--offset-row-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.dbName,"onUpdate:modelValue":t[4]||(t[4]=e=>r.database.dbName=e),label:"Database Name",rules:r.rules.dbName,required:""},null,8,["modelValue","rules"])])),_:1}),s.isNewDB?((0,n.wg)(),(0,n.j4)(c,{key:0,class:"--offset-row-2 orangehrm-database-info-check"},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.useSameDbUserForOrangeHRM,"onUpdate:modelValue":t[5]||(t[5]=e=>r.database.useSameDbUserForOrangeHRM=e),label:" ",type:"checkbox","option-label":"Use the same Database User for OrangeHRM"},null,8,["modelValue"])])),_:1})):(0,n.kq)("",!0)])),_:1}),(0,n.Wm)(m,{cols:4,class:"orangehrm-full-width-grid orangehrm-database-info-user"},{default:(0,n.w5)((()=>[s.isNewDB?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.wy)((0,n.Wm)(u,{modelValue:r.database.dbUser,"onUpdate:modelValue":t[6]||(t[6]=e=>r.database.dbUser=e),label:"Privileged Database Username",rules:r.rules.dbUser,required:""},null,8,["modelValue","rules"]),[[b,"Privileged Database User should have the rights to create databases, create tables, insert data into table, alter table structure and to create database users."]])])),_:1}),(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.dbPassword,"onUpdate:modelValue":t[7]||(t[7]=e=>r.database.dbPassword=e),label:"Privileged Database User Password",type:"password"},null,8,["modelValue"])])),_:1})],64)):(0,n.kq)("",!0),(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.wy)(((0,n.wg)(),(0,n.j4)(u,{key:s.disableOHRMDBfield,modelValue:r.database.ohrmDbUser,"onUpdate:modelValue":t[8]||(t[8]=e=>r.database.ohrmDbUser=e),label:"OrangeHRM Database Username",rules:r.rules.ohrmDbUser,disabled:s.disableOHRMDBfield,required:!s.disableOHRMDBfield},null,8,["modelValue","rules","disabled","required"])),[[b,"OrangeHRM database user should have the rights to insert data into table, update data in a table, delete data in a table."]])])),_:1}),(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.ohrmDbPassword,"onUpdate:modelValue":t[9]||(t[9]=e=>r.database.ohrmDbPassword=e),disabled:s.disableOHRMDBfield,label:"OrangeHRM Database User Password",type:"password"},null,8,["modelValue","disabled"])])),_:1})])),_:1}),(0,n.Wm)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.enableDataEncryption,"onUpdate:modelValue":t[10]||(t[10]=e=>r.database.enableDataEncryption=e),label:" ",type:"checkbox","option-label":"使用数据库加密"},null,8,["modelValue"])])),_:1})])),_:1}),(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 点击 "),lt,(0,n.Uk)(" 继续 ")])),_:1}),dt,(0,n.wy)((0,n.Wm)(i,{class:"orangehrm-installer-page-content orangehrm-database-info-error"},{default:(0,n.w5)((()=>[(0,n._)("b",null,(0,n.zw)(r.errorMessage),1)])),_:1},512),[[n.F8,r.errorMessage]]),(0,n.Wm)(g,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(p),(0,n.Wm)(h,{"display-type":"ghost",label:"上一步",type:"button",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(h,{class:"orangehrm-left-space","display-type":"secondary",label:"下一步",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}const ct={beforeMount(e,t){if(!e||0===e.children.length)return;const{value:a}=t,o=(0,n.h)(je.Z,{name:"info-circle-fill",title:a,style:{marginLeft:"auto",cursor:"pointer"}});(0,n.sY)(o,e.children[0])}};var mt=ct,pt={name:"DatabaseConfigScreen",components:{"oxd-radio-input":p.Z},directives:{tooltip:mt},setup(){const e=new q(window.appGlobal.baseUrl,"/installer/api/database-config");return{http:e}},data(){return{rules:{dbHost:[R],dbPort:[R,A(5,0,65535)],dbName:[R,D(64),M("Database name should not contain special characters")],dbUser:[R],ohrmDbUser:[e=>this.disableOHRMDBfield||R(e)]},isLoading:!1,database:{dbType:null,dbHost:null,dbPort:null,dbUser:null,dbName:null,dbPassword:null,ohrmDbUser:null,ohrmDbPassword:null,useSameDbUserForOrangeHRM:!0,enableDataEncryption:!1},errorMessage:""}},computed:{isNewDB(){return"new"===this.database.dbType},disableOHRMDBfield(){return!!this.isNewDB&&this.database.useSameDbUserForOrangeHRM}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.database={...t,dbPassword:null,ohrmDbPassword:null},this.database.dbType||(this.database.dbType="new"),this.database.dbPort||(this.database.dbPort=3306),this.isLoading=!1}))},methods:{onSubmit(){this.isLoading=!0,this.errorMessage="";const e={...this.database};this.http.create({...e,..."existing"===e.dbType&&{dbUser:e.ohrmDbUser,dbPassword:e.ohrmDbPassword,ohrmDbUser:void 0,ohrmDbPassword:void 0,useSameDbUserForOrangeHRM:void 0},...e.useSameDbUserForOrangeHRM&&{ohrmDbUser:void 0,ohrmDbPassword:void 0}}).then((()=>{m("/installer/system-check")})).catch((({response:e})=>{const{error:t}=e.data;this.errorMessage=t?.message??t,this.isLoading=!1}))},navigateUrl(){m("/installer/licence-acceptance")}}};const ht=(0,y.Z)(pt,[["render",ut],["__scopeId","data-v-70efe06a"]]);var gt=ht;const ft=e=>((0,n.dD)("data-v-8abc5e12"),e=e(),(0,n.Cn)(),e),bt=ft((()=>(0,n._)("br",null,null,-1))),wt=ft((()=>(0,n._)("br",null,null,-1))),yt=ft((()=>(0,n._)("br",null,null,-1)));function vt(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-input-field"),d=(0,n.up)("oxd-grid-item"),u=(0,n.up)("oxd-grid"),c=(0,n.up)("required-text"),m=(0,n.up)("oxd-button"),p=(0,n.up)("oxd-form-actions"),h=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(h,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 创建管理员账号 ")])),_:1}),bt,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 选择名称、电子邮件地址、用户名和密码以创建管理员 ")])),_:1}),wt,(0,n.Wm)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,null,{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.firstName,"onUpdate:modelValue":t[0]||(t[0]=e=>r.adminUser.firstName=e),rules:r.rules.firstName,placeholder:"输入名称",label:"名称",required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-2 --span-column-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.email,"onUpdate:modelValue":t[1]||(t[1]=e=>r.adminUser.email=e),rules:r.rules.email,label:"Email",required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.contact,"onUpdate:modelValue":t[2]||(t[2]=e=>r.adminUser.contact=e),rules:r.rules.contact,label:"Contact Number"},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-3"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.username,"onUpdate:modelValue":t[3]||(t[3]=e=>r.adminUser.username=e),label:"Admin Username",rules:r.rules.username,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-4"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.password,"onUpdate:modelValue":t[4]||(t[4]=e=>r.adminUser.password=e),type:"password",label:"Password",rules:r.rules.password,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-4"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.confirmPassword,"onUpdate:modelValue":t[5]||(t[5]=e=>r.adminUser.confirmPassword=e),type:"password",label:"Confirm Password",rules:r.rules.passwordConfirm,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1}),yt,(0,n.Wm)(p,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(c),(0,n.Wm)(m,{"display-type":"ghost",label:"上一步",type:"button",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(m,{class:"orangehrm-left-space","display-type":"secondary",label:"下一步",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}function kt(e){const t=new RegExp(/[a-z]/),a=new RegExp(/[A-Z]/),n=new RegExp(/[0-9]/),o=new RegExp(/[@#\\/\-!$%^&*()_+|~=`{}[\]:";'<>?,.]/);return[t,a,n,o].map((t=>t.test(e)?1:0))}function _t(e){if(e.length>=8){const t=kt(e);return RegExp(/\s/).test(e)?"Your password should not contain spaces.":!(t.reduce(((e,t)=>e+t),0)<4)||"Your password must contain a lower-case letter, an upper-case letter, a digit and a special character. Try a different password"}return"Should have at least 8 characters"}var Ut={name:"AdminUserCreation",setup(){const e=new q(window.appGlobal.baseUrl,"/installer/api/admin-user");return{http:e}},data(){return{isLoading:!1,adminUser:{firstName:null,lastName:null,email:null,contact:null,username:null,password:"",confirmPassword:"",registrationConsent:!1},rules:{firstName:[R,D(30)],email:[R,D(50),N],contact:[D(25),L],username:[R,D(40),V(5)],password:[R,D(64),_t],passwordConfirm:[R,D(64),e=>!!e&&e===this.adminUser.password||"Passwords do not match"]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.adminUser={...this.adminUser,...t}})),this.isLoading=!1},methods:{onSubmit(){this.isLoading=!0,this.http.create({firstName:this.adminUser.firstName,lastName:this.adminUser.firstName,email:this.adminUser.email,contact:this.adminUser.contact,username:this.adminUser.username,password:this.adminUser.password,registrationConsent:!1}).then((()=>{m("/installer/confirmation")}))},navigateUrl(){m("/installer/instance-creation")}}};const xt=(0,y.Z)(Ut,[["render",vt],["__scopeId","data-v-8abc5e12"]]);var Wt=xt;const St=e=>((0,n.dD)("data-v-bb67a12c"),e=e(),(0,n.Cn)(),e),Tt=St((()=>(0,n._)("br",null,null,-1))),It=St((()=>(0,n._)("br",null,null,-1))),Ct=St((()=>(0,n._)("br",null,null,-1))),Pt=St((()=>(0,n._)("b",null,"下一步",-1))),Et=St((()=>(0,n._)("br",null,null,-1)));function Ot(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("gnu-licence"),d=(0,n.up)("oxd-form-row"),u=(0,n.up)("oxd-input-field"),c=(0,n.up)("oxd-button"),m=(0,n.up)("oxd-form-actions"),p=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(p,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 许可协议 ")])),_:1}),Tt,(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 请在安装 JingweiHRM 之前查看许可条款. ")])),_:1}),It,(0,n.Wm)(d,null,{default:(0,n.w5)((()=>[(0,n.Wm)(l)])),_:1}),Ct,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 点击 "),Pt,(0,n.Uk)(" 继续 ")])),_:1}),Et,(0,n.Wm)(d,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.userConsent,"onUpdate:modelValue":t[0]||(t[0]=e=>r.userConsent=e),type:"checkbox","option-label":"我接受上述协议条款"},null,8,["modelValue"])])),_:1}),(0,n.Wm)(m,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{"display-type":"ghost",label:"上一步",onClick:s.onClickBack},null,8,["onClick"]),(0,n.Wm)(c,{disabled:!r.userConsent,class:"orangehrm-left-space","display-type":"secondary",label:"下一步",type:"submit"},null,8,["disabled"])])),_:1})])),_:1},8,["loading","onSubmitValid"])}function Rt(e,t,a,o,r,s){const i=(0,n.up)("oxd-textarea");return(0,n.wg)(),(0,n.j4)(i,{rows:"20",value:'GNU GENERAL PUBLIC LICENSE\nVersion 2, June 1991\n\nCopyright © 1989, 1991 Free Software Foundation, Inc. \n51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\n\nEveryone is permitted to copy and distribute verbatim copies\nof this license document, but changing it is not allowed.\nPreamble\nThe licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation\'s software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.\n\nTo protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nWe protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.\n\nAlso, for each author\'s protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors\' reputations.\n\nFinally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone\'s free use or not licensed at all.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".\n\nActivities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.\n\n1. You may copy and distribute verbatim copies of the Program\'s source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.\n\n2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:\n\na) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.\nb) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.\nc) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)\nThese requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.\n\n3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:\n\na) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\nb) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\nc) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)\nThe source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.\n\nIf distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.\n\n4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.\n\n5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.\n\n6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients\' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.\n\n7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.\n\nIt is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.\n\nThis section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.\n\n8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.\n\n9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.\n\n10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.\n\nNO WARRANTY\n\n11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\nEND OF TERMS AND CONDITIONS\nHow to Apply These Terms to Your New Programs\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.\n\none line to give the program\'s name and an idea of what it does.\nCopyright © yyyy name of author\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program is interactive, make it output a short notice like this when it starts in an interactive mode:\n\nGnomovision version 69, Copyright © year name of author\nGnomovision comes with ABSOLUTELY NO WARRANTY; for details\ntype `show w\'. This is free software, and you are welcome\nto redistribute it under certain conditions; type `show c\' \nfor details.\nThe hypothetical commands `show w\' and `show c\' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w\' and `show c\'; they could even be mouse-clicks or menu items--whatever suits your program.\n\nYou should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:\n\nYoyodyne, Inc., hereby disclaims all copyright\ninterest in the program `Gnomovision\'\n(which makes passes at compilers) written \nby James Hacker.\n\nsignature of Ty Coon, 1 April 1989\nTy Coon, President of Vice\nThis General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License.',disabled:"",style:{"text-align":"center"}})}var Dt=a(7405),At={name:"GNULicence",components:{"oxd-textarea":Dt.Z}};const Nt=(0,y.Z)(At,[["render",Rt]]);var Lt=Nt,Vt={name:"LicenceAcceptanceScreen",components:{"gnu-licence":Lt},setup(){const e=new q(window.appGlobal.baseUrl,"installer/api/license");return{http:e}},data(){return{isLoading:!1,userConsent:!1}},methods:{onClickBack(){m("/welcome")},onSubmit(){m("/installer/database-config")}}};const Mt=(0,y.Z)(Vt,[["render",Ot],["__scopeId","data-v-bb67a12c"]]);var Ht=Mt;const Ft=e=>((0,n.dD)("data-v-5c19fe96"),e=e(),(0,n.Cn)(),e),qt=Ft((()=>(0,n._)("br",null,null,-1))),Gt=Ft((()=>(0,n._)("br",null,null,-1)));function Yt(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-input-field"),d=(0,n.up)("oxd-grid-item"),u=(0,n.up)("oxd-grid"),c=(0,n.up)("required-text"),m=(0,n.up)("oxd-button"),p=(0,n.up)("oxd-form-actions"),h=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(h,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 创建实例 ")])),_:1}),qt,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 在此处填写您的组织详细信息。 ")])),_:1}),Gt,(0,n.Wm)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,null,{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.instance.organizationName,"onUpdate:modelValue":t[0]||(t[0]=e=>r.instance.organizationName=e),label:"组织名称",required:"",rules:r.rules.organizationName},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.instance.countryCode,"onUpdate:modelValue":t[1]||(t[1]=e=>r.instance.countryCode=e),label:"国家或地区",required:"",type:"select",options:r.countryList,rules:r.rules.countryCode},null,8,["modelValue","options","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-3"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.instance.langCode,"onUpdate:modelValue":t[2]||(t[2]=e=>r.instance.langCode=e),label:"语言",type:"select",options:r.languageList},null,8,["modelValue","options"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-4"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.instance.timezone,"onUpdate:modelValue":t[3]||(t[3]=e=>r.instance.timezone=e),label:"时区",type:"select",options:r.timezoneList},null,8,["modelValue","options"])])),_:1})])),_:1}),(0,n.Wm)(p,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(c),(0,n.Wm)(m,{"display-type":"ghost",label:"上一步",type:"button",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(m,{class:"orangehrm-left-space","display-type":"secondary",label:"下一步",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}var Zt={name:"InstanceCreation",setup(){const e=new q(window.appGlobal.baseUrl,"/installer/api/instance");return{http:e}},data(){return{isLoading:!1,instance:{organizationName:null,countryCode:null,langCode:null,timezone:null},countryList:[],languageList:[],timezoneList:[],rules:{organizationName:[R,D(100)],countryCode:[R]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:"installer/api/countries"}).then((e=>{const{data:t}=e.data;return t.sort(((e,t)=>e.label>t.label?1:-1)),this.countryList=t,this.http.request({method:"GET",url:"installer/api/languages"})})).then((e=>{const{data:t}=e.data;return this.languageList=t,this.http.request({method:"GET",url:"installer/api/timezones"})})).then((e=>{const{data:t}=e.data;return this.timezoneList=t,this.http.getAll()})).then((e=>{const{data:t}=e.data;this.instance={...this.instance,...t},this.isLoading=!1}))},methods:{onSubmit(){this.http.create({organizationName:this.instance.organizationName,countryCode:this.instance.countryCode.id,langCode:this.instance.langCode?.id,timezone:this.instance.timezone?.id}).then((()=>{m("/installer/admin-user-creation")}))},navigateUrl(){m("/installer/system-check")}}};const jt=(0,y.Z)(Zt,[["render",Yt],["__scopeId","data-v-5c19fe96"]]);var zt=jt;const Bt=e=>((0,n.dD)("data-v-3cd00f92"),e=e(),(0,n.Cn)(),e),$t=Bt((()=>(0,n._)("br",null,null,-1))),Jt=Bt((()=>(0,n._)("br",null,null,-1))),Kt=Bt((()=>(0,n._)("br",null,null,-1))),Qt=Bt((()=>(0,n._)("br",null,null,-1))),Xt=Bt((()=>(0,n._)("br",null,null,-1))),ea=Bt((()=>(0,n._)("br",null,null,-1))),ta=Bt((()=>(0,n._)("br",null,null,-1))),aa={key:0},na=Bt((()=>(0,n._)("br",null,null,-1))),oa=Bt((()=>(0,n._)("br",null,null,-1))),ra=Bt((()=>(0,n._)("b",null,"开始安装",-1)));function sa(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-button"),d=(0,n.up)("oxd-form-actions"),u=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(u,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 确认 ")])),_:1}),$t,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 所需的所有信息都收集在下面。 确认安装将创建数据库、数据库用户、配置文件等 ")])),_:1}),Jt,(0,n.Wm)(i,{class:"confirmation-text-header"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 详细信息 ")])),_:1}),Kt,(0,n.Wm)(i,{class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Host Name ")])),_:1}),(0,n.Wm)(i,{class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(r.database.dbHost),1)])),_:1}),Qt,(0,n.Wm)(i,{class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Database Host Port ")])),_:1}),(0,n.Wm)(i,{class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(r.database.dbPort),1)])),_:1}),Xt,(0,n.Wm)(i,{class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Database Name ")])),_:1}),(0,n.Wm)(i,{class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(r.database.dbName),1)])),_:1}),ea,(0,n.Wm)(i,{class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Privileged Database Username ")])),_:1}),(0,n.Wm)(i,{class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(r.database.dbUser),1)])),_:1}),ta,(0,n.Wm)(i,{class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)(" OrangeHRM Admin Username ")])),_:1}),(0,n.Wm)(i,{class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(r.adminUserName),1)])),_:1}),r.database.enableDataEncryption?((0,n.wg)(),(0,n.iD)("br",aa)):(0,n.kq)("",!0),r.database.enableDataEncryption?((0,n.wg)(),(0,n.j4)(i,{key:1,class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)("Data Encryption")])),_:1})):(0,n.kq)("",!0),r.database.enableDataEncryption?((0,n.wg)(),(0,n.j4)(i,{key:2,class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Data Encryption Is On. Employee Social Security Number, Employee Basic Salary, LDAP Bind User Password Will Be Encrypted. ")])),_:1})):(0,n.kq)("",!0),r.database.enableDataEncryption?((0,n.wg)(),(0,n.j4)(i,{key:3,class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Please backup encryption key located at lib/confs/cryptokeys/key.ohrm ")])),_:1})):(0,n.kq)("",!0),na,oa,(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 点击 "),ra,(0,n.Uk)(" 继续 ")])),_:1}),(0,n.Wm)(d,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{"display-type":"ghost",label:"上一步",type:"button",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(l,{class:"orangehrm-left-space","display-type":"secondary",label:"开始安装",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}const ia={dbHost:"",dbPort:"",dbName:"",dbUser:"",enableDataEncryption:!1};var la={name:"ConfirmationScreen",setup(){const e=new q(window.appGlobal.baseUrl,"/installer/api/database-config");return{http:e}},data(){return{isLoading:!1,database:{...ia},adminUserName:""}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;return this.database={...ia,...t},this.http.request({method:"GET",url:"/installer/api/admin-user"})})).then((e=>{const{data:t}=e.data;this.adminUserName=t.username,this.isLoading=!1}))},methods:{onSubmit(){m("/installer/process")},navigateUrl(){m("/installer/admin-user-creation")}}};const da=(0,y.Z)(la,[["render",sa],["__scopeId","data-v-3cd00f92"]]);var ua=da;const ca=e=>((0,n.dD)("data-v-0ba11067"),e=e(),(0,n.Cn)(),e),ma={class:"orangehrm-installer-page"},pa=ca((()=>(0,n._)("br",null,null,-1))),ha=ca((()=>(0,n._)("br",null,null,-1))),ga=ca((()=>(0,n._)("br",null,null,-1)));function fa(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-button");return(0,n.wg)(),(0,n.iD)("div",ma,[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 安装完成 ")])),_:1}),pa,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" JingweiHRM-"+(0,n.zw)(a.productversion)+"已经安装成功. ",1)])),_:1}),ha,ga,(0,n.Wm)(l,{class:"orangehrm-installer-complete-button","display-type":"secondary",label:"打开 JingweiHRM",onClick:s.launch},null,8,["onClick"])])}var ba={name:"InstallerCompleteScreen",props:{productversion:{type:String,required:!0}},methods:{launch(){m("/")}}};const wa=(0,y.Z)(ba,[["render",fa],["__scopeId","data-v-0ba11067"]]);var ya=wa;const va=e=>((0,n.dD)("data-v-2e98947a"),e=e(),(0,n.Cn)(),e),ka={class:"orangehrm-installer-page"},_a=va((()=>(0,n._)("br",null,null,-1))),Ua=va((()=>(0,n._)("br",null,null,-1))),xa=va((()=>(0,n._)("br",null,null,-1))),Wa=va((()=>(0,n._)("br",null,null,-1)));function Sa(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("installer-tasks"),d=(0,n.up)("oxd-progress"),u=(0,n.up)("oxd-button"),c=(0,n.up)("oxd-form-actions");return(0,n.wg)(),(0,n.iD)("div",ka,[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 安装 ")])),_:1}),_a,(0,n.Wm)(l,{tasks:o.tasks},null,8,["tasks"]),Ua,(0,n.Wm)(i,{tag:"h5",class:(0,n.C_)({"orangehrm-installer-page-content":!0,"--progress":!0,"--error":o.taskFailed})},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(o.progressText),1)])),_:1},8,["class"]),xa,(0,n.Wm)(d,{progress:o.progress,type:o.progressType,"show-label":!1},null,8,["progress","type"]),Wa,(0,n.wy)((0,n.Wm)(i,{tag:"p",class:(0,n.C_)({"orangehrm-installer-page-content":!0,"--center":!0,"--error":o.taskFailed})},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(o.progressNotice),1)])),_:1},8,["class"]),[[n.F8,o.progress<100]]),(0,n.Wm)(c,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.wy)((0,n.Wm)(u,{label:"下一步","display-type":"secondary",onClick:o.onClickNext},null,8,["onClick"]),[[n.F8,100===o.progress]]),(0,n.wy)((0,n.Wm)(u,{label:"清除并重新安装","display-type":"secondary",onClick:o.onClickCleanup},null,8,["onClick"]),[[n.F8,o.taskFailed]])])),_:1})])}function Ta(e){const t=()=>e.request({method:"POST",url:"/installer/api/send-data/installer-start"}),a=()=>e.request({method:"POST",url:"/installer/api/send-data/upgrader-start"});return{notifyUpgraderStart:a,notifyInstallerStart:t}}function Ia(e){const{versionGenerator:t}=Xe(e),{notifyInstallerStart:a}=Ta(e),n=(t=!1)=>e.request({method:"GET",url:"installer/api/versions",params:{excludeLatest:t}}),o=()=>Promise.all([a(),e.request({method:"POST",url:"/installer/api/installation/database"})]),r=()=>e.request({method:"POST",url:"installer/api/installation/database-user"}),s=()=>e.request({method:"POST",url:"installer/api/installation/pre-migration"}),i=async()=>{const a=t=>e.request({method:"POST",url:"installer/api/installation/migration",data:{version:t}}),o=await n(),r=["0.0",...o.data],s=Array.isArray(r)?r[0]:null;if(!s)throw new Error("version not detected");for(const e of t(r,s))await a(e)},l=()=>e.request({method:"POST",url:"installer/api/installation/instance"}),d=()=>e.request({method:"POST",url:"installer/api/installation/config-file"}),u=()=>e.request({method:"POST",url:"installer/api/clean-up-install"});return{runCleanup:u,runMigrations:i,createInstance:l,createDatabase:o,createConfigFiles:d,createDatabaseUser:r,preMigrationCheck:s}}var Ca={name:"InstallScreen",components:{"oxd-progress":Ke.Z,"installer-tasks":Je},setup(){const e=(0,n.iH)(null),{progress:t,start:a,stop:o,end:r}=et(),{runCleanup:s,runMigrations:i,createInstance:l,createDatabase:d,createConfigFiles:u,createDatabaseUser:c,preMigrationCheck:p}=Ia(new q(window.appGlobal.baseUrl,"")),h=(0,n.iH)([{name:"新建数据库",state:0,task:d},{name:"检查数据库权限",state:0,task:p},{name:"更新数据",state:0,task:i},{name:"实例化管理员用户",state:0,task:l},{name:"创建HRM用户",state:0,task:c},{name:"设置配置文件",state:0,task:u}]),g=()=>{m("/installer/complete")},f=()=>{s().then((()=>{m("/installer/confirmation")}))};(0,n.wF)((async()=>{a();for(let a=0;a`${Math.floor(t.value)}%`)),w=(0,n.Fl)((()=>h.value.findIndex((e=>3===e.state))>-1)),y=(0,n.Fl)((()=>w.value?`${e.value?e.value:"Installation has failed"}. For more details check the error log in /src/log/installer.log file`:"请等待. 安装正在进行")),v=(0,n.Fl)((()=>w.value?"error":"secondary")),k=(0,n.Fl)((()=>w.value||100===t.value));return Qe(k),{tasks:h,progress:t,taskFailed:w,progressType:v,progressText:b,progressNotice:y,onClickCleanup:f,onClickNext:g}}};const Pa=(0,y.Z)(Ca,[["render",Sa],["__scopeId","data-v-2e98947a"]]);var Ea=Pa,Oa={"welcome-screen":x,"database-info-screen":K,"system-check-screen":ue,"current-version-screen":_e,"upgrader-complete-screen":Ee,"upgrade-process-screen":nt,"database-config-screen":gt,"admin-user-creation-screen":Wt,"licence-acceptance-screen":Ht,"instance-creation-screen":zt,"confirmation-screen":ua,"installer-complete-screen":ya,"install-process-screen":Ea},Ra=a(830),Da=a(5608),Aa=a(5466),Na=a(6081),La=a(3105),Va=a(9514),Ma=a(7769),Ha=a(6014),Fa=a(5845);const qa=e=>((0,n.dD)("data-v-15c09d5a"),e=e(),(0,n.Cn)(),e),Ga={class:"orangehrm-installer"},Ya={class:"orangehrm-installer-sidebar"},Za={class:"orangehrm-installer-footer"},ja={target:"_blank",class:"orangehrm-installer-guide",href:"https://starterhelp.jingweiht.com/hc/en-us/articles/5295915003666-OrangeHRM-Starter-Installation-Guide"},za=qa((()=>(0,n._)("br",null,null,-1))),Ba={class:"orangehrm-installer-header"},$a=["src"],Ja={class:"orangehrm-installer-content"};function Ka(e,t,a,o,r,s){const i=(0,n.up)("installer-steps"),l=(0,n.up)("oxd-icon");return(0,n.wg)(),(0,n.iD)("div",Ga,[(0,n._)("div",Ya,[(0,n.Wm)(i,{steps:a.steps,"current-step":a.currentStep},null,8,["steps","current-step"]),(0,n._)("div",Za,[(0,n.wy)((0,n._)("a",ja,[(0,n.Wm)(l,{type:"svg",name:"guide",class:"orangehrm-installer-guide-icon"}),(0,n.Uk)(" 安装手册 ")],512),[[n.F8,0===a.currentStep]]),za,(0,n.WI)(e.$slots,"footer",{},void 0,!0)])]),(0,n._)("div",Ba,[(0,n._)("img",{src:r.brandingSrc,width:"280",alt:"orangehrm-branding"},null,8,$a)]),(0,n._)("div",Ja,[(0,n.WI)(e.$slots,"default",{},void 0,!0)])])}const Qa={class:"orangehrm-installer-steps"};function Xa(e,t,a,o,r,s){const i=(0,n.up)("oxd-icon"),l=(0,n.up)("oxd-text");return(0,n.wg)(),(0,n.iD)("ul",Qa,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.steps,((e,t)=>((0,n.wg)(),(0,n.iD)("li",{key:e,class:(0,n.C_)({"orangehrm-installer-steps-item":!0,"--active":a.currentStep===t})},[(0,n.Wm)(l,{tag:"span",class:(0,n.C_)({"orangehrm-installer-steps-count":!0,"--success":a.currentStep>t})},{default:(0,n.w5)((()=>[a.currentStep<=t?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n.Uk)((0,n.zw)(t+1),1)],64)):((0,n.wg)(),(0,n.j4)(i,{key:1,class:"orangehrm-installer-steps-icon",name:"check"}))])),_:2},1032,["class"]),(0,n.Wm)(l,{tag:"span",class:"orangehrm-installer-steps-name"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(e),1)])),_:2},1024)],2)))),128))])}var en={name:"InstallerSteps",components:{"oxd-icon":je.Z},props:{steps:{type:Array,default:()=>[]},currentStep:{type:Number,default:0}}};const tn=(0,y.Z)(en,[["render",Xa],["__scopeId","data-v-3a7a11f2"]]);var an=tn,nn={name:"InstallerLayout",components:{"installer-steps":an,"oxd-icon":je.Z},props:{steps:{type:Array,required:!0},currentStep:{type:Number,required:!0}},data(){return{brandingSrc:`${window.appGlobal.publicPath}/client/public/ohrm_branding.png`}}};const on=(0,y.Z)(nn,[["render",Ka],["__scopeId","data-v-15c09d5a"]]);var rn=on;function sn(e,t,a,o,r,s){const i=(0,n.up)("oxd-text");return(0,n.wg)(),(0,n.j4)(i,{tag:"p",class:"orangehrm-form-hint"},{default:(0,n.w5)((()=>[(0,n.Uk)(" * Required ")])),_:1})}var ln={name:"RequiredText"};const dn=(0,y.Z)(ln,[["render",sn],["__scopeId","data-v-2c9af954"]]);var un=dn,cn={install:e=>{e.component("RequiredText",un),e.component("OxdDivider",Fa.Z),e.component("OxdForm",Ra.Z),e.component("OxdFormRow",Da.Z),e.component("OxdFormActions",Aa.Z),e.component("OxdInputField",Na.Z),e.component("OxdInputGroup",La.Z),e.component("OxdGrid",Va.Z),e.component("OxdGridItem",Ma.Z),e.component("InstallerLayout",rn),e.component("OxdText",Z.Z),e.component("OxdButton",Ha.Z)}};const mn=(0,n.ri)({name:"App",components:Oa});mn.use(cn),mn.mount("#app")}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,a),r.exports}a.m=e,function(){var e=[];a.O=function(t,n,o,r){if(!n){var s=1/0;for(u=0;u=r)&&Object.keys(a.O).every((function(e){return a.O[e](n[l])}))?n.splice(l--,1):(i=!1,r0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,o,r]}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};a.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,r,s=n[0],i=n[1],l=n[2],d=0;if(s.some((function(t){return 0!==e[t]}))){for(o in i)a.o(i,o)&&(a.m[o]=i[o]);if(l)var u=l(a)}for(t&&t(n);d((0,n.dD)("data-v-820d11b2"),e=e(),(0,n.Cn)(),e),r=o((()=>(0,n._)("br",null,null,-1))),s=o((()=>(0,n._)("br",null,null,-1))),i=o((()=>(0,n._)("br",null,null,-1))),l=o((()=>(0,n._)("b",null,"下一步",-1)));function d(e,t,a,o,d,u){const c=(0,n.up)("oxd-text"),m=(0,n.up)("oxd-radio-input"),p=(0,n.up)("oxd-form-row"),h=(0,n.up)("oxd-button"),g=(0,n.up)("oxd-form-actions"),f=(0,n.up)("oxd-form"),b=(0,n.up)("database-config-dialog");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n.Wm)(f,{class:"orangehrm-installer-page",onSubmit:u.toggleModal},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 欢迎使用经纬航通 HRM"+(0,n.zw)(a.productversion)+" 安装程序 ",1)])),_:1}),r,(0,n.Wm)(c,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 此设置向导将指导完成安装/升级 JingweiHRM 组件及其依赖项所需的步骤。 ")])),_:1}),s,(0,n.Wm)(c,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 选择安装类型; ")])),_:1}),i,(0,n.Wm)(p,{class:"orangehrm-installer-page-row"},{default:(0,n.w5)((()=>[(0,n.Wm)(m,{modelValue:d.selected,"onUpdate:modelValue":t[0]||(t[0]=e=>d.selected=e),value:"install","option-label":"全新安装"},null,8,["modelValue"]),(0,n.Wm)(c,{tag:"p",class:"orangehrm-installer-page-content --label"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 如果您是第一次安装 JingweiHRM Starter,请选择此选项 ")])),_:1})])),_:1}),(0,n.Wm)(p,{class:"orangehrm-installer-page-row"},{default:(0,n.w5)((()=>[(0,n.Wm)(m,{modelValue:d.selected,"onUpdate:modelValue":t[1]||(t[1]=e=>d.selected=e),value:"upgrade","option-label":"升级现有版本"},null,8,["modelValue"]),(0,n.Wm)(c,{tag:"p",class:"orangehrm-installer-page-content --label"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 如果您已经在使用 JingweiHRM 的早期版本,请选择此选项升级到 "),(0,n._)("b",null,(0,n.zw)(a.productversion),1)])),_:1})])),_:1}),(0,n.Wm)(c,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 点击 "),l,(0,n.Uk)(" 继续 ")])),_:1}),(0,n.Wm)(g,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(h,{"display-type":"secondary",label:"下一步",type:"submit"})])),_:1})])),_:1},8,["onSubmit"]),d.showModal?((0,n.wg)(),(0,n.j4)(b,{key:0,onCloseModel:u.closeModel},null,8,["onCloseModel"])):(0,n.kq)("",!0)],64)}const u=function(e,t={},a={}){let n=e;a=JSON.parse(JSON.stringify(a)),Object.keys(t).forEach((e=>{const a=`{${e}}`;if(n.includes(a)){let o=t[e];"number"===typeof o&&(o=o.toString()),n=n.replace(a,o)}else console.error("Invalid parameter.")}));let o="?";const r=Object.keys(a);return r.forEach(((e,t)=>{0!==t&&(o+="&");const n=a[e];Array.isArray(n)?n.forEach(((t,a)=>{0!==a&&(o+="&"),o+=`${e}[]=${t}`})):o+=`${e}=${n}`})),encodeURI(n+(0===r.length?"":o))},c=function(e,t={},a={}){return window.appGlobal.baseUrl+u(e,t,a)},m=function(e,t={},a={}){window.location.href=c(e,t,a)};var p=a(3846);function h(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-divider"),d=(0,n.up)("oxd-classic-table"),u=(0,n.up)("oxd-check-box"),c=(0,n.up)("oxd-button"),m=(0,n.up)("oxd-form-actions"),p=(0,n.up)("oxd-form"),h=(0,n.up)("oxd-dialog");return(0,n.wg)(),(0,n.j4)(h,{class:"orangehrm-consent-dialog",style:{width:"90%",maxWidth:"600px"},"onUpdate:show":s.cancelInstallation},{default:(0,n.w5)((()=>[(0,n.Wm)(p,{class:"orangehrm-database-config-dialog",onSubmit:s.submitInfo},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h6",class:"orangehrm-database-config-dialog-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Warning ")])),_:1}),(0,n.Wm)(l,{class:"orangehrm-divider"}),(0,n.Wm)(i,{tag:"p",class:"orangehrm-database-config-dialog-content orangehrm-database-config--title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" The following features and add-ons are not supported by OrangeHRM Starter version 5.4. You may continue to upgrade your system to version 5.4, but please note that any data used in these features will be inaccessible. ")])),_:1}),(0,n.Wm)(d,{headers:r.headers,items:r.items,class:"orangehrm-database-config-dialog-table"},null,8,["headers","items"]),(0,n.Wm)(u,{modelValue:r.checked,"onUpdate:modelValue":t[0]||(t[0]=e=>r.checked=e),"option-label":"I want to continue upgrading the OrangeHRM system to version 5.4 and I am aware that by doing so, any gathered data in incomplete features/add-ons will be inaccessible."},null,8,["modelValue"]),(0,n.Wm)(l,{class:"orangehrm-divider"}),(0,n.Wm)(m,{class:"orangehrm-database-config-dialog-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{"display-type":"ghost",label:"Cancel",type:"button",onClick:s.cancelInstallation},null,8,["onClick"]),(0,n.Wm)(c,{class:"orangehrm-left-space","display-type":"secondary",label:"Continue",disabled:!r.checked,type:"submit"},null,8,["disabled"])])),_:1})])),_:1},8,["onSubmit"])])),_:1},8,["onUpdate:show"])}var g=a(3466),f=a(3589),b=a(8899),w={name:"DatabaseConfigDialog",components:{"oxd-dialog":g.Z,"oxd-check-box":b.Z,"oxd-classic-table":f.Z},emits:["closeModel"],data(){return{checked:!1,headers:[{title:"Features",name:"feat"},{title:"Add-ons",name:"addon"},{title:"Other",name:"other"}],items:[{feat:"- Social Media Authentication",addon:"- Claim",other:"- Marketplace"},{addon:"- Toggl"}]}},methods:{submitInfo(){this.$emit("closeModel",this.checked)},cancelInstallation(){this.$emit("closeModel",!1)}}},y=a(89);const v=(0,y.Z)(w,[["render",h],["__scopeId","data-v-9862f0ac"]]);var k=v,_={name:"WelcomeScreen",components:{"oxd-radio-input":p.Z,"database-config-dialog":k},props:{productversion:{type:String,required:!0}},data(){return{selected:"install",showModal:!1}},methods:{toggleModal(){if("install"===this.selected)return m("/installer/licence-acceptance");this.showModal=!this.showModal},closeModel(e){if(!e||"upgrade"!==this.selected)return this.toggleModal();m("/upgrader/database-config")}}};const U=(0,y.Z)(_,[["render",d],["__scopeId","data-v-820d11b2"]]);var x=U;const W=e=>((0,n.dD)("data-v-1a13fdc2"),e=e(),(0,n.Cn)(),e),S=W((()=>(0,n._)("br",null,null,-1))),T=W((()=>(0,n._)("br",null,null,-1))),I=W((()=>(0,n._)("br",null,null,-1))),C=W((()=>(0,n._)("br",null,null,-1))),E=W((()=>(0,n._)("b",null,"Next",-1))),P=W((()=>(0,n._)("br",null,null,-1)));function O(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("Notice"),d=(0,n.up)("oxd-input-field"),u=(0,n.up)("oxd-grid-item"),c=(0,n.up)("oxd-grid"),m=(0,n.up)("required-text"),p=(0,n.up)("oxd-button"),h=(0,n.up)("oxd-form-actions"),g=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(g,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Database Information ")])),_:1}),S,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Please provide the database information of the database you are going to upgrade. ")])),_:1}),T,(0,n.Wm)(l,{title:"important",class:"orangehrm-installer-page-notice"},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Make sure it's a copy of the database of your current OrangeHRM installation and not the original database. It's highly discouraged to use the original database for upgrading since it won't be recoverable if an error occurred during the upgrade. ")])),_:1})])),_:1}),I,(0,n.Wm)(l,{title:"encryption",class:"orangehrm-installer-page-notice"},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" If you have enabled data encryption in your current version, you need to copy the file 'lib/confs/cryptokeys/key.ohrm' from your current installation to corresponding location in the new version. ")])),_:1})])),_:1}),C,(0,n.Wm)(c,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(u,null,{default:(0,n.w5)((()=>[(0,n.Wm)(d,{modelValue:r.database.dbHost,"onUpdate:modelValue":t[0]||(t[0]=e=>r.database.dbHost=e),label:"Database Host Name",rules:r.rules.dbHost,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(u,{class:"orangehrm-database-info-port"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{modelValue:r.database.dbPort,"onUpdate:modelValue":t[1]||(t[1]=e=>r.database.dbPort=e),label:"Database Host Port",rules:r.rules.dbPort,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(u,{class:"--offset-row-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{modelValue:r.database.dbName,"onUpdate:modelValue":t[2]||(t[2]=e=>r.database.dbName=e),label:"Database Name",rules:r.rules.dbName,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(u,{class:"--offset-row-3"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{modelValue:r.database.dbUser,"onUpdate:modelValue":t[3]||(t[3]=e=>r.database.dbUser=e),label:"Database Username",rules:r.rules.dbUser,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(u,{class:"--offset-row-3"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{modelValue:r.database.dbPassword,"onUpdate:modelValue":t[4]||(t[4]=e=>r.database.dbPassword=e),label:"Database User Password",type:"password"},null,8,["modelValue"])])),_:1})])),_:1}),(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Click "),E,(0,n.Uk)(" to continue ")])),_:1}),P,(0,n.wy)((0,n.Wm)(i,{class:"orangehrm-installer-page-content orangehrm-database-info-error"},{default:(0,n.w5)((()=>[(0,n._)("b",null,(0,n.zw)(r.errorMessage),1)])),_:1},512),[[n.F8,r.errorMessage]]),(0,n.Wm)(h,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(m),(0,n.Wm)(p,{"display-type":"ghost",label:"Back",type:"button",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(p,{class:"orangehrm-left-space","display-type":"secondary",label:"Next",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}const R=function(e){return"string"===typeof e?!!e&&""!==e.trim()||"Required":"number"===typeof e?!Number.isNaN(e)||"Required":Array.isArray(e)?!!e&&0!==e.length||"Required":"object"===typeof e?null!==e||"Required":"必须填写"},A=function(e){return function(t){return!t||new String(t).length<=e||`Should not exceed ${e} characters`}},D=function(e,t,a){return function(n){return!n||/^\d+$/.test(n)&&!Number.isNaN(parseFloat(n))&&String(n).length<=e&&parseInt(n)>=t&&parseInt(n)<=a||`Enter a valid port number: ${t}-${a}`}},N=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)||"格式: admin@example.com"},L=function(e){return!e||/^[0-9+\-/() ]+$/.test(e)||"Allows numbers and only + - / ( )"},V=function(e){return function(t){return!t||String(t).length>=e||`至少要有 ${e} 个字符`}},M=e=>{const t=e??"Allows alphanumeric characters and only _";return function(e){return!e||/^[a-zA-Z0-9_]*$/.test(e)||t}};var H=a(7327),F=a(6943);class q{constructor(e,t){(0,H.Z)(this,"_http",void 0),(0,H.Z)(this,"_baseUrl",void 0),(0,H.Z)(this,"_apiSection",void 0),this._baseUrl=e,this._apiSection=t,this._http=F.Z.create({baseURL:this._baseUrl}),this.setupResponseInterceptors((0,n.FN)())}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 a={"Content-Type":"application/json"};return this._http.get(`${this._apiSection}/${e}`,{headers:a,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 a={"Content-Type":"application/json"};return this._http.put(`${this._apiSection}/${e}`,t,{headers:a})}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})}setupResponseInterceptors(e){this._http.interceptors.response.use((e=>e),(t=>{if(401===t.response?.status)return Promise.reject();const a=e?.appContext.config.globalProperties.$toast;if(a){const e=t.response?.data?.error?.message;a.error({title:"Error",message:e??"Unexpected Error!"})}return Promise.reject(t)}))}get http(){return this._http}get baseUrl(){return this._baseUrl}set apiSection(e){this._apiSection=e}}function G(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-sheet");return(0,n.wg)(),(0,n.j4)(l,{type:"gray-lighten-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"p",class:"notice-title"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(a.title),1)])),_:1}),(0,n._)("div",null,[(0,n.WI)(e.$slots,"default",{},void 0,!0)])])),_:3})}var Z=a(4277),Y=a(9677),j={components:{"oxd-sheet":Z.Z,"oxd-text":Y.Z},props:{title:{type:String,required:!0}}};const z=(0,y.Z)(j,[["render",G],["__scopeId","data-v-52344ae6"]]);var B=z,$={name:"DatabaseConfigScreen",components:{Notice:B},setup(){const e=new q(window.appGlobal.baseUrl,"/upgrader/api/database-config");return{http:e}},data(){return{rules:{dbHost:[R],dbPort:[R,D(5,0,65535)],dbName:[R],dbUser:[R]},isLoading:!1,database:{dbHost:null,dbPort:null,dbName:null,dbUser:null,dbPassword:null},errorMessage:""}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.database={...t,dbPassword:null},this.database.dbPort||(this.database.dbPort=3306),this.isLoading=!1}))},methods:{onSubmit(){this.isLoading=!0,this.errorMessage="",this.http.create({...this.database}).then((()=>{m("/upgrader/system-check")})).catch((({response:e})=>{const{error:t}=e.data;this.errorMessage=t?.message??t,this.isLoading=!1}))},navigateUrl(){m("/welcome")}}};const J=(0,y.Z)($,[["render",O],["__scopeId","data-v-1a13fdc2"]]);var K=J;const Q=e=>((0,n.dD)("data-v-81d60558"),e=e(),(0,n.Cn)(),e),X={class:"orangehrm-installer-page"},ee=Q((()=>(0,n._)("br",null,null,-1))),te=Q((()=>(0,n._)("br",null,null,-1)));function ae(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("flex-table"),d=(0,n.up)("oxd-button"),u=(0,n.up)("oxd-form-actions"),c=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(c,{loading:r.isLoading},{default:(0,n.w5)((()=>[(0,n._)("div",X,[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 检测运行环境 ")])),_:1}),ee,(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 为了让您的 JingweiHRM 安装正常运行,请确保下面列出的所有系统检查项目 都是绿色的。 如果有红色的,请采取必要的步骤来修复它们。 ")])),_:1}),te,((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(r.items,(e=>((0,n.wg)(),(0,n.j4)(l,{key:e.category,items:e.checks,"title-name":e.category},null,8,["items","title-name"])))),128)),(0,n.Wm)(u,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{"display-type":"ghost",label:"上一步",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(d,{class:"orangehrm-left-space","display-type":"ghost",label:"重新检查",type:"submit",onClick:s.reCheck},null,8,["onClick"]),(0,n.Wm)(d,{class:"orangehrm-left-space","display-type":"secondary",disabled:r.isInterrupted,label:"下一步",onClick:t[0]||(t[0]=e=>s.goToScreen())},null,8,["disabled"])])),_:1})])])),_:1},8,["loading"])}const ne={class:"orangehrm-flex-table"};function oe(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-divider");return(0,n.wg)(),(0,n.iD)("div",ne,[(0,n.Wm)(i,{tag:"p",class:"orangehrm-flex-table-title"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(a.titleName),1)])),_:1}),(0,n.Wm)(l,{class:"orangehrm-flex-table-divider"}),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.items,((e,t)=>((0,n.wg)(),(0,n.iD)("div",{key:t,class:"orangehrm-flex-table-row"},[(0,n.Wm)(i,{class:"orangehrm-flex-table-content"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(e.label),1)])),_:2},1024),(0,n.Wm)(i,{class:(0,n.C_)(s.getClass(e.value.status))},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(e.value.message),1)])),_:2},1032,["class"])])))),128))])}var re={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 se=(0,y.Z)(re,[["render",oe],["__scopeId","data-v-4d11017b"]]);var ie=se,le={name:"SystemCheckScreen",components:{"flex-table":ie},props:{installer:{type:Boolean,default:!1}},setup(e){const t=new q(window.appGlobal.baseUrl,(e.installer?"installer":"upgrader")+"/api/system-check");return{http:t}},data(){return{items:[],isLoading:!1,isInterrupted:!0}},beforeMount(){this.fetchData()},methods:{fetchData(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t,meta:a}=e.data;this.items=t,this.isInterrupted=a.isInterrupted})).finally((()=>{this.isLoading=!1}))},navigateUrl(){m(this.installer?"/installer/database-config":"/upgrader/database-config")},goToScreen(){m(this.installer?"/installer/instance-creation":"/upgrader/current-version")},reCheck(){this.fetchData()}}};const de=(0,y.Z)(le,[["render",ae],["__scopeId","data-v-81d60558"]]);var ue=de;const ce=e=>((0,n.dD)("data-v-ca27e1a8"),e=e(),(0,n.Cn)(),e),me=ce((()=>(0,n._)("br",null,null,-1))),pe=ce((()=>(0,n._)("br",null,null,-1))),he=ce((()=>(0,n._)("b",null,"Next",-1)));function ge(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("version-dropdown"),d=(0,n.up)("oxd-grid-item"),u=(0,n.up)("oxd-grid"),c=(0,n.up)("oxd-form-row"),m=(0,n.up)("required-text"),p=(0,n.up)("oxd-button"),h=(0,n.up)("oxd-form-actions"),g=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(g,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Current Version Details ")])),_:1}),me,(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Select your current OrangeHRM version here. You can find the version at the bottom of the OrangeHRM login page. OrangeHRM Upgrader only supports versions listed in the dropdown. Selecting a different version would lead to an upgrade failure and a database corruption. ")])),_:1}),pe,(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{cols:3,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,null,{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.version,"onUpdate:modelValue":t[0]||(t[0]=e=>r.version=e),rules:r.rules.version,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1})])),_:1}),(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Click "),he,(0,n.Uk)(" to commence upgrading your instance ")])),_:1}),(0,n.Wm)(h,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(m),(0,n.Wm)(p,{"display-type":"ghost",label:"Back",onClick:s.onClickBack},null,8,["onClick"]),(0,n.Wm)(p,{class:"orangehrm-left-space","display-type":"secondary",label:"Next",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}function fe(e,t,a,o,r,s){const i=(0,n.up)("oxd-input-field");return(0,n.wg)(),(0,n.j4)(i,{type:"select",label:"Current OrangeHRM Version",options:o.options},null,8,["options"])}var be={name:"VersionDropdown",setup(){const e=(0,n.iH)([]),t=new q(window.appGlobal.baseUrl,"upgrader/api/versions");return(0,n.wF)((()=>{t.getAll().then((({data:t})=>{e.value=t.map((e=>({id:e,label:e})))}))})),{options:e}}};const we=(0,y.Z)(be,[["render",fe]]);var ye=we,ve={name:"CurrentVersionScreen",components:{"version-dropdown":ye},setup(){const e=new q(window.appGlobal.baseUrl,"");return{http:e}},data(){return{isLoading:!1,version:null,rules:{version:[R]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:"/upgrader/api/current-version"}).then((e=>{const{version:t}=e.data;t&&(this.version={id:t,label:t}),this.isLoading=!1}))},methods:{onClickBack(){m("/upgrader/system-check")},onSubmit(){this.isLoading=!0,this.http.request({method:"POST",url:"/upgrader/api/current-version",data:{currentVersion:this.version?.id}}).then((()=>this.http.request({method:"POST",url:"/upgrader/api/send-data/upgrader-start"}))).then((()=>{m("/upgrader/process")}))}}};const ke=(0,y.Z)(ve,[["render",ge],["__scopeId","data-v-ca27e1a8"]]);var _e=ke;const Ue=e=>((0,n.dD)("data-v-375f2eba"),e=e(),(0,n.Cn)(),e),xe={class:"orangehrm-installer-page"},We=Ue((()=>(0,n._)("br",null,null,-1))),Se=Ue((()=>(0,n._)("br",null,null,-1))),Te=Ue((()=>(0,n._)("br",null,null,-1)));function Ie(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-button");return(0,n.wg)(),(0,n.iD)("div",xe,[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Upgrade Complete ")])),_:1}),We,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" You have successfully upgraded to OrangeHRM Starter version "+(0,n.zw)(a.productversion)+". ",1)])),_:1}),Se,Te,(0,n.Wm)(l,{class:"orangehrm-upgrader-complete-button","display-type":"secondary",label:"Launch OrangeHRM",onClick:s.launch},null,8,["onClick"])])}var Ce={name:"UpgraderCompleteScreen",props:{productversion:{type:String,required:!0}},methods:{launch(){m("/")}}};const Ee=(0,y.Z)(Ce,[["render",Ie],["__scopeId","data-v-375f2eba"]]);var Pe=Ee;const Oe=e=>((0,n.dD)("data-v-fe668f50"),e=e(),(0,n.Cn)(),e),Re={class:"orangehrm-installer-page"},Ae=Oe((()=>(0,n._)("br",null,null,-1))),De=Oe((()=>(0,n._)("br",null,null,-1))),Ne=Oe((()=>(0,n._)("br",null,null,-1))),Le=Oe((()=>(0,n._)("br",null,null,-1))),Ve=Oe((()=>(0,n._)("br",null,null,-1)));function Me(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("installer-tasks"),d=(0,n.up)("oxd-progress"),u=(0,n.up)("oxd-button"),c=(0,n.up)("oxd-form-actions");return(0,n.wg)(),(0,n.iD)("div",Re,[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Upgrading OrangeHRM ")])),_:1}),Ae,o.taskFailed?(0,n.kq)("",!0):((0,n.wg)(),(0,n.j4)(i,{key:0,tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" This may take some time. Please do not close the window till progress becomes 100% ")])),_:1})),De,(0,n.Wm)(l,{tasks:o.tasks},null,8,["tasks"]),Ne,(0,n.Wm)(i,{tag:"h5",class:(0,n.C_)({"orangehrm-installer-page-content":!0,"--progress":!0,"--error":o.taskFailed})},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(o.progressText),1)])),_:1},8,["class"]),Le,(0,n.Wm)(d,{progress:o.progress,type:o.progressType,"show-label":!1},null,8,["progress","type"]),Ve,100===o.progress?((0,n.wg)(),(0,n.j4)(c,{key:1,class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{"display-type":"secondary",label:"Next",onClick:o.onClickNext},null,8,["onClick"])])),_:1})):((0,n.wg)(),(0,n.j4)(i,{key:2,tag:"p",class:(0,n.C_)({"orangehrm-installer-page-content":!0,"--center":!0,"--error":o.taskFailed})},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(o.progressNotice),1)])),_:1},8,["class"]))])}const He={class:"orangehrm-installer-task"},Fe={class:"orangehrm-installer-task-item-progress"},qe={key:1,class:"orangehrm-installer-task-icon --done"},Ge={key:2,class:"orangehrm-installer-task-icon --error"},Ze={key:3,class:"orangehrm-installer-task-icon --pending"};function Ye(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-loading-spinner"),d=(0,n.up)("oxd-icon");return(0,n.wg)(),(0,n.iD)("div",He,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.tasks,(e=>((0,n.wg)(),(0,n.iD)("div",{key:e,class:"orangehrm-installer-task-item"},[(0,n.Wm)(i,{tag:"p",class:(0,n.C_)({"orangehrm-installer-task-item-name":!0,"--active":1===e.state,"--error":3===e.state})},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(e.name),1)])),_:2},1032,["class"]),(0,n._)("div",Fe,[1===e.state?((0,n.wg)(),(0,n.j4)(l,{key:0,"with-container":!1})):2===e.state?((0,n.wg)(),(0,n.iD)("div",qe,[(0,n.Wm)(d,{name:"check"})])):3===e.state?((0,n.wg)(),(0,n.iD)("div",Ge,[(0,n.Wm)(d,{name:"exclamation"})])):((0,n.wg)(),(0,n.iD)("div",Ze,[(0,n.Wm)(d,{name:"dash"})]))])])))),128))])}var je=a(5287),ze=a(3312),Be={name:"InstallerTasks",components:{"oxd-icon":je.Z,"oxd-loading-spinner":ze.Z},props:{tasks:{type:Array,default:()=>[]}}};const $e=(0,y.Z)(Be,[["render",Ye],["__scopeId","data-v-2d9c1a11"]]);var Je=$e,Ke=a(349);function Qe(e){let t=!1;const a=t=>{if(!e.value)return t.preventDefault(),t.returnValue=!0,t},o=()=>{!t&&window.addEventListener("beforeunload",a),t=!0};return(0,n.bv)((()=>{window.addEventListener("mousemove",o)})),(0,n.SK)((()=>{window.removeEventListener("mousemove",o),window.removeEventListener("beforeunload",a)})),{triggerUnload:a}}function Xe(e){const t=(t=!0)=>e.request({method:"GET",url:"upgrader/api/versions",params:{excludeLatest:t}}),a=()=>e.request({method:"GET",url:"upgrader/api/current-version"}),n=()=>e.request({method:"POST",url:"upgrader/api/config-file"}),o=(t,a)=>{let n;return n=t?{fromVersion:t,toVersion:a}:{version:a},e.request({method:"POST",url:"upgrader/api/migration",data:n})};function*r(e,t){let a=e.findIndex((e=>e===t));if(-1===a)return null;while(e[a+1])yield e[a+1],a++}const s=async()=>{let e=[],n=null;const s=Promise.all([t(!1),a()]),[i,l]=await s;if(e=[...i.data],n=l.data?.version,!n)throw new Error("version not detected");for(const t of r(e,n))await o(null,t)},i=()=>e.request({method:"POST",url:"upgrader/api/installation/pre-migration"});return{getVersionList:t,getCurrentVersion:a,migrateToVersion:o,runAllMigrations:s,createConfigFiles:n,versionGenerator:r,preMigrationCheck:i}}function et(){let e,t=0,a=!0;const o=100,r=(0,n.iH)(0);function*s(){const e=0;while(e<1)yield 1-Math.exp(-1*t/1e3),t+=o}const i=()=>{setTimeout((()=>{100!==r.value&&a&&(r.value=100*e.next().value,i())}),o+500*Math.random())},l=()=>{t=0,a=!0,r.value=0,e=s(),i()},d=()=>{r.value=100},u=()=>{a=!1};return{end:d,stop:u,start:l,progress:r}}var tt={name:"UpgradeScreen",components:{"oxd-progress":Ke.Z,"installer-tasks":Je},setup(){const e=(0,n.iH)(null),{progress:t,start:a,stop:o,end:r}=et(),{runAllMigrations:s,createConfigFiles:i,preMigrationCheck:l}=Xe(new q(window.appGlobal.baseUrl,"")),d=(0,n.iH)([{name:"Checking database permissions",state:0,task:l},{name:"Applying database changes",state:0,task:s},{name:"Creating configuration files",state:0,task:i}]);(0,n.wF)((async()=>{a();for(let a=0;a{m("/upgrader/complete")},c=(0,n.Fl)((()=>`${Math.floor(t.value)}%`)),p=(0,n.Fl)((()=>d.value.findIndex((e=>3===e.state))>-1)),h=(0,n.Fl)((()=>p.value?`${e.value?e.value:"Upgrading has failed"}. For more details check the error log in /src/log/installer.log file`:"Please Wait. Upgrading in Progress")),g=(0,n.Fl)((()=>p.value?"error":"secondary")),f=(0,n.Fl)((()=>p.value||100===t.value));return Qe(f),{tasks:d,progress:t,taskFailed:p,progressText:c,progressType:g,progressNotice:h,onClickNext:u}}};const at=(0,y.Z)(tt,[["render",Me],["__scopeId","data-v-fe668f50"]]);var nt=at;const ot=e=>((0,n.dD)("data-v-4f8870ea"),e=e(),(0,n.Cn)(),e),rt=ot((()=>(0,n._)("br",null,null,-1))),st=ot((()=>(0,n._)("br",null,null,-1))),it=ot((()=>(0,n._)("br",null,null,-1))),lt=ot((()=>(0,n._)("b",null,"下一步",-1))),dt=ot((()=>(0,n._)("br",null,null,-1)));function ut(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-radio-input"),d=(0,n.up)("oxd-form-row"),u=(0,n.up)("oxd-input-field"),c=(0,n.up)("oxd-grid-item"),m=(0,n.up)("oxd-grid"),p=(0,n.up)("required-text"),h=(0,n.up)("oxd-button"),g=(0,n.up)("oxd-form-actions"),f=(0,n.up)("oxd-form"),b=(0,n.Q2)("tooltip");return(0,n.wg)(),(0,n.j4)(f,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 数据库配置 ")])),_:1}),rt,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 请在下面输入您的数据库配置信息,如果您不确定 要填写什么,我们建议您使用默认值。 ")])),_:1}),st,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 数据库安装模式 ")])),_:1}),(0,n.Wm)(d,{class:"orangehrm-database-info-row"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.database.dbType,"onUpdate:modelValue":t[0]||(t[0]=e=>r.database.dbType=e),value:"new","option-label":"新建数据库"},null,8,["modelValue"]),(0,n.Wm)(l,{modelValue:r.database.dbType,"onUpdate:modelValue":t[1]||(t[1]=e=>r.database.dbType=e),value:"existing","option-label":"已有数据库 (Docker 运行)"},null,8,["modelValue"])])),_:1}),it,(0,n.Wm)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.dbHost,"onUpdate:modelValue":t[2]||(t[2]=e=>r.database.dbHost=e),label:"主机名",rules:r.rules.dbHost,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(c,{class:"orangehrm-database-info-port"},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.dbPort,"onUpdate:modelValue":t[3]||(t[3]=e=>r.database.dbPort=e),label:"主机端口",rules:r.rules.dbPort,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(c,{class:"--offset-row-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.dbName,"onUpdate:modelValue":t[4]||(t[4]=e=>r.database.dbName=e),label:"数据库名称",rules:r.rules.dbName,required:""},null,8,["modelValue","rules"])])),_:1}),s.isNewDB?((0,n.wg)(),(0,n.j4)(c,{key:0,class:"--offset-row-2 orangehrm-database-info-check"},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.useSameDbUserForOrangeHRM,"onUpdate:modelValue":t[5]||(t[5]=e=>r.database.useSameDbUserForOrangeHRM=e),label:" ",type:"checkbox","option-label":"Use the same Database User for OrangeHRM"},null,8,["modelValue"])])),_:1})):(0,n.kq)("",!0)])),_:1}),(0,n.Wm)(m,{cols:4,class:"orangehrm-full-width-grid orangehrm-database-info-user"},{default:(0,n.w5)((()=>[s.isNewDB?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.wy)((0,n.Wm)(u,{modelValue:r.database.dbUser,"onUpdate:modelValue":t[6]||(t[6]=e=>r.database.dbUser=e),label:"Privileged Database Username",rules:r.rules.dbUser,required:""},null,8,["modelValue","rules"]),[[b,"Privileged Database User should have the rights to create databases, create tables, insert data into table, alter table structure and to create database users."]])])),_:1}),(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.dbPassword,"onUpdate:modelValue":t[7]||(t[7]=e=>r.database.dbPassword=e),label:"Privileged Database User Password",type:"password"},null,8,["modelValue"])])),_:1})],64)):(0,n.kq)("",!0),(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.wy)(((0,n.wg)(),(0,n.j4)(u,{key:s.disableOHRMDBfield,modelValue:r.database.ohrmDbUser,"onUpdate:modelValue":t[8]||(t[8]=e=>r.database.ohrmDbUser=e),label:"用户名",rules:r.rules.ohrmDbUser,disabled:s.disableOHRMDBfield,required:!s.disableOHRMDBfield},null,8,["modelValue","rules","disabled","required"])),[[b,"OrangeHRM database user should have the rights to insert data into table, update data in a table, delete data in a table."]])])),_:1}),(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.ohrmDbPassword,"onUpdate:modelValue":t[9]||(t[9]=e=>r.database.ohrmDbPassword=e),disabled:s.disableOHRMDBfield,label:"密码",type:"password"},null,8,["modelValue","disabled"])])),_:1})])),_:1}),(0,n.Wm)(m,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.database.enableDataEncryption,"onUpdate:modelValue":t[10]||(t[10]=e=>r.database.enableDataEncryption=e),label:" ",type:"checkbox","option-label":"使用数据库加密"},null,8,["modelValue"])])),_:1})])),_:1}),(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 点击 "),lt,(0,n.Uk)(" 继续 ")])),_:1}),dt,(0,n.wy)((0,n.Wm)(i,{class:"orangehrm-installer-page-content orangehrm-database-info-error"},{default:(0,n.w5)((()=>[(0,n._)("b",null,(0,n.zw)(r.errorMessage),1)])),_:1},512),[[n.F8,r.errorMessage]]),(0,n.Wm)(g,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(p),(0,n.Wm)(h,{"display-type":"ghost",label:"上一步",type:"button",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(h,{class:"orangehrm-left-space","display-type":"secondary",label:"下一步",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}const ct={beforeMount(e,t){if(!e||0===e.children.length)return;const{value:a}=t,o=(0,n.h)(je.Z,{name:"info-circle-fill",title:a,style:{marginLeft:"auto",cursor:"pointer"}});(0,n.sY)(o,e.children[0])}};var mt=ct,pt={name:"DatabaseConfigScreen",components:{"oxd-radio-input":p.Z},directives:{tooltip:mt},setup(){const e=new q(window.appGlobal.baseUrl,"/installer/api/database-config");return{http:e}},data(){return{rules:{dbHost:[R],dbPort:[R,D(5,0,65535)],dbName:[R,A(64),M("Database name should not contain special characters")],dbUser:[R],ohrmDbUser:[e=>this.disableOHRMDBfield||R(e)]},isLoading:!1,database:{dbType:null,dbHost:null,dbPort:null,dbUser:null,dbName:null,dbPassword:null,ohrmDbUser:null,ohrmDbPassword:null,useSameDbUserForOrangeHRM:!0,enableDataEncryption:!1},errorMessage:""}},computed:{isNewDB(){return"new"===this.database.dbType},disableOHRMDBfield(){return!!this.isNewDB&&this.database.useSameDbUserForOrangeHRM}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.database={...t,dbPassword:null,ohrmDbPassword:null},this.database.dbType||(this.database.dbType="new"),this.database.dbPort||(this.database.dbPort=3306),this.isLoading=!1}))},methods:{onSubmit(){this.isLoading=!0,this.errorMessage="";const e={...this.database};this.http.create({...e,..."existing"===e.dbType&&{dbUser:e.ohrmDbUser,dbPassword:e.ohrmDbPassword,ohrmDbUser:void 0,ohrmDbPassword:void 0,useSameDbUserForOrangeHRM:void 0},...e.useSameDbUserForOrangeHRM&&{ohrmDbUser:void 0,ohrmDbPassword:void 0}}).then((()=>{m("/installer/system-check")})).catch((({response:e})=>{const{error:t}=e.data;this.errorMessage=t?.message??t,this.isLoading=!1}))},navigateUrl(){m("/installer/licence-acceptance")}}};const ht=(0,y.Z)(pt,[["render",ut],["__scopeId","data-v-4f8870ea"]]);var gt=ht;const ft=e=>((0,n.dD)("data-v-4159f1d8"),e=e(),(0,n.Cn)(),e),bt=ft((()=>(0,n._)("br",null,null,-1))),wt=ft((()=>(0,n._)("br",null,null,-1))),yt=ft((()=>(0,n._)("br",null,null,-1)));function vt(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-input-field"),d=(0,n.up)("oxd-grid-item"),u=(0,n.up)("oxd-grid"),c=(0,n.up)("required-text"),m=(0,n.up)("oxd-button"),p=(0,n.up)("oxd-form-actions"),h=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(h,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 创建管理员账号 ")])),_:1}),bt,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 选择姓名、电子邮件地址、用户名和密码以创建管理员 ")])),_:1}),wt,(0,n.Wm)(u,{cols:4,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,null,{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.firstName,"onUpdate:modelValue":t[0]||(t[0]=e=>r.adminUser.firstName=e),rules:r.rules.firstName,placeholder:"输入用户姓名",label:"姓名",required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-2 --span-column-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.email,"onUpdate:modelValue":t[1]||(t[1]=e=>r.adminUser.email=e),rules:r.rules.email,label:"电子邮件",required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.contact,"onUpdate:modelValue":t[2]||(t[2]=e=>r.adminUser.contact=e),rules:r.rules.contact,label:"联系号码"},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-3"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.username,"onUpdate:modelValue":t[3]||(t[3]=e=>r.adminUser.username=e),label:"管理员用户名",rules:r.rules.username,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-4"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.password,"onUpdate:modelValue":t[4]||(t[4]=e=>r.adminUser.password=e),type:"password",label:"密码",rules:r.rules.password,required:""},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-4"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.adminUser.confirmPassword,"onUpdate:modelValue":t[5]||(t[5]=e=>r.adminUser.confirmPassword=e),type:"password",label:"确认密码",rules:r.rules.passwordConfirm,required:""},null,8,["modelValue","rules"])])),_:1})])),_:1}),yt,(0,n.Wm)(p,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(c),(0,n.Wm)(m,{"display-type":"ghost",label:"上一步",type:"button",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(m,{class:"orangehrm-left-space","display-type":"secondary",label:"下一步",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}function kt(e){const t=new RegExp(/[a-z]/),a=new RegExp(/[A-Z]/),n=new RegExp(/[0-9]/),o=new RegExp(/[@#\\/\-!$%^&*()_+|~=`{}[\]:";'<>?,.]/);return[t,a,n,o].map((t=>t.test(e)?1:0))}function _t(e){if(e.length>=8){const t=kt(e);return RegExp(/\s/).test(e)?"密码不能包含有空格.":!(t.reduce(((e,t)=>e+t),0)<4)||"密码必须包含有大小写的组合,至少还要有一个特殊字符"}return"至少要有8个字符"}var Ut={name:"AdminUserCreation",setup(){const e=new q(window.appGlobal.baseUrl,"/installer/api/admin-user");return{http:e}},data(){return{isLoading:!1,adminUser:{firstName:null,lastName:null,email:null,contact:null,username:null,password:"",confirmPassword:"",registrationConsent:!1},rules:{firstName:[R,A(30)],email:[R,A(50),N],contact:[A(25),L],username:[R,A(40),V(5)],password:[R,A(64),_t],passwordConfirm:[R,A(64),e=>!!e&&e===this.adminUser.password||"Passwords do not match"]}}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;this.adminUser={...this.adminUser,...t}})),this.isLoading=!1},methods:{onSubmit(){this.isLoading=!0,this.http.create({firstName:this.adminUser.firstName,lastName:this.adminUser.firstName,email:this.adminUser.email,contact:this.adminUser.contact,username:this.adminUser.username,password:this.adminUser.password,registrationConsent:!1}).then((()=>{m("/installer/confirmation")}))},navigateUrl(){m("/installer/instance-creation")}}};const xt=(0,y.Z)(Ut,[["render",vt],["__scopeId","data-v-4159f1d8"]]);var Wt=xt;const St=e=>((0,n.dD)("data-v-bb67a12c"),e=e(),(0,n.Cn)(),e),Tt=St((()=>(0,n._)("br",null,null,-1))),It=St((()=>(0,n._)("br",null,null,-1))),Ct=St((()=>(0,n._)("br",null,null,-1))),Et=St((()=>(0,n._)("b",null,"下一步",-1))),Pt=St((()=>(0,n._)("br",null,null,-1)));function Ot(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("gnu-licence"),d=(0,n.up)("oxd-form-row"),u=(0,n.up)("oxd-input-field"),c=(0,n.up)("oxd-button"),m=(0,n.up)("oxd-form-actions"),p=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(p,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 许可协议 ")])),_:1}),Tt,(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 请在安装 JingweiHRM 之前查看许可条款. ")])),_:1}),It,(0,n.Wm)(d,null,{default:(0,n.w5)((()=>[(0,n.Wm)(l)])),_:1}),Ct,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 点击 "),Et,(0,n.Uk)(" 继续 ")])),_:1}),Pt,(0,n.Wm)(d,null,{default:(0,n.w5)((()=>[(0,n.Wm)(u,{modelValue:r.userConsent,"onUpdate:modelValue":t[0]||(t[0]=e=>r.userConsent=e),type:"checkbox","option-label":"我接受上述协议条款"},null,8,["modelValue"])])),_:1}),(0,n.Wm)(m,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{"display-type":"ghost",label:"上一步",onClick:s.onClickBack},null,8,["onClick"]),(0,n.Wm)(c,{disabled:!r.userConsent,class:"orangehrm-left-space","display-type":"secondary",label:"下一步",type:"submit"},null,8,["disabled"])])),_:1})])),_:1},8,["loading","onSubmitValid"])}function Rt(e,t,a,o,r,s){const i=(0,n.up)("oxd-textarea");return(0,n.wg)(),(0,n.j4)(i,{rows:"20",value:'GNU GENERAL PUBLIC LICENSE\nVersion 2, June 1991\n\nCopyright © 1989, 1991 Free Software Foundation, Inc. \n51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\n\nEveryone is permitted to copy and distribute verbatim copies\nof this license document, but changing it is not allowed.\nPreamble\nThe licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation\'s software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.\n\nTo protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nWe protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.\n\nAlso, for each author\'s protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors\' reputations.\n\nFinally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone\'s free use or not licensed at all.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".\n\nActivities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.\n\n1. You may copy and distribute verbatim copies of the Program\'s source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.\n\n2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:\n\na) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.\nb) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.\nc) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)\nThese requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.\n\n3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:\n\na) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\nb) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\nc) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)\nThe source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.\n\nIf distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.\n\n4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.\n\n5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.\n\n6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients\' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.\n\n7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.\n\nIt is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.\n\nThis section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.\n\n8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.\n\n9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.\n\n10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.\n\nNO WARRANTY\n\n11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\nEND OF TERMS AND CONDITIONS\nHow to Apply These Terms to Your New Programs\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.\n\none line to give the program\'s name and an idea of what it does.\nCopyright © yyyy name of author\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program is interactive, make it output a short notice like this when it starts in an interactive mode:\n\nGnomovision version 69, Copyright © year name of author\nGnomovision comes with ABSOLUTELY NO WARRANTY; for details\ntype `show w\'. This is free software, and you are welcome\nto redistribute it under certain conditions; type `show c\' \nfor details.\nThe hypothetical commands `show w\' and `show c\' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w\' and `show c\'; they could even be mouse-clicks or menu items--whatever suits your program.\n\nYou should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:\n\nYoyodyne, Inc., hereby disclaims all copyright\ninterest in the program `Gnomovision\'\n(which makes passes at compilers) written \nby James Hacker.\n\nsignature of Ty Coon, 1 April 1989\nTy Coon, President of Vice\nThis General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License.',disabled:"",style:{"text-align":"center"}})}var At=a(7405),Dt={name:"GNULicence",components:{"oxd-textarea":At.Z}};const Nt=(0,y.Z)(Dt,[["render",Rt]]);var Lt=Nt,Vt={name:"LicenceAcceptanceScreen",components:{"gnu-licence":Lt},setup(){const e=new q(window.appGlobal.baseUrl,"installer/api/license");return{http:e}},data(){return{isLoading:!1,userConsent:!1}},methods:{onClickBack(){m("/welcome")},onSubmit(){m("/installer/database-config")}}};const Mt=(0,y.Z)(Vt,[["render",Ot],["__scopeId","data-v-bb67a12c"]]);var Ht=Mt;const Ft=e=>((0,n.dD)("data-v-5c19fe96"),e=e(),(0,n.Cn)(),e),qt=Ft((()=>(0,n._)("br",null,null,-1))),Gt=Ft((()=>(0,n._)("br",null,null,-1)));function Zt(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-input-field"),d=(0,n.up)("oxd-grid-item"),u=(0,n.up)("oxd-grid"),c=(0,n.up)("required-text"),m=(0,n.up)("oxd-button"),p=(0,n.up)("oxd-form-actions"),h=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(h,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 创建实例 ")])),_:1}),qt,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 在此处填写您的组织详细信息。 ")])),_:1}),Gt,(0,n.Wm)(u,{cols:2,class:"orangehrm-full-width-grid"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,null,{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.instance.organizationName,"onUpdate:modelValue":t[0]||(t[0]=e=>r.instance.organizationName=e),label:"组织名称",required:"",rules:r.rules.organizationName},null,8,["modelValue","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-2"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.instance.countryCode,"onUpdate:modelValue":t[1]||(t[1]=e=>r.instance.countryCode=e),label:"国家或地区",required:"",type:"select",options:r.countryList,rules:r.rules.countryCode},null,8,["modelValue","options","rules"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-3"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.instance.langCode,"onUpdate:modelValue":t[2]||(t[2]=e=>r.instance.langCode=e),label:"语言",type:"select",options:r.languageList},null,8,["modelValue","options"])])),_:1}),(0,n.Wm)(d,{class:"--offset-row-4"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{modelValue:r.instance.timezone,"onUpdate:modelValue":t[3]||(t[3]=e=>r.instance.timezone=e),label:"时区",type:"select",options:r.timezoneList},null,8,["modelValue","options"])])),_:1})])),_:1}),(0,n.Wm)(p,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(c),(0,n.Wm)(m,{"display-type":"ghost",label:"上一步",type:"button",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(m,{class:"orangehrm-left-space","display-type":"secondary",label:"下一步",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}var Yt={name:"InstanceCreation",setup(){const e=new q(window.appGlobal.baseUrl,"/installer/api/instance");return{http:e}},data(){return{isLoading:!1,instance:{organizationName:null,countryCode:null,langCode:null,timezone:null},countryList:[],languageList:[],timezoneList:[],rules:{organizationName:[R,A(100)],countryCode:[R]}}},beforeMount(){this.isLoading=!0,this.http.request({method:"GET",url:"installer/api/countries"}).then((e=>{const{data:t}=e.data;return t.sort(((e,t)=>e.label>t.label?1:-1)),this.countryList=t,this.http.request({method:"GET",url:"installer/api/languages"})})).then((e=>{const{data:t}=e.data;return this.languageList=t,this.http.request({method:"GET",url:"installer/api/timezones"})})).then((e=>{const{data:t}=e.data;return this.timezoneList=t,this.http.getAll()})).then((e=>{const{data:t}=e.data;this.instance={...this.instance,...t},this.isLoading=!1}))},methods:{onSubmit(){this.http.create({organizationName:this.instance.organizationName,countryCode:this.instance.countryCode.id,langCode:this.instance.langCode?.id,timezone:this.instance.timezone?.id}).then((()=>{m("/installer/admin-user-creation")}))},navigateUrl(){m("/installer/system-check")}}};const jt=(0,y.Z)(Yt,[["render",Zt],["__scopeId","data-v-5c19fe96"]]);var zt=jt;const Bt=e=>((0,n.dD)("data-v-e34b6520"),e=e(),(0,n.Cn)(),e),$t=Bt((()=>(0,n._)("br",null,null,-1))),Jt=Bt((()=>(0,n._)("br",null,null,-1))),Kt=Bt((()=>(0,n._)("br",null,null,-1))),Qt=Bt((()=>(0,n._)("br",null,null,-1))),Xt=Bt((()=>(0,n._)("br",null,null,-1))),ea=Bt((()=>(0,n._)("br",null,null,-1))),ta=Bt((()=>(0,n._)("br",null,null,-1))),aa={key:0},na=Bt((()=>(0,n._)("br",null,null,-1))),oa=Bt((()=>(0,n._)("br",null,null,-1))),ra=Bt((()=>(0,n._)("b",null,"开始安装",-1)));function sa(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-button"),d=(0,n.up)("oxd-form-actions"),u=(0,n.up)("oxd-form");return(0,n.wg)(),(0,n.j4)(u,{class:"orangehrm-installer-page",loading:r.isLoading,onSubmitValid:s.onSubmit},{default:(0,n.w5)((()=>[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 确认 ")])),_:1}),$t,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 所需的所有信息都收集在下面。 确认安装将创建数据库、数据库用户、配置文件等 ")])),_:1}),Jt,(0,n.Wm)(i,{class:"confirmation-text-header"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 详细信息 ")])),_:1}),Kt,(0,n.Wm)(i,{class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 数据库主机 ")])),_:1}),(0,n.Wm)(i,{class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(r.database.dbHost),1)])),_:1}),Qt,(0,n.Wm)(i,{class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 数据库端口 ")])),_:1}),(0,n.Wm)(i,{class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(r.database.dbPort),1)])),_:1}),Xt,(0,n.Wm)(i,{class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 数据库名 ")])),_:1}),(0,n.Wm)(i,{class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(r.database.dbName),1)])),_:1}),ea,(0,n.Wm)(i,{class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 数据库用户 ")])),_:1}),(0,n.Wm)(i,{class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(r.database.dbUser),1)])),_:1}),ta,(0,n.Wm)(i,{class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 数据库密码 ")])),_:1}),(0,n.Wm)(i,{class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(r.adminUserName),1)])),_:1}),r.database.enableDataEncryption?((0,n.wg)(),(0,n.iD)("br",aa)):(0,n.kq)("",!0),r.database.enableDataEncryption?((0,n.wg)(),(0,n.j4)(i,{key:1,class:"confirmation-text-section"},{default:(0,n.w5)((()=>[(0,n.Uk)("Data Encryption")])),_:1})):(0,n.kq)("",!0),r.database.enableDataEncryption?((0,n.wg)(),(0,n.j4)(i,{key:2,class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Data Encryption Is On. Employee Social Security Number, Employee Basic Salary, LDAP Bind User Password Will Be Encrypted. ")])),_:1})):(0,n.kq)("",!0),r.database.enableDataEncryption?((0,n.wg)(),(0,n.j4)(i,{key:3,class:"confirmation-text-info"},{default:(0,n.w5)((()=>[(0,n.Uk)(" Please backup encryption key located at lib/confs/cryptokeys/key.ohrm ")])),_:1})):(0,n.kq)("",!0),na,oa,(0,n.Wm)(i,{class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 点击 "),ra,(0,n.Uk)(" 继续 ")])),_:1}),(0,n.Wm)(d,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.Wm)(l,{"display-type":"ghost",label:"上一步",type:"button",onClick:s.navigateUrl},null,8,["onClick"]),(0,n.Wm)(l,{class:"orangehrm-left-space","display-type":"secondary",label:"开始安装",type:"submit"})])),_:1})])),_:1},8,["loading","onSubmitValid"])}const ia={dbHost:"",dbPort:"",dbName:"",dbUser:"",enableDataEncryption:!1};var la={name:"ConfirmationScreen",setup(){const e=new q(window.appGlobal.baseUrl,"/installer/api/database-config");return{http:e}},data(){return{isLoading:!1,database:{...ia},adminUserName:""}},beforeMount(){this.isLoading=!0,this.http.getAll().then((e=>{const{data:t}=e.data;return this.database={...ia,...t},this.http.request({method:"GET",url:"/installer/api/admin-user"})})).then((e=>{const{data:t}=e.data;this.adminUserName=t.username,this.isLoading=!1}))},methods:{onSubmit(){m("/installer/process")},navigateUrl(){m("/installer/admin-user-creation")}}};const da=(0,y.Z)(la,[["render",sa],["__scopeId","data-v-e34b6520"]]);var ua=da;const ca=e=>((0,n.dD)("data-v-0ba11067"),e=e(),(0,n.Cn)(),e),ma={class:"orangehrm-installer-page"},pa=ca((()=>(0,n._)("br",null,null,-1))),ha=ca((()=>(0,n._)("br",null,null,-1))),ga=ca((()=>(0,n._)("br",null,null,-1)));function fa(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("oxd-button");return(0,n.wg)(),(0,n.iD)("div",ma,[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 安装完成 ")])),_:1}),pa,(0,n.Wm)(i,{tag:"p",class:"orangehrm-installer-page-content"},{default:(0,n.w5)((()=>[(0,n.Uk)(" JingweiHRM-"+(0,n.zw)(a.productversion)+"已经安装成功. ",1)])),_:1}),ha,ga,(0,n.Wm)(l,{class:"orangehrm-installer-complete-button","display-type":"secondary",label:"打开 JingweiHRM",onClick:s.launch},null,8,["onClick"])])}var ba={name:"InstallerCompleteScreen",props:{productversion:{type:String,required:!0}},methods:{launch(){m("/")}}};const wa=(0,y.Z)(ba,[["render",fa],["__scopeId","data-v-0ba11067"]]);var ya=wa;const va=e=>((0,n.dD)("data-v-2e98947a"),e=e(),(0,n.Cn)(),e),ka={class:"orangehrm-installer-page"},_a=va((()=>(0,n._)("br",null,null,-1))),Ua=va((()=>(0,n._)("br",null,null,-1))),xa=va((()=>(0,n._)("br",null,null,-1))),Wa=va((()=>(0,n._)("br",null,null,-1)));function Sa(e,t,a,o,r,s){const i=(0,n.up)("oxd-text"),l=(0,n.up)("installer-tasks"),d=(0,n.up)("oxd-progress"),u=(0,n.up)("oxd-button"),c=(0,n.up)("oxd-form-actions");return(0,n.wg)(),(0,n.iD)("div",ka,[(0,n.Wm)(i,{tag:"h5",class:"orangehrm-installer-page-title"},{default:(0,n.w5)((()=>[(0,n.Uk)(" 安装 ")])),_:1}),_a,(0,n.Wm)(l,{tasks:o.tasks},null,8,["tasks"]),Ua,(0,n.Wm)(i,{tag:"h5",class:(0,n.C_)({"orangehrm-installer-page-content":!0,"--progress":!0,"--error":o.taskFailed})},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(o.progressText),1)])),_:1},8,["class"]),xa,(0,n.Wm)(d,{progress:o.progress,type:o.progressType,"show-label":!1},null,8,["progress","type"]),Wa,(0,n.wy)((0,n.Wm)(i,{tag:"p",class:(0,n.C_)({"orangehrm-installer-page-content":!0,"--center":!0,"--error":o.taskFailed})},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(o.progressNotice),1)])),_:1},8,["class"]),[[n.F8,o.progress<100]]),(0,n.Wm)(c,{class:"orangehrm-installer-page-action"},{default:(0,n.w5)((()=>[(0,n.wy)((0,n.Wm)(u,{label:"下一步","display-type":"secondary",onClick:o.onClickNext},null,8,["onClick"]),[[n.F8,100===o.progress]]),(0,n.wy)((0,n.Wm)(u,{label:"清除并重新安装","display-type":"secondary",onClick:o.onClickCleanup},null,8,["onClick"]),[[n.F8,o.taskFailed]])])),_:1})])}function Ta(e){const t=()=>e.request({method:"POST",url:"/installer/api/send-data/installer-start"}),a=()=>e.request({method:"POST",url:"/installer/api/send-data/upgrader-start"});return{notifyUpgraderStart:a,notifyInstallerStart:t}}function Ia(e){const{versionGenerator:t}=Xe(e),{notifyInstallerStart:a}=Ta(e),n=(t=!1)=>e.request({method:"GET",url:"installer/api/versions",params:{excludeLatest:t}}),o=()=>Promise.all([a(),e.request({method:"POST",url:"/installer/api/installation/database"})]),r=()=>e.request({method:"POST",url:"installer/api/installation/database-user"}),s=()=>e.request({method:"POST",url:"installer/api/installation/pre-migration"}),i=async()=>{const a=t=>e.request({method:"POST",url:"installer/api/installation/migration",data:{version:t}}),o=await n(),r=["0.0",...o.data],s=Array.isArray(r)?r[0]:null;if(!s)throw new Error("version not detected");for(const e of t(r,s))await a(e)},l=()=>e.request({method:"POST",url:"installer/api/installation/instance"}),d=()=>e.request({method:"POST",url:"installer/api/installation/config-file"}),u=()=>e.request({method:"POST",url:"installer/api/clean-up-install"});return{runCleanup:u,runMigrations:i,createInstance:l,createDatabase:o,createConfigFiles:d,createDatabaseUser:r,preMigrationCheck:s}}var Ca={name:"InstallScreen",components:{"oxd-progress":Ke.Z,"installer-tasks":Je},setup(){const e=(0,n.iH)(null),{progress:t,start:a,stop:o,end:r}=et(),{runCleanup:s,runMigrations:i,createInstance:l,createDatabase:d,createConfigFiles:u,createDatabaseUser:c,preMigrationCheck:p}=Ia(new q(window.appGlobal.baseUrl,"")),h=(0,n.iH)([{name:"新建数据库",state:0,task:d},{name:"检查数据库权限",state:0,task:p},{name:"更新数据",state:0,task:i},{name:"实例化管理员用户",state:0,task:l},{name:"创建HRM用户",state:0,task:c},{name:"设置配置文件",state:0,task:u}]),g=()=>{m("/installer/complete")},f=()=>{s().then((()=>{m("/installer/confirmation")}))};(0,n.wF)((async()=>{a();for(let a=0;a`${Math.floor(t.value)}%`)),w=(0,n.Fl)((()=>h.value.findIndex((e=>3===e.state))>-1)),y=(0,n.Fl)((()=>w.value?`${e.value?e.value:"Installation has failed"}. For more details check the error log in /src/log/installer.log file`:"请等待. 安装正在进行")),v=(0,n.Fl)((()=>w.value?"error":"secondary")),k=(0,n.Fl)((()=>w.value||100===t.value));return Qe(k),{tasks:h,progress:t,taskFailed:w,progressType:v,progressText:b,progressNotice:y,onClickCleanup:f,onClickNext:g}}};const Ea=(0,y.Z)(Ca,[["render",Sa],["__scopeId","data-v-2e98947a"]]);var Pa=Ea,Oa={"welcome-screen":x,"database-info-screen":K,"system-check-screen":ue,"current-version-screen":_e,"upgrader-complete-screen":Pe,"upgrade-process-screen":nt,"database-config-screen":gt,"admin-user-creation-screen":Wt,"licence-acceptance-screen":Ht,"instance-creation-screen":zt,"confirmation-screen":ua,"installer-complete-screen":ya,"install-process-screen":Pa},Ra=a(830),Aa=a(5608),Da=a(5466),Na=a(6081),La=a(3105),Va=a(9514),Ma=a(7769),Ha=a(6014),Fa=a(5845);const qa=e=>((0,n.dD)("data-v-15c09d5a"),e=e(),(0,n.Cn)(),e),Ga={class:"orangehrm-installer"},Za={class:"orangehrm-installer-sidebar"},Ya={class:"orangehrm-installer-footer"},ja={target:"_blank",class:"orangehrm-installer-guide",href:"https://starterhelp.jingweiht.com/hc/en-us/articles/5295915003666-OrangeHRM-Starter-Installation-Guide"},za=qa((()=>(0,n._)("br",null,null,-1))),Ba={class:"orangehrm-installer-header"},$a=["src"],Ja={class:"orangehrm-installer-content"};function Ka(e,t,a,o,r,s){const i=(0,n.up)("installer-steps"),l=(0,n.up)("oxd-icon");return(0,n.wg)(),(0,n.iD)("div",Ga,[(0,n._)("div",Za,[(0,n.Wm)(i,{steps:a.steps,"current-step":a.currentStep},null,8,["steps","current-step"]),(0,n._)("div",Ya,[(0,n.wy)((0,n._)("a",ja,[(0,n.Wm)(l,{type:"svg",name:"guide",class:"orangehrm-installer-guide-icon"}),(0,n.Uk)(" 安装手册 ")],512),[[n.F8,0===a.currentStep]]),za,(0,n.WI)(e.$slots,"footer",{},void 0,!0)])]),(0,n._)("div",Ba,[(0,n._)("img",{src:r.brandingSrc,width:"280",alt:"orangehrm-branding"},null,8,$a)]),(0,n._)("div",Ja,[(0,n.WI)(e.$slots,"default",{},void 0,!0)])])}const Qa={class:"orangehrm-installer-steps"};function Xa(e,t,a,o,r,s){const i=(0,n.up)("oxd-icon"),l=(0,n.up)("oxd-text");return(0,n.wg)(),(0,n.iD)("ul",Qa,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.steps,((e,t)=>((0,n.wg)(),(0,n.iD)("li",{key:e,class:(0,n.C_)({"orangehrm-installer-steps-item":!0,"--active":a.currentStep===t})},[(0,n.Wm)(l,{tag:"span",class:(0,n.C_)({"orangehrm-installer-steps-count":!0,"--success":a.currentStep>t})},{default:(0,n.w5)((()=>[a.currentStep<=t?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n.Uk)((0,n.zw)(t+1),1)],64)):((0,n.wg)(),(0,n.j4)(i,{key:1,class:"orangehrm-installer-steps-icon",name:"check"}))])),_:2},1032,["class"]),(0,n.Wm)(l,{tag:"span",class:"orangehrm-installer-steps-name"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,n.zw)(e),1)])),_:2},1024)],2)))),128))])}var en={name:"InstallerSteps",components:{"oxd-icon":je.Z},props:{steps:{type:Array,default:()=>[]},currentStep:{type:Number,default:0}}};const tn=(0,y.Z)(en,[["render",Xa],["__scopeId","data-v-3a7a11f2"]]);var an=tn,nn={name:"InstallerLayout",components:{"installer-steps":an,"oxd-icon":je.Z},props:{steps:{type:Array,required:!0},currentStep:{type:Number,required:!0}},data(){return{brandingSrc:`${window.appGlobal.publicPath}/client/public/ohrm_branding.png`}}};const on=(0,y.Z)(nn,[["render",Ka],["__scopeId","data-v-15c09d5a"]]);var rn=on;function sn(e,t,a,o,r,s){const i=(0,n.up)("oxd-text");return(0,n.wg)(),(0,n.j4)(i,{tag:"p",class:"orangehrm-form-hint"},{default:(0,n.w5)((()=>[(0,n.Uk)(" * Required ")])),_:1})}var ln={name:"RequiredText"};const dn=(0,y.Z)(ln,[["render",sn],["__scopeId","data-v-2c9af954"]]);var un=dn,cn={install:e=>{e.component("RequiredText",un),e.component("OxdDivider",Fa.Z),e.component("OxdForm",Ra.Z),e.component("OxdFormRow",Aa.Z),e.component("OxdFormActions",Da.Z),e.component("OxdInputField",Na.Z),e.component("OxdInputGroup",La.Z),e.component("OxdGrid",Va.Z),e.component("OxdGridItem",Ma.Z),e.component("InstallerLayout",rn),e.component("OxdText",Y.Z),e.component("OxdButton",Ha.Z)}};const mn=(0,n.ri)({name:"App",components:Oa});mn.use(cn),mn.mount("#app")}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,a),r.exports}a.m=e,function(){var e=[];a.O=function(t,n,o,r){if(!n){var s=1/0;for(u=0;u=r)&&Object.keys(a.O).every((function(e){return a.O[e](n[l])}))?n.splice(l--,1):(i=!1,r0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,o,r]}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};a.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,r,s=n[0],i=n[1],l=n[2],d=0;if(s.some((function(t){return 0!==e[t]}))){for(o in i)a.o(i,o)&&(a.m[o]=i[o]);if(l)var u=l(a)}for(t&&t(n);d\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\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 *\n * @param endpoint\n * @param params\n * @param query\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 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 '@/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\n\n\n\n","import { render } from \"./DatabaseConfigDialog.vue?vue&type=template&id=9862f0ac&scoped=true\"\nimport script from \"./DatabaseConfigDialog.vue?vue&type=script&lang=js\"\nexport * from \"./DatabaseConfigDialog.vue?vue&type=script&lang=js\"\n\nimport \"./DatabaseConfigDialog.vue?vue&type=style&index=0&id=9862f0ac&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-9862f0ac\"]])\n\nexport default __exports__","import { render } from \"./WelcomeScreen.vue?vue&type=template&id=820d11b2&scoped=true\"\nimport script from \"./WelcomeScreen.vue?vue&type=script&lang=js\"\nexport * from \"./WelcomeScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=820d11b2&lang=scss&scoped=true\"\nimport \"./WelcomeScreen.vue?vue&type=style&index=1&id=820d11b2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-820d11b2\"]])\n\nexport default __exports__","\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\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() !== '') || 'Required';\n } else if (typeof value === 'number') {\n return !Number.isNaN(value) || 'Required';\n } else if (Array.isArray(value)) {\n return (!!value && value.length !== 0) || 'Required';\n } else if (typeof value === 'object') {\n return value !== null || 'Required';\n } else {\n return '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 `Should not exceed ${charLength} characters`\n );\n };\n};\n\nexport const validRange = 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 `Enter a valid port number: ${rangeFrom}-${rangeTo}`\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 'Should be a number'\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 'Expected format: admin@example.com'\n );\n};\n\nexport const validPhoneNumberFormat = function (\n value: string,\n): boolean | string {\n return (\n !value ||\n /^[0-9+\\-/() ]+$/.test(value) ||\n 'Allows numbers and only + - / ( )'\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 `Should be at least ${charLength} characters`\n );\n };\n};\n\nexport const shouldNotContainSpecialChars = (message?: string) => {\n const resolvedMessage =\n message ?? 'Allows alphanumeric characters and only _';\n return function (value: string): boolean | string {\n return !value || /^[a-zA-Z0-9_]*$/.test(value) || resolvedMessage;\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 axios, {\n AxiosError,\n AxiosInstance,\n AxiosRequestConfig,\n AxiosResponse,\n} from 'axios';\nimport {ComponentInternalInstance, getCurrentInstance} from 'vue';\n\nexport class APIService {\n private _http: AxiosInstance;\n private _baseUrl: string;\n private _apiSection: string;\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.setupResponseInterceptors(getCurrentInstance());\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 /**\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 return Promise.reject();\n }\n\n const $toast = vm?.appContext.config.globalProperties.$toast;\n if ($toast) {\n const message = error.response?.data?.error?.message;\n $toast.error({\n title: 'Error',\n message: message ?? 'Unexpected Error!',\n });\n }\n return Promise.reject(error);\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","\n\n\n\n\n\n","import { render } from \"./Notice.vue?vue&type=template&id=52344ae6&scoped=true\"\nimport script from \"./Notice.vue?vue&type=script&lang=js\"\nexport * from \"./Notice.vue?vue&type=script&lang=js\"\n\nimport \"./Notice.vue?vue&type=style&index=0&id=52344ae6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-52344ae6\"]])\n\nexport default __exports__","import { render } from \"./DatabaseInfoScreen.vue?vue&type=template&id=1a13fdc2&scoped=true\"\nimport script from \"./DatabaseInfoScreen.vue?vue&type=script&lang=js\"\nexport * from \"./DatabaseInfoScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=1a13fdc2&lang=scss&scoped=true\"\nimport \"./DatabaseInfoScreen.vue?vue&type=style&index=1&id=1a13fdc2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1a13fdc2\"]])\n\nexport default __exports__","\n\n\n\n","\n\n\n\n\n","import { render } from \"./FlexTable.vue?vue&type=template&id=4d11017b&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=4d11017b&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4d11017b\"]])\n\nexport default __exports__","import { render } from \"./SystemCheckScreen.vue?vue&type=template&id=81d60558&scoped=true\"\nimport script from \"./SystemCheckScreen.vue?vue&type=script&lang=js\"\nexport * from \"./SystemCheckScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=81d60558&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-81d60558\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n","import { render } from \"./VersionDropdown.vue?vue&type=template&id=153eb26c\"\nimport script from \"./VersionDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./VersionDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./CurrentVersionScreen.vue?vue&type=template&id=ca27e1a8&scoped=true\"\nimport script from \"./CurrentVersionScreen.vue?vue&type=script&lang=js\"\nexport * from \"./CurrentVersionScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=ca27e1a8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ca27e1a8\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./UpgraderCompleteScreen.vue?vue&type=template&id=375f2eba&scoped=true\"\nimport script from \"./UpgraderCompleteScreen.vue?vue&type=script&lang=js\"\nexport * from \"./UpgraderCompleteScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=375f2eba&lang=scss&scoped=true\"\nimport \"./UpgraderCompleteScreen.vue?vue&type=style&index=1&id=375f2eba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-375f2eba\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./InstallerTasks.vue?vue&type=template&id=2d9c1a11&scoped=true\"\nimport script from \"./InstallerTasks.vue?vue&type=script&lang=js\"\nexport * from \"./InstallerTasks.vue?vue&type=script&lang=js\"\n\nimport \"./InstallerTasks.vue?vue&type=style&index=0&id=2d9c1a11&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2d9c1a11\"]])\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 {onMounted, onUnmounted, Ref} from 'vue';\n\nexport default function useBeforeUnload(override: Ref) {\n let registered = false;\n const triggerUnload = (event: Event) => {\n if (!override.value) {\n event.preventDefault();\n event.returnValue = true;\n return event;\n }\n };\n\n const registerUnloadEvent = () => {\n !registered && window.addEventListener('beforeunload', triggerUnload);\n registered = true;\n };\n\n onMounted(() => {\n window.addEventListener('mousemove', registerUnloadEvent);\n });\n\n onUnmounted(() => {\n window.removeEventListener('mousemove', registerUnloadEvent);\n window.removeEventListener('beforeunload', triggerUnload);\n });\n\n return {triggerUnload};\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';\nimport {AxiosResponse} from 'axios';\n\nexport default function useUpgrader(http: APIService) {\n const getVersionList = (\n excludeLatest = true,\n ): Promise> => {\n return http.request({\n method: 'GET',\n url: 'upgrader/api/versions',\n params: {excludeLatest},\n });\n };\n\n const getCurrentVersion = (): Promise<\n AxiosResponse<{version: string} | null>\n > => {\n return http.request({\n method: 'GET',\n url: 'upgrader/api/current-version',\n });\n };\n\n const createConfigFiles = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'upgrader/api/config-file',\n });\n };\n\n const migrateToVersion = (fromVersion: string | null, toVersion: string) => {\n let payload;\n if (fromVersion) {\n payload = {\n fromVersion,\n toVersion,\n };\n } else {\n payload = {\n version: toVersion,\n };\n }\n return http.request({\n method: 'POST',\n url: 'upgrader/api/migration',\n data: payload,\n });\n };\n\n function* versionGenerator(\n versions: string[],\n currentVersion: string | null,\n ) {\n let index = versions.findIndex((_version) => _version === currentVersion);\n if (index === -1) return null;\n while (versions[index + 1]) {\n yield versions[index + 1];\n index++;\n }\n }\n\n const runAllMigrations = async () => {\n let versions = [];\n let currentVersion = null;\n const getVersions = Promise.all([\n getVersionList(false),\n getCurrentVersion(),\n ]);\n const [versionResponse, currentVersionResponse] = await getVersions;\n versions = [...versionResponse.data];\n currentVersion = currentVersionResponse.data?.version;\n if (!currentVersion) throw new Error('version not detected');\n for (const nextVersion of versionGenerator(versions, currentVersion)) {\n await migrateToVersion(null, nextVersion);\n }\n };\n\n const preMigrationCheck = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'upgrader/api/installation/pre-migration',\n });\n };\n\n return {\n getVersionList,\n getCurrentVersion,\n migrateToVersion,\n runAllMigrations,\n createConfigFiles,\n versionGenerator,\n preMigrationCheck,\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';\n\nexport default function useProgress() {\n let time = 0;\n let working = true;\n let generator: Generator;\n const frequency = 100;\n const progress = ref(0);\n\n function* exponentGenerator() {\n const _progress = 0;\n while (_progress < 1) {\n // simplified implementation from https://github.com/piercus/fake-progress\n yield 1 - Math.exp((-1 * time) / 1000);\n time += frequency;\n }\n }\n\n const increment = () => {\n setTimeout(() => {\n if (progress.value === 100 || !working) return;\n progress.value = generator.next().value * 100;\n increment();\n }, frequency + Math.random() * 500);\n };\n\n const start = () => {\n time = 0;\n working = true;\n progress.value = 0;\n generator = exponentGenerator();\n increment();\n };\n\n const end = () => {\n progress.value = 100;\n };\n\n const stop = () => {\n working = false;\n };\n\n return {\n end,\n stop,\n start,\n progress,\n };\n}\n","import { render } from \"./UpgradeScreen.vue?vue&type=template&id=fe668f50&scoped=true\"\nimport script from \"./UpgradeScreen.vue?vue&type=script&lang=js\"\nexport * from \"./UpgradeScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=fe668f50&lang=scss&scoped=true\"\nimport \"./UpgradeScreen.vue?vue&type=style&index=1&id=fe668f50&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fe668f50\"]])\n\nexport default __exports__","\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 {Directive, DirectiveBinding, h, render} from 'vue';\nimport Icon from '@ohrm/oxd/core/components/Icon/Icon.vue';\n\nconst tooltipDirective: Directive = {\n beforeMount(el: HTMLElement, binding: DirectiveBinding) {\n if (!el || el.children.length === 0) return;\n const {value} = binding;\n const node = h(Icon, {\n name: 'info-circle-fill',\n title: value,\n style: {\n marginLeft: 'auto',\n cursor: 'pointer',\n },\n });\n render(node, el.children[0]);\n },\n};\nexport default tooltipDirective;\n","import { render } from \"./DatabaseConfigScreen.vue?vue&type=template&id=70efe06a&scoped=true\"\nimport script from \"./DatabaseConfigScreen.vue?vue&type=script&lang=js\"\nexport * from \"./DatabaseConfigScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=70efe06a&lang=scss&scoped=true\"\nimport \"./DatabaseConfigScreen.vue?vue&type=style&index=1&id=70efe06a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-70efe06a\"]])\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\nexport function getPassLevel(password: string): number[] {\n const level1 = new RegExp(/[a-z]/);\n const level2 = new RegExp(/[A-Z]/);\n const level3 = new RegExp(/[0-9]/);\n const level4 = new RegExp(/[@#\\\\/\\-!$%^&*()_+|~=`{}[\\]:\";'<>?,.]/);\n return [level1, level2, level3, level4].map((level) => {\n return level.test(password) ? 1 : 0;\n });\n}\n\nexport function checkPassword(password: string): string | boolean {\n if (password.length >= 8) {\n const pwdLevel = getPassLevel(password);\n if (RegExp(/\\s/).test(password)) {\n return 'Your password should not contain spaces.';\n }\n if (pwdLevel.reduce((acc, curr) => acc + curr, 0) < 4) {\n return 'Your password must contain a lower-case letter, an upper-case letter, a digit and a special character. Try a different password';\n } else {\n return true;\n }\n } else {\n return 'Should have at least 8 characters';\n }\n}\n","import { render } from \"./AdminUserCreationScreen.vue?vue&type=template&id=8abc5e12&scoped=true\"\nimport script from \"./AdminUserCreationScreen.vue?vue&type=script&lang=js\"\nexport * from \"./AdminUserCreationScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=8abc5e12&lang=scss&scoped=true\"\nimport \"./AdminUserCreationScreen.vue?vue&type=style&index=1&id=8abc5e12&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8abc5e12\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n","import { render } from \"./GNULicence.vue?vue&type=template&id=0d08c515\"\nimport script from \"./GNULicence.vue?vue&type=script&lang=js\"\nexport * from \"./GNULicence.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./LicenceAcceptanceScreen.vue?vue&type=template&id=bb67a12c&scoped=true\"\nimport script from \"./LicenceAcceptanceScreen.vue?vue&type=script&lang=js\"\nexport * from \"./LicenceAcceptanceScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=bb67a12c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-bb67a12c\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./InstanceCreationScreen.vue?vue&type=template&id=5c19fe96&scoped=true\"\nimport script from \"./InstanceCreationScreen.vue?vue&type=script&lang=js\"\nexport * from \"./InstanceCreationScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=5c19fe96&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5c19fe96\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ConfirmationScreen.vue?vue&type=template&id=3cd00f92&scoped=true\"\nimport script from \"./ConfirmationScreen.vue?vue&type=script&lang=js\"\nexport * from \"./ConfirmationScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=3cd00f92&lang=scss&scoped=true\"\nimport \"./ConfirmationScreen.vue?vue&type=style&index=1&id=3cd00f92&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3cd00f92\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./InstallerCompleteScreen.vue?vue&type=template&id=0ba11067&scoped=true\"\nimport script from \"./InstallerCompleteScreen.vue?vue&type=script&lang=js\"\nexport * from \"./InstallerCompleteScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=0ba11067&lang=scss&scoped=true\"\nimport \"./InstallerCompleteScreen.vue?vue&type=style&index=1&id=0ba11067&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0ba11067\"]])\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 {APIService} from '@/core/util/services/api.service';\nimport {AxiosResponse} from 'axios';\n\nexport default function useDiagnostics(http: APIService) {\n const notifyInstallerStart = (): Promise => {\n return http.request({\n method: 'POST',\n url: '/installer/api/send-data/installer-start',\n });\n };\n\n const notifyUpgraderStart = (): Promise => {\n return http.request({\n method: 'POST',\n url: '/installer/api/send-data/upgrader-start',\n });\n };\n\n return {\n notifyUpgraderStart,\n notifyInstallerStart,\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 {APIService} from '@/core/util/services/api.service';\nimport {AxiosResponse} from 'axios';\nimport useUpgrader from './useUpgrader';\nimport useDiagnostics from './useDiagnostics';\n\nexport default function useInstaller(http: APIService) {\n const {versionGenerator} = useUpgrader(http);\n const {notifyInstallerStart} = useDiagnostics(http);\n\n const getVersionList = (\n excludeLatest = false,\n ): Promise> => {\n return http.request({\n method: 'GET',\n url: 'installer/api/versions',\n params: {excludeLatest},\n });\n };\n\n const createDatabase = (): Promise => {\n return Promise.all([\n notifyInstallerStart(),\n http.request({\n method: 'POST',\n url: '/installer/api/installation/database',\n }),\n ]);\n };\n\n const createDatabaseUser = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/installation/database-user',\n });\n };\n\n const preMigrationCheck = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/installation/pre-migration',\n });\n };\n\n const runMigrations = async (): Promise => {\n const doMigration = (version: string): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/installation/migration',\n data: {\n version,\n },\n });\n };\n\n const versionResponse = await getVersionList();\n const versions = ['0.0', ...versionResponse.data];\n const currentVersion = Array.isArray(versions) ? versions[0] : null;\n if (!currentVersion) throw new Error('version not detected');\n for (const nextVersion of versionGenerator(versions, currentVersion)) {\n await doMigration(nextVersion);\n }\n };\n\n const createInstance = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/installation/instance',\n });\n };\n\n const createConfigFiles = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/installation/config-file',\n });\n };\n\n const runCleanup = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/clean-up-install',\n });\n };\n\n return {\n runCleanup,\n runMigrations,\n createInstance,\n createDatabase,\n createConfigFiles,\n createDatabaseUser,\n preMigrationCheck,\n };\n}\n","import { render } from \"./InstallScreen.vue?vue&type=template&id=2e98947a&scoped=true\"\nimport script from \"./InstallScreen.vue?vue&type=script&lang=js\"\nexport * from \"./InstallScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=2e98947a&lang=scss&scoped=true\"\nimport \"./InstallScreen.vue?vue&type=style&index=1&id=2e98947a&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2e98947a\"]])\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 WelcomeScreen from '@/pages/WelcomeScreen.vue';\nimport DatabaseInfoScreen from '@/pages/DatabaseInfoScreen.vue';\nimport SystemCheckScreen from '@/pages/SystemCheckScreen.vue';\nimport CurrentVersionScreen from '@/pages/CurrentVersionScreen.vue';\nimport UpgraderCompleteScreen from '@/pages/UpgraderCompleteScreen.vue';\nimport UpgradeScreen from '@/pages/UpgradeScreen.vue';\nimport DatabaseConfigScreen from '@/pages/DatabaseConfigScreen.vue';\nimport AdminUserCreationScreen from '@/pages/AdminUserCreationScreen.vue';\nimport LicenceAcceptanceScreen from '@/pages/LicenceAcceptanceScreen.vue';\nimport InstanceCreationScreen from '@/pages/InstanceCreationScreen.vue';\nimport ConfirmationScreen from '@/pages/ConfirmationScreen.vue';\nimport InstallerCompleteScreen from '@/pages/InstallerCompleteScreen.vue';\nimport InstallScreen from '@/pages/InstallScreen.vue';\n\nexport default {\n 'welcome-screen': WelcomeScreen,\n 'database-info-screen': DatabaseInfoScreen,\n 'system-check-screen': SystemCheckScreen,\n 'current-version-screen': CurrentVersionScreen,\n 'upgrader-complete-screen': UpgraderCompleteScreen,\n 'upgrade-process-screen': UpgradeScreen,\n 'database-config-screen': DatabaseConfigScreen,\n 'admin-user-creation-screen': AdminUserCreationScreen,\n 'licence-acceptance-screen': LicenceAcceptanceScreen,\n 'instance-creation-screen': InstanceCreationScreen,\n 'confirmation-screen': ConfirmationScreen,\n 'installer-complete-screen': InstallerCompleteScreen,\n 'install-process-screen': InstallScreen,\n};\n","\n\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./InstallerSteps.vue?vue&type=template&id=3a7a11f2&scoped=true\"\nimport script from \"./InstallerSteps.vue?vue&type=script&lang=js\"\nexport * from \"./InstallerSteps.vue?vue&type=script&lang=js\"\n\nimport \"./installer-steps.scss?vue&type=style&index=0&id=3a7a11f2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3a7a11f2\"]])\n\nexport default __exports__","import { render } from \"./InstallerLayout.vue?vue&type=template&id=15c09d5a&scoped=true\"\nimport script from \"./InstallerLayout.vue?vue&type=script&lang=js\"\nexport * from \"./InstallerLayout.vue?vue&type=script&lang=js\"\n\nimport \"./installer-layout.scss?vue&type=style&index=0&id=15c09d5a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-15c09d5a\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./RequiredText.vue?vue&type=template&id=2c9af954&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=2c9af954&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2c9af954\"]])\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 Form from '@ohrm/oxd/core/components/Form/Form.vue';\nimport FormRow from '@ohrm/oxd/core/components/Form/FormRow.vue';\nimport FormActions from '@ohrm/oxd/core/components/Form/FormActions.vue';\nimport InputField from '@ohrm/oxd/core/components/InputField/InputField.vue';\nimport InputGroup from '@ohrm/oxd/core/components/InputField/InputGroup.vue';\nimport Grid from '@ohrm/oxd/core/components/Grid/Grid.vue';\nimport GridItem from '@ohrm/oxd/core/components/Grid/GridItem.vue';\nimport Text from '@ohrm/oxd/core/components/Text/Text.vue';\nimport Button from '@ohrm/oxd/core/components/Button/Button.vue';\nimport Divider from '@ohrm/oxd/core/components/Divider/Divider.vue';\nimport InstallerLayout from '@/components/InstallerLayout.vue';\nimport RequiredText from '@/components/RequiredText.vue';\nexport default {\n install: (app: App) => {\n app.component('RequiredText', RequiredText);\n app.component('OxdDivider', Divider);\n app.component('OxdForm', Form);\n app.component('OxdFormRow', FormRow);\n app.component('OxdFormActions', FormActions);\n app.component('OxdInputField', InputField);\n app.component('OxdInputGroup', InputGroup);\n app.component('OxdGrid', Grid);\n app.component('OxdGridItem', GridItem);\n app.component('InstallerLayout', InstallerLayout);\n app.component('OxdText', Text);\n app.component('OxdButton', Button);\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 Pages from '@/pages';\nimport Components from '@/components';\n\nconst app = createApp({\n name: 'App',\n components: Pages,\n});\n\napp.use(Components);\n\napp.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](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};","// 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__.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); }","// 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};","// 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// no chunk on demand loading\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_installer\"] = self[\"webpackChunkorangehrm_installer\"] || [];\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__(9170); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_createElementVNode","_createVNode","_component_oxd_form","class","onSubmit","$options","_component_oxd_text","tag","$props","_hoisted_1","_hoisted_2","_hoisted_3","_component_oxd_form_row","_component_oxd_radio_input","$data","value","_component_oxd_form_actions","_component_oxd_button","label","type","_createBlock","_component_database_config_dialog","onCloseModel","prepare","endpoint","params","query","preparedEndpoint","JSON","parse","stringify","Object","keys","forEach","param","paramPlaceholder","includes","paramValue","toString","replace","console","error","preparedQueryString","queryKeys","queryKey","index","queryValue","Array","isArray","queryValueItem","itemIndex","encodeURI","length","urlFor","window","appGlobal","baseUrl","navigate","path","location","href","_component_oxd_dialog","style","width","maxWidth","_component_oxd_divider","_component_oxd_classic_table","headers","items","_component_oxd_check_box","onClick","disabled","name","components","DialogWithClose","CheckBoxInput","ClassicTable","emits","data","checked","title","feat","addon","other","methods","submitInfo","this","$emit","cancelInstallation","__exports__","RadioInput","DatabaseConfigDialog","props","productversion","String","required","selected","showModal","toggleModal","closeModel","isAccept","render","loading","onSubmitValid","_component_Notice","_hoisted_4","_component_oxd_grid","cols","_component_oxd_grid_item","_component_oxd_input_field","dbHost","rules","dbPort","dbName","dbUser","dbPassword","_hoisted_6","_component_required_text","trim","Number","isNaN","shouldNotExceedCharLength","charLength","validRange","rangeFrom","rangeTo","test","parseFloat","parseInt","validEmailFormat","validPhoneNumberFormat","shouldNotLessThanCharLength","shouldNotContainSpecialChars","message","resolvedMessage","APIService","constructor","_baseUrl","_apiSection","_http","axios","baseURL","setupResponseInterceptors","getCurrentInstance","getAll","Accept","get","id","create","post","update","put","delete","deleteAll","request","options","url","vm","interceptors","response","use","status","Promise","reject","$toast","appContext","config","globalProperties","http","apiSection","_component_oxd_sheet","_renderSlot","_ctx","Sheet","Text","Notice","setup","isLoading","database","errorMessage","beforeMount","then","catch","navigateUrl","_createElementBlock","_Fragment","item","_component_flex_table","key","category","checks","titleName","default","getClass","FlexTable","installer","Boolean","isInterrupted","fetchData","meta","finally","goToScreen","reCheck","_component_version_dropdown","version","$setup","ref","onBeforeMount","map","VersionDropdown","method","onClickBack","currentVersion","launch","_component_installer_tasks","tasks","_hoisted_5","_component_oxd_progress","progress","task","state","_component_oxd_loading_spinner","_component_oxd_icon","Icon","Spinner","useBeforeUnload","override","registered","triggerUnload","event","preventDefault","returnValue","registerUnloadEvent","addEventListener","onMounted","onUnmounted","removeEventListener","useUpgrader","getVersionList","excludeLatest","getCurrentVersion","createConfigFiles","migrateToVersion","fromVersion","toVersion","payload","versionGenerator","versions","findIndex","_version","runAllMigrations","async","getVersions","all","versionResponse","currentVersionResponse","Error","nextVersion","preMigrationCheck","useProgress","generator","time","working","frequency","exponentGenerator","_progress","Math","exp","increment","setTimeout","next","random","start","end","stop","ProgressBar","InstallerTasks","errorText","onClickNext","progressText","computed","floor","taskFailed","progressNotice","progressType","overrideUnload","dbType","useSameDbUserForOrangeHRM","ohrmDbUser","ohrmDbPassword","enableDataEncryption","tooltipDirective","el","binding","children","node","h","marginLeft","cursor","directives","tooltip","disableOHRMDBfield","isNewDB","undefined","firstName","placeholder","email","contact","username","password","confirmPassword","passwordConfirm","getPassLevel","level1","RegExp","level2","level3","level4","level","checkPassword","pwdLevel","reduce","acc","curr","adminUser","lastName","registrationConsent","v","_component_gnu_licence","_component_oxd_textarea","rows","Textarea","GNULicence","userConsent","organizationName","countryCode","langCode","timezone","instance","countryList","languageList","timezoneList","sort","a","b","_hoisted_7","_hoisted_9","_hoisted_10","databaseModel","adminUserName","useDiagnostics","notifyInstallerStart","notifyUpgraderStart","useInstaller","createDatabase","createDatabaseUser","runMigrations","doMigration","createInstance","runCleanup","onClickCleanup","WelcomeScreen","DatabaseInfoScreen","SystemCheckScreen","CurrentVersionScreen","UpgraderCompleteScreen","UpgradeScreen","DatabaseConfigScreen","AdminUserCreationScreen","LicenceAcceptanceScreen","InstanceCreationScreen","ConfirmationScreen","InstallerCompleteScreen","InstallScreen","target","_component_installer_steps","steps","src","alt","_hoisted_8","step","currentStep","InstallerSteps","brandingSrc","publicPath","install","app","component","RequiredText","Divider","Form","FormRow","FormActions","InputField","InputGroup","Grid","GridItem","InstallerLayout","Button","createApp","Pages","Components","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","every","splice","r","d","definition","o","defineProperty","enumerable","g","globalThis","Function","e","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"js/app.js","mappings":"yIAwBIA,EAAAA,EAAAA,GAAM,qB,UAINA,EAAAA,EAAAA,GAAM,qB,UAINA,EAAAA,EAAAA,GAAM,qB,UAyBDA,EAAAA,EAAAA,GAAU,SAAP,OAAG,K,wQArCbC,EAAAA,EAAAA,IA2CWC,EAAAA,CA3CDC,MAAM,2BAA4BC,SAAQC,EAAAA,a,mBAClD,IAEW,EAFXJ,EAAAA,EAAAA,IAEWK,EAAAA,CAFDC,IAAI,KAAKJ,MAAM,kC,mBAAiC,IAC5C,UAD4C,iBAC5C,QAAGK,EAAAA,gBAAiB,SAClC,M,MACAC,GACAR,EAAAA,EAAAA,IAEWK,EAAAA,CAFDC,IAAI,IAAIJ,MAAM,oC,mBAAmC,IAE3D,UAF2D,iD,MAG3DO,GACAT,EAAAA,EAAAA,IAEWK,EAAAA,CAFDC,IAAI,IAAIJ,MAAM,oC,mBAAmC,IAE3D,UAF2D,gB,MAG3DQ,GACAV,EAAAA,EAAAA,IASeW,EAAAA,CATDT,MAAM,gCAA8B,C,kBAChD,IA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B9W,GACrDqV,EAAIL,EAAS1W,OAAQ+W,IACzBuB,EAAU5B,EAASK,GAChBf,EAAoBuB,EAAEc,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOtC,EAAoBQ,EAAEC,EAC9B,EAEImC,EAAqBC,KAAK,mCAAqCA,KAAK,oCAAsC,GAC9GD,EAAmB/Z,QAAQ0Z,EAAqBO,KAAK,KAAM,IAC3DF,EAAmBG,KAAOR,EAAqBO,KAAK,KAAMF,EAAmBG,KAAKD,KAAKF,G,IC/CvF,IAAII,EAAsBhD,EAAoBQ,OAAE7G,EAAW,CAAC,MAAM,WAAa,OAAOqG,EAAoB,KAAO,IACjHgD,EAAsBhD,EAAoBQ,EAAEwC,E","sources":["webpack://orangehrm-installer/./src/pages/WelcomeScreen.vue","webpack://orangehrm-installer/./src/core/util/helper/url.ts","webpack://orangehrm-installer/./src/core/util/helper/navigation.ts","webpack://orangehrm-installer/./src/components/DatabaseConfigDialog.vue","webpack://orangehrm-installer/./src/components/DatabaseConfigDialog.vue?9672","webpack://orangehrm-installer/./src/pages/WelcomeScreen.vue?1cd8","webpack://orangehrm-installer/./src/pages/DatabaseInfoScreen.vue","webpack://orangehrm-installer/./src/core/util/validation/rules.ts","webpack://orangehrm-installer/./src/core/util/services/api.service.ts","webpack://orangehrm-installer/./src/components/Notice.vue","webpack://orangehrm-installer/./src/components/Notice.vue?4204","webpack://orangehrm-installer/./src/pages/DatabaseInfoScreen.vue?dab2","webpack://orangehrm-installer/./src/pages/SystemCheckScreen.vue","webpack://orangehrm-installer/./src/components/FlexTable.vue","webpack://orangehrm-installer/./src/components/FlexTable.vue?ce75","webpack://orangehrm-installer/./src/pages/SystemCheckScreen.vue?02db","webpack://orangehrm-installer/./src/pages/CurrentVersionScreen.vue","webpack://orangehrm-installer/./src/components/VersionDropdown.vue","webpack://orangehrm-installer/./src/components/VersionDropdown.vue?84dd","webpack://orangehrm-installer/./src/pages/CurrentVersionScreen.vue?bc93","webpack://orangehrm-installer/./src/pages/UpgraderCompleteScreen.vue","webpack://orangehrm-installer/./src/pages/UpgraderCompleteScreen.vue?4707","webpack://orangehrm-installer/./src/pages/UpgradeScreen.vue","webpack://orangehrm-installer/./src/components/InstallerTasks.vue","webpack://orangehrm-installer/./src/components/InstallerTasks.vue?17dd","webpack://orangehrm-installer/./src/core/util/composable/useBeforeUnload.ts","webpack://orangehrm-installer/./src/core/util/composable/useUpgrader.ts","webpack://orangehrm-installer/./src/core/util/composable/useProgress.ts","webpack://orangehrm-installer/./src/pages/UpgradeScreen.vue?a87d","webpack://orangehrm-installer/./src/pages/DatabaseConfigScreen.vue","webpack://orangehrm-installer/./src/core/util/directives/tooltip.ts","webpack://orangehrm-installer/./src/pages/DatabaseConfigScreen.vue?b2ec","webpack://orangehrm-installer/./src/pages/AdminUserCreationScreen.vue","webpack://orangehrm-installer/./src/core/util/helper/password.ts","webpack://orangehrm-installer/./src/pages/AdminUserCreationScreen.vue?103a","webpack://orangehrm-installer/./src/pages/LicenceAcceptanceScreen.vue","webpack://orangehrm-installer/./src/components/GNULicence.vue","webpack://orangehrm-installer/./src/components/GNULicence.vue?a87b","webpack://orangehrm-installer/./src/pages/LicenceAcceptanceScreen.vue?7c4b","webpack://orangehrm-installer/./src/pages/InstanceCreationScreen.vue","webpack://orangehrm-installer/./src/pages/InstanceCreationScreen.vue?d7c7","webpack://orangehrm-installer/./src/pages/ConfirmationScreen.vue","webpack://orangehrm-installer/./src/pages/ConfirmationScreen.vue?9678","webpack://orangehrm-installer/./src/pages/InstallerCompleteScreen.vue","webpack://orangehrm-installer/./src/pages/InstallerCompleteScreen.vue?d963","webpack://orangehrm-installer/./src/pages/InstallScreen.vue","webpack://orangehrm-installer/./src/core/util/composable/useDiagnostics.ts","webpack://orangehrm-installer/./src/core/util/composable/useInstaller.ts","webpack://orangehrm-installer/./src/pages/InstallScreen.vue?28ce","webpack://orangehrm-installer/./src/pages/index.ts","webpack://orangehrm-installer/./src/components/InstallerLayout.vue","webpack://orangehrm-installer/./src/components/InstallerSteps.vue","webpack://orangehrm-installer/./src/components/InstallerSteps.vue?df3f","webpack://orangehrm-installer/./src/components/InstallerLayout.vue?6b51","webpack://orangehrm-installer/./src/components/RequiredText.vue","webpack://orangehrm-installer/./src/components/RequiredText.vue?2466","webpack://orangehrm-installer/./src/components.ts","webpack://orangehrm-installer/./src/main.ts","webpack://orangehrm-installer/webpack/bootstrap","webpack://orangehrm-installer/webpack/runtime/chunk loaded","webpack://orangehrm-installer/webpack/runtime/define property getters","webpack://orangehrm-installer/webpack/runtime/global","webpack://orangehrm-installer/webpack/runtime/hasOwnProperty shorthand","webpack://orangehrm-installer/webpack/runtime/make namespace object","webpack://orangehrm-installer/webpack/runtime/jsonp chunk loading","webpack://orangehrm-installer/webpack/startup"],"sourcesContent":["\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\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 *\n * @param endpoint\n * @param params\n * @param query\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 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 '@/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\n\n\n\n","import { render } from \"./DatabaseConfigDialog.vue?vue&type=template&id=9862f0ac&scoped=true\"\nimport script from \"./DatabaseConfigDialog.vue?vue&type=script&lang=js\"\nexport * from \"./DatabaseConfigDialog.vue?vue&type=script&lang=js\"\n\nimport \"./DatabaseConfigDialog.vue?vue&type=style&index=0&id=9862f0ac&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-9862f0ac\"]])\n\nexport default __exports__","import { render } from \"./WelcomeScreen.vue?vue&type=template&id=820d11b2&scoped=true\"\nimport script from \"./WelcomeScreen.vue?vue&type=script&lang=js\"\nexport * from \"./WelcomeScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=820d11b2&lang=scss&scoped=true\"\nimport \"./WelcomeScreen.vue?vue&type=style&index=1&id=820d11b2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-820d11b2\"]])\n\nexport default __exports__","\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\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() !== '') || 'Required';\n } else if (typeof value === 'number') {\n return !Number.isNaN(value) || 'Required';\n } else if (Array.isArray(value)) {\n return (!!value && value.length !== 0) || 'Required';\n } else if (typeof value === 'object') {\n return value !== null || 'Required';\n } else {\n return '必须填写';\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 `Should not exceed ${charLength} characters`\n );\n };\n};\n\nexport const validRange = 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 `Enter a valid port number: ${rangeFrom}-${rangeTo}`\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 '只能是数字'\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 '格式: admin@example.com'\n );\n};\n\nexport const validPhoneNumberFormat = function (\n value: string,\n): boolean | string {\n return (\n !value ||\n /^[0-9+\\-/() ]+$/.test(value) ||\n 'Allows numbers and only + - / ( )'\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 `至少要有 ${charLength} 个字符`\n );\n };\n};\n\nexport const shouldNotContainSpecialChars = (message?: string) => {\n const resolvedMessage =\n message ?? 'Allows alphanumeric characters and only _';\n return function (value: string): boolean | string {\n return !value || /^[a-zA-Z0-9_]*$/.test(value) || resolvedMessage;\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 axios, {\n AxiosError,\n AxiosInstance,\n AxiosRequestConfig,\n AxiosResponse,\n} from 'axios';\nimport {ComponentInternalInstance, getCurrentInstance} from 'vue';\n\nexport class APIService {\n private _http: AxiosInstance;\n private _baseUrl: string;\n private _apiSection: string;\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.setupResponseInterceptors(getCurrentInstance());\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 /**\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 return Promise.reject();\n }\n\n const $toast = vm?.appContext.config.globalProperties.$toast;\n if ($toast) {\n const message = error.response?.data?.error?.message;\n $toast.error({\n title: 'Error',\n message: message ?? 'Unexpected Error!',\n });\n }\n return Promise.reject(error);\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","\n\n\n\n\n\n","import { render } from \"./Notice.vue?vue&type=template&id=52344ae6&scoped=true\"\nimport script from \"./Notice.vue?vue&type=script&lang=js\"\nexport * from \"./Notice.vue?vue&type=script&lang=js\"\n\nimport \"./Notice.vue?vue&type=style&index=0&id=52344ae6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-52344ae6\"]])\n\nexport default __exports__","import { render } from \"./DatabaseInfoScreen.vue?vue&type=template&id=1a13fdc2&scoped=true\"\nimport script from \"./DatabaseInfoScreen.vue?vue&type=script&lang=js\"\nexport * from \"./DatabaseInfoScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=1a13fdc2&lang=scss&scoped=true\"\nimport \"./DatabaseInfoScreen.vue?vue&type=style&index=1&id=1a13fdc2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1a13fdc2\"]])\n\nexport default __exports__","\n\n\n\n","\n\n\n\n\n","import { render } from \"./FlexTable.vue?vue&type=template&id=4d11017b&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=4d11017b&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4d11017b\"]])\n\nexport default __exports__","import { render } from \"./SystemCheckScreen.vue?vue&type=template&id=81d60558&scoped=true\"\nimport script from \"./SystemCheckScreen.vue?vue&type=script&lang=js\"\nexport * from \"./SystemCheckScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=81d60558&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-81d60558\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n","import { render } from \"./VersionDropdown.vue?vue&type=template&id=153eb26c\"\nimport script from \"./VersionDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./VersionDropdown.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./CurrentVersionScreen.vue?vue&type=template&id=ca27e1a8&scoped=true\"\nimport script from \"./CurrentVersionScreen.vue?vue&type=script&lang=js\"\nexport * from \"./CurrentVersionScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=ca27e1a8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ca27e1a8\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./UpgraderCompleteScreen.vue?vue&type=template&id=375f2eba&scoped=true\"\nimport script from \"./UpgraderCompleteScreen.vue?vue&type=script&lang=js\"\nexport * from \"./UpgraderCompleteScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=375f2eba&lang=scss&scoped=true\"\nimport \"./UpgraderCompleteScreen.vue?vue&type=style&index=1&id=375f2eba&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-375f2eba\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./InstallerTasks.vue?vue&type=template&id=2d9c1a11&scoped=true\"\nimport script from \"./InstallerTasks.vue?vue&type=script&lang=js\"\nexport * from \"./InstallerTasks.vue?vue&type=script&lang=js\"\n\nimport \"./InstallerTasks.vue?vue&type=style&index=0&id=2d9c1a11&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2d9c1a11\"]])\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 {onMounted, onUnmounted, Ref} from 'vue';\n\nexport default function useBeforeUnload(override: Ref) {\n let registered = false;\n const triggerUnload = (event: Event) => {\n if (!override.value) {\n event.preventDefault();\n event.returnValue = true;\n return event;\n }\n };\n\n const registerUnloadEvent = () => {\n !registered && window.addEventListener('beforeunload', triggerUnload);\n registered = true;\n };\n\n onMounted(() => {\n window.addEventListener('mousemove', registerUnloadEvent);\n });\n\n onUnmounted(() => {\n window.removeEventListener('mousemove', registerUnloadEvent);\n window.removeEventListener('beforeunload', triggerUnload);\n });\n\n return {triggerUnload};\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';\nimport {AxiosResponse} from 'axios';\n\nexport default function useUpgrader(http: APIService) {\n const getVersionList = (\n excludeLatest = true,\n ): Promise> => {\n return http.request({\n method: 'GET',\n url: 'upgrader/api/versions',\n params: {excludeLatest},\n });\n };\n\n const getCurrentVersion = (): Promise<\n AxiosResponse<{version: string} | null>\n > => {\n return http.request({\n method: 'GET',\n url: 'upgrader/api/current-version',\n });\n };\n\n const createConfigFiles = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'upgrader/api/config-file',\n });\n };\n\n const migrateToVersion = (fromVersion: string | null, toVersion: string) => {\n let payload;\n if (fromVersion) {\n payload = {\n fromVersion,\n toVersion,\n };\n } else {\n payload = {\n version: toVersion,\n };\n }\n return http.request({\n method: 'POST',\n url: 'upgrader/api/migration',\n data: payload,\n });\n };\n\n function* versionGenerator(\n versions: string[],\n currentVersion: string | null,\n ) {\n let index = versions.findIndex((_version) => _version === currentVersion);\n if (index === -1) return null;\n while (versions[index + 1]) {\n yield versions[index + 1];\n index++;\n }\n }\n\n const runAllMigrations = async () => {\n let versions = [];\n let currentVersion = null;\n const getVersions = Promise.all([\n getVersionList(false),\n getCurrentVersion(),\n ]);\n const [versionResponse, currentVersionResponse] = await getVersions;\n versions = [...versionResponse.data];\n currentVersion = currentVersionResponse.data?.version;\n if (!currentVersion) throw new Error('version not detected');\n for (const nextVersion of versionGenerator(versions, currentVersion)) {\n await migrateToVersion(null, nextVersion);\n }\n };\n\n const preMigrationCheck = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'upgrader/api/installation/pre-migration',\n });\n };\n\n return {\n getVersionList,\n getCurrentVersion,\n migrateToVersion,\n runAllMigrations,\n createConfigFiles,\n versionGenerator,\n preMigrationCheck,\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';\n\nexport default function useProgress() {\n let time = 0;\n let working = true;\n let generator: Generator;\n const frequency = 100;\n const progress = ref(0);\n\n function* exponentGenerator() {\n const _progress = 0;\n while (_progress < 1) {\n // simplified implementation from https://github.com/piercus/fake-progress\n yield 1 - Math.exp((-1 * time) / 1000);\n time += frequency;\n }\n }\n\n const increment = () => {\n setTimeout(() => {\n if (progress.value === 100 || !working) return;\n progress.value = generator.next().value * 100;\n increment();\n }, frequency + Math.random() * 500);\n };\n\n const start = () => {\n time = 0;\n working = true;\n progress.value = 0;\n generator = exponentGenerator();\n increment();\n };\n\n const end = () => {\n progress.value = 100;\n };\n\n const stop = () => {\n working = false;\n };\n\n return {\n end,\n stop,\n start,\n progress,\n };\n}\n","import { render } from \"./UpgradeScreen.vue?vue&type=template&id=fe668f50&scoped=true\"\nimport script from \"./UpgradeScreen.vue?vue&type=script&lang=js\"\nexport * from \"./UpgradeScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=fe668f50&lang=scss&scoped=true\"\nimport \"./UpgradeScreen.vue?vue&type=style&index=1&id=fe668f50&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fe668f50\"]])\n\nexport default __exports__","\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 {Directive, DirectiveBinding, h, render} from 'vue';\nimport Icon from '@ohrm/oxd/core/components/Icon/Icon.vue';\n\nconst tooltipDirective: Directive = {\n beforeMount(el: HTMLElement, binding: DirectiveBinding) {\n if (!el || el.children.length === 0) return;\n const {value} = binding;\n const node = h(Icon, {\n name: 'info-circle-fill',\n title: value,\n style: {\n marginLeft: 'auto',\n cursor: 'pointer',\n },\n });\n render(node, el.children[0]);\n },\n};\nexport default tooltipDirective;\n","import { render } from \"./DatabaseConfigScreen.vue?vue&type=template&id=4f8870ea&scoped=true\"\nimport script from \"./DatabaseConfigScreen.vue?vue&type=script&lang=js\"\nexport * from \"./DatabaseConfigScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=4f8870ea&lang=scss&scoped=true\"\nimport \"./DatabaseConfigScreen.vue?vue&type=style&index=1&id=4f8870ea&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4f8870ea\"]])\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\nexport function getPassLevel(password: string): number[] {\n const level1 = new RegExp(/[a-z]/);\n const level2 = new RegExp(/[A-Z]/);\n const level3 = new RegExp(/[0-9]/);\n const level4 = new RegExp(/[@#\\\\/\\-!$%^&*()_+|~=`{}[\\]:\";'<>?,.]/);\n return [level1, level2, level3, level4].map((level) => {\n return level.test(password) ? 1 : 0;\n });\n}\n\nexport function checkPassword(password: string): string | boolean {\n if (password.length >= 8) {\n const pwdLevel = getPassLevel(password);\n if (RegExp(/\\s/).test(password)) {\n return '密码不能包含有空格.';\n }\n if (pwdLevel.reduce((acc, curr) => acc + curr, 0) < 4) {\n return '密码必须包含有大小写的组合,至少还要有一个特殊字符';\n } else {\n return true;\n }\n } else {\n return '至少要有8个字符';\n }\n}\n","import { render } from \"./AdminUserCreationScreen.vue?vue&type=template&id=4159f1d8&scoped=true\"\nimport script from \"./AdminUserCreationScreen.vue?vue&type=script&lang=js\"\nexport * from \"./AdminUserCreationScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=4159f1d8&lang=scss&scoped=true\"\nimport \"./AdminUserCreationScreen.vue?vue&type=style&index=1&id=4159f1d8&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4159f1d8\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n","import { render } from \"./GNULicence.vue?vue&type=template&id=0d08c515\"\nimport script from \"./GNULicence.vue?vue&type=script&lang=js\"\nexport * from \"./GNULicence.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./LicenceAcceptanceScreen.vue?vue&type=template&id=bb67a12c&scoped=true\"\nimport script from \"./LicenceAcceptanceScreen.vue?vue&type=script&lang=js\"\nexport * from \"./LicenceAcceptanceScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=bb67a12c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-bb67a12c\"]])\n\nexport default __exports__","\n\n\n\n\n\n","import { render } from \"./InstanceCreationScreen.vue?vue&type=template&id=5c19fe96&scoped=true\"\nimport script from \"./InstanceCreationScreen.vue?vue&type=script&lang=js\"\nexport * from \"./InstanceCreationScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=5c19fe96&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5c19fe96\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./ConfirmationScreen.vue?vue&type=template&id=e34b6520&scoped=true\"\nimport script from \"./ConfirmationScreen.vue?vue&type=script&lang=js\"\nexport * from \"./ConfirmationScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=e34b6520&lang=scss&scoped=true\"\nimport \"./ConfirmationScreen.vue?vue&type=style&index=1&id=e34b6520&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e34b6520\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./InstallerCompleteScreen.vue?vue&type=template&id=0ba11067&scoped=true\"\nimport script from \"./InstallerCompleteScreen.vue?vue&type=script&lang=js\"\nexport * from \"./InstallerCompleteScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=0ba11067&lang=scss&scoped=true\"\nimport \"./InstallerCompleteScreen.vue?vue&type=style&index=1&id=0ba11067&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0ba11067\"]])\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 {APIService} from '@/core/util/services/api.service';\nimport {AxiosResponse} from 'axios';\n\nexport default function useDiagnostics(http: APIService) {\n const notifyInstallerStart = (): Promise => {\n return http.request({\n method: 'POST',\n url: '/installer/api/send-data/installer-start',\n });\n };\n\n const notifyUpgraderStart = (): Promise => {\n return http.request({\n method: 'POST',\n url: '/installer/api/send-data/upgrader-start',\n });\n };\n\n return {\n notifyUpgraderStart,\n notifyInstallerStart,\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 {APIService} from '@/core/util/services/api.service';\nimport {AxiosResponse} from 'axios';\nimport useUpgrader from './useUpgrader';\nimport useDiagnostics from './useDiagnostics';\n\nexport default function useInstaller(http: APIService) {\n const {versionGenerator} = useUpgrader(http);\n const {notifyInstallerStart} = useDiagnostics(http);\n\n const getVersionList = (\n excludeLatest = false,\n ): Promise> => {\n return http.request({\n method: 'GET',\n url: 'installer/api/versions',\n params: {excludeLatest},\n });\n };\n\n const createDatabase = (): Promise => {\n return Promise.all([\n notifyInstallerStart(),\n http.request({\n method: 'POST',\n url: '/installer/api/installation/database',\n }),\n ]);\n };\n\n const createDatabaseUser = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/installation/database-user',\n });\n };\n\n const preMigrationCheck = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/installation/pre-migration',\n });\n };\n\n const runMigrations = async (): Promise => {\n const doMigration = (version: string): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/installation/migration',\n data: {\n version,\n },\n });\n };\n\n const versionResponse = await getVersionList();\n const versions = ['0.0', ...versionResponse.data];\n const currentVersion = Array.isArray(versions) ? versions[0] : null;\n if (!currentVersion) throw new Error('version not detected');\n for (const nextVersion of versionGenerator(versions, currentVersion)) {\n await doMigration(nextVersion);\n }\n };\n\n const createInstance = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/installation/instance',\n });\n };\n\n const createConfigFiles = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/installation/config-file',\n });\n };\n\n const runCleanup = (): Promise => {\n return http.request({\n method: 'POST',\n url: 'installer/api/clean-up-install',\n });\n };\n\n return {\n runCleanup,\n runMigrations,\n createInstance,\n createDatabase,\n createConfigFiles,\n createDatabaseUser,\n preMigrationCheck,\n };\n}\n","import { render } from \"./InstallScreen.vue?vue&type=template&id=2e98947a&scoped=true\"\nimport script from \"./InstallScreen.vue?vue&type=script&lang=js\"\nexport * from \"./InstallScreen.vue?vue&type=script&lang=js\"\n\nimport \"./installer-page.scss?vue&type=style&index=0&id=2e98947a&lang=scss&scoped=true\"\nimport \"./InstallScreen.vue?vue&type=style&index=1&id=2e98947a&scoped=true&lang=scss\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2e98947a\"]])\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 WelcomeScreen from '@/pages/WelcomeScreen.vue';\nimport DatabaseInfoScreen from '@/pages/DatabaseInfoScreen.vue';\nimport SystemCheckScreen from '@/pages/SystemCheckScreen.vue';\nimport CurrentVersionScreen from '@/pages/CurrentVersionScreen.vue';\nimport UpgraderCompleteScreen from '@/pages/UpgraderCompleteScreen.vue';\nimport UpgradeScreen from '@/pages/UpgradeScreen.vue';\nimport DatabaseConfigScreen from '@/pages/DatabaseConfigScreen.vue';\nimport AdminUserCreationScreen from '@/pages/AdminUserCreationScreen.vue';\nimport LicenceAcceptanceScreen from '@/pages/LicenceAcceptanceScreen.vue';\nimport InstanceCreationScreen from '@/pages/InstanceCreationScreen.vue';\nimport ConfirmationScreen from '@/pages/ConfirmationScreen.vue';\nimport InstallerCompleteScreen from '@/pages/InstallerCompleteScreen.vue';\nimport InstallScreen from '@/pages/InstallScreen.vue';\n\nexport default {\n 'welcome-screen': WelcomeScreen,\n 'database-info-screen': DatabaseInfoScreen,\n 'system-check-screen': SystemCheckScreen,\n 'current-version-screen': CurrentVersionScreen,\n 'upgrader-complete-screen': UpgraderCompleteScreen,\n 'upgrade-process-screen': UpgradeScreen,\n 'database-config-screen': DatabaseConfigScreen,\n 'admin-user-creation-screen': AdminUserCreationScreen,\n 'licence-acceptance-screen': LicenceAcceptanceScreen,\n 'instance-creation-screen': InstanceCreationScreen,\n 'confirmation-screen': ConfirmationScreen,\n 'installer-complete-screen': InstallerCompleteScreen,\n 'install-process-screen': InstallScreen,\n};\n","\n\n\n\n\n\n","\n\n\n\n\n\n","import { render } from \"./InstallerSteps.vue?vue&type=template&id=3a7a11f2&scoped=true\"\nimport script from \"./InstallerSteps.vue?vue&type=script&lang=js\"\nexport * from \"./InstallerSteps.vue?vue&type=script&lang=js\"\n\nimport \"./installer-steps.scss?vue&type=style&index=0&id=3a7a11f2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3a7a11f2\"]])\n\nexport default __exports__","import { render } from \"./InstallerLayout.vue?vue&type=template&id=15c09d5a&scoped=true\"\nimport script from \"./InstallerLayout.vue?vue&type=script&lang=js\"\nexport * from \"./InstallerLayout.vue?vue&type=script&lang=js\"\n\nimport \"./installer-layout.scss?vue&type=style&index=0&id=15c09d5a&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-15c09d5a\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n","import { render } from \"./RequiredText.vue?vue&type=template&id=2c9af954&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=2c9af954&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/zhongjin/YBY/jwht-hrm-5.4/installer/client/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2c9af954\"]])\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 Form from '@ohrm/oxd/core/components/Form/Form.vue';\nimport FormRow from '@ohrm/oxd/core/components/Form/FormRow.vue';\nimport FormActions from '@ohrm/oxd/core/components/Form/FormActions.vue';\nimport InputField from '@ohrm/oxd/core/components/InputField/InputField.vue';\nimport InputGroup from '@ohrm/oxd/core/components/InputField/InputGroup.vue';\nimport Grid from '@ohrm/oxd/core/components/Grid/Grid.vue';\nimport GridItem from '@ohrm/oxd/core/components/Grid/GridItem.vue';\nimport Text from '@ohrm/oxd/core/components/Text/Text.vue';\nimport Button from '@ohrm/oxd/core/components/Button/Button.vue';\nimport Divider from '@ohrm/oxd/core/components/Divider/Divider.vue';\nimport InstallerLayout from '@/components/InstallerLayout.vue';\nimport RequiredText from '@/components/RequiredText.vue';\nexport default {\n install: (app: App) => {\n app.component('RequiredText', RequiredText);\n app.component('OxdDivider', Divider);\n app.component('OxdForm', Form);\n app.component('OxdFormRow', FormRow);\n app.component('OxdFormActions', FormActions);\n app.component('OxdInputField', InputField);\n app.component('OxdInputGroup', InputGroup);\n app.component('OxdGrid', Grid);\n app.component('OxdGridItem', GridItem);\n app.component('InstallerLayout', InstallerLayout);\n app.component('OxdText', Text);\n app.component('OxdButton', Button);\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 Pages from '@/pages';\nimport Components from '@/components';\n\nconst app = createApp({\n name: 'App',\n components: Pages,\n});\n\napp.use(Components);\n\napp.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](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};","// 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__.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); }","// 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};","// 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// no chunk on demand loading\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_installer\"] = self[\"webpackChunkorangehrm_installer\"] || [];\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__(2825); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_createElementVNode","_createVNode","_component_oxd_form","class","onSubmit","$options","_component_oxd_text","tag","$props","_hoisted_1","_hoisted_2","_hoisted_3","_component_oxd_form_row","_component_oxd_radio_input","$data","value","_component_oxd_form_actions","_component_oxd_button","label","type","_createBlock","_component_database_config_dialog","onCloseModel","prepare","endpoint","params","query","preparedEndpoint","JSON","parse","stringify","Object","keys","forEach","param","paramPlaceholder","includes","paramValue","toString","replace","console","error","preparedQueryString","queryKeys","queryKey","index","queryValue","Array","isArray","queryValueItem","itemIndex","encodeURI","length","urlFor","window","appGlobal","baseUrl","navigate","path","location","href","_component_oxd_dialog","style","width","maxWidth","_component_oxd_divider","_component_oxd_classic_table","headers","items","_component_oxd_check_box","onClick","disabled","name","components","DialogWithClose","CheckBoxInput","ClassicTable","emits","data","checked","title","feat","addon","other","methods","submitInfo","this","$emit","cancelInstallation","__exports__","RadioInput","DatabaseConfigDialog","props","productversion","String","required","selected","showModal","toggleModal","closeModel","isAccept","render","loading","onSubmitValid","_component_Notice","_hoisted_4","_component_oxd_grid","cols","_component_oxd_grid_item","_component_oxd_input_field","dbHost","rules","dbPort","dbName","dbUser","dbPassword","_hoisted_6","_component_required_text","trim","Number","isNaN","shouldNotExceedCharLength","charLength","validRange","rangeFrom","rangeTo","test","parseFloat","parseInt","validEmailFormat","validPhoneNumberFormat","shouldNotLessThanCharLength","shouldNotContainSpecialChars","message","resolvedMessage","APIService","constructor","_baseUrl","_apiSection","_http","axios","baseURL","setupResponseInterceptors","getCurrentInstance","getAll","Accept","get","id","create","post","update","put","delete","deleteAll","request","options","url","vm","interceptors","response","use","status","Promise","reject","$toast","appContext","config","globalProperties","http","apiSection","_component_oxd_sheet","_renderSlot","_ctx","Sheet","Text","Notice","setup","isLoading","database","errorMessage","beforeMount","then","catch","navigateUrl","_createElementBlock","_Fragment","item","_component_flex_table","key","category","checks","titleName","default","getClass","FlexTable","installer","Boolean","isInterrupted","fetchData","meta","finally","goToScreen","reCheck","_component_version_dropdown","version","$setup","ref","onBeforeMount","map","VersionDropdown","method","onClickBack","currentVersion","launch","_component_installer_tasks","tasks","_hoisted_5","_component_oxd_progress","progress","task","state","_component_oxd_loading_spinner","_component_oxd_icon","Icon","Spinner","useBeforeUnload","override","registered","triggerUnload","event","preventDefault","returnValue","registerUnloadEvent","addEventListener","onMounted","onUnmounted","removeEventListener","useUpgrader","getVersionList","excludeLatest","getCurrentVersion","createConfigFiles","migrateToVersion","fromVersion","toVersion","payload","versionGenerator","versions","findIndex","_version","runAllMigrations","async","getVersions","all","versionResponse","currentVersionResponse","Error","nextVersion","preMigrationCheck","useProgress","generator","time","working","frequency","exponentGenerator","_progress","Math","exp","increment","setTimeout","next","random","start","end","stop","ProgressBar","InstallerTasks","errorText","onClickNext","progressText","computed","floor","taskFailed","progressNotice","progressType","overrideUnload","dbType","useSameDbUserForOrangeHRM","ohrmDbUser","ohrmDbPassword","enableDataEncryption","tooltipDirective","el","binding","children","node","h","marginLeft","cursor","directives","tooltip","disableOHRMDBfield","isNewDB","undefined","firstName","placeholder","email","contact","username","password","confirmPassword","passwordConfirm","getPassLevel","level1","RegExp","level2","level3","level4","level","checkPassword","pwdLevel","reduce","acc","curr","adminUser","lastName","registrationConsent","v","_component_gnu_licence","_component_oxd_textarea","rows","Textarea","GNULicence","userConsent","organizationName","countryCode","langCode","timezone","instance","countryList","languageList","timezoneList","sort","a","b","_hoisted_7","_hoisted_9","_hoisted_10","databaseModel","adminUserName","useDiagnostics","notifyInstallerStart","notifyUpgraderStart","useInstaller","createDatabase","createDatabaseUser","runMigrations","doMigration","createInstance","runCleanup","onClickCleanup","WelcomeScreen","DatabaseInfoScreen","SystemCheckScreen","CurrentVersionScreen","UpgraderCompleteScreen","UpgradeScreen","DatabaseConfigScreen","AdminUserCreationScreen","LicenceAcceptanceScreen","InstanceCreationScreen","ConfirmationScreen","InstallerCompleteScreen","InstallScreen","target","_component_installer_steps","steps","src","alt","_hoisted_8","step","currentStep","InstallerSteps","brandingSrc","publicPath","install","app","component","RequiredText","Divider","Form","FormRow","FormActions","InputField","InputGroup","Grid","GridItem","InstallerLayout","Button","createApp","Pages","Components","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","every","splice","r","d","definition","o","defineProperty","enumerable","g","globalThis","Function","e","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file