@opengis/surveyor 0.0.5 → 0.0.6
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/dist/chunks/AppIcon-CO70tpMX.js +95 -0
- package/dist/chunks/{AppealStatusBadge-CefimzY3.js → AppealStatusBadge-BlAaNUSK.js} +16 -16
- package/dist/chunks/{FormFilePicker-CKVdZJU9.js → FormFilePicker-DxPQlxgy.js} +1 -1
- package/dist/chunks/{applications-CsCsndMV.js → applications-CLhv5l_j.js} +24 -24
- package/dist/chunks/auth-acuaYbYM.js +60 -0
- package/dist/chunks/{card-DCyBFoDZ.js → card-BDqeihxR.js} +264 -262
- package/dist/chunks/{create-DTP9x2uS.js → create-BPWuoys6.js} +216 -215
- package/dist/chunks/forgot-DoG6vXhq.js +100 -0
- package/dist/chunks/list-search-D5VdmGdV.js +5 -0
- package/dist/chunks/login-BWGylcSU.js +124 -0
- package/dist/chunks/organizations-DbVDoURw.js +93 -0
- package/dist/chunks/{profile-CuxlkEev.js → profile-CkwMFh82.js} +21 -19
- package/dist/chunks/profile-aXlo4qqA.js +104 -0
- package/dist/chunks/registration-3GLgq-ae.js +102 -0
- package/dist/chunks/{requests-Bt8fEdRc.js → requests-BM6XqgpC.js} +213 -212
- package/dist/chunks/reset-CP9LsLkC.js +111 -0
- package/dist/chunks/surveyor-CDkI2Dcp.js +92 -0
- package/dist/index.js +533 -114
- package/package.json +1 -1
- package/surveyor-types.d.ts +4 -0
- package/dist/chunks/organizations-BtuMZ5s_.js +0 -14
- package/dist/chunks/profile-DxZHxGum.js +0 -164
package/dist/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./chunks/dom-BSjFG3O0.js";
|
|
2
2
|
import { t as r } from "./chunks/_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { t as i } from "./chunks/auth-acuaYbYM.js";
|
|
4
|
+
import { i as a, r as o } from "./chunks/profile-aXlo4qqA.js";
|
|
5
|
+
import { i as s, o as c, s as l, t as u } from "./chunks/organizations-DbVDoURw.js";
|
|
6
|
+
import { t as d } from "./chunks/AppIcon-CO70tpMX.js";
|
|
7
|
+
import { t as f } from "./chunks/list-search-D5VdmGdV.js";
|
|
8
|
+
import { Fragment as p, computed as m, createApp as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineAsyncComponent as S, defineComponent as C, inject as w, normalizeClass as T, onBeforeUnmount as E, onMounted as D, openBlock as O, provide as ee, ref as k, renderList as te, renderSlot as A, resolveDynamicComponent as j, toDisplayString as M, vModelText as ne, watch as re, withCtx as N, withDirectives as ie } from "vue";
|
|
9
|
+
import { RouterView as P, createRouter as ae, createWebHistory as oe, useRoute as se, useRouter as F } from "vue-router";
|
|
5
10
|
//#region src/wrappers/SurveyorEmbedShell.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
11
|
+
var I = /*@__PURE__*/ C({
|
|
7
12
|
__name: "SurveyorEmbedShell",
|
|
8
13
|
props: {
|
|
9
14
|
card: {
|
|
@@ -20,7 +25,7 @@ var b = /*@__PURE__*/ d({
|
|
|
20
25
|
setup(r, { expose: i }) {
|
|
21
26
|
i();
|
|
22
27
|
let a = {
|
|
23
|
-
hostProvidesRoot:
|
|
28
|
+
hostProvidesRoot: w(t, !1),
|
|
24
29
|
get SURVEYOR_PORTAL_ID() {
|
|
25
30
|
return n;
|
|
26
31
|
},
|
|
@@ -33,33 +38,33 @@ var b = /*@__PURE__*/ d({
|
|
|
33
38
|
value: !0
|
|
34
39
|
}), a;
|
|
35
40
|
}
|
|
36
|
-
}),
|
|
37
|
-
function
|
|
38
|
-
return
|
|
41
|
+
}), L = ["id"], R = ["id"];
|
|
42
|
+
function z(e, t, n, r, i, a) {
|
|
43
|
+
return O(), v("div", {
|
|
39
44
|
id: r.hostProvidesRoot ? void 0 : r.SURVEYOR_ROOT_ID,
|
|
40
|
-
class:
|
|
41
|
-
}, [n.card ? (
|
|
45
|
+
class: T(["surveyor-embed w-full min-w-0", n.fill ? "flex max-w-none h-[calc(100vh-40px)] min-h-[calc(100vh-40px)] max-h-[calc(100vh-40px)] flex-col" : "mx-auto max-w-[1280px]"])
|
|
46
|
+
}, [n.card ? (O(), v("div", {
|
|
42
47
|
key: 0,
|
|
43
|
-
class:
|
|
44
|
-
}, [
|
|
48
|
+
class: T(["w-full rounded-xl bg-white p-4 shadow-sm sm:p-5", n.fill ? "min-h-0 flex-1" : ""])
|
|
49
|
+
}, [A(e.$slots, "default", {}, void 0, !0)], 2)) : (O(), v("div", {
|
|
45
50
|
key: 1,
|
|
46
|
-
class:
|
|
47
|
-
}, [
|
|
51
|
+
class: T(["min-h-0 w-full flex-1 flex flex-col", n.fill ? "h-full min-h-0" : ""])
|
|
52
|
+
}, [A(e.$slots, "default", {}, void 0, !0)], 2)), r.hostProvidesRoot ? _("", !0) : (O(), v("div", {
|
|
48
53
|
key: 2,
|
|
49
54
|
id: r.SURVEYOR_PORTAL_ID
|
|
50
|
-
}, null, 8,
|
|
55
|
+
}, null, 8, R))], 10, L);
|
|
51
56
|
}
|
|
52
|
-
var
|
|
53
|
-
["render",
|
|
57
|
+
var B = /*#__PURE__*/ r(I, [
|
|
58
|
+
["render", z],
|
|
54
59
|
["__scopeId", "data-v-ee198999"],
|
|
55
60
|
["__file", "C:/softpro/surveyor/src/wrappers/SurveyorEmbedShell.vue"]
|
|
56
|
-
]),
|
|
61
|
+
]), V = /*@__PURE__*/ C({
|
|
57
62
|
__name: "Map",
|
|
58
63
|
setup(e, { expose: t }) {
|
|
59
64
|
t();
|
|
60
65
|
let n = {
|
|
61
|
-
MapPage:
|
|
62
|
-
SurveyorEmbedShell:
|
|
66
|
+
MapPage: S(() => import("./chunks/map-dvA3ayAK.js")),
|
|
67
|
+
SurveyorEmbedShell: B
|
|
63
68
|
};
|
|
64
69
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
65
70
|
enumerable: !1,
|
|
@@ -69,16 +74,16 @@ var w = /*#__PURE__*/ r(b, [
|
|
|
69
74
|
});
|
|
70
75
|
//#endregion
|
|
71
76
|
//#region src/wrappers/Map.vue
|
|
72
|
-
function
|
|
73
|
-
return
|
|
77
|
+
function H(e, t, n, r, i, a) {
|
|
78
|
+
return O(), g(r.SurveyorEmbedShell, {
|
|
74
79
|
card: !1,
|
|
75
80
|
fill: ""
|
|
76
81
|
}, {
|
|
77
|
-
default:
|
|
82
|
+
default: N(() => [x(r.MapPage)]),
|
|
78
83
|
_: 1
|
|
79
84
|
});
|
|
80
85
|
}
|
|
81
|
-
var
|
|
86
|
+
var U = /*#__PURE__*/ r(V, [["render", H], ["__file", "C:/softpro/surveyor/src/wrappers/Map.vue"]]), W = /*@__PURE__*/ C({
|
|
82
87
|
__name: "BaseEntityWrapper",
|
|
83
88
|
props: {
|
|
84
89
|
list: {
|
|
@@ -106,38 +111,38 @@ var D = /*#__PURE__*/ r(T, [["render", E], ["__file", "C:/softpro/surveyor/src/w
|
|
|
106
111
|
},
|
|
107
112
|
setup(e, { expose: t }) {
|
|
108
113
|
t();
|
|
109
|
-
let n = e, r =
|
|
114
|
+
let n = e, r = se(), i = {
|
|
110
115
|
props: n,
|
|
111
116
|
route: r,
|
|
112
|
-
activeKey:
|
|
117
|
+
activeKey: m(() => {
|
|
113
118
|
let e = r.params[n.param];
|
|
114
119
|
return e == null || Array.isArray(e) ? "" : String(e);
|
|
115
120
|
}),
|
|
116
|
-
activeComponent:
|
|
121
|
+
activeComponent: m(() => {
|
|
117
122
|
let e = r.params[n.param], t = e == null || Array.isArray(e) ? "" : String(e);
|
|
118
123
|
return t ? n.create && t === n.createValue ? n.create : n.detail : n.list;
|
|
119
124
|
})
|
|
120
125
|
};
|
|
121
|
-
return Object.defineProperty(
|
|
126
|
+
return Object.defineProperty(i, "__isScriptSetup", {
|
|
122
127
|
enumerable: !1,
|
|
123
128
|
value: !0
|
|
124
|
-
}),
|
|
129
|
+
}), i;
|
|
125
130
|
}
|
|
126
131
|
});
|
|
127
132
|
//#endregion
|
|
128
133
|
//#region src/wrappers/BaseEntityWrapper.vue
|
|
129
|
-
function
|
|
130
|
-
return
|
|
134
|
+
function G(e, t, n, r, i, a) {
|
|
135
|
+
return O(), g(j(r.activeComponent), { key: r.activeKey || "list" });
|
|
131
136
|
}
|
|
132
|
-
var
|
|
137
|
+
var K = /*#__PURE__*/ r(W, [["render", G], ["__file", "C:/softpro/surveyor/src/wrappers/BaseEntityWrapper.vue"]]), ce = /*@__PURE__*/ C({
|
|
133
138
|
__name: "Requests",
|
|
134
139
|
setup(e, { expose: t }) {
|
|
135
140
|
t();
|
|
136
141
|
let n = {
|
|
137
|
-
Index:
|
|
138
|
-
Card:
|
|
139
|
-
BaseEntityWrapper:
|
|
140
|
-
SurveyorEmbedShell:
|
|
142
|
+
Index: S(() => import("./chunks/requests-BTpLXrNj.js")),
|
|
143
|
+
Card: S(() => import("./chunks/card-B_SfARf7.js")),
|
|
144
|
+
BaseEntityWrapper: K,
|
|
145
|
+
SurveyorEmbedShell: B
|
|
141
146
|
};
|
|
142
147
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
143
148
|
enumerable: !1,
|
|
@@ -147,9 +152,9 @@ var A = /*#__PURE__*/ r(O, [["render", k], ["__file", "C:/softpro/surveyor/src/w
|
|
|
147
152
|
});
|
|
148
153
|
//#endregion
|
|
149
154
|
//#region src/wrappers/Requests.vue
|
|
150
|
-
function
|
|
151
|
-
return
|
|
152
|
-
default:
|
|
155
|
+
function le(e, t, n, r, i, a) {
|
|
156
|
+
return O(), g(r.SurveyorEmbedShell, null, {
|
|
157
|
+
default: N(() => [x(r.BaseEntityWrapper, {
|
|
153
158
|
list: r.Index,
|
|
154
159
|
detail: r.Card,
|
|
155
160
|
param: "number"
|
|
@@ -157,15 +162,15 @@ function M(e, t, n, r, i, o) {
|
|
|
157
162
|
_: 1
|
|
158
163
|
});
|
|
159
164
|
}
|
|
160
|
-
var
|
|
165
|
+
var ue = /*#__PURE__*/ r(ce, [["render", le], ["__file", "C:/softpro/surveyor/src/wrappers/Requests.vue"]]), de = /*@__PURE__*/ C({
|
|
161
166
|
__name: "Organisations",
|
|
162
167
|
setup(e, { expose: t }) {
|
|
163
168
|
t();
|
|
164
169
|
let n = {
|
|
165
|
-
Index:
|
|
166
|
-
Card:
|
|
167
|
-
BaseEntityWrapper:
|
|
168
|
-
SurveyorEmbedShell:
|
|
170
|
+
Index: S(() => import("./chunks/organizations-ByVE2f0c.js")),
|
|
171
|
+
Card: S(() => import("./chunks/card-X9UVFgdR.js")),
|
|
172
|
+
BaseEntityWrapper: K,
|
|
173
|
+
SurveyorEmbedShell: B
|
|
169
174
|
};
|
|
170
175
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
171
176
|
enumerable: !1,
|
|
@@ -175,9 +180,9 @@ var N = /*#__PURE__*/ r(j, [["render", M], ["__file", "C:/softpro/surveyor/src/w
|
|
|
175
180
|
});
|
|
176
181
|
//#endregion
|
|
177
182
|
//#region src/wrappers/Organisations.vue
|
|
178
|
-
function
|
|
179
|
-
return
|
|
180
|
-
default:
|
|
183
|
+
function fe(e, t, n, r, i, a) {
|
|
184
|
+
return O(), g(r.SurveyorEmbedShell, null, {
|
|
185
|
+
default: N(() => [x(r.BaseEntityWrapper, {
|
|
181
186
|
list: r.Index,
|
|
182
187
|
detail: r.Card,
|
|
183
188
|
param: "id"
|
|
@@ -185,15 +190,15 @@ function F(e, t, n, r, i, o) {
|
|
|
185
190
|
_: 1
|
|
186
191
|
});
|
|
187
192
|
}
|
|
188
|
-
var
|
|
193
|
+
var pe = /*#__PURE__*/ r(de, [["render", fe], ["__file", "C:/softpro/surveyor/src/wrappers/Organisations.vue"]]), me = /*@__PURE__*/ C({
|
|
189
194
|
__name: "Certificates",
|
|
190
195
|
setup(e, { expose: t }) {
|
|
191
196
|
t();
|
|
192
197
|
let n = {
|
|
193
|
-
Index:
|
|
194
|
-
Card:
|
|
195
|
-
BaseEntityWrapper:
|
|
196
|
-
SurveyorEmbedShell:
|
|
198
|
+
Index: S(() => import("./chunks/certificates-Cwch72-o.js")),
|
|
199
|
+
Card: S(() => import("./chunks/card-C3y-j2TA.js")),
|
|
200
|
+
BaseEntityWrapper: K,
|
|
201
|
+
SurveyorEmbedShell: B
|
|
197
202
|
};
|
|
198
203
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
199
204
|
enumerable: !1,
|
|
@@ -203,9 +208,9 @@ var I = /*#__PURE__*/ r(P, [["render", F], ["__file", "C:/softpro/surveyor/src/w
|
|
|
203
208
|
});
|
|
204
209
|
//#endregion
|
|
205
210
|
//#region src/wrappers/Certificates.vue
|
|
206
|
-
function
|
|
207
|
-
return
|
|
208
|
-
default:
|
|
211
|
+
function he(e, t, n, r, i, a) {
|
|
212
|
+
return O(), g(r.SurveyorEmbedShell, null, {
|
|
213
|
+
default: N(() => [x(r.BaseEntityWrapper, {
|
|
209
214
|
list: r.Index,
|
|
210
215
|
detail: r.Card,
|
|
211
216
|
param: "id"
|
|
@@ -213,15 +218,15 @@ function R(e, t, n, r, i, o) {
|
|
|
213
218
|
_: 1
|
|
214
219
|
});
|
|
215
220
|
}
|
|
216
|
-
var
|
|
221
|
+
var ge = /*#__PURE__*/ r(me, [["render", he], ["__file", "C:/softpro/surveyor/src/wrappers/Certificates.vue"]]), _e = /*@__PURE__*/ C({
|
|
217
222
|
__name: "Users",
|
|
218
223
|
setup(e, { expose: t }) {
|
|
219
224
|
t();
|
|
220
225
|
let n = {
|
|
221
|
-
Index:
|
|
222
|
-
Card:
|
|
223
|
-
BaseEntityWrapper:
|
|
224
|
-
SurveyorEmbedShell:
|
|
226
|
+
Index: S(() => import("./chunks/users-U1P6xCP4.js")),
|
|
227
|
+
Card: S(() => import("./chunks/card-DWpAv92l.js")),
|
|
228
|
+
BaseEntityWrapper: K,
|
|
229
|
+
SurveyorEmbedShell: B
|
|
225
230
|
};
|
|
226
231
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
227
232
|
enumerable: !1,
|
|
@@ -231,9 +236,9 @@ var ee = /*#__PURE__*/ r(L, [["render", R], ["__file", "C:/softpro/surveyor/src/
|
|
|
231
236
|
});
|
|
232
237
|
//#endregion
|
|
233
238
|
//#region src/wrappers/Users.vue
|
|
234
|
-
function
|
|
235
|
-
return
|
|
236
|
-
default:
|
|
239
|
+
function ve(e, t, n, r, i, a) {
|
|
240
|
+
return O(), g(r.SurveyorEmbedShell, null, {
|
|
241
|
+
default: N(() => [x(r.BaseEntityWrapper, {
|
|
237
242
|
list: r.Index,
|
|
238
243
|
detail: r.Card,
|
|
239
244
|
param: "id"
|
|
@@ -241,15 +246,15 @@ function B(e, t, n, r, i, o) {
|
|
|
241
246
|
_: 1
|
|
242
247
|
});
|
|
243
248
|
}
|
|
244
|
-
var
|
|
249
|
+
var ye = /*#__PURE__*/ r(_e, [["render", ve], ["__file", "C:/softpro/surveyor/src/wrappers/Users.vue"]]), be = /*@__PURE__*/ C({
|
|
245
250
|
__name: "MapLayers",
|
|
246
251
|
setup(e, { expose: t }) {
|
|
247
252
|
t();
|
|
248
253
|
let n = {
|
|
249
|
-
Index:
|
|
250
|
-
Card:
|
|
251
|
-
BaseEntityWrapper:
|
|
252
|
-
SurveyorEmbedShell:
|
|
254
|
+
Index: S(() => import("./chunks/map-layers-sT-gTiD_.js")),
|
|
255
|
+
Card: S(() => import("./chunks/card-CWqi1K-x.js")),
|
|
256
|
+
BaseEntityWrapper: K,
|
|
257
|
+
SurveyorEmbedShell: B
|
|
253
258
|
};
|
|
254
259
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
255
260
|
enumerable: !1,
|
|
@@ -259,9 +264,9 @@ var V = /*#__PURE__*/ r(z, [["render", B], ["__file", "C:/softpro/surveyor/src/w
|
|
|
259
264
|
});
|
|
260
265
|
//#endregion
|
|
261
266
|
//#region src/wrappers/MapLayers.vue
|
|
262
|
-
function
|
|
263
|
-
return
|
|
264
|
-
default:
|
|
267
|
+
function xe(e, t, n, r, i, a) {
|
|
268
|
+
return O(), g(r.SurveyorEmbedShell, null, {
|
|
269
|
+
default: N(() => [x(r.BaseEntityWrapper, {
|
|
265
270
|
list: r.Index,
|
|
266
271
|
detail: r.Card,
|
|
267
272
|
param: "id"
|
|
@@ -269,16 +274,16 @@ function U(e, t, n, r, i, o) {
|
|
|
269
274
|
_: 1
|
|
270
275
|
});
|
|
271
276
|
}
|
|
272
|
-
var
|
|
277
|
+
var Se = /*#__PURE__*/ r(be, [["render", xe], ["__file", "C:/softpro/surveyor/src/wrappers/MapLayers.vue"]]), Ce = /*@__PURE__*/ C({
|
|
273
278
|
__name: "CabinetRequests",
|
|
274
279
|
setup(e, { expose: t }) {
|
|
275
280
|
t();
|
|
276
281
|
let n = {
|
|
277
|
-
Index:
|
|
278
|
-
Create:
|
|
279
|
-
Card:
|
|
280
|
-
BaseEntityWrapper:
|
|
281
|
-
SurveyorEmbedShell:
|
|
282
|
+
Index: S(() => import("./chunks/requests-BM6XqgpC.js")),
|
|
283
|
+
Create: S(() => import("./chunks/create-BPWuoys6.js")),
|
|
284
|
+
Card: S(() => import("./chunks/card-BDqeihxR.js")),
|
|
285
|
+
BaseEntityWrapper: K,
|
|
286
|
+
SurveyorEmbedShell: B
|
|
282
287
|
};
|
|
283
288
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
284
289
|
enumerable: !1,
|
|
@@ -288,9 +293,9 @@ var W = /*#__PURE__*/ r(H, [["render", U], ["__file", "C:/softpro/surveyor/src/w
|
|
|
288
293
|
});
|
|
289
294
|
//#endregion
|
|
290
295
|
//#region src/wrappers/CabinetRequests.vue
|
|
291
|
-
function
|
|
292
|
-
return
|
|
293
|
-
default:
|
|
296
|
+
function we(e, t, n, r, i, a) {
|
|
297
|
+
return O(), g(r.SurveyorEmbedShell, null, {
|
|
298
|
+
default: N(() => [x(r.BaseEntityWrapper, {
|
|
294
299
|
list: r.Index,
|
|
295
300
|
detail: r.Card,
|
|
296
301
|
create: r.Create,
|
|
@@ -304,13 +309,13 @@ function K(e, t, n, r, i, o) {
|
|
|
304
309
|
_: 1
|
|
305
310
|
});
|
|
306
311
|
}
|
|
307
|
-
var
|
|
312
|
+
var Te = /*#__PURE__*/ r(Ce, [["render", we], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetRequests.vue"]]), Ee = /*@__PURE__*/ C({
|
|
308
313
|
__name: "CabinetProfile",
|
|
309
314
|
setup(e, { expose: t }) {
|
|
310
315
|
t();
|
|
311
316
|
let n = {
|
|
312
|
-
Profile:
|
|
313
|
-
SurveyorEmbedShell:
|
|
317
|
+
Profile: S(() => import("./chunks/profile-CkwMFh82.js")),
|
|
318
|
+
SurveyorEmbedShell: B
|
|
314
319
|
};
|
|
315
320
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
316
321
|
enumerable: !1,
|
|
@@ -320,37 +325,16 @@ var q = /*#__PURE__*/ r(G, [["render", K], ["__file", "C:/softpro/surveyor/src/w
|
|
|
320
325
|
});
|
|
321
326
|
//#endregion
|
|
322
327
|
//#region src/wrappers/CabinetProfile.vue
|
|
323
|
-
function
|
|
324
|
-
return
|
|
325
|
-
default:
|
|
328
|
+
function De(e, t, n, r, i, a) {
|
|
329
|
+
return O(), g(r.SurveyorEmbedShell, null, {
|
|
330
|
+
default: N(() => [x(r.Profile)]),
|
|
326
331
|
_: 1
|
|
327
332
|
});
|
|
328
333
|
}
|
|
329
|
-
var
|
|
330
|
-
map: "/map",
|
|
331
|
-
requests: "/requests",
|
|
332
|
-
organizations: "/organizations",
|
|
333
|
-
certificates: "/certificates",
|
|
334
|
-
users: "/users",
|
|
335
|
-
mapLayers: "/map-layers",
|
|
336
|
-
cabinetRequests: "/requests",
|
|
337
|
-
cabinetProfile: "/profile"
|
|
338
|
-
}, Q = Symbol("surveyor-paths");
|
|
339
|
-
function $(e = {}) {
|
|
340
|
-
let t = {
|
|
341
|
-
...Z,
|
|
342
|
-
...e.paths
|
|
343
|
-
};
|
|
344
|
-
return { install(e) {
|
|
345
|
-
e.provide(Q, t);
|
|
346
|
-
} };
|
|
347
|
-
}
|
|
348
|
-
//#endregion
|
|
349
|
-
//#region shared/surveyor/SurveyorRoot.vue?vue&type=script&setup=true&lang.ts
|
|
350
|
-
var te = /*@__PURE__*/ d({
|
|
334
|
+
var Oe = /*#__PURE__*/ r(Ee, [["render", De], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetProfile.vue"]]), ke = /*@__PURE__*/ C({
|
|
351
335
|
__name: "SurveyorRoot",
|
|
352
336
|
setup(r, { expose: i }) {
|
|
353
|
-
i(),
|
|
337
|
+
i(), ee(t, !0);
|
|
354
338
|
let a = {
|
|
355
339
|
get SURVEYOR_PORTAL_ID() {
|
|
356
340
|
return n;
|
|
@@ -364,13 +348,448 @@ var te = /*@__PURE__*/ d({
|
|
|
364
348
|
value: !0
|
|
365
349
|
}), a;
|
|
366
350
|
}
|
|
367
|
-
}),
|
|
368
|
-
function
|
|
369
|
-
return
|
|
351
|
+
}), Ae = ["id"], je = ["id"];
|
|
352
|
+
function Me(e, t, n, r, i, a) {
|
|
353
|
+
return O(), v("div", {
|
|
370
354
|
id: r.SURVEYOR_ROOT_ID,
|
|
371
355
|
class: "surveyor-root min-h-screen bg-slate-50 text-slate-800 antialiased"
|
|
372
|
-
}, [
|
|
356
|
+
}, [A(e.$slots, "default"), y("div", { id: r.SURVEYOR_PORTAL_ID }, null, 8, je)], 8, Ae);
|
|
357
|
+
}
|
|
358
|
+
var q = /*#__PURE__*/ r(ke, [["render", Me], ["__file", "C:/softpro/surveyor/shared/surveyor/SurveyorRoot.vue"]]), Ne = /*@__PURE__*/ C({
|
|
359
|
+
__name: "Cabinet",
|
|
360
|
+
setup(e, { expose: t }) {
|
|
361
|
+
t();
|
|
362
|
+
let n = {
|
|
363
|
+
get RouterView() {
|
|
364
|
+
return P;
|
|
365
|
+
},
|
|
366
|
+
SurveyorRoot: q
|
|
367
|
+
};
|
|
368
|
+
return Object.defineProperty(n, "__isScriptSetup", {
|
|
369
|
+
enumerable: !1,
|
|
370
|
+
value: !0
|
|
371
|
+
}), n;
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region src/wrappers/Cabinet.vue
|
|
376
|
+
function Pe(e, t, n, r, i, a) {
|
|
377
|
+
return O(), g(r.SurveyorRoot, null, {
|
|
378
|
+
default: N(() => [x(r.RouterView)]),
|
|
379
|
+
_: 1
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
var J = /*#__PURE__*/ r(Ne, [["render", Pe], ["__file", "C:/softpro/surveyor/src/wrappers/Cabinet.vue"]]), Fe = /*@__PURE__*/ C({
|
|
383
|
+
__name: "OrgSwitcher",
|
|
384
|
+
props: {
|
|
385
|
+
organizations: {
|
|
386
|
+
type: Array,
|
|
387
|
+
required: !0
|
|
388
|
+
},
|
|
389
|
+
activeOrgId: {
|
|
390
|
+
type: String,
|
|
391
|
+
required: !0
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
emits: ["select"],
|
|
395
|
+
setup(e, { expose: t, emit: n }) {
|
|
396
|
+
t();
|
|
397
|
+
let r = e, i = n, a = k(!1), o = k(null), s = m(() => r.organizations.find((e) => e.id === r.activeOrgId)), c = m(() => r.organizations.length > 1);
|
|
398
|
+
function l(e) {
|
|
399
|
+
o.value && !o.value.contains(e.target) && (a.value = !1);
|
|
400
|
+
}
|
|
401
|
+
re(a, (e) => {
|
|
402
|
+
e ? document.addEventListener("mousedown", l) : document.removeEventListener("mousedown", l);
|
|
403
|
+
}), E(() => document.removeEventListener("mousedown", l));
|
|
404
|
+
function u(e) {
|
|
405
|
+
i("select", e), a.value = !1;
|
|
406
|
+
}
|
|
407
|
+
let f = {
|
|
408
|
+
props: r,
|
|
409
|
+
emit: i,
|
|
410
|
+
open: a,
|
|
411
|
+
rootRef: o,
|
|
412
|
+
active: s,
|
|
413
|
+
hasMultiple: c,
|
|
414
|
+
onDocumentClick: l,
|
|
415
|
+
choose: u,
|
|
416
|
+
AppIcon: d
|
|
417
|
+
};
|
|
418
|
+
return Object.defineProperty(f, "__isScriptSetup", {
|
|
419
|
+
enumerable: !1,
|
|
420
|
+
value: !0
|
|
421
|
+
}), f;
|
|
422
|
+
}
|
|
423
|
+
}), Ie = {
|
|
424
|
+
key: 0,
|
|
425
|
+
class: "flex select-none items-center gap-2 rounded-lg bg-gray-100 px-2.5 py-1.5"
|
|
426
|
+
}, Le = { class: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-gray-700 text-[10px] font-semibold text-white" }, Re = { class: "hidden min-w-0 sm:block" }, ze = { class: "block max-w-[140px] truncate text-xs font-medium text-gray-600" }, Be = {
|
|
427
|
+
key: 1,
|
|
428
|
+
ref: "rootRef",
|
|
429
|
+
class: "relative"
|
|
430
|
+
}, Ve = { class: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-gray-700 text-[10px] font-semibold text-white" }, He = { class: "min-w-0 text-left" }, Ue = { class: "block max-w-[110px] truncate text-xs font-medium leading-tight text-gray-700 sm:max-w-[160px]" }, We = {
|
|
431
|
+
key: 0,
|
|
432
|
+
class: "absolute left-0 top-full z-[60] mt-1.5 w-72 rounded-xl border border-gray-200 bg-white py-1.5 shadow-lg"
|
|
433
|
+
}, Ge = { class: "max-h-72 overflow-y-auto" }, Ke = ["onClick"], qe = { class: "flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-gray-700 text-xs font-semibold text-white" }, Je = { class: "min-w-0 flex-1" }, Ye = {
|
|
434
|
+
key: 0,
|
|
435
|
+
class: "block truncate text-xs text-gray-400"
|
|
436
|
+
};
|
|
437
|
+
function Xe(e, t, n, r, i, a) {
|
|
438
|
+
return r.active && !r.hasMultiple ? (O(), v("div", Ie, [y("span", Le, M(r.active.avatarText), 1), y("span", Re, [y("span", ze, M(r.active.shortName), 1)])])) : r.active ? (O(), v("div", Be, [y("button", {
|
|
439
|
+
type: "button",
|
|
440
|
+
class: T(["flex items-center gap-2 rounded-lg border px-2.5 py-1.5 transition-all", r.open ? "border-gray-300 bg-white ring-1 ring-gray-200" : "border-gray-200 bg-gray-50 hover:bg-gray-100"]),
|
|
441
|
+
onClick: t[0] ||= (e) => r.open = !r.open
|
|
442
|
+
}, [
|
|
443
|
+
y("span", Ve, M(r.active.avatarText), 1),
|
|
444
|
+
y("span", He, [t[1] ||= y("span", { class: "mb-0.5 hidden text-[10px] leading-none text-gray-400 sm:block" }, "Організація", -1), y("span", Ue, M(r.active.shortName), 1)]),
|
|
445
|
+
x(r.AppIcon, {
|
|
446
|
+
name: "chevrons-up-down",
|
|
447
|
+
class: "h-[13px] w-[13px] shrink-0 text-gray-400"
|
|
448
|
+
})
|
|
449
|
+
], 2), r.open ? (O(), v("div", We, [t[2] ||= y("div", { class: "mb-0.5 border-b border-gray-100 px-3 py-1.5" }, [y("p", { class: "text-[10px] font-semibold uppercase tracking-wider text-gray-400" }, "Ваші організації")], -1), y("div", Ge, [(O(!0), v(p, null, te(n.organizations, (e) => (O(), v("button", {
|
|
450
|
+
key: e.id,
|
|
451
|
+
type: "button",
|
|
452
|
+
class: T(["flex w-full items-center gap-3 px-3 py-2.5 text-left transition-colors hover:bg-gray-50", e.id === n.activeOrgId ? "bg-gray-50" : ""]),
|
|
453
|
+
onClick: (t) => r.choose(e.id)
|
|
454
|
+
}, [
|
|
455
|
+
y("span", qe, M(e.avatarText), 1),
|
|
456
|
+
y("span", Je, [y("span", { class: T(["block truncate text-sm", e.id === n.activeOrgId ? "font-semibold text-gray-900" : "font-medium text-gray-800"]) }, M(e.shortName), 3), e.subtitle ? (O(), v("span", Ye, M(e.subtitle), 1)) : _("", !0)]),
|
|
457
|
+
e.id === n.activeOrgId ? (O(), g(r.AppIcon, {
|
|
458
|
+
key: 0,
|
|
459
|
+
name: "check",
|
|
460
|
+
class: "h-[15px] w-[15px] shrink-0 text-gray-700"
|
|
461
|
+
})) : _("", !0)
|
|
462
|
+
], 10, Ke))), 128))])])) : _("", !0)], 512)) : _("", !0);
|
|
463
|
+
}
|
|
464
|
+
var Ze = /*#__PURE__*/ r(Fe, [["render", Xe], ["__file", "C:/softpro/surveyor/cabinet/src/components/OrgSwitcher.vue"]]), Qe = /*@__PURE__*/ C({
|
|
465
|
+
__name: "CabinetTopNav",
|
|
466
|
+
setup(e, { expose: t }) {
|
|
467
|
+
t();
|
|
468
|
+
let n = F(), r = k(!1), s = k(!1), p = k(null), h = m(() => a(o)), g = m(() => `${o.userName.trim().charAt(0)}${o.fatherName.trim().charAt(0) || o.surName.trim().charAt(0)}`.toUpperCase());
|
|
469
|
+
function _(e) {
|
|
470
|
+
p.value && !p.value.contains(e.target) && (r.value = !1);
|
|
471
|
+
}
|
|
472
|
+
D(() => document.addEventListener("mousedown", _)), E(() => document.removeEventListener("mousedown", _));
|
|
473
|
+
function v() {
|
|
474
|
+
n.push({ name: "requests" });
|
|
475
|
+
}
|
|
476
|
+
function y() {
|
|
477
|
+
n.push({ name: "request-create" });
|
|
478
|
+
}
|
|
479
|
+
function b(e) {
|
|
480
|
+
c(e), n.push({ name: "requests" });
|
|
481
|
+
}
|
|
482
|
+
function x() {
|
|
483
|
+
r.value = !1, n.push({ name: "profile" });
|
|
484
|
+
}
|
|
485
|
+
async function S() {
|
|
486
|
+
r.value = !1, await i.logoutFromCabinet(n);
|
|
487
|
+
}
|
|
488
|
+
let C = {
|
|
489
|
+
router: n,
|
|
490
|
+
profileOpen: r,
|
|
491
|
+
searchFocused: s,
|
|
492
|
+
menuRef: p,
|
|
493
|
+
displayName: h,
|
|
494
|
+
initials: g,
|
|
495
|
+
onDocumentClick: _,
|
|
496
|
+
goRequests: v,
|
|
497
|
+
goCreateRequest: y,
|
|
498
|
+
selectOrg: b,
|
|
499
|
+
goProfile: x,
|
|
500
|
+
logout: S,
|
|
501
|
+
AppIcon: d,
|
|
502
|
+
OrgSwitcher: Ze,
|
|
503
|
+
get activeOrgId() {
|
|
504
|
+
return u;
|
|
505
|
+
},
|
|
506
|
+
get userOrganizations() {
|
|
507
|
+
return l;
|
|
508
|
+
},
|
|
509
|
+
get currentProfile() {
|
|
510
|
+
return o;
|
|
511
|
+
},
|
|
512
|
+
get listSearchQuery() {
|
|
513
|
+
return f;
|
|
514
|
+
}
|
|
515
|
+
};
|
|
516
|
+
return Object.defineProperty(C, "__isScriptSetup", {
|
|
517
|
+
enumerable: !1,
|
|
518
|
+
value: !0
|
|
519
|
+
}), C;
|
|
520
|
+
}
|
|
521
|
+
}), $e = { class: "sticky top-0 z-50 border-b border-gray-200 bg-white/95 backdrop-blur" }, et = { class: "mx-auto flex h-14 max-w-[1400px] items-center gap-2 px-4 sm:gap-4 sm:px-6" }, tt = { class: "flex h-7 w-7 items-center justify-center rounded-lg bg-[#2663EB]" }, nt = { class: "flex flex-1 justify-end" }, rt = {
|
|
522
|
+
ref: "menuRef",
|
|
523
|
+
class: "relative shrink-0"
|
|
524
|
+
}, it = { class: "flex h-7 w-7 items-center justify-center rounded-full bg-[#2663EB] text-xs font-semibold text-white" }, at = {
|
|
525
|
+
key: 0,
|
|
526
|
+
class: "absolute right-0 top-full z-50 mt-1.5 w-52 rounded-xl border border-gray-200 bg-white py-1.5 shadow-lg"
|
|
527
|
+
}, Y = { class: "mb-1 border-b border-gray-100 px-4 py-2" }, ot = { class: "text-sm font-medium text-gray-900" }, st = { class: "text-xs text-gray-500 text-wrap" }, ct = { class: "mt-1 border-t border-gray-100 pt-1" };
|
|
528
|
+
function lt(e, t, n, r, i, a) {
|
|
529
|
+
return O(), v("header", $e, [y("div", et, [
|
|
530
|
+
y("button", {
|
|
531
|
+
type: "button",
|
|
532
|
+
class: "flex shrink-0 items-center gap-2 transition-opacity hover:opacity-80",
|
|
533
|
+
onClick: r.goRequests
|
|
534
|
+
}, [y("span", tt, [x(r.AppIcon, {
|
|
535
|
+
name: "map-pin",
|
|
536
|
+
class: "h-3.5 w-3.5 text-white",
|
|
537
|
+
"stroke-width": 2.5
|
|
538
|
+
})]), t[5] ||= y("span", { class: "hidden text-sm font-semibold tracking-tight text-gray-900 md:block" }, "Кабінет Геодезиста", -1)]),
|
|
539
|
+
t[9] ||= y("div", { class: "hidden h-6 w-px shrink-0 bg-gray-200 md:block" }, null, -1),
|
|
540
|
+
x(r.OrgSwitcher, {
|
|
541
|
+
organizations: r.userOrganizations,
|
|
542
|
+
"active-org-id": r.activeOrgId,
|
|
543
|
+
onSelect: r.selectOrg
|
|
544
|
+
}, null, 8, ["organizations", "active-org-id"]),
|
|
545
|
+
y("div", nt, [y("label", { class: T(["relative flex items-center transition-all duration-200", r.searchFocused ? "w-44 sm:w-72" : "w-32 sm:w-56"]) }, [
|
|
546
|
+
x(r.AppIcon, {
|
|
547
|
+
name: "search",
|
|
548
|
+
class: "pointer-events-none absolute left-3 h-[15px] w-[15px] text-gray-400"
|
|
549
|
+
}),
|
|
550
|
+
ie(y("input", {
|
|
551
|
+
"onUpdate:modelValue": t[0] ||= (e) => r.listSearchQuery = e,
|
|
552
|
+
type: "text",
|
|
553
|
+
placeholder: "Пошук звернень...",
|
|
554
|
+
class: "w-full rounded-lg bg-gray-100 py-1.5 pl-9 pr-8 text-sm text-gray-800 outline-none transition-all placeholder:text-gray-400 focus:bg-white focus:ring-2 focus:ring-[#2663EB]/20",
|
|
555
|
+
onFocus: t[1] ||= (e) => r.searchFocused = !0,
|
|
556
|
+
onBlur: t[2] ||= (e) => r.searchFocused = !1
|
|
557
|
+
}, null, 544), [[ne, r.listSearchQuery]]),
|
|
558
|
+
r.listSearchQuery ? (O(), v("button", {
|
|
559
|
+
key: 0,
|
|
560
|
+
type: "button",
|
|
561
|
+
class: "absolute right-2 text-gray-400 hover:text-gray-600",
|
|
562
|
+
"aria-label": "Очистити пошук",
|
|
563
|
+
onClick: t[3] ||= (e) => r.listSearchQuery = ""
|
|
564
|
+
}, [x(r.AppIcon, {
|
|
565
|
+
name: "x",
|
|
566
|
+
class: "h-3.5 w-3.5"
|
|
567
|
+
})])) : _("", !0)
|
|
568
|
+
], 2)]),
|
|
569
|
+
y("button", {
|
|
570
|
+
type: "button",
|
|
571
|
+
class: "flex shrink-0 items-center gap-1.5 rounded-lg bg-[#2663EB] px-3 py-1.5 text-sm font-medium text-white transition-all hover:bg-[#1d52cc] active:scale-95 sm:px-3.5",
|
|
572
|
+
onClick: r.goCreateRequest
|
|
573
|
+
}, [x(r.AppIcon, {
|
|
574
|
+
name: "plus",
|
|
575
|
+
class: "h-[15px] w-[15px]",
|
|
576
|
+
"stroke-width": 2.5
|
|
577
|
+
}), t[6] ||= y("span", { class: "hidden sm:block" }, "Нове звернення", -1)]),
|
|
578
|
+
y("div", rt, [y("button", {
|
|
579
|
+
type: "button",
|
|
580
|
+
class: "flex items-center gap-2 rounded-lg py-1 pl-2 pr-1 transition-colors hover:bg-gray-100",
|
|
581
|
+
onClick: t[4] ||= (e) => r.profileOpen = !r.profileOpen
|
|
582
|
+
}, [y("span", it, M(r.initials), 1), x(r.AppIcon, {
|
|
583
|
+
name: "chevron-down",
|
|
584
|
+
class: T(["h-3.5 w-3.5 text-gray-400 transition-transform", r.profileOpen ? "rotate-180" : ""])
|
|
585
|
+
}, null, 8, ["class"])]), r.profileOpen ? (O(), v("div", at, [
|
|
586
|
+
y("div", Y, [y("p", ot, M(r.displayName), 1), y("p", st, M(r.currentProfile.email), 1)]),
|
|
587
|
+
y("button", {
|
|
588
|
+
type: "button",
|
|
589
|
+
class: "flex w-full items-center gap-2.5 px-4 py-2 text-sm text-gray-700 transition-colors hover:bg-gray-50",
|
|
590
|
+
onClick: r.goProfile
|
|
591
|
+
}, [x(r.AppIcon, {
|
|
592
|
+
name: "user",
|
|
593
|
+
class: "h-[15px] w-[15px] text-gray-400"
|
|
594
|
+
}), t[7] ||= b(" Особиста інформація ", -1)]),
|
|
595
|
+
y("div", ct, [y("button", {
|
|
596
|
+
type: "button",
|
|
597
|
+
class: "flex w-full items-center gap-2.5 px-4 py-2 text-sm text-red-600 transition-colors hover:bg-red-50",
|
|
598
|
+
onClick: r.logout
|
|
599
|
+
}, [x(r.AppIcon, {
|
|
600
|
+
name: "log-out",
|
|
601
|
+
class: "h-[15px] w-[15px]"
|
|
602
|
+
}), t[8] ||= b(" Вийти ", -1)])])
|
|
603
|
+
])) : _("", !0)], 512)
|
|
604
|
+
])]);
|
|
605
|
+
}
|
|
606
|
+
var ut = /*#__PURE__*/ r(Qe, [["render", lt], ["__file", "C:/softpro/surveyor/cabinet/src/layouts/CabinetTopNav.vue"]]), dt = /*@__PURE__*/ C({
|
|
607
|
+
__name: "CabinetLayout",
|
|
608
|
+
setup(e, { expose: t }) {
|
|
609
|
+
t(), D(() => {
|
|
610
|
+
s();
|
|
611
|
+
});
|
|
612
|
+
let n = {
|
|
613
|
+
get RouterView() {
|
|
614
|
+
return P;
|
|
615
|
+
},
|
|
616
|
+
CabinetTopNav: ut
|
|
617
|
+
};
|
|
618
|
+
return Object.defineProperty(n, "__isScriptSetup", {
|
|
619
|
+
enumerable: !1,
|
|
620
|
+
value: !0
|
|
621
|
+
}), n;
|
|
622
|
+
}
|
|
623
|
+
}), ft = { class: "min-h-screen bg-gray-50 font-sans" };
|
|
624
|
+
function pt(e, t, n, r, i, a) {
|
|
625
|
+
return O(), v("div", ft, [x(r.CabinetTopNav), x(r.RouterView)]);
|
|
626
|
+
}
|
|
627
|
+
//#endregion
|
|
628
|
+
//#region cabinet/src/router/routes.ts
|
|
629
|
+
var X = [
|
|
630
|
+
{
|
|
631
|
+
path: "/login",
|
|
632
|
+
name: "login",
|
|
633
|
+
component: () => import("./chunks/login-BWGylcSU.js"),
|
|
634
|
+
meta: {
|
|
635
|
+
public: !0,
|
|
636
|
+
title: "Вхід"
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
path: "/registration/:token",
|
|
641
|
+
name: "registration-complete",
|
|
642
|
+
component: () => import("./chunks/registration-3GLgq-ae.js"),
|
|
643
|
+
meta: {
|
|
644
|
+
public: !0,
|
|
645
|
+
title: "Завершення реєстрації"
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
path: "/password/forgot",
|
|
650
|
+
name: "password-forgot",
|
|
651
|
+
component: () => import("./chunks/forgot-DoG6vXhq.js"),
|
|
652
|
+
meta: {
|
|
653
|
+
public: !0,
|
|
654
|
+
title: "Відновлення пароля"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
path: "/password/reset/:token",
|
|
659
|
+
name: "password-reset",
|
|
660
|
+
component: () => import("./chunks/reset-CP9LsLkC.js"),
|
|
661
|
+
meta: {
|
|
662
|
+
public: !0,
|
|
663
|
+
title: "Новий пароль"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
path: "/",
|
|
668
|
+
component: /* @__PURE__ */ r(dt, [["render", pt], ["__file", "C:/softpro/surveyor/cabinet/src/layouts/CabinetLayout.vue"]]),
|
|
669
|
+
children: [
|
|
670
|
+
{
|
|
671
|
+
path: "",
|
|
672
|
+
redirect: "/requests"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
path: "requests",
|
|
676
|
+
name: "requests",
|
|
677
|
+
component: () => import("./chunks/requests-BM6XqgpC.js"),
|
|
678
|
+
meta: {
|
|
679
|
+
title: "Звернення",
|
|
680
|
+
label: "Звернення на видачу та прийом матеріалів",
|
|
681
|
+
icon: "requests"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
path: "requests/new",
|
|
686
|
+
name: "request-create",
|
|
687
|
+
component: () => import("./chunks/create-BPWuoys6.js"),
|
|
688
|
+
meta: {
|
|
689
|
+
title: "Нове звернення",
|
|
690
|
+
section: "requests"
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
path: "requests/:number",
|
|
695
|
+
name: "request-detail",
|
|
696
|
+
component: () => import("./chunks/card-BDqeihxR.js"),
|
|
697
|
+
meta: {
|
|
698
|
+
title: "Звернення",
|
|
699
|
+
section: "requests"
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
path: "profile",
|
|
704
|
+
name: "profile",
|
|
705
|
+
component: () => import("./chunks/profile-CkwMFh82.js"),
|
|
706
|
+
meta: {
|
|
707
|
+
title: "Профайл",
|
|
708
|
+
label: "Профайл",
|
|
709
|
+
icon: "profile"
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
]
|
|
713
|
+
}
|
|
714
|
+
];
|
|
715
|
+
//#endregion
|
|
716
|
+
//#region cabinet/src/router/create.ts
|
|
717
|
+
function Z(e = "/") {
|
|
718
|
+
let t = ae({
|
|
719
|
+
history: oe(e),
|
|
720
|
+
routes: X
|
|
721
|
+
});
|
|
722
|
+
return t.beforeEach((e) => {
|
|
723
|
+
if (e.meta.public) {
|
|
724
|
+
if (e.name === "login" && i.isAuthenticated) {
|
|
725
|
+
let t = e.query.redirect;
|
|
726
|
+
return typeof t == "string" && t.startsWith("/") && !t.startsWith("//") ? t : { name: "requests" };
|
|
727
|
+
}
|
|
728
|
+
return !0;
|
|
729
|
+
}
|
|
730
|
+
return i.isAuthenticated ? !0 : {
|
|
731
|
+
name: "login",
|
|
732
|
+
query: { redirect: e.fullPath }
|
|
733
|
+
};
|
|
734
|
+
}), t;
|
|
735
|
+
}
|
|
736
|
+
//#endregion
|
|
737
|
+
//#region src/wrappers/CabinetHost.vue?vue&type=script&setup=true&lang.ts
|
|
738
|
+
var mt = /*@__PURE__*/ C({
|
|
739
|
+
__name: "CabinetHost",
|
|
740
|
+
props: { base: {
|
|
741
|
+
type: String,
|
|
742
|
+
required: !1,
|
|
743
|
+
default: "/cabinet/"
|
|
744
|
+
} },
|
|
745
|
+
setup(e, { expose: t }) {
|
|
746
|
+
t();
|
|
747
|
+
let n = e, r = k(null), i = null;
|
|
748
|
+
D(() => {
|
|
749
|
+
r.value && (i = h(J), i.use(Z(n.base)), i.mount(r.value));
|
|
750
|
+
}), E(() => {
|
|
751
|
+
i?.unmount(), i = null;
|
|
752
|
+
});
|
|
753
|
+
let a = {
|
|
754
|
+
props: n,
|
|
755
|
+
el: r,
|
|
756
|
+
get app() {
|
|
757
|
+
return i;
|
|
758
|
+
},
|
|
759
|
+
set app(e) {
|
|
760
|
+
i = e;
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
return Object.defineProperty(a, "__isScriptSetup", {
|
|
764
|
+
enumerable: !1,
|
|
765
|
+
value: !0
|
|
766
|
+
}), a;
|
|
767
|
+
}
|
|
768
|
+
}), ht = {
|
|
769
|
+
ref: "el",
|
|
770
|
+
class: "min-h-screen"
|
|
771
|
+
};
|
|
772
|
+
function gt(e, t, n, r, i, a) {
|
|
773
|
+
return O(), v("div", ht, null, 512);
|
|
774
|
+
}
|
|
775
|
+
var _t = /*#__PURE__*/ r(mt, [["render", gt], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetHost.vue"]]), Q = {
|
|
776
|
+
map: "/map",
|
|
777
|
+
requests: "/requests",
|
|
778
|
+
organizations: "/organizations",
|
|
779
|
+
certificates: "/certificates",
|
|
780
|
+
users: "/users",
|
|
781
|
+
mapLayers: "/map-layers",
|
|
782
|
+
cabinetRequests: "/requests",
|
|
783
|
+
cabinetProfile: "/profile"
|
|
784
|
+
}, $ = Symbol("surveyor-paths");
|
|
785
|
+
function vt(e = {}) {
|
|
786
|
+
let t = {
|
|
787
|
+
...Q,
|
|
788
|
+
...e.paths
|
|
789
|
+
};
|
|
790
|
+
return { install(e) {
|
|
791
|
+
e.provide($, t);
|
|
792
|
+
} };
|
|
373
793
|
}
|
|
374
|
-
var ae = /*#__PURE__*/ r(te, [["render", ie], ["__file", "C:/softpro/surveyor/shared/surveyor/SurveyorRoot.vue"]]);
|
|
375
794
|
//#endregion
|
|
376
|
-
export {
|
|
795
|
+
export { J as Cabinet, _t as CabinetHost, Oe as CabinetProfile, Te as CabinetRequests, ge as Certificates, U as Map, Se as MapLayers, pe as Organisations, ue as Requests, $ as SURVEYOR_PATHS_KEY, n as SURVEYOR_PORTAL_ID, e as SURVEYOR_ROOT_ID, q as SurveyorRoot, ye as Users, X as cabinetRoutes, Z as createCabinetRouter, vt as createSurveyorPlugin, Q as defaultSurveyorPaths };
|