ss-component-new 1.3.298 → 1.3.299

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.
@@ -0,0 +1,481 @@
1
+ import { createElementBlock as R, openBlock as V, createElementVNode as c, renderSlot as T, defineComponent as K, ref as F, resolveComponent as E, createVNode as b, withCtx as r, unref as U, reactive as Y, watch as j, onBeforeUnmount as ee, computed as te, onMounted as ae, createCommentVNode as oe, toDisplayString as A, createTextVNode as M } from "vue";
2
+ import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import { b as P, p as q, l as ne, d as se, u as ie, s as le, e as ce } from "./menu-BMAZOS2j.js";
4
+ import "./index-CEwg_zdl.js";
5
+ import { u as re } from "./index-CqiskI7e.js";
6
+ import { E as H } from "./request-CoGtW0Ux.js";
7
+ import { useRouter as de } from "vue-router";
8
+ import { u as ue, l as me, v as ge } from "./index-CkXAOjdK.js";
9
+ const fe = {}, pe = { class: "left-wrap" }, _e = { class: "left-bg" };
10
+ function ve(y, m) {
11
+ return V(), R("div", pe, [
12
+ c("div", _e, [
13
+ T(y.$slots, "img", {}, void 0, !0)
14
+ ])
15
+ ]);
16
+ }
17
+ const be = /* @__PURE__ */ B(fe, [["render", ve], ["__scopeId", "data-v-9b7ee6c9"]]), x = {
18
+ ACCOUNT: "account",
19
+ FACE: "face"
20
+ }, he = { class: "right-wrap" }, ye = { class: "tab-content" }, Ce = { class: "tab-tips" }, we = { class: "tab-content" }, Le = { class: "tab-tips" }, Te = /* @__PURE__ */ K({
21
+ __name: "index",
22
+ props: {
23
+ tabList: {
24
+ type: Array,
25
+ default: []
26
+ },
27
+ loading: {
28
+ type: Boolean,
29
+ default: !1
30
+ }
31
+ },
32
+ emits: ["clickLogin", "handleTabChange"],
33
+ setup(y, { emit: m }) {
34
+ const t = F(x.ACCOUNT), e = m, C = () => {
35
+ e("clickLogin", t.value);
36
+ }, d = (s) => {
37
+ e("handleTabChange", s);
38
+ };
39
+ return (s, g) => {
40
+ const o = E("el-button"), i = E("el-tab-pane"), p = E("el-tabs");
41
+ return V(), R("div", he, [
42
+ b(p, {
43
+ modelValue: t.value,
44
+ "onUpdate:modelValue": g[0] || (g[0] = (l) => t.value = l),
45
+ class: "right-tabs",
46
+ onTabChange: d
47
+ }, {
48
+ default: r(() => [
49
+ b(i, {
50
+ name: U(x).ACCOUNT
51
+ }, {
52
+ label: r(() => [
53
+ T(s.$slots, "tabLabel1", {}, void 0, !0)
54
+ ]),
55
+ default: r(() => [
56
+ c("div", ye, [
57
+ T(s.$slots, "tabContent1", {}, void 0, !0)
58
+ ]),
59
+ c("div", {
60
+ class: "tab-button special",
61
+ onClick: C
62
+ }, [
63
+ b(o, { loading: y.loading }, {
64
+ default: r(() => [
65
+ T(s.$slots, "tabButton1", {}, void 0, !0)
66
+ ]),
67
+ _: 3
68
+ }, 8, ["loading"])
69
+ ]),
70
+ c("div", Ce, [
71
+ T(s.$slots, "tabTips1", {}, void 0, !0)
72
+ ])
73
+ ]),
74
+ _: 3
75
+ }, 8, ["name"]),
76
+ b(i, {
77
+ name: U(x).FACE
78
+ }, {
79
+ label: r(() => [
80
+ T(s.$slots, "tabLabel2", {}, void 0, !0)
81
+ ]),
82
+ default: r(() => [
83
+ c("div", we, [
84
+ T(s.$slots, "tabContent2", {}, void 0, !0)
85
+ ]),
86
+ c("div", Le, [
87
+ T(s.$slots, "tabTips2", {}, void 0, !0)
88
+ ])
89
+ ]),
90
+ _: 3
91
+ }, 8, ["name"])
92
+ ]),
93
+ _: 3
94
+ }, 8, ["modelValue"])
95
+ ]);
96
+ };
97
+ }
98
+ }), ke = /* @__PURE__ */ B(Te, [["__scopeId", "data-v-8b1962f0"]]), Ne = { class: "account-wrap" }, $e = /* @__PURE__ */ K({
99
+ __name: "index",
100
+ props: {
101
+ activeTabName: {
102
+ type: String,
103
+ default: ""
104
+ },
105
+ isClickLogin: {
106
+ type: Boolean,
107
+ default: !1
108
+ }
109
+ },
110
+ emits: ["handleLoginFormChange"],
111
+ setup(y, { emit: m }) {
112
+ const t = y, e = Y({
113
+ account: "",
114
+ password: ""
115
+ }), C = Y({
116
+ account: [
117
+ { required: !0, message: "请输入账号", trigger: "blur" }
118
+ ],
119
+ password: [
120
+ { required: !0, message: "请输入密码", trigger: "blur" }
121
+ ]
122
+ }), d = F(null), s = m;
123
+ return j(() => t.isClickLogin, (g) => {
124
+ var o;
125
+ g && (t == null ? void 0 : t.activeTabName) === "account" && ((o = d.value) == null || o.validate((i) => {
126
+ var p;
127
+ for (let l in e)
128
+ e.hasOwnProperty(l) && (e[l] = (p = e[l]) == null ? void 0 : p.trim());
129
+ s("handleLoginFormChange", i, i ? e : null);
130
+ }));
131
+ }, {
132
+ immediate: !0
133
+ }), j(() => t.activeTabName, (g) => {
134
+ var o;
135
+ g === "account" && ((o = d.value) == null || o.resetFields());
136
+ }), (g, o) => {
137
+ const i = E("svg-icon"), p = E("el-input"), l = E("el-form-item"), w = E("el-form");
138
+ return V(), R("div", Ne, [
139
+ b(w, {
140
+ model: e,
141
+ rules: C,
142
+ ref_key: "formRef",
143
+ ref: d
144
+ }, {
145
+ default: r(() => [
146
+ b(l, {
147
+ label: "",
148
+ prop: "account"
149
+ }, {
150
+ default: r(() => [
151
+ b(p, {
152
+ class: "account-input",
153
+ modelValue: e.account,
154
+ "onUpdate:modelValue": o[0] || (o[0] = (_) => e.account = _),
155
+ placeholder: "请输入账号",
156
+ clearable: ""
157
+ }, {
158
+ prefix: r(() => [
159
+ b(i, {
160
+ name: "account",
161
+ style: { width: "15px", height: "15px" }
162
+ })
163
+ ]),
164
+ _: 1
165
+ }, 8, ["modelValue"])
166
+ ]),
167
+ _: 1
168
+ }),
169
+ b(l, {
170
+ label: "",
171
+ prop: "password"
172
+ }, {
173
+ default: r(() => [
174
+ b(p, {
175
+ class: "account-input",
176
+ modelValue: e.password,
177
+ "onUpdate:modelValue": o[1] || (o[1] = (_) => e.password = _),
178
+ type: "password",
179
+ placeholder: "请输入密码",
180
+ "show-password": "",
181
+ clearable: ""
182
+ }, {
183
+ prefix: r(() => [
184
+ b(i, {
185
+ name: "password",
186
+ style: { width: "15px", height: "15px" }
187
+ })
188
+ ]),
189
+ _: 1
190
+ }, 8, ["modelValue"])
191
+ ]),
192
+ _: 1
193
+ })
194
+ ]),
195
+ _: 1
196
+ }, 8, ["model", "rules"])
197
+ ]);
198
+ };
199
+ }
200
+ }), Fe = /* @__PURE__ */ B($e, [["__scopeId", "data-v-48037c0f"]]), Se = { class: "account-wrap" }, Ae = { class: "video-wrap" }, Ee = /* @__PURE__ */ K({
201
+ __name: "index",
202
+ props: {
203
+ systemKey: { default: "" },
204
+ activeTabName: { default: "" },
205
+ isClickLogin: { type: Boolean, default: !1 }
206
+ },
207
+ emits: ["handleLoginFormChange"],
208
+ setup(y, { emit: m }) {
209
+ const t = y, e = m;
210
+ P(q);
211
+ const { initVerify: C } = re(), d = F(null), s = F(null);
212
+ let g = !1, o = null;
213
+ const i = async (a) => {
214
+ if (!a)
215
+ return;
216
+ const u = await C(a), { data: f } = u || {}, { account: h, password: L } = (f == null ? void 0 : f.data) || {}, v = f == null ? void 0 : f.msg;
217
+ if (!h) {
218
+ H.warning(v || "识别失败,请重新识别!");
219
+ return;
220
+ }
221
+ e("handleLoginFormChange", !0, {
222
+ account: h,
223
+ password: L
224
+ });
225
+ }, p = () => {
226
+ if (!s.value || !d.value)
227
+ return;
228
+ const a = s.value, u = a.getContext("2d"), f = d.value;
229
+ a.width = 200, a.height = 200;
230
+ const h = f.videoWidth || 640, L = f.videoHeight || 480, v = Math.min(200 / h, 200 / L), k = h * v, n = L * v, N = (200 - k) / 2, $ = (200 - n) / 2;
231
+ u == null || u.drawImage(f, 0, 0, h, L, N, $, k, n), a.toBlob((S) => {
232
+ if (S) {
233
+ const O = new File([S], "face.png", { type: "image/png" });
234
+ i(O);
235
+ }
236
+ }, "image/png");
237
+ }, l = async () => {
238
+ if (!d.value || g)
239
+ return;
240
+ const a = d.value;
241
+ try {
242
+ if (o = await navigator.mediaDevices.getUserMedia({
243
+ video: { facingMode: "user" },
244
+ // 前置;后置用 'environment'
245
+ audio: !1
246
+ }), a) {
247
+ const u = a;
248
+ u.srcObject = o, g = !0;
249
+ }
250
+ } catch {
251
+ H.warning("摄像头启动失败");
252
+ }
253
+ };
254
+ function w(a) {
255
+ if (a && (a.getTracks().forEach((u) => u.stop()), d.value)) {
256
+ const u = d.value;
257
+ u.srcObject = null;
258
+ }
259
+ }
260
+ const _ = () => {
261
+ w(o), g = !1;
262
+ };
263
+ return j(() => t.activeTabName, (a) => {
264
+ if (a !== x.FACE) {
265
+ _();
266
+ return;
267
+ }
268
+ if (a === x.FACE && !g) {
269
+ l();
270
+ return;
271
+ }
272
+ }), ee(() => {
273
+ _();
274
+ }), (a, u) => (V(), R("div", Se, [
275
+ c("div", Ae, [
276
+ c("video", {
277
+ class: "face-video",
278
+ ref_key: "videoRef",
279
+ ref: d,
280
+ id: "v",
281
+ autoplay: "",
282
+ playsinline: ""
283
+ }, null, 512)
284
+ ]),
285
+ T(a.$slots, "default", {}, () => [
286
+ c("button", {
287
+ class: "face-screenshot",
288
+ onClick: p
289
+ }, "人脸识别")
290
+ ], !0),
291
+ c("canvas", {
292
+ ref_key: "canvasRef",
293
+ ref: s,
294
+ id: "canvas"
295
+ }, null, 512)
296
+ ]));
297
+ }
298
+ }), Re = /* @__PURE__ */ B(Ee, [["__scopeId", "data-v-b64bc91c"]]), Z = P(q), { isDefaultModel: Ve } = ue(), Me = async (y, m) => {
299
+ var C, d, s, g, o, i, p, l, w, _, a, u, f, h;
300
+ let t = Object.values(y), e = await ne({
301
+ userName: (C = t == null ? void 0 : t[0]) == null ? void 0 : C.trim(),
302
+ password: (d = t == null ? void 0 : t[1]) == null ? void 0 : d.trim()
303
+ });
304
+ if (((s = e == null ? void 0 : e.data) == null ? void 0 : s.status) === 200 && ((o = (g = e == null ? void 0 : e.data) == null ? void 0 : g.result) == null ? void 0 : o.length) <= 0 && (e = await se({
305
+ userName: (i = t == null ? void 0 : t[0]) == null ? void 0 : i.trim(),
306
+ password: (p = t == null ? void 0 : t[1]) == null ? void 0 : p.trim(),
307
+ path: "系统管理/用户管理",
308
+ platId: m
309
+ })), ((l = e == null ? void 0 : e.data) == null ? void 0 : l.status) === 200 && ((_ = (w = e == null ? void 0 : e.data) == null ? void 0 : w.result) == null ? void 0 : _.length) > 0) {
310
+ const v = ((u = (a = e == null ? void 0 : e.data) == null ? void 0 : a.result) == null ? void 0 : u.find((n) => Ve(n))) || ((h = (f = e == null ? void 0 : e.data) == null ? void 0 : f.result) == null ? void 0 : h[0]);
311
+ sessionStorage.setItem("systemKey", m && m !== "" ? m : v == null ? void 0 : v.plat_id);
312
+ let k = v;
313
+ return k.plat_id = k.plat_id ?? m, Z.setLoginUserInfo(k), Z.setSystemKey(m && m !== "" ? m : v == null ? void 0 : v.plat_id), !0;
314
+ } else
315
+ return H.error("输入的密码错误,请重新输入"), !1;
316
+ }, xe = { class: "login-wrap" }, Be = { class: "login-body" }, Ie = { class: "login-body-item left" }, Ue = { class: "title" }, je = { class: "first-level" }, qe = {
317
+ key: 0,
318
+ class: "logo"
319
+ }, Ke = ["src"], Oe = { class: "english-name" }, He = { class: "login-body-item right" }, Pe = /* @__PURE__ */ K({
320
+ __name: "index",
321
+ props: {
322
+ oldSystemKey: {},
323
+ loginContent: {}
324
+ },
325
+ emits: ["change", "projectLogin"],
326
+ setup(y, { emit: m }) {
327
+ const t = y, e = de(), C = m, d = ie(q), s = P(q), { systemKey: g, systemInfo: o, loginUserInfo: i } = le(s), p = te(() => {
328
+ var n;
329
+ return ((n = o.value) == null ? void 0 : n.logo) || me;
330
+ }), l = F({
331
+ // sysCTitle: 'INSOFWORKS',
332
+ sysCTitle: "",
333
+ sysETitle: "",
334
+ // sysETitle: 'Dynamic Test Information System',
335
+ loginTitle: "账户密码登录",
336
+ tabs: [
337
+ {
338
+ name: "密码登录",
339
+ btnLabel: "登录",
340
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
341
+ },
342
+ {
343
+ name: "人脸识别",
344
+ btnLabel: "人脸识别",
345
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
346
+ },
347
+ {
348
+ name: "刷卡登录",
349
+ btnLabel: "登录",
350
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
351
+ }
352
+ ]
353
+ }), w = F("account"), _ = F(!1), a = F(!1), u = () => {
354
+ _.value = !0;
355
+ }, f = (n, N) => {
356
+ _.value = !1, n && v(N);
357
+ }, h = async () => (sessionStorage.setItem("loginToken", "111"), !0), L = async () => (sessionStorage.setItem("magicToken", "123456"), !0);
358
+ ae(async () => {
359
+ await h();
360
+ });
361
+ const v = async (n) => {
362
+ var D, J, W, z, G, Q, X;
363
+ a.value = !0;
364
+ let N = [Me(n, (D = o.value) == null ? void 0 : D.plat_id), h(), L()];
365
+ const $ = await Promise.all(N), S = $ == null ? void 0 : $.every((I) => I);
366
+ let O = [
367
+ {
368
+ id: "1",
369
+ request_method: "Post",
370
+ request_url: "/platform/getdata",
371
+ request_param: JSON.stringify({
372
+ userName: "hjj",
373
+ password: "1"
374
+ }),
375
+ request_result: "{}",
376
+ is_delete: !1,
377
+ request_table: "admin_user",
378
+ request_type: "login"
379
+ }
380
+ ];
381
+ try {
382
+ const I = ((J = i == null ? void 0 : i.value) == null ? void 0 : J.plat_id) || ((W = o.value) == null ? void 0 : W.plat_id);
383
+ await ce({
384
+ platId: parseInt(I),
385
+ changeContents: [{
386
+ tableName: "log",
387
+ tableContents: O
388
+ }]
389
+ });
390
+ } catch {
391
+ }
392
+ S ? (C("projectLogin", n), await ge(), e.push("/"), s.setLogRecordAsync({
393
+ type: "登录",
394
+ data: {
395
+ account: ((z = i.value) == null ? void 0 : z.account) ?? ((G = i.value) == null ? void 0 : G.账号),
396
+ userName: ((Q = i.value) == null ? void 0 : Q.姓名) || ((X = i.value) == null ? void 0 : X.userName) || "未知"
397
+ }
398
+ }, "/login", "login"), d.setHasClickEditComp(!1)) : a.value = !1, a.value = !1;
399
+ };
400
+ j(
401
+ () => t == null ? void 0 : t.loginContent,
402
+ () => {
403
+ let n = t == null ? void 0 : t.loginContent;
404
+ n != null && n.account && (n != null && n.password) && v(n);
405
+ },
406
+ { deep: !0, immediate: !0 }
407
+ );
408
+ const k = (n) => {
409
+ w.value = n, _.value = !1, a.value = !1;
410
+ };
411
+ return (n, N) => (V(), R("div", xe, [
412
+ c("div", Be, [
413
+ c("div", Ie, [
414
+ b(be, { class: "login-left-bg" }, {
415
+ img: r(() => {
416
+ var $, S;
417
+ return [
418
+ c("div", Ue, [
419
+ c("div", je, [
420
+ p.value ? (V(), R("div", qe, [
421
+ c("img", {
422
+ src: p.value,
423
+ alt: ""
424
+ }, null, 8, Ke)
425
+ ])) : oe("", !0),
426
+ c("div", Oe, A((($ = U(o)) == null ? void 0 : $.EnglishName) || "Insofworks"), 1)
427
+ ]),
428
+ c("div", null, A(((S = U(o)) == null ? void 0 : S.chineseName) || "工业软件建模与开发系统"), 1)
429
+ ]),
430
+ N[0] || (N[0] = c("div", { class: "divide-line" }, null, -1))
431
+ ];
432
+ }),
433
+ _: 1
434
+ })
435
+ ]),
436
+ c("div", He, [
437
+ b(ke, {
438
+ loading: a.value,
439
+ onClickLogin: u,
440
+ onHandleTabChange: k
441
+ }, {
442
+ title: r(() => [
443
+ M(A(l.value.loginTitle), 1)
444
+ ]),
445
+ tabLabel1: r(() => [
446
+ M(A(l.value.tabs[0].name), 1)
447
+ ]),
448
+ tabContent1: r(() => [
449
+ b(Fe, {
450
+ activeTabName: w.value,
451
+ isClickLogin: _.value,
452
+ onHandleLoginFormChange: f
453
+ }, null, 8, ["activeTabName", "isClickLogin"])
454
+ ]),
455
+ tabButton1: r(() => [
456
+ M(A(l.value.tabs[0].btnLabel), 1)
457
+ ]),
458
+ tabLabel2: r(() => [
459
+ M(A(l.value.tabs[1].name), 1)
460
+ ]),
461
+ tabContent2: r(() => [
462
+ b(Re, {
463
+ systemKey: n.oldSystemKey,
464
+ activeTabName: w.value,
465
+ isClickLogin: _.value,
466
+ onHandleLoginFormChange: f
467
+ }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
468
+ ]),
469
+ tabButton2: r(() => [
470
+ M(A(l.value.tabs[1].btnLabel), 1)
471
+ ]),
472
+ _: 1
473
+ }, 8, ["loading"])
474
+ ])
475
+ ])
476
+ ]));
477
+ }
478
+ }), Ze = /* @__PURE__ */ B(Pe, [["__scopeId", "data-v-233316bd"]]);
479
+ export {
480
+ Ze as default
481
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),h=require("./menu-DopnPfbG.cjs");require("./index-CwOB279v.cjs");const U=require("./index-cC0isUDx.cjs"),$=require("./request-BC2w2vGr.cjs"),K=require("vue-router"),B=require("./index-CQY6ageG.cjs"),D={},H={class:"left-wrap"},P={class:"left-bg"};function J(b,u){return e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("div",P,[e.renderSlot(b.$slots,"img",{},void 0,!0)])])}const W=k._export_sfc(D,[["render",J],["__scopeId","data-v-9b7ee6c9"]]),x={ACCOUNT:"account",FACE:"face"},z={class:"right-wrap"},G={class:"tab-content"},Q={class:"tab-tips"},X={class:"tab-content"},Y={class:"tab-tips"},Z=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(b,{emit:u}){const o=e.ref(x.ACCOUNT),t=u,C=()=>{t("clickLogin",o.value)},r=i=>{t("handleTabChange",i)};return(i,m)=>{const a=e.resolveComponent("el-button"),l=e.resolveComponent("el-tab-pane"),p=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(p,{modelValue:o.value,"onUpdate:modelValue":m[0]||(m[0]=c=>o.value=c),class:"right-tabs",onTabChange:r},{default:e.withCtx(()=>[e.createVNode(l,{name:e.unref(x).ACCOUNT},{label:e.withCtx(()=>[e.renderSlot(i.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",G,[e.renderSlot(i.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:C},[e.createVNode(a,{loading:b.loading},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",Q,[e.renderSlot(i.$slots,"tabTips1",{},void 0,!0)])]),_:3},8,["name"]),e.createVNode(l,{name:e.unref(x).FACE},{label:e.withCtx(()=>[e.renderSlot(i.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",X,[e.renderSlot(i.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",Y,[e.renderSlot(i.$slots,"tabTips2",{},void 0,!0)])]),_:3},8,["name"])]),_:3},8,["modelValue"])])}}}),ee=k._export_sfc(Z,[["__scopeId","data-v-8b1962f0"]]),te={class:"account-wrap"},oe=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(b,{emit:u}){const o=b,t=e.reactive({account:"",password:""}),C=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),r=e.ref(null),i=u;return e.watch(()=>o.isClickLogin,m=>{var a;m&&(o==null?void 0:o.activeTabName)==="account"&&((a=r.value)==null||a.validate(l=>{var p;for(let c in t)t.hasOwnProperty(c)&&(t[c]=(p=t[c])==null?void 0:p.trim());i("handleLoginFormChange",l,l?t:null)}))},{immediate:!0}),e.watch(()=>o.activeTabName,m=>{var a;m==="account"&&((a=r.value)==null||a.resetFields())}),(m,a)=>{const l=e.resolveComponent("svg-icon"),p=e.resolveComponent("el-input"),c=e.resolveComponent("el-form-item"),y=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",te,[e.createVNode(y,{model:t,rules:C,ref_key:"formRef",ref:r},{default:e.withCtx(()=>[e.createVNode(c,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(p,{class:"account-input",modelValue:t.account,"onUpdate:modelValue":a[0]||(a[0]=f=>t.account=f),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(l,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(c,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(p,{class:"account-input",modelValue:t.password,"onUpdate:modelValue":a[1]||(a[1]=f=>t.password=f),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(l,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),ne=k._export_sfc(oe,[["__scopeId","data-v-48037c0f"]]),ae={class:"account-wrap"},se={class:"video-wrap"},ie=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(b,{emit:u}){const o=b,t=u;h.useLoginState(h.pinia);const{initVerify:C}=U.useFaceRecognition(),r=e.ref(null),i=e.ref(null);let m=!1,a=null;const l=async n=>{if(!n)return;const d=await C(n),{data:g}=d||{},{account:v,password:N}=(g==null?void 0:g.data)||{},_=g==null?void 0:g.msg;if(!v){$.ElMessage.warning(_||"识别失败,请重新识别!");return}t("handleLoginFormChange",!0,{account:v,password:N})},p=()=>{if(!i.value||!r.value)return;const n=i.value,d=n.getContext("2d"),g=r.value;n.width=200,n.height=200;const v=g.videoWidth||640,N=g.videoHeight||480,_=Math.min(200/v,200/N),w=v*_,s=N*_,V=(200-w)/2,E=(200-s)/2;d==null||d.drawImage(g,0,0,v,N,V,E,w,s),n.toBlob(L=>{if(L){const S=new File([L],"face.png",{type:"image/png"});l(S)}},"image/png")},c=async()=>{if(!r.value||m)return;const n=r.value;try{if(a=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1}),n){const d=n;d.srcObject=a,m=!0}}catch{$.ElMessage.warning("摄像头启动失败")}};function y(n){if(n&&(n.getTracks().forEach(d=>d.stop()),r.value)){const d=r.value;d.srcObject=null}}const f=()=>{y(a),m=!1};return e.watch(()=>o.activeTabName,n=>{if(n!==x.FACE){f();return}if(n===x.FACE&&!m){c();return}}),e.onBeforeUnmount(()=>{f()}),(n,d)=>(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",se,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:r,id:"v",autoplay:"",playsinline:""},null,512)]),e.renderSlot(n.$slots,"default",{},()=>[e.createElementVNode("button",{class:"face-screenshot",onClick:p},"人脸识别")],!0),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:i,id:"canvas"},null,512)]))}}),le=k._export_sfc(ie,[["__scopeId","data-v-b64bc91c"]]),O=h.useLoginState(h.pinia),{isDefaultModel:ce}=B.useModelManagement(),re=async(b,u)=>{var C,r,i,m,a,l,p,c,y,f,n,d,g,v;let o=Object.values(b),t=await h.loginPlatFormDataApi({userName:(C=o==null?void 0:o[0])==null?void 0:C.trim(),password:(r=o==null?void 0:o[1])==null?void 0:r.trim()});if(((i=t==null?void 0:t.data)==null?void 0:i.status)===200&&((a=(m=t==null?void 0:t.data)==null?void 0:m.result)==null?void 0:a.length)<=0&&(t=await h.loginCommonAccount({userName:(l=o==null?void 0:o[0])==null?void 0:l.trim(),password:(p=o==null?void 0:o[1])==null?void 0:p.trim(),path:"系统管理/用户管理",platId:u})),((c=t==null?void 0:t.data)==null?void 0:c.status)===200&&((f=(y=t==null?void 0:t.data)==null?void 0:y.result)==null?void 0:f.length)>0){const _=((d=(n=t==null?void 0:t.data)==null?void 0:n.result)==null?void 0:d.find(s=>ce(s)))||((v=(g=t==null?void 0:t.data)==null?void 0:g.result)==null?void 0:v[0]);sessionStorage.setItem("systemKey",u&&u!==""?u:_==null?void 0:_.plat_id);let w=_;return w.plat_id=w.plat_id??u,O.setLoginUserInfo(w),O.setSystemKey(u&&u!==""?u:_==null?void 0:_.plat_id),!0}else return $.ElMessage.error("输入的密码错误,请重新输入"),!1},de={class:"login-wrap"},ue={class:"login-body"},me={class:"login-body-item left"},ge={class:"title"},pe={class:"first-level"},fe={key:0,class:"logo"},_e=["src"],ve={class:"english-name"},he={class:"login-body-item right"},be=e.defineComponent({__name:"index",props:{oldSystemKey:{},loginContent:{}},emits:["change","projectLogin"],setup(b,{emit:u}){const o=b,t=K.useRouter(),C=u,r=h.useMenuState(h.pinia),i=h.useLoginState(h.pinia),{systemKey:m,systemInfo:a,loginUserInfo:l}=h.storeToRefs(i),p=e.computed(()=>{var s;return((s=a.value)==null?void 0:s.logo)||B.logo}),c=e.ref({sysCTitle:"",sysETitle:"",loginTitle:"账户密码登录",tabs:[{name:"密码登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"人脸识别",btnLabel:"人脸识别",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"刷卡登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"}]}),y=e.ref("account"),f=e.ref(!1),n=e.ref(!1),d=()=>{f.value=!0},g=(s,V)=>{f.value=!1,s&&_(V)},v=async()=>(sessionStorage.setItem("loginToken","111"),!0),N=async()=>(sessionStorage.setItem("magicToken","123456"),!0);e.onMounted(async()=>{await v()});const _=async s=>{var F,q,A,R,M,I,j;n.value=!0;let V=[re(s,(F=a.value)==null?void 0:F.plat_id),v(),N()];const E=await Promise.all(V),L=E==null?void 0:E.every(T=>T);let S=[{id:"1",request_method:"Post",request_url:"/platform/getdata",request_param:JSON.stringify({userName:"hjj",password:"1"}),request_result:"{}",is_delete:!1,request_table:"admin_user",request_type:"login"}];try{const T=((q=l==null?void 0:l.value)==null?void 0:q.plat_id)||((A=a.value)==null?void 0:A.plat_id);await h.pageBatchAddApi({platId:parseInt(T),changeContents:[{tableName:"log",tableContents:S}]})}catch{}L?(C("projectLogin",s),await B.verifyStructureDataToStore(),t.push("/"),i.setLogRecordAsync({type:"登录",data:{account:((R=l.value)==null?void 0:R.account)??((M=l.value)==null?void 0:M.账号),userName:((I=l.value)==null?void 0:I.姓名)||((j=l.value)==null?void 0:j.userName)||"未知"}},"/login","login"),r.setHasClickEditComp(!1)):n.value=!1,n.value=!1};e.watch(()=>o==null?void 0:o.loginContent,()=>{let s=o==null?void 0:o.loginContent;s!=null&&s.account&&(s!=null&&s.password)&&_(s)},{deep:!0,immediate:!0});const w=s=>{y.value=s,f.value=!1,n.value=!1};return(s,V)=>(e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("div",ue,[e.createElementVNode("div",me,[e.createVNode(W,{class:"login-left-bg"},{img:e.withCtx(()=>{var E,L;return[e.createElementVNode("div",ge,[e.createElementVNode("div",pe,[p.value?(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("img",{src:p.value,alt:""},null,8,_e)])):e.createCommentVNode("",!0),e.createElementVNode("div",ve,e.toDisplayString(((E=e.unref(a))==null?void 0:E.EnglishName)||"Insofworks"),1)]),e.createElementVNode("div",null,e.toDisplayString(((L=e.unref(a))==null?void 0:L.chineseName)||"工业软件建模与开发系统"),1)]),V[0]||(V[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",he,[e.createVNode(ee,{loading:n.value,onClickLogin:d,onHandleTabChange:w},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(ne,{activeTabName:y.value,isClickLogin:f.value,onHandleLoginFormChange:g},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(le,{systemKey:s.oldSystemKey,activeTabName:y.value,isClickLogin:f.value,onHandleLoginFormChange:g},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),Ce=k._export_sfc(be,[["__scopeId","data-v-233316bd"]]);exports.default=Ce;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),f=require("./menu-DopnPfbG.cjs"),j=require("./index-CQY6ageG.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),L=n.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!1},nodeDev:{type:String,default:""},pageKey:{type:String,default:""},interfaceContent:{type:Array,default:()=>[]},loginContent:{type:Object,default:()=>{}}},emits:["buildContent","openThreeBuild","threeData","setLoginInfo","projectLogin"],setup(s,{emit:m}){const c=f.useLoginState(f.pinia),{loginUserInfo:r}=f.storeToRefs(c),{initSystemInfo:g}=j.useModelManagement(),e=s,a=m,w=n.computed(()=>{var t,o;return(e==null?void 0:e.showButton)||((o=(t=r.value)==null?void 0:t.layer)==null?void 0:o.toUpperCase())==="SUPERADMIN"}),C=t=>{a("projectLogin",t)};n.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,o])=>{c.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.interfaceContent,()=>{var o,i,u;if(!(e!=null&&e.interfaceContent)||Array.isArray(e==null?void 0:e.interfaceContent)&&((o=e==null?void 0:e.interfaceContent)==null?void 0:o.length)===0)return;let t=(i=e==null?void 0:e.interfaceContent)==null?void 0:i.find(d=>d==null?void 0:d.includes("VITE_API_NEW_URL"));t=(u=t==null?void 0:t.split("="))==null?void 0:u[1],t=t==null?void 0:t.trim(),c.setSystemUrl(t??"")},{immediate:!0,deep:!0}),n.onMounted(async()=>{e.systemInfo?c.setSystemInfo(e.systemInfo):await g()});const h=()=>{a("buildContent")},S=()=>{a("setLoginInfo")},I=t=>{a("openThreeBuild",t)},v=t=>{a("threeData",t)},l=()=>{var y;const t=e!=null&&e.windowConfig?(y=e==null?void 0:e.windowConfig)==null?void 0:y.width:window.innerWidth,o=1920,i=16,u=t/o,d=i*u;document.documentElement.style.fontSize=`${d}px`};return n.onMounted(()=>{l(),window.addEventListener("resize",l)}),n.onUnmounted(()=>{window.removeEventListener("resize",l)}),(t,o)=>{const i=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(i,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:w.value,nodeDev:e==null?void 0:e.nodeDev,windowConfig:s.windowConfig,systemInfo:s.systemInfo,"old-systemKey":s.systemKey,onBuildContent:h,onProjectLogin:C,onOpenThreeBuild:I,pageKey:s.pageKey,onThreeData:v,onSetLoginInfo:S,loginContent:e==null?void 0:e.loginContent},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey","loginContent"])])}}}),_=B._export_sfc(L,[["__scopeId","data-v-c2972e64"]]);exports.default=_;
@@ -1,7 +1,7 @@
1
- import { defineComponent as B, computed as L, watch as u, onMounted as y, onUnmounted as _, resolveComponent as j, createElementBlock as D, openBlock as K, createVNode as E } from "vue";
2
- import { b as x, p as z, s as A } from "./menu-BMAZOS2j.js";
3
- import { u as T } from "./index-CkXAOjdK.js";
4
- import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
1
+ import { defineComponent as B, computed as L, watch as l, onMounted as u, onUnmounted as j, resolveComponent as _, createElementBlock as D, openBlock as K, createVNode as E } from "vue";
2
+ import { b, p as x, s as z } from "./menu-BMAZOS2j.js";
3
+ import { u as A } from "./index-CkXAOjdK.js";
4
+ import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const M = /* @__PURE__ */ B({
6
6
  __name: "index",
7
7
  props: {
@@ -50,71 +50,77 @@ const M = /* @__PURE__ */ B({
50
50
  interfaceContent: {
51
51
  type: Array,
52
52
  default: () => []
53
+ },
54
+ loginContent: {
55
+ type: Object,
56
+ default: () => {
57
+ }
53
58
  }
54
59
  },
55
60
  emits: ["buildContent", "openThreeBuild", "threeData", "setLoginInfo", "projectLogin"],
56
- setup(i, { emit: l }) {
57
- const d = x(z), { loginUserInfo: r } = A(d), { initSystemInfo: g } = T(), e = i, s = l, w = L(() => {
61
+ setup(i, { emit: y }) {
62
+ const d = b(x), { loginUserInfo: r } = z(d), { initSystemInfo: g } = A(), e = i, a = y, C = L(() => {
58
63
  var t, n;
59
64
  return (e == null ? void 0 : e.showButton) || ((n = (t = r.value) == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
60
- }), C = (t) => {
61
- s("projectLogin", t);
65
+ }), w = (t) => {
66
+ a("projectLogin", t);
62
67
  };
63
- u(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
68
+ l(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
64
69
  d.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
65
- }, { immediate: !0 }), u(
70
+ }, { immediate: !0 }), l(
66
71
  () => e == null ? void 0 : e.interfaceContent,
67
72
  () => {
68
73
  var n, o, f;
69
74
  if (!(e != null && e.interfaceContent) || Array.isArray(e == null ? void 0 : e.interfaceContent) && ((n = e == null ? void 0 : e.interfaceContent) == null ? void 0 : n.length) === 0) return;
70
- let t = (o = e == null ? void 0 : e.interfaceContent) == null ? void 0 : o.find((a) => a == null ? void 0 : a.includes("VITE_API_NEW_URL"));
75
+ let t = (o = e == null ? void 0 : e.interfaceContent) == null ? void 0 : o.find((s) => s == null ? void 0 : s.includes("VITE_API_NEW_URL"));
71
76
  t = (f = t == null ? void 0 : t.split("=")) == null ? void 0 : f[1], t = t == null ? void 0 : t.trim(), d.setSystemUrl(t ?? "");
72
77
  },
73
78
  { immediate: !0, deep: !0 }
74
- ), y(async () => {
79
+ ), u(async () => {
75
80
  e.systemInfo ? d.setSystemInfo(e.systemInfo) : await g();
76
81
  });
77
82
  const h = () => {
78
- s("buildContent");
83
+ a("buildContent");
79
84
  }, I = () => {
80
- s("setLoginInfo");
85
+ a("setLoginInfo");
81
86
  }, S = (t) => {
82
- s("openThreeBuild", t);
87
+ a("openThreeBuild", t);
83
88
  }, v = (t) => {
84
- s("threeData", t);
89
+ a("threeData", t);
85
90
  }, c = () => {
86
91
  var m;
87
- const t = e != null && e.windowConfig ? (m = e == null ? void 0 : e.windowConfig) == null ? void 0 : m.width : window.innerWidth, n = 1920, o = 16, f = t / n, a = o * f;
88
- document.documentElement.style.fontSize = `${a}px`;
92
+ const t = e != null && e.windowConfig ? (m = e == null ? void 0 : e.windowConfig) == null ? void 0 : m.width : window.innerWidth, n = 1920, o = 16, f = t / n, s = o * f;
93
+ document.documentElement.style.fontSize = `${s}px`;
89
94
  };
90
- return y(() => {
95
+ return u(() => {
91
96
  c(), window.addEventListener("resize", c);
92
- }), _(() => {
97
+ }), j(() => {
93
98
  window.removeEventListener("resize", c);
94
99
  }), (t, n) => {
95
- const o = j("router-view");
100
+ const o = _("router-view");
96
101
  return K(), D("div", null, [
97
102
  E(o, {
98
103
  mode: e == null ? void 0 : e.mode,
99
104
  content: e == null ? void 0 : e.content,
100
105
  jsonContents: e == null ? void 0 : e.jsonContents,
101
106
  pathContent: e == null ? void 0 : e.pathContent,
102
- showButton: w.value,
107
+ showButton: C.value,
103
108
  nodeDev: e == null ? void 0 : e.nodeDev,
104
109
  windowConfig: i.windowConfig,
105
110
  systemInfo: i.systemInfo,
106
111
  "old-systemKey": i.systemKey,
107
112
  onBuildContent: h,
108
- onProjectLogin: C,
113
+ onProjectLogin: w,
109
114
  onOpenThreeBuild: S,
110
115
  pageKey: i.pageKey,
111
116
  onThreeData: v,
112
- onSetLoginInfo: I
113
- }, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey"])
117
+ onSetLoginInfo: I,
118
+ loginContent: e == null ? void 0 : e.loginContent
119
+ }, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey", "loginContent"])
114
120
  ]);
115
121
  };
116
122
  }
117
- }), P = /* @__PURE__ */ b(M, [["__scopeId", "data-v-8172fe16"]]);
123
+ }), P = /* @__PURE__ */ T(M, [["__scopeId", "data-v-c2972e64"]]);
118
124
  export {
119
125
  P as default
120
126
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-6F-e2GJs.cjs");const C=require("./index-BpPyaNFa.cjs");require("./dayjs.min-73fIR1V_.cjs");require("./index-BkOJA3nu.cjs");const q=require("./menu-DopnPfbG.cjs");require("./request-BC2w2vGr.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-RoXicHV9.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-BZlQ_ZJE.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CNNvnXL-.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D_gRgix8.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CKTsZdkH.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CBb-zQHx.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BVaHwt5f.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DenEnDJU.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-B8eFQDHt.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-tSqOUmM_.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=q.useMenuState(),v=[r,i,c,l,m,u,a,h,f],P=e=>{v.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=C.SvgIcon;exports.router=s;exports.default=P;exports.platformApi=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-6F-e2GJs.cjs");const C=require("./index-BpPyaNFa.cjs");require("./dayjs.min-73fIR1V_.cjs");require("./index-BkOJA3nu.cjs");const q=require("./menu-DopnPfbG.cjs");require("./request-BC2w2vGr.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-RoXicHV9.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-BZlQ_ZJE.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CNNvnXL-.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D_gRgix8.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Dw_T3WYA.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CBb-zQHx.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BVaHwt5f.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DenEnDJU.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-B8eFQDHt.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-tSqOUmM_.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=q.useMenuState(),v=[r,i,c,l,m,u,a,h,f],P=e=>{v.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=C.SvgIcon;exports.router=s;exports.default=P;exports.platformApi=T;