@opengis/surveyor 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -3
- package/README.npm.md +51 -0
- package/dist/chunks/AppIcon-C-4QykTP.js +85 -0
- package/dist/chunks/AppealDetailField-DNRGpnyD.js +58 -0
- package/dist/chunks/AppealStatusBadge-CefimzY3.js +132 -0
- package/dist/chunks/AppealStatusBadge-Cu-UzdzA.js +171 -0
- package/dist/chunks/ApplicationHistorySection-PwToBfej.js +769 -0
- package/dist/chunks/BaseModal-DrTTkLmR.js +85 -0
- package/dist/chunks/FormFilePicker-CKVdZJU9.js +76 -0
- package/dist/chunks/MapLayerMenu-AUeTqgEp.js +145 -0
- package/dist/chunks/RegistryForm-pvIcFR-V.js +99 -0
- package/dist/chunks/RegistryFormModal-BjGu7Upv.js +85 -0
- package/dist/chunks/RegistryToolbar-CiUgsjpU.js +452 -0
- package/dist/chunks/UserAccessBadge-DyZDv7Oo.js +44 -0
- package/dist/chunks/UserTypeBadge-LvnMuKGo.js +188 -0
- package/dist/chunks/VerifiedBadge-B6droMOf.js +34 -0
- package/dist/chunks/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/chunks/account-types-Br7gx_D_.js +35 -0
- package/dist/chunks/account_types-DLL1w122.js +25 -0
- package/dist/chunks/appealMapLayers-CQMK3rrz.js +115 -0
- package/dist/chunks/application_status-BhNGiY2I.js +45 -0
- package/dist/chunks/applications-CsCsndMV.js +132 -0
- package/dist/chunks/buildSchema-nkA4Y0YG.js +37 -0
- package/dist/chunks/card--DHsMNBd.js +330 -0
- package/dist/chunks/card-9LaB42Ol.js +538 -0
- package/dist/chunks/card-BZn5CDw9.js +739 -0
- package/dist/chunks/card-CNqXSyqX.js +297 -0
- package/dist/chunks/card-CgGOgGyd.js +973 -0
- package/dist/chunks/card-DCyBFoDZ.js +607 -0
- package/dist/chunks/certificates-DueBDDvc.js +424 -0
- package/dist/chunks/create-l28e-bWl.js +1033 -0
- package/dist/chunks/filterQuery-B9XNx1f1.js +99 -0
- package/dist/chunks/form-CdGS1nVO.js +315 -0
- package/dist/chunks/form-QTkkzwbC.js +89 -0
- package/dist/chunks/geometry-DyhIVRcw.js +67 -0
- package/dist/chunks/map-BW3iOhQg.js +2763 -0
- package/dist/chunks/map-layers-qxWjos2V.js +400 -0
- package/dist/chunks/mapLayersApi-CWoQ2be-.js +251 -0
- package/dist/chunks/organizations-BtuMZ5s_.js +14 -0
- package/dist/chunks/organizations-CZOINYMq.js +476 -0
- package/dist/chunks/profile-CuxlkEev.js +243 -0
- package/dist/chunks/profile-DxZHxGum.js +164 -0
- package/dist/chunks/requests-Bt8fEdRc.js +530 -0
- package/dist/chunks/requests-DQJIhz00.js +232 -0
- package/dist/chunks/resendSurveyorRegistration-DopjOHaM.js +27 -0
- package/dist/chunks/resources-Cl_EvaIy.js +129 -0
- package/dist/chunks/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/chunks/surveyorAccount-BceNQypZ.js +78 -0
- package/dist/chunks/users-DlaogjC_.js +291 -0
- package/dist/chunks/work_types-Hwme-FEX.js +34 -0
- package/dist/index.css +3 -0
- package/dist/index.js +259 -0
- package/migrations/20260924120000_surveyor_schema.sql +450 -0
- package/migrations/20261008170000_address_lookup.sql +20 -0
- package/migrations/20261016120000_map_layers.sql +156 -0
- package/migrations/20261016150000_password_reset.sql +15 -0
- package/migrations/20261016170000_address_lookup_format.sql +37 -0
- package/migrations/20261016180000_settlement_lookup.sql +16 -0
- package/migrations/20261019170000_actor_lookup.sql +15 -0
- package/package.json +75 -4
- package/plugin.js +10 -0
- package/server/app.ts +50 -0
- package/server/dictionaries/index.ts +17 -0
- package/server/dictionaries/surveyor/account_types.ts +12 -0
- package/server/dictionaries/surveyor/application_status.ts +16 -0
- package/server/dictionaries/surveyor/map_layer_components.ts +11 -0
- package/server/dictionaries/surveyor/map_layer_groups.ts +10 -0
- package/server/dictionaries/surveyor/map_layer_types.ts +11 -0
- package/server/dictionaries/surveyor/work_types.ts +15 -0
- package/server/dictionaries/surveyor/yes_no.ts +11 -0
- package/server/embed.ts +49 -0
- package/server/fastify.d.ts +12 -0
- package/server/index.ts +23 -0
- package/server/modules/surveyor/route.ts +410 -0
- package/server/modules/surveyor/schema.ts +439 -0
- package/server/modules/surveyor/services/applicationTile.ts +53 -0
- package/server/modules/surveyor/services/cancelApplication.ts +74 -0
- package/server/modules/surveyor/services/changeSurveyorPassword.ts +52 -0
- package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -0
- package/server/modules/surveyor/services/completeApplication.ts +46 -0
- package/server/modules/surveyor/services/completeSurveyorRegistration.ts +48 -0
- package/server/modules/surveyor/services/createApplication.ts +169 -0
- package/server/modules/surveyor/services/geometryExport.ts +34 -0
- package/server/modules/surveyor/services/geometryImport.ts +66 -0
- package/server/modules/surveyor/services/getSurveyorUser.ts +56 -0
- package/server/modules/surveyor/services/identifyApplications.ts +82 -0
- package/server/modules/surveyor/services/issueSourceData.ts +55 -0
- package/server/modules/surveyor/services/loginSurveyor.ts +67 -0
- package/server/modules/surveyor/services/mapLayers.ts +61 -0
- package/server/modules/surveyor/services/rasterExport.ts +15 -0
- package/server/modules/surveyor/services/registerSurveyor.ts +161 -0
- package/server/modules/surveyor/services/requestPasswordReset.ts +49 -0
- package/server/modules/surveyor/services/resendRegistration.ts +42 -0
- package/server/modules/surveyor/services/resetSurveyorPassword.ts +53 -0
- package/server/modules/surveyor/services/searchApplications.ts +63 -0
- package/server/modules/surveyor/services/submitSurvey.ts +70 -0
- package/server/modules/surveyor/services/updateSurveyorAccountStatus.ts +52 -0
- package/server/modules/surveyor/services/updateSurveyorStatus.ts +53 -0
- package/server/modules/surveyor/services/vectorExport.ts +86 -0
- package/server/modules/surveyor/services/verifyApplication.ts +59 -0
- package/server/modules/surveyor/utils/accessibleApplication.ts +37 -0
- package/server/modules/surveyor/utils/application.ts +68 -0
- package/server/modules/surveyor/utils/export.ts +39 -0
- package/server/modules/surveyor/utils/firstBoundary.ts +48 -0
- package/server/modules/surveyor/utils/mail.ts +161 -0
- package/server/modules/surveyor/utils/permissions.ts +29 -0
- package/server/modules/surveyor/utils/registration.ts +33 -0
- package/server/modules/surveyor/utils/shared.ts +305 -0
- package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -0
- package/server/modules/surveyor/utils/templates/ds.surveyor_password_reset.pt.hbs +79 -0
- package/server/modules/surveyor/utils/templates/ds.surveyor_registration.pt.hbs +80 -0
- package/server/modules/surveyor/utils/templates/ds.surveyor_send_mail.pt.hbs +79 -0
- package/server/modules/surveyor/utils/vectorLayer.ts +41 -0
- package/server/plugins/convertVector.ts +74 -0
- package/server/plugins/proto/convertVector.proto +21 -0
- package/server/plugins/swagger.ts +54 -0
- package/server/plugins/vite.dev.ts +52 -0
- package/server/plugins/vite.prod.ts +55 -0
- package/server/resources/helpers/actor_lookup.ts +5 -0
- package/server/resources/helpers/address_lookup.ts +8 -0
- package/server/resources/helpers/settlement_lookup.ts +7 -0
- package/server/resources/helpers/user_lookup.ts +5 -0
- package/server/resources/index.ts +30 -0
- package/server/resources/surveyor-admin/application_comments.ts +24 -0
- package/server/resources/surveyor-admin/application_status_history.ts +46 -0
- package/server/resources/surveyor-admin/applications.ts +125 -0
- package/server/resources/surveyor-admin/certificates.ts +87 -0
- package/server/resources/surveyor-admin/map_layers.ts +69 -0
- package/server/resources/surveyor-admin/organization_surveyors.ts +32 -0
- package/server/resources/surveyor-admin/organizations.ts +61 -0
- package/server/resources/surveyor-admin/surveyors.ts +71 -0
- package/server/resources/surveyor-user/application_status_history.ts +52 -0
- package/server/resources/surveyor-user/applications.ts +131 -0
- package/server/resources/surveyor-user/certificates.ts +67 -0
- package/server/resources/surveyor-user/organizations.ts +40 -0
- package/server/resources/surveyor-user/surveyors.ts +69 -0
- package/server/tsconfig.json +3 -0
- package/surveyor-types.d.ts +30 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { i as t, n, o as r, t as i } from "./profile-DxZHxGum.js";
|
|
3
|
+
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, vModelDynamic as y, withDirectives as b } from "vue";
|
|
4
|
+
//#region cabinet/src/pages/profile/components/PasswordModal.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var x = 8, ee = /*@__PURE__*/ p({
|
|
6
|
+
__name: "PasswordModal",
|
|
7
|
+
emits: ["close"],
|
|
8
|
+
setup(e, { expose: n, emit: a }) {
|
|
9
|
+
n();
|
|
10
|
+
let s = a, c = g(""), l = g(""), u = g(!1), d = g(!1), f = g(!1), p = g(!1), m = g(""), h = o(() => c.value.length > 0 && l.value.length > 0 && c.value !== l.value), _ = o(() => c.value.length > 0 && c.value.length < x), v = o(() => !f.value && !p.value && c.value.length >= x && c.value === l.value && !!i.uid);
|
|
11
|
+
async function y() {
|
|
12
|
+
if (v.value) {
|
|
13
|
+
m.value = "", f.value = !0;
|
|
14
|
+
try {
|
|
15
|
+
await t({
|
|
16
|
+
surveyorId: i.uid,
|
|
17
|
+
password: c.value,
|
|
18
|
+
passwordConfirmation: l.value
|
|
19
|
+
}), p.value = !0, window.setTimeout(() => s("close"), 1200);
|
|
20
|
+
} catch (e) {
|
|
21
|
+
m.value = e instanceof Error ? e.message : "Не вдалося змінити пароль";
|
|
22
|
+
} finally {
|
|
23
|
+
f.value = !1;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
let b = {
|
|
28
|
+
emit: s,
|
|
29
|
+
MIN_PASSWORD_LENGTH: x,
|
|
30
|
+
next: c,
|
|
31
|
+
confirm: l,
|
|
32
|
+
showNext: u,
|
|
33
|
+
showConfirm: d,
|
|
34
|
+
submitting: f,
|
|
35
|
+
saved: p,
|
|
36
|
+
error: m,
|
|
37
|
+
mismatch: h,
|
|
38
|
+
weak: _,
|
|
39
|
+
canSave: v,
|
|
40
|
+
save: y,
|
|
41
|
+
AppIcon: r
|
|
42
|
+
};
|
|
43
|
+
return Object.defineProperty(b, "__isScriptSetup", {
|
|
44
|
+
enumerable: !1,
|
|
45
|
+
value: !0
|
|
46
|
+
}), b;
|
|
47
|
+
}
|
|
48
|
+
}), S = { class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4 backdrop-blur-sm" }, C = { class: "w-full max-w-md overflow-hidden rounded-2xl bg-white shadow-2xl" }, w = { class: "flex items-center justify-between border-b border-gray-100 px-6 py-5" }, T = { class: "flex items-center gap-3" }, E = { class: "flex h-9 w-9 items-center justify-center rounded-xl bg-[#EFF4FE]" }, D = { class: "space-y-4 px-6 py-5" }, O = { class: "relative" }, k = ["type"], A = {
|
|
49
|
+
key: 0,
|
|
50
|
+
class: "mt-1 text-xs text-red-500"
|
|
51
|
+
}, j = { class: "relative" }, M = ["type"], N = {
|
|
52
|
+
key: 0,
|
|
53
|
+
class: "mt-1 text-xs text-red-500"
|
|
54
|
+
}, P = {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: "text-sm text-red-500"
|
|
57
|
+
}, F = { class: "flex items-center justify-end gap-3 px-6 pb-6" }, I = ["disabled"];
|
|
58
|
+
function L(e, t, n, r, i, a) {
|
|
59
|
+
return h(), l("div", S, [u("div", C, [
|
|
60
|
+
u("div", w, [u("div", T, [u("div", E, [f(r.AppIcon, {
|
|
61
|
+
name: "lock",
|
|
62
|
+
class: "h-[17px] w-[17px] text-[#2663EB]"
|
|
63
|
+
})]), t[6] ||= u("h2", { class: "text-base font-semibold text-gray-900" }, "Змінити пароль", -1)]), u("button", {
|
|
64
|
+
type: "button",
|
|
65
|
+
class: "rounded-lg p-1.5 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600",
|
|
66
|
+
"aria-label": "Закрити",
|
|
67
|
+
onClick: t[0] ||= (e) => r.emit("close")
|
|
68
|
+
}, [f(r.AppIcon, {
|
|
69
|
+
name: "x",
|
|
70
|
+
class: "h-[17px] w-[17px]"
|
|
71
|
+
})])]),
|
|
72
|
+
u("div", D, [
|
|
73
|
+
u("div", null, [
|
|
74
|
+
t[7] ||= u("label", { class: "mb-1.5 block text-xs font-medium text-gray-500" }, "Новий пароль", -1),
|
|
75
|
+
u("div", O, [b(u("input", {
|
|
76
|
+
"onUpdate:modelValue": t[1] ||= (e) => r.next = e,
|
|
77
|
+
type: r.showNext ? "text" : "password",
|
|
78
|
+
autocomplete: "new-password",
|
|
79
|
+
class: m(["w-full rounded-lg border py-2.5 pl-3.5 pr-10 text-sm outline-none transition-colors focus:ring-2", r.weak ? "border-red-300 focus:border-red-400 focus:ring-red-100" : "border-gray-200 focus:border-[#2663EB] focus:ring-[#2663EB]/15"])
|
|
80
|
+
}, null, 10, k), [[y, r.next]]), u("button", {
|
|
81
|
+
type: "button",
|
|
82
|
+
class: "absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 transition-colors hover:text-gray-600",
|
|
83
|
+
onClick: t[2] ||= (e) => r.showNext = !r.showNext
|
|
84
|
+
}, [f(r.AppIcon, {
|
|
85
|
+
name: r.showNext ? "eye-off" : "eye",
|
|
86
|
+
class: "h-[15px] w-[15px]"
|
|
87
|
+
}, null, 8, ["name"])])]),
|
|
88
|
+
r.weak ? (h(), l("p", A, "Мінімум " + v(r.MIN_PASSWORD_LENGTH) + " символів")) : c("", !0)
|
|
89
|
+
]),
|
|
90
|
+
u("div", null, [
|
|
91
|
+
t[8] ||= u("label", { class: "mb-1.5 block text-xs font-medium text-gray-500" }, "Підтвердження нового пароля", -1),
|
|
92
|
+
u("div", j, [b(u("input", {
|
|
93
|
+
"onUpdate:modelValue": t[3] ||= (e) => r.confirm = e,
|
|
94
|
+
type: r.showConfirm ? "text" : "password",
|
|
95
|
+
autocomplete: "new-password",
|
|
96
|
+
class: m(["w-full rounded-lg border py-2.5 pl-3.5 pr-10 text-sm outline-none transition-colors focus:ring-2", r.mismatch ? "border-red-300 focus:border-red-400 focus:ring-red-100" : "border-gray-200 focus:border-[#2663EB] focus:ring-[#2663EB]/15"])
|
|
97
|
+
}, null, 10, M), [[y, r.confirm]]), u("button", {
|
|
98
|
+
type: "button",
|
|
99
|
+
class: "absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 transition-colors hover:text-gray-600",
|
|
100
|
+
onClick: t[4] ||= (e) => r.showConfirm = !r.showConfirm
|
|
101
|
+
}, [f(r.AppIcon, {
|
|
102
|
+
name: r.showConfirm ? "eye-off" : "eye",
|
|
103
|
+
class: "h-[15px] w-[15px]"
|
|
104
|
+
}, null, 8, ["name"])])]),
|
|
105
|
+
r.mismatch ? (h(), l("p", N, "Паролі не збігаються")) : c("", !0)
|
|
106
|
+
]),
|
|
107
|
+
r.error ? (h(), l("p", P, v(r.error), 1)) : c("", !0)
|
|
108
|
+
]),
|
|
109
|
+
u("div", F, [u("button", {
|
|
110
|
+
type: "button",
|
|
111
|
+
class: "rounded-lg bg-gray-100 px-4 py-2 text-sm font-medium text-gray-600 transition-colors hover:bg-gray-200",
|
|
112
|
+
onClick: t[5] ||= (e) => r.emit("close")
|
|
113
|
+
}, " Скасувати "), u("button", {
|
|
114
|
+
type: "button",
|
|
115
|
+
class: m(["flex items-center gap-2 rounded-lg px-5 py-2 text-sm font-medium transition-all", r.saved ? "bg-emerald-500 text-white" : r.canSave ? "bg-[#2663EB] text-white hover:bg-[#1d52cc] active:scale-95" : "cursor-not-allowed bg-gray-100 text-gray-400"]),
|
|
116
|
+
disabled: !r.canSave,
|
|
117
|
+
onClick: r.save
|
|
118
|
+
}, [r.saved ? (h(), s(r.AppIcon, {
|
|
119
|
+
key: 0,
|
|
120
|
+
name: "check",
|
|
121
|
+
class: "h-[15px] w-[15px]"
|
|
122
|
+
})) : c("", !0), d(" " + v(r.saved ? "Збережено" : r.submitting ? "Збереження…" : "Зберегти"), 1)], 10, I)])
|
|
123
|
+
])]);
|
|
124
|
+
}
|
|
125
|
+
var R = /*#__PURE__*/ e(ee, [["render", L], ["__file", "C:/softpro/surveyor/cabinet/src/pages/profile/components/PasswordModal.vue"]]), z = "Не вказано", B = /*@__PURE__*/ p({
|
|
126
|
+
__name: "index",
|
|
127
|
+
setup(e, { expose: t }) {
|
|
128
|
+
t();
|
|
129
|
+
let a = g(!1), s = o(() => n(i)), c = o(() => `${i.surName.trim().charAt(0)}${i.userName.trim().charAt(0)}`.toUpperCase());
|
|
130
|
+
function l(e, t, n) {
|
|
131
|
+
let r = n.trim();
|
|
132
|
+
return {
|
|
133
|
+
icon: e,
|
|
134
|
+
label: t,
|
|
135
|
+
value: r || z,
|
|
136
|
+
muted: !r
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
let u = {
|
|
140
|
+
passwordOpen: a,
|
|
141
|
+
displayName: s,
|
|
142
|
+
initials: c,
|
|
143
|
+
empty: z,
|
|
144
|
+
field: l,
|
|
145
|
+
sections: o(() => [
|
|
146
|
+
{
|
|
147
|
+
title: "Організація",
|
|
148
|
+
fields: [
|
|
149
|
+
{
|
|
150
|
+
icon: "building-2",
|
|
151
|
+
label: "Назва організації",
|
|
152
|
+
value: i.organization
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
icon: "map-pin",
|
|
156
|
+
label: "Юридична адреса",
|
|
157
|
+
value: i.orgAddress
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
icon: "mail",
|
|
161
|
+
label: "Email",
|
|
162
|
+
value: i.orgEmail
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
icon: "phone",
|
|
166
|
+
label: "Телефон",
|
|
167
|
+
value: i.orgPhone
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
title: "Особисті дані",
|
|
173
|
+
fields: [{
|
|
174
|
+
icon: "user",
|
|
175
|
+
label: "ПІБ",
|
|
176
|
+
value: s.value
|
|
177
|
+
}]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
title: "Кваліфікаційний сертифікат",
|
|
181
|
+
fields: [
|
|
182
|
+
l("award", "Номер кваліфікаційного сертифіката", i.certificateNumber),
|
|
183
|
+
l("calendar-days", "Дата видачі кваліфікаційного сертифіката", i.certificateDate),
|
|
184
|
+
l("graduation-cap", "Назва навчального закладу, на базі якого складався кваліфікаційний іспит та який здійснював підвищення кваліфікації", i.institution),
|
|
185
|
+
l("calendar-days", "Дата протоколу рішення Кваліфікаційної комісії про видачу кваліфікаційного сертифіката", i.protocolDate),
|
|
186
|
+
l("file-text", "Номер протоколу рішення Кваліфікаційної комісії про видачу кваліфікаційного сертифіката", i.protocolNumber),
|
|
187
|
+
l("graduation-cap", "Інформація про підвищення кваліфікації", i.qualificationIncrease),
|
|
188
|
+
l("shield-alert", "Інформація щодо зупинення дії чи позбавлення кваліфікаційного сертифіката", i.certificateStopping),
|
|
189
|
+
l("pause-circle", "Інформація щодо призупинення дії кваліфікаційного сертифіката", i.certificateSuspension)
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
]),
|
|
193
|
+
AppIcon: r,
|
|
194
|
+
get currentProfile() {
|
|
195
|
+
return i;
|
|
196
|
+
},
|
|
197
|
+
PasswordModal: R
|
|
198
|
+
};
|
|
199
|
+
return Object.defineProperty(u, "__isScriptSetup", {
|
|
200
|
+
enumerable: !1,
|
|
201
|
+
value: !0
|
|
202
|
+
}), u;
|
|
203
|
+
}
|
|
204
|
+
}), V = { class: "min-h-[calc(100vh-3.5rem)] bg-gray-50" }, H = { class: "mx-auto max-w-3xl px-4 py-8" }, U = { class: "mb-6 flex items-center justify-between gap-4" }, W = { class: "mb-4 flex items-center gap-4 rounded-2xl border border-gray-200 bg-white p-5" }, G = { class: "flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl bg-gradient-to-br from-[#2663EB] to-[#1d52cc] text-xl font-semibold text-white shadow-sm" }, K = { class: "text-base font-semibold text-gray-900" }, q = { class: "text-sm text-gray-500" }, J = {
|
|
205
|
+
key: 0,
|
|
206
|
+
class: "mt-1.5 inline-flex items-center gap-1 rounded-full border border-emerald-200 bg-emerald-50 px-2 py-0.5 text-xs font-medium text-emerald-700"
|
|
207
|
+
}, Y = {
|
|
208
|
+
key: 1,
|
|
209
|
+
class: "mt-1.5 inline-flex items-center gap-1 rounded-full border border-gray-200 bg-gray-50 px-2 py-0.5 text-xs font-medium text-gray-500"
|
|
210
|
+
}, X = { class: "space-y-4" }, Z = { class: "border-b border-gray-100 bg-gray-50/60 px-5 py-3.5" }, Q = { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, $ = { class: "divide-y divide-gray-100" }, te = { class: "min-w-0" }, ne = { class: "mb-0.5 text-xs leading-snug text-gray-400" };
|
|
211
|
+
function re(e, t, n, r, i, o) {
|
|
212
|
+
return h(), l("div", V, [u("div", H, [
|
|
213
|
+
u("div", U, [t[3] ||= u("div", null, [u("h1", { class: "text-xl font-semibold text-gray-900" }, "Особиста інформація"), u("p", { class: "mt-0.5 text-sm text-gray-500" }, "Перегляд даних вашого профілю та сертифіката")], -1), u("button", {
|
|
214
|
+
type: "button",
|
|
215
|
+
class: "flex shrink-0 items-center gap-2 rounded-lg bg-[#EFF4FE] px-4 py-2 text-sm font-medium text-[#2663EB] transition-all hover:bg-[#deeafd] active:scale-95",
|
|
216
|
+
onClick: t[0] ||= (e) => r.passwordOpen = !0
|
|
217
|
+
}, [f(r.AppIcon, {
|
|
218
|
+
name: "lock",
|
|
219
|
+
class: "h-[15px] w-[15px]"
|
|
220
|
+
}), t[2] ||= d(" Змінити пароль ", -1)])]),
|
|
221
|
+
u("div", W, [u("div", G, v(r.initials), 1), u("div", null, [
|
|
222
|
+
u("p", K, v(r.displayName), 1),
|
|
223
|
+
u("p", q, v(r.currentProfile.email), 1),
|
|
224
|
+
r.currentProfile.certificateVerified ? (h(), l("span", J, [...t[4] ||= [u("span", { class: "h-1.5 w-1.5 rounded-full bg-emerald-500" }, null, -1), d(" Сертифікат активний ", -1)]])) : (h(), l("span", Y, [...t[5] ||= [u("span", { class: "h-1.5 w-1.5 rounded-full bg-gray-400" }, null, -1), d(" Сертифікат не активний ", -1)]]))
|
|
225
|
+
])]),
|
|
226
|
+
u("div", X, [(h(!0), l(a, null, _(r.sections, (e) => (h(), l("section", {
|
|
227
|
+
key: e.title,
|
|
228
|
+
class: "overflow-hidden rounded-2xl border border-gray-200 bg-white"
|
|
229
|
+
}, [u("div", Z, [u("h2", Q, v(e.title), 1)]), u("div", $, [(h(!0), l(a, null, _(e.fields, (e) => (h(), l("div", {
|
|
230
|
+
key: e.label,
|
|
231
|
+
class: "flex gap-3 px-5 py-4"
|
|
232
|
+
}, [f(r.AppIcon, {
|
|
233
|
+
name: e.icon,
|
|
234
|
+
class: "mt-0.5 h-4 w-4 shrink-0 text-gray-400"
|
|
235
|
+
}, null, 8, ["name"]), u("div", te, [u("p", ne, v(e.label), 1), u("p", { class: m(["break-words text-sm font-medium", e.muted ? "italic text-gray-400" : "text-gray-900"]) }, v(e.value), 3)])]))), 128))])]))), 128))])
|
|
236
|
+
]), r.passwordOpen ? (h(), s(r.PasswordModal, {
|
|
237
|
+
key: 0,
|
|
238
|
+
onClose: t[1] ||= (e) => r.passwordOpen = !1
|
|
239
|
+
})) : c("", !0)]);
|
|
240
|
+
}
|
|
241
|
+
var ie = /*#__PURE__*/ e(B, [["render", re], ["__file", "C:/softpro/surveyor/cabinet/src/pages/profile/index.vue"]]);
|
|
242
|
+
//#endregion
|
|
243
|
+
export { ie as default };
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { computed as t, createBlock as n, defineComponent as r, openBlock as i, reactive as a, resolveDynamicComponent as ee } from "vue";
|
|
3
|
+
import { AlertCircle as te, ArrowRight as ne, Award as o, Ban as s, Building2 as c, CalendarDays as l, Check as u, ChevronDown as d, ChevronLeft as f, ChevronRight as p, ChevronsLeft as m, ChevronsRight as h, ChevronsUpDown as g, CircleCheck as _, CircleX as v, ClipboardList as y, Columns3 as b, Download as x, ExternalLink as S, Eye as C, EyeOff as w, FileCheck2 as T, FileText as E, Filter as D, GraduationCap as O, History as k, Home as A, LayoutGrid as j, List as M, Lock as N, LogOut as P, Mail as F, Map as I, MapPin as L, MapPinned as R, Maximize2 as z, MessageSquare as B, Minimize2 as V, MoreVertical as re, PauseCircle as H, Pencil as U, Phone as W, Plus as G, Search as K, Send as q, Settings as J, ShieldAlert as Y, ShieldCheck as X, SlidersHorizontal as ie, Trash2 as ae, Upload as oe, UploadCloud as se, User as ce, Users as le, UsersRound as ue, X as de } from "lucide-vue-next";
|
|
4
|
+
//#region cabinet/src/components/ui/AppIcon.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var fe = /*@__PURE__*/ r({
|
|
6
|
+
__name: "AppIcon",
|
|
7
|
+
props: {
|
|
8
|
+
name: {
|
|
9
|
+
type: null,
|
|
10
|
+
required: !0
|
|
11
|
+
},
|
|
12
|
+
strokeWidth: {
|
|
13
|
+
type: [Number, String],
|
|
14
|
+
required: !1,
|
|
15
|
+
default: 2
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(e, { expose: n }) {
|
|
19
|
+
n();
|
|
20
|
+
let r = {
|
|
21
|
+
"arrow-right": ne,
|
|
22
|
+
award: o,
|
|
23
|
+
ban: s,
|
|
24
|
+
"building-2": c,
|
|
25
|
+
"calendar-days": l,
|
|
26
|
+
"alert-circle": te,
|
|
27
|
+
check: u,
|
|
28
|
+
"chevron-down": d,
|
|
29
|
+
"chevron-left": f,
|
|
30
|
+
"chevron-right": p,
|
|
31
|
+
"chevrons-left": m,
|
|
32
|
+
"chevrons-right": h,
|
|
33
|
+
"chevrons-up-down": g,
|
|
34
|
+
"circle-check": _,
|
|
35
|
+
"circle-x": v,
|
|
36
|
+
"clipboard-list": y,
|
|
37
|
+
"columns-3": b,
|
|
38
|
+
download: x,
|
|
39
|
+
"external-link": S,
|
|
40
|
+
eye: C,
|
|
41
|
+
"eye-off": w,
|
|
42
|
+
"file-check-2": T,
|
|
43
|
+
"file-text": E,
|
|
44
|
+
filter: D,
|
|
45
|
+
"graduation-cap": O,
|
|
46
|
+
history: k,
|
|
47
|
+
home: A,
|
|
48
|
+
"layout-grid": j,
|
|
49
|
+
list: M,
|
|
50
|
+
lock: N,
|
|
51
|
+
"log-out": P,
|
|
52
|
+
"maximize-2": z,
|
|
53
|
+
"minimize-2": V,
|
|
54
|
+
map: I,
|
|
55
|
+
"map-pin": L,
|
|
56
|
+
"map-pinned": R,
|
|
57
|
+
mail: F,
|
|
58
|
+
"message-square": B,
|
|
59
|
+
"more-vertical": re,
|
|
60
|
+
"pause-circle": H,
|
|
61
|
+
pencil: U,
|
|
62
|
+
phone: W,
|
|
63
|
+
plus: G,
|
|
64
|
+
search: K,
|
|
65
|
+
send: q,
|
|
66
|
+
settings: J,
|
|
67
|
+
"shield-alert": Y,
|
|
68
|
+
"shield-check": X,
|
|
69
|
+
"sliders-horizontal": ie,
|
|
70
|
+
"trash-2": ae,
|
|
71
|
+
upload: oe,
|
|
72
|
+
"upload-cloud": se,
|
|
73
|
+
user: ce,
|
|
74
|
+
users: le,
|
|
75
|
+
"users-round": ue,
|
|
76
|
+
x: de
|
|
77
|
+
}, i = e, a = {
|
|
78
|
+
icons: r,
|
|
79
|
+
props: i,
|
|
80
|
+
icon: t(() => r[i.name])
|
|
81
|
+
};
|
|
82
|
+
return Object.defineProperty(a, "__isScriptSetup", {
|
|
83
|
+
enumerable: !1,
|
|
84
|
+
value: !0
|
|
85
|
+
}), a;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region cabinet/src/components/ui/AppIcon.vue
|
|
90
|
+
function pe(e, t, r, a, te, ne) {
|
|
91
|
+
return i(), n(ee(a.icon), { "stroke-width": r.strokeWidth }, null, 8, ["stroke-width"]);
|
|
92
|
+
}
|
|
93
|
+
var me = /*#__PURE__*/ e(fe, [["render", pe], ["__file", "C:/softpro/surveyor/cabinet/src/components/ui/AppIcon.vue"]]);
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region cabinet/src/api/surveyor.ts
|
|
96
|
+
function Z(e) {
|
|
97
|
+
return `${"".replace(/\/$/, "")}${e}`;
|
|
98
|
+
}
|
|
99
|
+
function Q(e, t) {
|
|
100
|
+
let n = e || `HTTP ${t}`;
|
|
101
|
+
try {
|
|
102
|
+
let t = JSON.parse(e);
|
|
103
|
+
n = (typeof t.error == "object" ? t.error.message : void 0) || t.message || (typeof t.error == "string" ? t.error : n);
|
|
104
|
+
} catch {}
|
|
105
|
+
return n;
|
|
106
|
+
}
|
|
107
|
+
async function he(e) {
|
|
108
|
+
let t = await fetch(Z(`/api/surveyor/change_password/${encodeURIComponent(e.surveyorId)}`), {
|
|
109
|
+
method: "POST",
|
|
110
|
+
credentials: "include",
|
|
111
|
+
headers: { "Content-Type": "application/json" },
|
|
112
|
+
body: JSON.stringify({
|
|
113
|
+
password: e.password,
|
|
114
|
+
password_confirmation: e.passwordConfirmation
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
if (!t.ok) throw Error(Q(await t.text(), t.status));
|
|
118
|
+
return t.json();
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region cabinet/src/api/profile.ts
|
|
122
|
+
function ge() {
|
|
123
|
+
return {
|
|
124
|
+
certificateDate: "",
|
|
125
|
+
certificateNumber: "",
|
|
126
|
+
certificateVerified: !1,
|
|
127
|
+
institution: "",
|
|
128
|
+
protocolDate: "",
|
|
129
|
+
protocolNumber: "",
|
|
130
|
+
qualificationIncrease: "",
|
|
131
|
+
certificateStopping: "",
|
|
132
|
+
certificateSuspension: ""
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function $() {
|
|
136
|
+
return {
|
|
137
|
+
uid: "",
|
|
138
|
+
login: "",
|
|
139
|
+
surName: "",
|
|
140
|
+
userName: "",
|
|
141
|
+
fatherName: "",
|
|
142
|
+
phone: "",
|
|
143
|
+
email: "",
|
|
144
|
+
enabled: !1,
|
|
145
|
+
type: "geodesist",
|
|
146
|
+
organization: "",
|
|
147
|
+
orgAddress: "",
|
|
148
|
+
orgPhone: "",
|
|
149
|
+
orgEmail: "",
|
|
150
|
+
...ge(),
|
|
151
|
+
registry: "Реєстр геодезистів",
|
|
152
|
+
workplace: ""
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
var _e = a($());
|
|
156
|
+
function ve(e) {
|
|
157
|
+
return [
|
|
158
|
+
e.surName,
|
|
159
|
+
e.userName,
|
|
160
|
+
e.fatherName
|
|
161
|
+
].filter(Boolean).join(" ");
|
|
162
|
+
}
|
|
163
|
+
//#endregion
|
|
164
|
+
export { Q as a, he as i, ve as n, me as o, Z as r, _e as t };
|