bp-aicc-editor 1.0.0
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/LICENSE +21 -0
- package/README.EN.md +129 -0
- package/README.md +133 -0
- package/lib/accounting-BdNhlOvc.js +150 -0
- package/lib/arrow-right-ZYLcC6uE.js +24 -0
- package/lib/atlas-Dqnvg58g.js +27 -0
- package/lib/blueprint-7yYCtfFC.js +28 -0
- package/lib/border-box-BoVwKoLu.js +226 -0
- package/lib/browser_upgrade/chrome.png +0 -0
- package/lib/browser_upgrade/edge.png +0 -0
- package/lib/browser_upgrade/index.css +49 -0
- package/lib/btn-group-aVjYHP70.js +125 -0
- package/lib/btn-return-KOGYYoba.js +37 -0
- package/lib/button-base-CUvUtpPb.js +42 -0
- package/lib/cache-Cs2VtqJi.js +43 -0
- package/lib/capitalize-CJ7zhOsJ.js +46 -0
- package/lib/carousel-table-hn7W3uoD.js +163 -0
- package/lib/children-manager-CdxNQ6Oe.js +457 -0
- package/lib/circle-DdqdosvQ.js +10 -0
- package/lib/config-6kqKwjzS.js +783 -0
- package/lib/config-B1XQHD5S.js +110 -0
- package/lib/config-BqncRAOx.js +167 -0
- package/lib/config-CSUhHF5L.js +10 -0
- package/lib/config-CXGTRw74.js +743 -0
- package/lib/config-CjMfBTu9.js +75 -0
- package/lib/config-Cm22p_rY.js +40 -0
- package/lib/config-D3z2R85K.js +373 -0
- package/lib/config-D846M2Gv.js +813 -0
- package/lib/config-DHGpQmWe.js +695 -0
- package/lib/config-DJJlRxrQ.js +510 -0
- package/lib/config-DOtfpO43.js +64 -0
- package/lib/config-DS3NxQuJ.js +427 -0
- package/lib/config-DSw2PMKb.js +528 -0
- package/lib/config-DwVaqCyN.js +369 -0
- package/lib/config-Ec_zeOmT.js +10 -0
- package/lib/config-V6sABZH7.js +152 -0
- package/lib/config-XBAZDWTe.js +739 -0
- package/lib/config-ZZyCB-UG.js +210 -0
- package/lib/config-efyvf2nq.js +799 -0
- package/lib/context-Bl7hm9BN.js +5 -0
- package/lib/context-DXwgwPsi.js +5 -0
- package/lib/dashedLine-CJojzUDO.js +23 -0
- package/lib/data-CnP9NKXT.js +7 -0
- package/lib/data-field-DL4ZWkqD.js +17 -0
- package/lib/data-source-9Lgf-grI.js +78 -0
- package/lib/datav-BNctF3aF.js +89 -0
- package/lib/dater-BmOxJMnU.js +34 -0
- package/lib/db-rnJHM_q3.js +22 -0
- package/lib/decoration-ByPSHV8P.js +408 -0
- package/lib/delete-074QJWYN.js +112 -0
- package/lib/dialogBox-D3bwyGqh.js +21 -0
- package/lib/dialogSquare-C4KW-cRk.js +43 -0
- package/lib/dottedLine-CUbyTDpF.js +23 -0
- package/lib/doubleHeadedArrow-ph10_VNV.js +31 -0
- package/lib/ds-api-editor-uAArtQJI.js +115 -0
- package/lib/ds-global-editor-Cp80r2NN.js +121 -0
- package/lib/ds-sql-editor-ijeSFlXA.js +338 -0
- package/lib/ds-static-editor-CyEO_12Q.js +21592 -0
- package/lib/eightPointedStar-iyNwBma5.js +12 -0
- package/lib/empty-panel-C6Y6WgQ5.js +49 -0
- package/lib/event-DDj_G-ix.js +130 -0
- package/lib/favicon.svg +14 -0
- package/lib/filter-panel-BXIsc124.js +573 -0
- package/lib/fivePointedStar-CG-mQPKI.js +12 -0
- package/lib/fourPointedStar-Cjt9WMZi.js +12 -0
- package/lib/full-screen-By33Ud_D.js +34 -0
- package/lib/group-Bw2QYoqv.js +24 -0
- package/lib/heart-BS_j9yRq.js +4 -0
- package/lib/hexagon-BfE9vpeG.js +12 -0
- package/lib/hexagonalStar-CDF1zFRy.js +12 -0
- package/lib/icon/add.png +0 -0
- package/lib/icon/align-center.png +0 -0
- package/lib/icon/amplify.png +0 -0
- package/lib/icon/audio.png +0 -0
- package/lib/icon/bottomUp.png +0 -0
- package/lib/icon/carouselList.png +0 -0
- package/lib/icon/characters.png +0 -0
- package/lib/icon/delete.png +0 -0
- package/lib/icon/delete1.png +0 -0
- package/lib/icon/edit.png +0 -0
- package/lib/icon/file.png +0 -0
- package/lib/icon/graphic.png +0 -0
- package/lib/icon/icon/357/274/217/346/267/273/345/212/240 /347/231/275/350/211/262 1@2x.png +0 -0
- package/lib/icon/icon/357/274/217/346/267/273/345/212/240@2x.png +0 -0
- package/lib/icon/img.png +0 -0
- package/lib/icon/lock.png +0 -0
- package/lib/icon/multiline.png +0 -0
- package/lib/icon/navigate.png +0 -0
- package/lib/icon/next.png +0 -0
- package/lib/icon/pictureScrolling.png +0 -0
- package/lib/icon/previous.png +0 -0
- package/lib/icon/reduce.png +0 -0
- package/lib/icon/return.png +0 -0
- package/lib/icon/save.png +0 -0
- package/lib/icon/scBg.png +0 -0
- package/lib/icon/scrollText.png +0 -0
- package/lib/icon/search.png +0 -0
- package/lib/icon/share.png +0 -0
- package/lib/icon/topUp.png +0 -0
- package/lib/icon/upload.png +0 -0
- package/lib/icon/video.png +0 -0
- package/lib/icon/view.png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/346/234/252/351/200/211@2x.png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/351/200/211/344/270/255@2x(1).png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/351/200/211/344/270/255@2x.png +0 -0
- package/lib/iking-utils.es-Ba74AedH.js +13822 -0
- package/lib/index-B76XXskt.js +225 -0
- package/lib/index-B9lRx-kg.js +85 -0
- package/lib/index-B9nm6Rgv.js +142 -0
- package/lib/index-BAN9B0Xt.js +176 -0
- package/lib/index-BH6iU67J.js +209 -0
- package/lib/index-BSeD4M2U.js +988 -0
- package/lib/index-BbUCT3bG.js +66 -0
- package/lib/index-Bjs1bW2W.js +6291 -0
- package/lib/index-Bzc3Ri47.js +472 -0
- package/lib/index-C2ezj_lw.js +19 -0
- package/lib/index-C8Ni1uMd.js +435 -0
- package/lib/index-CCCckUnm.js +19 -0
- package/lib/index-CGni9huM.js +339 -0
- package/lib/index-CI6xXcR0.js +47 -0
- package/lib/index-CTo4-44e.js +2013 -0
- package/lib/index-CX6tHoIu.js +208 -0
- package/lib/index-Cb06BDgi.js +48 -0
- package/lib/index-CuapA_N-.js +586 -0
- package/lib/index-D0Kh7c2E.js +142 -0
- package/lib/index-D8pryMlS.js +228 -0
- package/lib/index-DGErpAp1.js +245 -0
- package/lib/index-DHe-NWes.js +415 -0
- package/lib/index-DL5IJLR7.js +156 -0
- package/lib/index-DN_9YBN_.js +957 -0
- package/lib/index-DOYvASbD.js +121 -0
- package/lib/index-D_ojDCWy.js +52 -0
- package/lib/index-DcmokBSP.js +109 -0
- package/lib/index-Dm1le54W.js +226 -0
- package/lib/index-Dpg5we85.js +127 -0
- package/lib/index-IeVkGUKs.js +146 -0
- package/lib/index-VSfx-dDV.js +87 -0
- package/lib/index-_Ya8vNUb.js +79 -0
- package/lib/index.es.js +5 -0
- package/lib/index.umd.js +99 -0
- package/lib/kebabCase-CO6lu_Gu.js +250 -0
- package/lib/keyMap-wL6Ma83z.js +91 -0
- package/lib/layer-setting-panel-C86c3fN0.js +486 -0
- package/lib/main-graph-BjOO_j7Y.js +43 -0
- package/lib/marquee-B6qUH-Kc.js +49 -0
- package/lib/message-carousel-ToN1yK7K.js +34 -0
- package/lib/multi-layout-config-DWBvxtbQ.js +312 -0
- package/lib/number-title-flop-DUzpC1bo.js +112 -0
- package/lib/orderBy--EIhNVJu.js +388 -0
- package/lib/page-config-DT1C_kDM.js +5598 -0
- package/lib/page-table-U2Zv9dzo.js +169 -0
- package/lib/paragraph-D7CutH53.js +51 -0
- package/lib/pentagon-6sVh023X.js +12 -0
- package/lib/plus-DjE6l8qH.js +24 -0
- package/lib/rank-board-Cgj8rzLd.js +121 -0
- package/lib/rectangle-BQXP06pk.js +10 -0
- package/lib/roundedRectangle-DnEbzLph.js +10 -0
- package/lib/scroll-article-BC3pQhTm.js +130 -0
- package/lib/scroll-rank-BsbvGjIy.js +191 -0
- package/lib/scroll-rank-bar-BfceYhB-.js +189 -0
- package/lib/scroll-table-BTbnMVFS.js +303 -0
- package/lib/search-DkzwOoCx.js +24 -0
- package/lib/select-options-BTOkre7F.js +338 -0
- package/lib/setting-panel-CMKniQhs.js +397 -0
- package/lib/source-panel-ClGOmTVn.js +557 -0
- package/lib/straightLine-DPMRNFNz.js +23 -0
- package/lib/style.css +1 -0
- package/lib/table-bar-ciEVdDFG.js +117 -0
- package/lib/transform-layer.vue_vue_type_style_index_0_scoped_04cdae36_lang-6ixEI9oF.js +593 -0
- package/lib/triangle-NkNGdZCH.js +15 -0
- package/lib/use-border-BUij5e0F.js +29 -0
- package/lib/use-data-center-Cj9FGyCg.js +31 -0
- package/lib/use-series-Cmnkexlu.js +18 -0
- package/lib/use-swiper-B17v1vT0.js +12 -0
- package/lib/vue-util-oCdnLsQn.js +6 -0
- package/lib/warning-DYO0amRd.js +25 -0
- package/package.json +154 -0
|
@@ -0,0 +1,957 @@
|
|
|
1
|
+
import { useDialog as r1, NIcon as i1 } from "naive-ui";
|
|
2
|
+
import { ElMessage as j, ElMessageBox as q } from "element-plus";
|
|
3
|
+
import { mapActions as c1, mapState as I } from "pinia";
|
|
4
|
+
import { createElementBlock as m, openBlock as w, createElementVNode as c, defineComponent as G, computed as l1, normalizeClass as a1, resolveComponent as b, createVNode as f, toDisplayString as d1, withCtx as y, createTextVNode as T } from "vue";
|
|
5
|
+
import { a as h1, b as p1 } from "./atlas-Dqnvg58g.js";
|
|
6
|
+
import { _ as v, u as K, a as J, P as Q, b as D, c as u1 } from "./index-Bjs1bW2W.js";
|
|
7
|
+
import { I as f1 } from "./warning-DYO0amRd.js";
|
|
8
|
+
import { u as g1 } from "./cache-Cs2VtqJi.js";
|
|
9
|
+
import { u as m1 } from "./event-DDj_G-ix.js";
|
|
10
|
+
const $ = typeof navigator < "u" ? navigator.userAgent.toLowerCase().indexOf("firefox") > 0 : !1;
|
|
11
|
+
function N(e, t, n, o) {
|
|
12
|
+
e.addEventListener ? e.addEventListener(t, n, o) : e.attachEvent && e.attachEvent(`on${t}`, n);
|
|
13
|
+
}
|
|
14
|
+
function M(e, t, n, o) {
|
|
15
|
+
e && (e.removeEventListener ? e.removeEventListener(t, n, o) : e.detachEvent && e.detachEvent(`on${t}`, n));
|
|
16
|
+
}
|
|
17
|
+
function Z(e, t) {
|
|
18
|
+
const n = t.slice(0, t.length - 1), o = [];
|
|
19
|
+
for (let s = 0; s < n.length; s++)
|
|
20
|
+
o.push(e[n[s].toLowerCase()]);
|
|
21
|
+
return o;
|
|
22
|
+
}
|
|
23
|
+
function X(e) {
|
|
24
|
+
typeof e != "string" && (e = ""), e = e.replace(/\s/g, "");
|
|
25
|
+
const t = e.split(",");
|
|
26
|
+
let n = t.lastIndexOf("");
|
|
27
|
+
for (; n >= 0; )
|
|
28
|
+
t[n - 1] += ",", t.splice(n, 1), n = t.lastIndexOf("");
|
|
29
|
+
return t;
|
|
30
|
+
}
|
|
31
|
+
function w1(e, t) {
|
|
32
|
+
const n = e.length >= t.length ? e : t, o = e.length >= t.length ? t : e;
|
|
33
|
+
let s = !0;
|
|
34
|
+
for (let r = 0; r < n.length; r++)
|
|
35
|
+
o.indexOf(n[r]) === -1 && (s = !1);
|
|
36
|
+
return s;
|
|
37
|
+
}
|
|
38
|
+
function e1(e) {
|
|
39
|
+
let t = e.keyCode || e.which || e.charCode;
|
|
40
|
+
return e.code && /^Key[A-Z]$/.test(e.code) && (t = e.code.charCodeAt(3)), t;
|
|
41
|
+
}
|
|
42
|
+
const P = {
|
|
43
|
+
backspace: 8,
|
|
44
|
+
"⌫": 8,
|
|
45
|
+
tab: 9,
|
|
46
|
+
clear: 12,
|
|
47
|
+
enter: 13,
|
|
48
|
+
"↩": 13,
|
|
49
|
+
return: 13,
|
|
50
|
+
esc: 27,
|
|
51
|
+
escape: 27,
|
|
52
|
+
space: 32,
|
|
53
|
+
left: 37,
|
|
54
|
+
up: 38,
|
|
55
|
+
right: 39,
|
|
56
|
+
down: 40,
|
|
57
|
+
/// https://w3c.github.io/uievents/#events-keyboard-key-location
|
|
58
|
+
arrowup: 38,
|
|
59
|
+
arrowdown: 40,
|
|
60
|
+
arrowleft: 37,
|
|
61
|
+
arrowright: 39,
|
|
62
|
+
del: 46,
|
|
63
|
+
delete: 46,
|
|
64
|
+
ins: 45,
|
|
65
|
+
insert: 45,
|
|
66
|
+
home: 36,
|
|
67
|
+
end: 35,
|
|
68
|
+
pageup: 33,
|
|
69
|
+
pagedown: 34,
|
|
70
|
+
capslock: 20,
|
|
71
|
+
num_0: 96,
|
|
72
|
+
num_1: 97,
|
|
73
|
+
num_2: 98,
|
|
74
|
+
num_3: 99,
|
|
75
|
+
num_4: 100,
|
|
76
|
+
num_5: 101,
|
|
77
|
+
num_6: 102,
|
|
78
|
+
num_7: 103,
|
|
79
|
+
num_8: 104,
|
|
80
|
+
num_9: 105,
|
|
81
|
+
num_multiply: 106,
|
|
82
|
+
num_add: 107,
|
|
83
|
+
num_enter: 108,
|
|
84
|
+
num_subtract: 109,
|
|
85
|
+
num_decimal: 110,
|
|
86
|
+
num_divide: 111,
|
|
87
|
+
"⇪": 20,
|
|
88
|
+
",": 188,
|
|
89
|
+
".": 190,
|
|
90
|
+
"/": 191,
|
|
91
|
+
"`": 192,
|
|
92
|
+
"-": $ ? 173 : 189,
|
|
93
|
+
"=": $ ? 61 : 187,
|
|
94
|
+
";": $ ? 59 : 186,
|
|
95
|
+
"'": 222,
|
|
96
|
+
"{": 219,
|
|
97
|
+
"}": 221,
|
|
98
|
+
"[": 219,
|
|
99
|
+
"]": 221,
|
|
100
|
+
"\\": 220
|
|
101
|
+
}, x = {
|
|
102
|
+
// shiftKey
|
|
103
|
+
"⇧": 16,
|
|
104
|
+
shift: 16,
|
|
105
|
+
// altKey
|
|
106
|
+
"⌥": 18,
|
|
107
|
+
alt: 18,
|
|
108
|
+
option: 18,
|
|
109
|
+
// ctrlKey
|
|
110
|
+
"⌃": 17,
|
|
111
|
+
ctrl: 17,
|
|
112
|
+
control: 17,
|
|
113
|
+
// metaKey
|
|
114
|
+
"⌘": 91,
|
|
115
|
+
cmd: 91,
|
|
116
|
+
meta: 91,
|
|
117
|
+
command: 91
|
|
118
|
+
}, V = {
|
|
119
|
+
16: "shiftKey",
|
|
120
|
+
18: "altKey",
|
|
121
|
+
17: "ctrlKey",
|
|
122
|
+
91: "metaKey",
|
|
123
|
+
shiftKey: 16,
|
|
124
|
+
ctrlKey: 17,
|
|
125
|
+
altKey: 18,
|
|
126
|
+
metaKey: 91
|
|
127
|
+
}, g = {
|
|
128
|
+
16: !1,
|
|
129
|
+
18: !1,
|
|
130
|
+
17: !1,
|
|
131
|
+
91: !1
|
|
132
|
+
}, h = {};
|
|
133
|
+
for (let e = 1; e < 20; e++)
|
|
134
|
+
P[`f${e}`] = 111 + e;
|
|
135
|
+
let a = [], O = null, t1 = "all";
|
|
136
|
+
const z = /* @__PURE__ */ new Map(), B = (e) => P[e.toLowerCase()] || x[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), v1 = (e) => Object.keys(P).find((t) => P[t] === e), A1 = (e) => Object.keys(x).find((t) => x[t] === e), n1 = (e) => {
|
|
137
|
+
t1 = e || "all";
|
|
138
|
+
}, H = () => t1 || "all", y1 = () => a.slice(0), _1 = () => a.map(
|
|
139
|
+
(e) => v1(e) || A1(e) || String.fromCharCode(e)
|
|
140
|
+
), C1 = () => {
|
|
141
|
+
const e = [];
|
|
142
|
+
return Object.keys(h).forEach((t) => {
|
|
143
|
+
h[t].forEach(({ key: n, scope: o, mods: s, shortcut: r }) => {
|
|
144
|
+
e.push({
|
|
145
|
+
scope: o,
|
|
146
|
+
shortcut: r,
|
|
147
|
+
mods: s,
|
|
148
|
+
keys: n.split("+").map((d) => B(d))
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
}), e;
|
|
152
|
+
}, o1 = (e) => {
|
|
153
|
+
const t = e.target || e.srcElement, { tagName: n } = t;
|
|
154
|
+
let o = !0;
|
|
155
|
+
const s = n === "INPUT" && ![
|
|
156
|
+
"checkbox",
|
|
157
|
+
"radio",
|
|
158
|
+
"range",
|
|
159
|
+
"button",
|
|
160
|
+
"file",
|
|
161
|
+
"reset",
|
|
162
|
+
"submit",
|
|
163
|
+
"color"
|
|
164
|
+
].includes(t.type);
|
|
165
|
+
return (t.isContentEditable || (s || n === "TEXTAREA" || n === "SELECT") && !t.readOnly) && (o = !1), o;
|
|
166
|
+
}, k1 = (e) => (typeof e == "string" && (e = B(e)), a.indexOf(e) !== -1), x1 = (e, t) => {
|
|
167
|
+
let n, o;
|
|
168
|
+
e || (e = H());
|
|
169
|
+
for (const s in h)
|
|
170
|
+
if (Object.prototype.hasOwnProperty.call(h, s))
|
|
171
|
+
for (n = h[s], o = 0; o < n.length; )
|
|
172
|
+
n[o].scope === e ? n.splice(o, 1).forEach(({ element: r }) => R(r)) : o++;
|
|
173
|
+
H() === e && n1(t || "all");
|
|
174
|
+
};
|
|
175
|
+
function b1(e) {
|
|
176
|
+
let t = e1(e);
|
|
177
|
+
e.key && e.key.toLowerCase() === "capslock" && (t = B(e.key));
|
|
178
|
+
const n = a.indexOf(t);
|
|
179
|
+
if (n >= 0 && a.splice(n, 1), e.key && e.key.toLowerCase() === "meta" && a.splice(0, a.length), (t === 93 || t === 224) && (t = 91), t in g) {
|
|
180
|
+
g[t] = !1;
|
|
181
|
+
for (const o in x)
|
|
182
|
+
x[o] === t && (E[o] = !1);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
const s1 = (e, ...t) => {
|
|
186
|
+
if (typeof e > "u")
|
|
187
|
+
Object.keys(h).forEach((n) => {
|
|
188
|
+
Array.isArray(h[n]) && h[n].forEach((o) => U(o)), delete h[n];
|
|
189
|
+
}), R(null);
|
|
190
|
+
else if (Array.isArray(e))
|
|
191
|
+
e.forEach((n) => {
|
|
192
|
+
n.key && U(n);
|
|
193
|
+
});
|
|
194
|
+
else if (typeof e == "object")
|
|
195
|
+
e.key && U(e);
|
|
196
|
+
else if (typeof e == "string") {
|
|
197
|
+
let [n, o] = t;
|
|
198
|
+
typeof n == "function" && (o = n, n = ""), U({
|
|
199
|
+
key: e,
|
|
200
|
+
scope: n,
|
|
201
|
+
method: o,
|
|
202
|
+
splitKey: "+"
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}, U = ({
|
|
206
|
+
key: e,
|
|
207
|
+
scope: t,
|
|
208
|
+
method: n,
|
|
209
|
+
splitKey: o = "+"
|
|
210
|
+
}) => {
|
|
211
|
+
X(e).forEach((s) => {
|
|
212
|
+
const r = s.split(o), d = r.length, i = r[d - 1], p = i === "*" ? "*" : B(i);
|
|
213
|
+
if (!h[p]) return;
|
|
214
|
+
t || (t = H());
|
|
215
|
+
const A = d > 1 ? Z(x, r) : [], _ = [];
|
|
216
|
+
h[p] = h[p].filter((u) => {
|
|
217
|
+
const C = (n ? u.method === n : !0) && u.scope === t && w1(u.mods, A);
|
|
218
|
+
return C && _.push(u.element), !C;
|
|
219
|
+
}), _.forEach((u) => R(u));
|
|
220
|
+
});
|
|
221
|
+
};
|
|
222
|
+
function W(e, t, n, o) {
|
|
223
|
+
if (t.element !== o)
|
|
224
|
+
return;
|
|
225
|
+
let s;
|
|
226
|
+
if (t.scope === n || t.scope === "all") {
|
|
227
|
+
s = t.mods.length > 0;
|
|
228
|
+
for (const r in g)
|
|
229
|
+
Object.prototype.hasOwnProperty.call(g, r) && (!g[r] && t.mods.indexOf(+r) > -1 || g[r] && t.mods.indexOf(+r) === -1) && (s = !1);
|
|
230
|
+
(t.mods.length === 0 && !g[16] && !g[18] && !g[17] && !g[91] || s || t.shortcut === "*") && (t.keys = [], t.keys = t.keys.concat(a), t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble && (e.cancelBubble = !0)));
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
function Y(e, t) {
|
|
234
|
+
const n = h["*"];
|
|
235
|
+
let o = e1(e);
|
|
236
|
+
if (e.key && e.key.toLowerCase() === "capslock" || !(E.filter || o1).call(this, e)) return;
|
|
237
|
+
if ((o === 93 || o === 224) && (o = 91), a.indexOf(o) === -1 && o !== 229 && a.push(o), ["metaKey", "ctrlKey", "altKey", "shiftKey"].forEach((i) => {
|
|
238
|
+
const p = V[i];
|
|
239
|
+
e[i] && a.indexOf(p) === -1 ? a.push(p) : !e[i] && a.indexOf(p) > -1 ? a.splice(a.indexOf(p), 1) : i === "metaKey" && e[i] && (a = a.filter((A) => A in V || A === o));
|
|
240
|
+
}), o in g) {
|
|
241
|
+
g[o] = !0;
|
|
242
|
+
for (const i in x)
|
|
243
|
+
if (Object.prototype.hasOwnProperty.call(x, i)) {
|
|
244
|
+
const p = V[x[i]];
|
|
245
|
+
E[i] = e[p];
|
|
246
|
+
}
|
|
247
|
+
if (!n) return;
|
|
248
|
+
}
|
|
249
|
+
for (const i in g)
|
|
250
|
+
Object.prototype.hasOwnProperty.call(g, i) && (g[i] = e[V[i]]);
|
|
251
|
+
e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (a.indexOf(17) === -1 && a.push(17), a.indexOf(18) === -1 && a.push(18), g[17] = !0, g[18] = !0);
|
|
252
|
+
const s = H();
|
|
253
|
+
if (n)
|
|
254
|
+
for (let i = 0; i < n.length; i++)
|
|
255
|
+
n[i].scope === s && (e.type === "keydown" && n[i].keydown || e.type === "keyup" && n[i].keyup) && W(e, n[i], s, t);
|
|
256
|
+
if (!(o in h)) return;
|
|
257
|
+
const r = h[o], d = r.length;
|
|
258
|
+
for (let i = 0; i < d; i++)
|
|
259
|
+
if ((e.type === "keydown" && r[i].keydown || e.type === "keyup" && r[i].keyup) && r[i].key) {
|
|
260
|
+
const p = r[i], { splitKey: A } = p, _ = p.key.split(A), u = [];
|
|
261
|
+
for (let C = 0; C < _.length; C++)
|
|
262
|
+
u.push(B(_[C]));
|
|
263
|
+
u.sort().join("") === a.sort().join("") && W(e, p, s, t);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
const E = function(e, t, n) {
|
|
267
|
+
a = [];
|
|
268
|
+
const o = X(e);
|
|
269
|
+
let s = [], r = "all", d = document, i = 0, p = !1, A = !0, _ = "+", u = !1, C = !1;
|
|
270
|
+
if (n === void 0 && typeof t == "function" && (n = t), Object.prototype.toString.call(t) === "[object Object]") {
|
|
271
|
+
const l = t;
|
|
272
|
+
l.scope && (r = l.scope), l.element && (d = l.element), l.keyup && (p = l.keyup), l.keydown !== void 0 && (A = l.keydown), l.capture !== void 0 && (u = l.capture), typeof l.splitKey == "string" && (_ = l.splitKey), l.single === !0 && (C = !0);
|
|
273
|
+
}
|
|
274
|
+
for (typeof t == "string" && (r = t), C && s1(e, r); i < o.length; i++) {
|
|
275
|
+
const l = o[i].split(_);
|
|
276
|
+
s = [], l.length > 1 && (s = Z(x, l));
|
|
277
|
+
let k = l[l.length - 1];
|
|
278
|
+
k = k === "*" ? "*" : B(k), k in h || (h[k] = []), h[k].push({
|
|
279
|
+
keyup: p,
|
|
280
|
+
keydown: A,
|
|
281
|
+
scope: r,
|
|
282
|
+
mods: s,
|
|
283
|
+
shortcut: o[i],
|
|
284
|
+
method: n,
|
|
285
|
+
key: o[i],
|
|
286
|
+
splitKey: _,
|
|
287
|
+
element: d
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
if (typeof d < "u" && typeof window < "u") {
|
|
291
|
+
if (!z.has(d)) {
|
|
292
|
+
const l = (S = window.event) => Y(S, d), k = (S = window.event) => {
|
|
293
|
+
Y(S, d), b1(S);
|
|
294
|
+
};
|
|
295
|
+
z.set(d, { keydownListener: l, keyupListenr: k, capture: u }), N(d, "keydown", l, u), N(d, "keyup", k, u);
|
|
296
|
+
}
|
|
297
|
+
if (!O) {
|
|
298
|
+
const l = () => {
|
|
299
|
+
a = [];
|
|
300
|
+
};
|
|
301
|
+
O = { listener: l, capture: u }, N(window, "focus", l, u);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
function z1(e, t = "all") {
|
|
306
|
+
Object.keys(h).forEach((n) => {
|
|
307
|
+
h[n].filter(
|
|
308
|
+
(o) => o.scope === t && o.shortcut === e
|
|
309
|
+
).forEach((o) => {
|
|
310
|
+
o && o.method && o.method({}, o);
|
|
311
|
+
});
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
function R(e) {
|
|
315
|
+
const t = Object.values(h).flat();
|
|
316
|
+
if (t.findIndex(({ element: n }) => n === e) < 0 && e) {
|
|
317
|
+
const { keydownListener: n, keyupListenr: o, capture: s } = z.get(e) || {};
|
|
318
|
+
n && o && (M(e, "keyup", o, s), M(e, "keydown", n, s), z.delete(e));
|
|
319
|
+
}
|
|
320
|
+
if ((t.length <= 0 || z.size <= 0) && (Array.from(z.keys()).forEach((n) => {
|
|
321
|
+
const { keydownListener: o, keyupListenr: s, capture: r } = z.get(n) || {};
|
|
322
|
+
o && s && (M(n, "keyup", s, r), M(n, "keydown", o, r), z.delete(n));
|
|
323
|
+
}), z.clear(), Object.keys(h).forEach((n) => delete h[n]), O)) {
|
|
324
|
+
const { listener: n, capture: o } = O;
|
|
325
|
+
M(window, "focus", n, o), O = null;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
const F = {
|
|
329
|
+
getPressedKeyString: _1,
|
|
330
|
+
setScope: n1,
|
|
331
|
+
getScope: H,
|
|
332
|
+
deleteScope: x1,
|
|
333
|
+
getPressedKeyCodes: y1,
|
|
334
|
+
getAllKeyCodes: C1,
|
|
335
|
+
isPressed: k1,
|
|
336
|
+
filter: o1,
|
|
337
|
+
trigger: z1,
|
|
338
|
+
unbind: s1,
|
|
339
|
+
keyMap: P,
|
|
340
|
+
modifier: x,
|
|
341
|
+
modifierMap: V
|
|
342
|
+
};
|
|
343
|
+
for (const e in F) {
|
|
344
|
+
const t = e;
|
|
345
|
+
Object.prototype.hasOwnProperty.call(F, t) && (E[t] = F[t]);
|
|
346
|
+
}
|
|
347
|
+
if (typeof window < "u") {
|
|
348
|
+
const e = window.hotkeys;
|
|
349
|
+
E.noConflict = (t) => (t && window.hotkeys === E && (window.hotkeys = e), E), window.hotkeys = E;
|
|
350
|
+
}
|
|
351
|
+
const E1 = {}, S1 = {
|
|
352
|
+
t: "1702948681853",
|
|
353
|
+
class: "icon",
|
|
354
|
+
viewBox: "0 0 1024 1024",
|
|
355
|
+
version: "1.1",
|
|
356
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
357
|
+
"p-id": "4293",
|
|
358
|
+
width: "200",
|
|
359
|
+
height: "200"
|
|
360
|
+
};
|
|
361
|
+
function B1(e, t) {
|
|
362
|
+
return w(), m("svg", S1, [...t[0] || (t[0] = [
|
|
363
|
+
c("path", {
|
|
364
|
+
d: "M841.774545 116.363636A65.861818 65.861818 0 0 1 907.636364 182.225455v659.54909A65.861818 65.861818 0 0 1 841.774545 907.636364H182.225455A65.861818 65.861818 0 0 1 116.363636 841.774545V182.225455A65.861818 65.861818 0 0 1 182.225455 116.363636h659.54909z m-99.909818 289.582546H673.978182c-4.491636 0-5.632 1.675636-5.632 5.608727l0.581818 340.642909c0 3.351273 1.117091 5.585455 5.585455 5.585455h67.351272c4.491636 0 5.608727-1.675636 5.608728-5.585455V411.554909c0-4.491636-1.675636-5.585455-5.585455-5.585454zM462.429091 281.367273h-90.344727c-2.792727 0-3.933091 1.117091-3.933091 4.491636-0.558545 21.317818-2.234182 28.625455-4.491637 35.909818l-122.88 429.288728c-1.140364 5.632 0 6.749091 4.468364 6.74909h62.859636c4.491636 0 5.608727-0.558545 6.749091-4.491636l34.210909-129.629091h5.632c9.821091 0.046545 31.325091 0.139636 54.202182 0.186182l12.567273 0.023273 12.427636 0.023272h28.253091c14.917818 0 25.134545-0.093091 24.971637-0.232727l35.909818 129.629091c1.117091 2.792727 2.792727 3.933091 6.749091 3.933091h71.819636c3.933091 0 5.050182-1.698909 3.933091-5.608727L468.014545 285.858909c-1.117091-3.374545-2.234182-4.491636-5.608727-4.491636z m-44.893091 69.585454c11.217455 50.501818 39.842909 154.88 51.618909 202.589091h-103.237818c18.501818-66.792727 41.518545-152.087273 50.501818-202.589091z m290.117818-80.802909c-24.133818 0-43.752727 16.290909-43.752727 43.752727 0 28.625455 17.384727 44.357818 42.635636 43.776 26.368 0 44.916364-15.127273 44.916364-43.752727 0-25.832727-17.408-43.776-43.799273-43.776z",
|
|
365
|
+
"p-id": "4294"
|
|
366
|
+
}, null, -1)
|
|
367
|
+
])]);
|
|
368
|
+
}
|
|
369
|
+
const L1 = /* @__PURE__ */ v(E1, [["render", B1]]), I1 = {}, M1 = {
|
|
370
|
+
t: "1639124202823",
|
|
371
|
+
class: "icon",
|
|
372
|
+
viewBox: "0 0 1024 1024",
|
|
373
|
+
version: "1.1",
|
|
374
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
375
|
+
"p-id": "3965",
|
|
376
|
+
width: "64",
|
|
377
|
+
height: "64"
|
|
378
|
+
};
|
|
379
|
+
function V1(e, t) {
|
|
380
|
+
return w(), m("svg", M1, [...t[0] || (t[0] = [
|
|
381
|
+
c("path", {
|
|
382
|
+
d: "M149.45117213 281.28710912l362.54882787-164.79492162 362.54882787 164.79492162 0 461.425781-362.54882787 164.7949216-362.54882787-164.7949216 0-461.425781zM479.04101537 467.20874023l-263.67187475-119.73999023 0 352.76000951 263.67187475 120.00366186 0-353.0236819zM808.63085938 700.22875951l-1e-8-352.76000951-263.67187474 119.73999023 0 353.0236819zM755.07251002 299.31567383l-243.07251002-110.47851588-243.07251002 110.47851588 243.07251002 110.47851588z",
|
|
383
|
+
"p-id": "3966"
|
|
384
|
+
}, null, -1)
|
|
385
|
+
])]);
|
|
386
|
+
}
|
|
387
|
+
const O1 = /* @__PURE__ */ v(I1, [["render", V1]]), P1 = {}, H1 = {
|
|
388
|
+
t: "1639123936920",
|
|
389
|
+
class: "icon",
|
|
390
|
+
viewBox: "0 0 1024 1024",
|
|
391
|
+
version: "1.1",
|
|
392
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
393
|
+
"p-id": "3965",
|
|
394
|
+
width: "64",
|
|
395
|
+
height: "64"
|
|
396
|
+
};
|
|
397
|
+
function Q1(e, t) {
|
|
398
|
+
return w(), m("svg", H1, [...t[0] || (t[0] = [
|
|
399
|
+
c("path", {
|
|
400
|
+
d: "M511.99203384 401.93173835c-0.32008759-0.00144839 0.31863919 0 0 0z m17.04284781 1.04426737l197.35347873-227.04050589C740.01307924 157.78320844 759.8063621 145.85741604 782.2762127 142.30024426c22.92608423-3.62814085 45.89417038 1.88431567 64.67215303 15.53076042 18.77798191 13.64354724 31.11945439 33.78443571 34.74904362 56.71051992 3.63103764 22.92608423-1.88576406 45.89561876-15.53076042 64.67360141L653.49676685 524.19356549c7.01006071 44.38497977-6.45244177 91.43638998-40.39040422 125.57277791-54.2743796 54.58867361-115.51536813 62.11434987-173.61051976 62.11434987-81.64692709 0-146.61889091-49.09214869-149.3461524-51.1821318a28.97008861 28.97008861 0 0 1 6.9405393-49.91336862c42.1487126-16.72710469 52.29157539-45.8391329 65.13417949-82.69843641 9.61710776-27.59849243 20.51601352-58.8787148 46.88050346-84.08017207 28.411022-27.15529435 65.00962059-42.07629513 102.88856951-42.07629441 5.45741904 0.03765748 11.68681338 0.39105739 17.04139942 1.04571576z m58.52096972 20.98528195a147.38796942 147.38796942 0 0 1 25.54906287 20.56236137l0.00144839 0.00144838a145.22991401 145.22991401 0 0 1 16.11155221 19.27621821l190.68378382-219.49889802a28.7629735 28.7629735 0 0 0 4.57536734-20.69995507 28.78180189 28.78180189 0 0 0-11.58253125-18.90398992 28.77600832 28.77600832 0 0 0-21.55738483-5.17643662 28.78180189 28.78180189 0 0 0-18.90543759 11.58253126z m-15.53655398 61.41044759c-16.20424717-16.29839054-37.37057461-25.35498329-59.59854868-25.50126807-23.1389929-0.13759443-45.57118673 9.08700828-63.28607291 26.0197804-16.27811376 15.55827915-23.65750596 36.73764141-32.20137923 61.26126604-10.08782458 28.94981183-21.93395755 62.95584657-52.20467326 89.68242677 20.19302989 8.90596352 46.47641127 17.1138169 74.76721956 17.11381688 54.18023624 0 95.24992077-7.53146983 132.5263513-45.02515492 33.86264747-34.06396972 33.86264747-89.48834648-0.00289678-123.5508671zM853.80489969 393.24158102c-15.99858046 0-28.96719183 12.9686121-28.96719183 28.96719183v205.66706333c1.52946739 38.43367036 56.4179518 38.40470321 57.93438438 0v-205.66706333c0-15.99858046-12.9686121-28.96719183-28.96719255-28.96719183z m0 344.70958496c-15.99858046 0-28.96719183 12.9686121-28.96719183 28.96719182 0 31.94501948-25.98936488 57.93438438-57.93438438 57.93438437H257.08074419c-31.94501948 0-57.93438438-25.98936488-57.93438364-57.93438437v-509.82257929c0-31.94501948 25.98936488-57.93438438 57.93438364-57.93438437h363.53825989c38.43367036-1.52946739 38.40470321-56.4179518 0-57.93438366H257.08074419c-63.89003898 0-115.86876802 51.97872905-115.86876802 115.86876803v509.82257929c0 63.89003898 51.97872905 115.86876802 115.86876802 115.86876803h509.82257929c63.89003898 0 115.86876802-51.97872905 115.86876876-115.86876803 0-15.99858046-12.9686121-28.96719183-28.96719255-28.96719182z",
|
|
401
|
+
"p-id": "3966"
|
|
402
|
+
}, null, -1)
|
|
403
|
+
])]);
|
|
404
|
+
}
|
|
405
|
+
const U1 = /* @__PURE__ */ v(P1, [["render", Q1]]), K1 = {}, j1 = {
|
|
406
|
+
t: "1640064809936",
|
|
407
|
+
class: "icon",
|
|
408
|
+
viewBox: "0 0 1024 1024",
|
|
409
|
+
version: "1.1",
|
|
410
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
411
|
+
"p-id": "4062",
|
|
412
|
+
width: "64",
|
|
413
|
+
height: "64"
|
|
414
|
+
};
|
|
415
|
+
function J1(e, t) {
|
|
416
|
+
return w(), m("svg", j1, [...t[0] || (t[0] = [
|
|
417
|
+
c("path", {
|
|
418
|
+
d: "M904.53333333 129.06666667H119.46666667c-18.8512 0-34.13333333 15.27786667-34.13333334 34.1248a34.11946667 34.11946667 0 0 0 10.00106667 24.13333333l302.93226667 302.74773333v418.736c0 18.84693333 15.28213333 34.1248 34.13333333 34.1248a34.1408 34.1408 0 0 0 16.51413333-4.2592l170.61546667-94.2912a34.12266667 34.12266667 0 0 0 17.62133333-29.86453333l-0.00213333-327.25226667L929.01333333 186.97173333c13.13706667-13.5168 12.82666667-35.12106667-0.69333333-48.25493333A34.1376 34.1376 0 0 0 904.53333333 129.06666667z m-702.64106666 68.24853333h621.88053333l-245.23733333 252.32213333a34.11946667 34.11946667 0 0 0-9.65226667 23.78026667v320.9728l-102.34986667 56.5632v-375.01866667a34.11946667 34.11946667 0 0 0-10.00106666-24.1344l-254.64-254.48533333z",
|
|
419
|
+
"p-id": "4063"
|
|
420
|
+
}, null, -1)
|
|
421
|
+
])]);
|
|
422
|
+
}
|
|
423
|
+
const $1 = /* @__PURE__ */ v(K1, [["render", J1]]), N1 = {}, F1 = {
|
|
424
|
+
t: "1640067279284",
|
|
425
|
+
class: "icon",
|
|
426
|
+
viewBox: "0 0 1024 1024",
|
|
427
|
+
version: "1.1",
|
|
428
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
429
|
+
"p-id": "4718",
|
|
430
|
+
width: "64",
|
|
431
|
+
height: "64"
|
|
432
|
+
};
|
|
433
|
+
function R1(e, t) {
|
|
434
|
+
return w(), m("svg", F1, [...t[0] || (t[0] = [
|
|
435
|
+
c("path", {
|
|
436
|
+
d: "M512 96.93866667C282.76963555 96.93866667 96.93866667 282.76963555 96.93866667 512S282.76963555 927.06133333 512 927.06133333 927.06133333 741.23036445 927.06133333 512 741.23036445 96.93866667 512 96.93866667z m0 72.81777778c189.03495111 0 342.24355555 153.20860445 342.24355555 342.24355555S701.03495111 854.24355555 512 854.24355555 169.75644445 701.03495111 169.75644445 512 322.96504889 169.75644445 512 169.75644445z",
|
|
437
|
+
"p-id": "4719"
|
|
438
|
+
}, null, -1),
|
|
439
|
+
c("path", {
|
|
440
|
+
d: "M541.79703467 607.79906845v-8.15559112c0-14.03926755 2.91271111-26.30178133 8.73813333-37.98175288 5.27200711-10.51488711 12.87418311-20.447232 23.38907022-29.21449245 28.02028089-24.52502755 44.97225955-40.31192178 50.24426667-46.137344 13.98101333-18.69960533 21.61231645-42.64209067 21.61231644-71.85658311 0-35.651584-11.70909867-63.67186489-35.06904178-84.11909689-23.35994311-21.02977422-54.32206222-30.96211911-92.274688-30.96211911-43.22463289 0-77.12859022 12.26251378-102.23616 36.78754133-25.690112 24.55415467-37.98175289 58.42898489-37.98175288 101.65361778h66.61370311c0-24.52502755 4.66033778-43.80717511 14.59268267-57.23477333 11.09742933-16.36943645 29.21449245-23.97161245 54.90460444-23.97161245 19.86468978 0 35.651584 5.24288 46.74901333 16.36943645 10.48576 11.09742933 16.34030933 26.27265422 16.34030933 45.55480178 0 14.62180978-5.24288 28.63195022-15.7577671 41.47700622l-7.01963378 8.15559111c-37.98175289 33.90395733-60.75915378 58.42898489-68.33220267 74.21587911-8.18471822 15.75776711-11.70909867 35.03991467-11.70909867 57.23477333v8.18471823h67.19624534zM507.92220445 724.62791111c12.81592889 0 23.35994311-4.07779555 32.12720355-12.26251378 8.73813333-8.15559111 13.39847111-19.28214755 13.39847111-32.12720355 0-12.845056-4.66033778-23.35994311-12.81592889-31.54466133-8.76726045-8.15559111-19.86468978-12.26251378-32.70974577-12.26251378-12.87418311 0-23.38907022 4.07779555-32.12720356 12.23338666-8.76726045 8.21384533-12.87418311 18.72873245-12.87418311 31.57378845 0 12.845056 4.07779555 23.35994311 12.87418311 31.54466133 8.73813333 8.15559111 19.25302045 12.845056 32.12720356 12.845056z",
|
|
441
|
+
"p-id": "4720"
|
|
442
|
+
}, null, -1)
|
|
443
|
+
])]);
|
|
444
|
+
}
|
|
445
|
+
const q1 = /* @__PURE__ */ v(N1, [["render", R1]]), T1 = {}, D1 = {
|
|
446
|
+
t: "1639104862436",
|
|
447
|
+
class: "icon",
|
|
448
|
+
viewBox: "0 0 1024 1024",
|
|
449
|
+
version: "1.1",
|
|
450
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
451
|
+
"p-id": "4267",
|
|
452
|
+
width: "64",
|
|
453
|
+
height: "64"
|
|
454
|
+
};
|
|
455
|
+
function W1(e, t) {
|
|
456
|
+
return w(), m("svg", D1, [...t[0] || (t[0] = [
|
|
457
|
+
c("path", {
|
|
458
|
+
d: "M517.19104004 526.66674805L133.7956543 334.76306153 514.71911622 144.3425293l380.5114746 190.25573731-378.03955078 192.06848144zM262.6652832 334.84545898l254.36096192 127.30407716 250.07629394-127.05688478-252.38342285-126.23291014L262.6652832 334.84545898z",
|
|
459
|
+
"p-id": "4268"
|
|
460
|
+
}, null, -1),
|
|
461
|
+
c("path", {
|
|
462
|
+
d: "M517.19104004 705.38684083L133.7956543 513.4831543l126.80969238-63.36364747 66.57714843 31.14624024-64.51721191 32.21740723 254.36096192 127.30407715 250.07629394-127.05688478-63.61083984-31.80541991 62.53967287-33.20617677 129.19921873 64.59960938z",
|
|
463
|
+
"p-id": "4269"
|
|
464
|
+
}, null, -1),
|
|
465
|
+
c("path", {
|
|
466
|
+
d: "M517.19104004 879.98706055L133.7956543 688.08337403l126.80969238-63.36364747 66.57714843 31.2286377-64.51721191 32.21740722 254.36096192 127.22167969L767.10253906 688.33056641l-63.61083984-31.80541992 62.53967287-33.20617677 129.19921873 64.59960939z",
|
|
467
|
+
"p-id": "4270"
|
|
468
|
+
}, null, -1)
|
|
469
|
+
])]);
|
|
470
|
+
}
|
|
471
|
+
const Y1 = /* @__PURE__ */ v(T1, [["render", W1]]), G1 = {}, Z1 = {
|
|
472
|
+
t: "1640015029919",
|
|
473
|
+
class: "icon",
|
|
474
|
+
viewBox: "0 0 1024 1024",
|
|
475
|
+
version: "1.1",
|
|
476
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
477
|
+
"p-id": "3997",
|
|
478
|
+
width: "64",
|
|
479
|
+
height: "64"
|
|
480
|
+
};
|
|
481
|
+
function X1(e, t) {
|
|
482
|
+
return w(), m("svg", Z1, [...t[0] || (t[0] = [
|
|
483
|
+
c("path", {
|
|
484
|
+
d: "M757.2014591 225.94535818L142.42695725 840.71986005l93.15513994 93.15513995L850.35659906 319.10049814c10.29566079-10.29566079 10.29566079-27.01581455 0-37.31147535l-55.92602994-55.92602993c-10.29566079-10.21329547-26.93344922-10.21329547-37.22911002 0.08236532z m20.92078289 58.23225824l14.00209884 14.00209882c1.31784438 1.31784438 1.31784438 3.37697671 0 4.69482111L692.21524827 402.78362973 673.60069285 384.16907431l99.90909338-99.90909256c1.23547906-1.31784438 3.37697671-1.31784438 4.61245578-0.08236532zM235.66446253 859.33441547l-18.6145554-18.61455542L636.37158365 421.39818433l18.6145546 18.61455459-419.32167572 419.32167654zM403.52491684 448.00217223l-59.63246797-109.05164043-109.0516396-59.63246795 109.0516396-59.63246714 59.63246797-109.05164045 59.63246796 109.05164045 109.05163962 59.63246714-109.05163962 59.63246795-59.63246796 109.05164045z m-58.80881469-168.68410838l38.05276245 20.83841839 20.83841755 38.05276244 20.83841758-38.05276245 38.05276246-20.83841838-38.05276246-20.83841758-20.83841758-38.05276245-20.83841755 38.05276245-38.05276245 20.83841758zM574.84471402 133.53150615L619.07487344 120.60015658l-12.9313504 44.2301586 12.9313504 44.23015943-44.23015942-13.01371573-44.23015943 13.01371573 13.01371574-44.23015943L530.61455459 120.60015658zM296.03821759 99.84410352L329.14906297 90.125l-9.71910435 33.11084537L329.14906297 156.34669073l-33.11084538-9.71910351-33.11084537 9.71910352 9.71910352-33.11084537L262.92737222 90.125zM803.40838553 598.64828167L829.93000812 590.90594518l-7.74233735 26.52162257 7.74233735 26.52162176-26.52162259-7.82470183-26.52162259 7.82470183 7.82470267-26.52162176-7.82470267-26.52162257z",
|
|
485
|
+
"p-id": "3998"
|
|
486
|
+
}, null, -1)
|
|
487
|
+
])]);
|
|
488
|
+
}
|
|
489
|
+
const e0 = /* @__PURE__ */ v(G1, [["render", X1]]), t0 = {}, n0 = {
|
|
490
|
+
t: "1640064826930",
|
|
491
|
+
class: "icon",
|
|
492
|
+
viewBox: "0 0 1024 1024",
|
|
493
|
+
version: "1.1",
|
|
494
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
495
|
+
"p-id": "4357",
|
|
496
|
+
width: "64",
|
|
497
|
+
height: "64"
|
|
498
|
+
};
|
|
499
|
+
function o0(e, t) {
|
|
500
|
+
return w(), m("svg", n0, [...t[0] || (t[0] = [
|
|
501
|
+
c("path", {
|
|
502
|
+
d: "M752 62A70.00000031 70.00000031 0 0 1 822.00000031 132.00000031v759.99999938a70.00000031 70.00000031 0 0 1-70.00000031 70.00000031H272A70.00000031 70.00000031 0 0 1 201.99999969 891.99999969V132.00000031A70.00000031 70.00000031 0 0 1 272 62h480z m10.00000031 690h-500.00000062v139.99999969a10.00000031 10.00000031 0 0 0 10.00000031 10.00000031h480a10.00000031 10.00000031 0 0 0 10.00000031-10.00000031v-139.99999969zM512 792.00000031a40.00000031 40.00000031 0 1 1 0 79.99999969 40.00000031 40.00000031 0 0 1 0-79.99999969zM752 122H272a10.00000031 10.00000031 0 0 0-10.00000031 10.00000031v559.99999969h500.00000062V132.00000031a10.00000031 10.00000031 0 0 0-10.00000031-10.00000031zM591.99999969 171.99999969v60h-159.99999938V171.99999969h159.99999938z",
|
|
503
|
+
"p-id": "4358"
|
|
504
|
+
}, null, -1)
|
|
505
|
+
])]);
|
|
506
|
+
}
|
|
507
|
+
const s0 = /* @__PURE__ */ v(t0, [["render", o0]]), r0 = {}, i0 = {
|
|
508
|
+
t: "1639124104342",
|
|
509
|
+
class: "icon",
|
|
510
|
+
viewBox: "0 0 1024 1024",
|
|
511
|
+
version: "1.1",
|
|
512
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
513
|
+
"p-id": "3965",
|
|
514
|
+
width: "64",
|
|
515
|
+
height: "64"
|
|
516
|
+
};
|
|
517
|
+
function c0(e, t) {
|
|
518
|
+
return w(), m("svg", i0, [...t[0] || (t[0] = [
|
|
519
|
+
c("path", {
|
|
520
|
+
d: "M780.09129178 680.62908245c-43.81461208 0-81.1807901 27.98663782-95.1777278 67.0318696H318.57592857c-58.27473714 0-105.70076185-45.34891999-105.70076114-101.07612743 0-55.76339409 47.42602472-101.07612743 105.70076114-101.07612743h98.71676788c14.11997145 38.80640049 51.37035336 66.59039439 95.01850742 66.5903944 43.62644267 0 80.88406146-27.7912308 95.01850742-66.5903944h98.81808948C803.27960029 545.51593481 882.31091236 469.9440519 882.31091236 377.05331036S803.27960029 208.59068591 706.14056387 208.59068591H338.98511369c-13.902853-39.22616431-51.37759025-67.37926013-95.30076152-67.37926013C187.92819497 141.21142578 142.60822472 186.52415911 142.60822472 242.2803156c0 55.72720745 45.31997023 101.07612743 101.07612745 101.07612744 43.9159344 0 81.38343473-28.16757034 95.29352464-67.37926013h367.16268706c58.27473714 0 105.70076185 45.34891999 105.70076185 101.07612744 0 55.76339409-47.42602472 101.07612743-105.70076185 101.07612744H607.89422097c-13.67849623-39.63869048-51.36311573-68.17536274-95.57577949-68.17536346-44.24161278 0-81.90452014 28.52943536-95.57577947 68.17536346H318.57592857c-97.13903642 0-176.17034849 75.57188291-176.17034849 168.46262444 0 92.89074154 79.03131279 168.46262445 176.17034849 168.46262446h366.09880411c13.80153069 39.39262231 51.34864121 67.73388753 95.4165591 67.73388753 55.72720745 0 101.07612743-45.34891999 101.07612744-101.07612744 0.00723761-55.76339409-45.34891999-101.08336433-101.07612744-101.08336433zM243.633691 291.1465628c-26.91551725 0-48.79387463-21.89283115-48.79387463-48.79387391 0-26.91551725 21.87835665-48.79387463 48.79387463-48.79387463 26.90104273 0 48.79387463 21.87835665 48.79387391 48.79387463 0 26.90104273-21.89283115 48.79387463-48.79387391 48.79387391z m268.67751287 171.09700195c26.90104273 0 48.79387463 21.87835665 48.79387462 48.79387463 0 26.90104273-21.89283115 48.79387463-48.79387462 48.79387391-26.91551725 0-48.79387463-21.89283115-48.79387463-48.79387391 0.00723761-26.92275488 21.87835665-48.79387463 48.79387463-48.79387463z m267.78008791 368.25551904c-26.91551725 0-48.79387463-21.89283115-48.79387463-48.79387391 0-26.91551725 21.87835665-48.79387463 48.79387463-48.79387462 26.90104273 0 48.79387463 21.87835665 48.79387463 48.79387462 0 26.90104273-21.89283115 48.79387463-48.79387463 48.79387391z",
|
|
521
|
+
"p-id": "3966"
|
|
522
|
+
}, null, -1)
|
|
523
|
+
])]);
|
|
524
|
+
}
|
|
525
|
+
const l0 = /* @__PURE__ */ v(r0, [["render", c0]]), a0 = {}, d0 = {
|
|
526
|
+
t: "1640067016334",
|
|
527
|
+
class: "icon",
|
|
528
|
+
viewBox: "0 0 1024 1024",
|
|
529
|
+
version: "1.1",
|
|
530
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
531
|
+
"p-id": "4028",
|
|
532
|
+
width: "64",
|
|
533
|
+
height: "64"
|
|
534
|
+
};
|
|
535
|
+
function h0(e, t) {
|
|
536
|
+
return w(), m("svg", d0, [...t[0] || (t[0] = [
|
|
537
|
+
c("path", {
|
|
538
|
+
d: "M897.00000031 92H126.99999969A34.99999969 34.99999969 0 0 0 92 126.99999969V711.99999969a34.99999969 34.99999969 0 0 0 34.99999969 35.00000062h350.00000062v114.99999938h-194.80000031a34.99999969 34.99999969 0 1 0 0 70.00000031h460.00000031a34.99999969 34.99999969 0 1 0 0-70.00000031h-195.20000062v-114.79999969h350.00000062A34.99999969 34.99999969 0 0 0 932 711.99999969V126.99999969A34.99999969 34.99999969 0 0 0 897.00000031 92zM861.99999969 677.19999969h-699.99999938V162.00000031h699.99999938z",
|
|
539
|
+
"p-id": "4029"
|
|
540
|
+
}, null, -1),
|
|
541
|
+
c("path", {
|
|
542
|
+
d: "M315.2 519.00000031a34.2 34.2 0 0 0 21.19999969-7.00000031l106.40000062-81.6L531.99999969 505.20000031a34.99999969 34.99999969 0 0 0 44.4 0l155.00000062-123.20000062a34.99999969 34.99999969 0 0 0-43.60000031-54.79999969l-132.40000031 105.40000031-87.99999938-74.80000031a34.99999969 34.99999969 0 0 0-44.00000062-1.00000031l-128.79999938 98.80000031a34.99999969 34.99999969 0 0 0 21.39999938 62.80000031z",
|
|
543
|
+
"p-id": "4030"
|
|
544
|
+
}, null, -1)
|
|
545
|
+
])]);
|
|
546
|
+
}
|
|
547
|
+
const p0 = /* @__PURE__ */ v(a0, [["render", h0]]), u0 = {}, f0 = {
|
|
548
|
+
t: "1640066472509",
|
|
549
|
+
class: "icon",
|
|
550
|
+
viewBox: "0 0 1024 1024",
|
|
551
|
+
version: "1.1",
|
|
552
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
553
|
+
"p-id": "4057",
|
|
554
|
+
width: "64",
|
|
555
|
+
height: "64"
|
|
556
|
+
};
|
|
557
|
+
function g0(e, t) {
|
|
558
|
+
return w(), m("svg", f0, [...t[0] || (t[0] = [
|
|
559
|
+
c("path", {
|
|
560
|
+
d: "M188.06 452.66l199.35 120.69a30 30 0 1 1-31.08 51.3L106.46 473.42a30 30 0 0 1 3.99-53.37l780-325.74a30 30 0 0 1 41.01 33.3l-136.65 720a30 30 0 0 1-45.54 19.74L495.95 706.73a30 30 0 0 1 32.1-50.7l216.06 136.98L862.1 171.2 188.06 452.66z",
|
|
561
|
+
"p-id": "4058"
|
|
562
|
+
}, null, -1),
|
|
563
|
+
c("path", {
|
|
564
|
+
d: "M422 624.59V872a30 30 0 0 1-60 0V610.79a30 30 0 0 1 10.5-22.8L737.18 275.75a30 30 0 0 1 39 45.6L422 624.56z",
|
|
565
|
+
"p-id": "4059"
|
|
566
|
+
}, null, -1)
|
|
567
|
+
])]);
|
|
568
|
+
}
|
|
569
|
+
const m0 = /* @__PURE__ */ v(u0, [["render", g0]]), w0 = {}, v0 = {
|
|
570
|
+
t: "1639124363597",
|
|
571
|
+
class: "icon",
|
|
572
|
+
viewBox: "0 0 1024 1024",
|
|
573
|
+
version: "1.1",
|
|
574
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
575
|
+
"p-id": "3965",
|
|
576
|
+
width: "64",
|
|
577
|
+
height: "64"
|
|
578
|
+
};
|
|
579
|
+
function A0(e, t) {
|
|
580
|
+
return w(), m("svg", v0, [...t[0] || (t[0] = [
|
|
581
|
+
c("path", {
|
|
582
|
+
d: "M78.769231 157.53846199h866.461538v708.92307602H78.769231V157.53846199z m78.76923099 78.76923001v551.384616h708.92307602V236.307692H157.53846199z m433.23076901 39.384616h236.307692v472.615384H590.769231V275.692308z",
|
|
583
|
+
"p-id": "3966"
|
|
584
|
+
}, null, -1)
|
|
585
|
+
])]);
|
|
586
|
+
}
|
|
587
|
+
const y0 = /* @__PURE__ */ v(w0, [["render", A0]]), _0 = {}, C0 = {
|
|
588
|
+
t: "1640064969277",
|
|
589
|
+
class: "icon",
|
|
590
|
+
viewBox: "0 0 1024 1024",
|
|
591
|
+
version: "1.1",
|
|
592
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
593
|
+
"p-id": "3996",
|
|
594
|
+
width: "64",
|
|
595
|
+
height: "64"
|
|
596
|
+
};
|
|
597
|
+
function k0(e, t) {
|
|
598
|
+
return w(), m("svg", C0, [...t[0] || (t[0] = [
|
|
599
|
+
c("path", {
|
|
600
|
+
d: "M947.02933333 896.55466667H75.94666667a29.74933333 29.74933333 0 0 1-29.71733334-29.71733334V284.66133333A29.74933333 29.74933333 0 0 1 75.94666667 254.93333333h871.08266666a29.74933333 29.74933333 0 0 1 29.71733334 29.71733334v582.176a29.74933333 29.74933333 0 0 1-29.71733334 29.728z m-843.168-57.6h815.24266667V312.53333333H103.86133333z",
|
|
601
|
+
"p-id": "3997"
|
|
602
|
+
}, null, -1),
|
|
603
|
+
c("path", {
|
|
604
|
+
d: "M511.30666667 747.73333333c-94.848 0-172.02133333-77.16266667-172.02133334-172.02133333s77.16266667-172.02133333 172.02133334-172.02133333 172.02133333 77.16266667 172.02133333 172.02133333S606.15466667 747.73333333 511.30666667 747.73333333z m0-286.4a114.37866667 114.37866667 0 1 0 114.37866666 114.41066667 114.50666667 114.50666667 0 0 0-114.37866666-114.37866667zM248.32 130.656h526.144v57.64266667H248.32z",
|
|
605
|
+
"p-id": "3998"
|
|
606
|
+
}, null, -1)
|
|
607
|
+
])]);
|
|
608
|
+
}
|
|
609
|
+
const x0 = /* @__PURE__ */ v(_0, [["render", k0]]), b0 = {}, z0 = {
|
|
610
|
+
t: "1639124529853",
|
|
611
|
+
class: "icon",
|
|
612
|
+
viewBox: "0 0 1024 1024",
|
|
613
|
+
version: "1.1",
|
|
614
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
615
|
+
"p-id": "3965",
|
|
616
|
+
width: "64",
|
|
617
|
+
height: "64"
|
|
618
|
+
};
|
|
619
|
+
function E0(e, t) {
|
|
620
|
+
return w(), m("svg", z0, [...t[0] || (t[0] = [
|
|
621
|
+
c("path", {
|
|
622
|
+
d: "M416 160c-35.008 0-64 28.992-64 64v64H64v576h896V288h-288V224c0-35.008-28.992-64-64-64z m0 64h192v64h-192z m-288 128h768v160h-128v-32h-128v32h-256v-32H256v32H128z m0 224h128v32h128v-32h256v32h128v-32h128v224H128z",
|
|
623
|
+
"p-id": "3966"
|
|
624
|
+
}, null, -1)
|
|
625
|
+
])]);
|
|
626
|
+
}
|
|
627
|
+
const S0 = /* @__PURE__ */ v(b0, [["render", E0]]), B0 = {}, L0 = {
|
|
628
|
+
t: "1640066761897",
|
|
629
|
+
class: "icon",
|
|
630
|
+
viewBox: "0 0 1024 1024",
|
|
631
|
+
version: "1.1",
|
|
632
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
633
|
+
"p-id": "7282",
|
|
634
|
+
width: "64",
|
|
635
|
+
height: "64"
|
|
636
|
+
};
|
|
637
|
+
function I0(e, t) {
|
|
638
|
+
return w(), m("svg", L0, [...t[0] || (t[0] = [
|
|
639
|
+
c("path", {
|
|
640
|
+
d: "M239.9525 784.0475H123.362A38.862 38.862 0 0 1 84.5 745.181V123.362A38.862 38.862 0 0 1 123.362 84.5h621.819a38.862 38.862 0 0 1 38.8665 38.862v116.595h116.5905A38.862 38.862 0 0 1 939.5 278.8145v621.819a38.862 38.862 0 0 1-38.862 38.862H278.819a38.862 38.862 0 0 1-38.8665-38.862v-116.595z m466.3665-544.095V162.2285H162.224v544.0905h77.7285v-427.5a38.862 38.862 0 0 1 38.8665-38.8665h427.5zM317.681 317.681v544.095h544.095V317.6765H317.6765z",
|
|
641
|
+
"p-id": "7283"
|
|
642
|
+
}, null, -1)
|
|
643
|
+
])]);
|
|
644
|
+
}
|
|
645
|
+
const M0 = /* @__PURE__ */ v(B0, [["render", I0]]), V0 = /* @__PURE__ */ G({
|
|
646
|
+
__name: "head-loading",
|
|
647
|
+
setup(e) {
|
|
648
|
+
const t = K(), n = l1(() => ({
|
|
649
|
+
"loading-indicator": !0,
|
|
650
|
+
loading: t.loading > 0
|
|
651
|
+
}));
|
|
652
|
+
return (o, s) => (w(), m("div", {
|
|
653
|
+
class: a1(n.value)
|
|
654
|
+
}, null, 2));
|
|
655
|
+
}
|
|
656
|
+
}), O0 = /* @__PURE__ */ v(V0, [["__scopeId", "data-v-6bff27a8"]]), P0 = G({
|
|
657
|
+
name: "HeaderToolber",
|
|
658
|
+
components: {
|
|
659
|
+
HeadLoading: O0,
|
|
660
|
+
IconEditorCanvas: U1,
|
|
661
|
+
IconWarning: f1,
|
|
662
|
+
IconNodal: l0,
|
|
663
|
+
IconBox: O1,
|
|
664
|
+
IconRpanel: y0,
|
|
665
|
+
IconToolbox: S0,
|
|
666
|
+
IconFilter: $1,
|
|
667
|
+
IconMagic: e0,
|
|
668
|
+
IconMobile: s0,
|
|
669
|
+
IconWorkspace: M0,
|
|
670
|
+
IconSnapshot: x0,
|
|
671
|
+
IconAi: L1,
|
|
672
|
+
IconHelp: q1,
|
|
673
|
+
IconLayer: Y1,
|
|
674
|
+
IconRelease: m0,
|
|
675
|
+
IconPreview: p0
|
|
676
|
+
},
|
|
677
|
+
data() {
|
|
678
|
+
return {
|
|
679
|
+
editorStore: D(),
|
|
680
|
+
toolbarStore: K(),
|
|
681
|
+
types: "",
|
|
682
|
+
scale: 20,
|
|
683
|
+
comStore: J(),
|
|
684
|
+
screenData: {}
|
|
685
|
+
};
|
|
686
|
+
},
|
|
687
|
+
computed: {
|
|
688
|
+
...I(K, ["layer", "components", "config", "toolbox", "filter"]),
|
|
689
|
+
...I(u1, ["dataFilters"]),
|
|
690
|
+
...I(m1, ["componentsView", "publishersView", "subscribersView"]),
|
|
691
|
+
...I(J, ["coms", "subComs"]),
|
|
692
|
+
...I(D, ["screen", "pageConfig"])
|
|
693
|
+
},
|
|
694
|
+
watch: {
|
|
695
|
+
"editorStore.canvas.scale": {
|
|
696
|
+
handler(e) {
|
|
697
|
+
const t = Number.parseInt((e * 100).toFixed(2));
|
|
698
|
+
this.scale = t;
|
|
699
|
+
},
|
|
700
|
+
immediate: !0
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
methods: {
|
|
704
|
+
delAllClick() {
|
|
705
|
+
q.confirm("删除后无法恢复,是否删除当前屏下的全部组件", "删除提醒", {
|
|
706
|
+
confirmButtonText: "确定",
|
|
707
|
+
cancelButtonText: "取消",
|
|
708
|
+
type: "warning"
|
|
709
|
+
}).then(async () => {
|
|
710
|
+
const e = this.coms.filter((t) => this.editorStore.selectedPage?.children.includes(t.id));
|
|
711
|
+
await this.comStore.deletes(e);
|
|
712
|
+
}).catch((e) => {
|
|
713
|
+
});
|
|
714
|
+
},
|
|
715
|
+
submitScale(e) {
|
|
716
|
+
e === "max" ? this.scale += 2 : this.scale -= 2, this.editorStore.setCanvasScale(this.scale, this.toolbarStore.getPanelOffset.x, this.toolbarStore.getPanelOffset.y);
|
|
717
|
+
},
|
|
718
|
+
...c1(K, ["setPanelState", "setFilterState", "addLoading", "removeLoading"]),
|
|
719
|
+
changeLayerPanel() {
|
|
720
|
+
this.setPanelState(Q.layer, !this.layer.show);
|
|
721
|
+
},
|
|
722
|
+
changeComponentsPanel() {
|
|
723
|
+
this.setPanelState(Q.components, !this.components.show);
|
|
724
|
+
},
|
|
725
|
+
changeConfigPanel() {
|
|
726
|
+
this.setPanelState(Q.config, !this.config.show);
|
|
727
|
+
},
|
|
728
|
+
changeToolboxPanel() {
|
|
729
|
+
this.setPanelState(Q.toolbox, !this.toolbox.show);
|
|
730
|
+
},
|
|
731
|
+
changeFilterPanel() {
|
|
732
|
+
this.setFilterState(!this.filter.show);
|
|
733
|
+
},
|
|
734
|
+
goHome() {
|
|
735
|
+
const e = this.$router.resolve("/");
|
|
736
|
+
window.open(e.href, "_blank", "noopener=yes,noreferrer=yes");
|
|
737
|
+
},
|
|
738
|
+
getDownloadNumber(e) {
|
|
739
|
+
return JSON.stringify(e);
|
|
740
|
+
},
|
|
741
|
+
async saveScreen(e) {
|
|
742
|
+
this.addLoading();
|
|
743
|
+
try {
|
|
744
|
+
this.types = this.$router.currentRoute.value?.query?.types || "", this.editorStore.editPages(this.pageConfig.defaultAllPages, this.pageConfig.allPages[0]?.id, "save");
|
|
745
|
+
for (const r in this.pageConfig.resourceList)
|
|
746
|
+
Object.prototype.hasOwnProperty.call(this.pageConfig.resourceList, r) && (this.pageConfig.resourceList[r] || delete this.pageConfig.resourceList[r]);
|
|
747
|
+
const t = {
|
|
748
|
+
screen: this.screen,
|
|
749
|
+
config: { ...this.pageConfig, defaultAllPages: this.pageConfig.allPages[0]?.id },
|
|
750
|
+
coms: [...this.coms, ...this.subComs],
|
|
751
|
+
variables: {
|
|
752
|
+
componentsView: this.componentsView,
|
|
753
|
+
publishersView: this.publishersView,
|
|
754
|
+
subscribersView: this.subscribersView
|
|
755
|
+
},
|
|
756
|
+
dataFilters: this.dataFilters ?? []
|
|
757
|
+
};
|
|
758
|
+
t.coms.forEach((r) => {
|
|
759
|
+
r.screenId = this.screen.id;
|
|
760
|
+
});
|
|
761
|
+
let n = {
|
|
762
|
+
...t.screen,
|
|
763
|
+
prefs: this.getDownloadNumber({
|
|
764
|
+
...t.config
|
|
765
|
+
})
|
|
766
|
+
};
|
|
767
|
+
console.log("ssasasas", this.$router.currentRoute.value.params.screenId);
|
|
768
|
+
let o = this.$router.currentRoute.value.params.screenId;
|
|
769
|
+
n.name || (n.name = "未命名"), delete n.content;
|
|
770
|
+
const s = await (o === "new" ? h1(n) : p1(n));
|
|
771
|
+
s.code === 0 ? j.success(o === "new" ? "保存成功" : "编辑成功") : j.error(s.message);
|
|
772
|
+
} catch (t) {
|
|
773
|
+
j.error(`保存失败:${t}`);
|
|
774
|
+
} finally {
|
|
775
|
+
this.removeLoading();
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
async goPreview() {
|
|
779
|
+
await this.saveScreen("draft");
|
|
780
|
+
const e = this.$router.resolve({
|
|
781
|
+
name: "Preview",
|
|
782
|
+
params: {
|
|
783
|
+
screenId: this.screen.id
|
|
784
|
+
},
|
|
785
|
+
query: {
|
|
786
|
+
types: this.types
|
|
787
|
+
}
|
|
788
|
+
}), t = document.createElement("a");
|
|
789
|
+
t.rel = "noopener, noreferrer", t.href = e.href, t.target = "_blank", t.click();
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
mounted() {
|
|
793
|
+
const e = g1();
|
|
794
|
+
r1();
|
|
795
|
+
const t = J();
|
|
796
|
+
E("ctrl+s,ctrl+z,ctrl+y,del,ctrl+c,ctrl+v", (n, o) => {
|
|
797
|
+
const s = t.selectedComs;
|
|
798
|
+
switch (o.key) {
|
|
799
|
+
case "ctrl+s":
|
|
800
|
+
this.saveScreen("draft");
|
|
801
|
+
break;
|
|
802
|
+
case "ctrl+z":
|
|
803
|
+
e.setBackCache();
|
|
804
|
+
break;
|
|
805
|
+
case "ctrl+y":
|
|
806
|
+
e.setNextCache();
|
|
807
|
+
break;
|
|
808
|
+
case "ctrl+c":
|
|
809
|
+
if (s.length === 0)
|
|
810
|
+
return;
|
|
811
|
+
t.selectedComs.forEach((d) => {
|
|
812
|
+
t.copy(d);
|
|
813
|
+
});
|
|
814
|
+
break;
|
|
815
|
+
case "del":
|
|
816
|
+
if (s.length === 0)
|
|
817
|
+
return;
|
|
818
|
+
const r = s.map((d) => d.alias);
|
|
819
|
+
q.confirm(`删除后无法恢复,是否删除${r.join(",")},共${r.length}个组件`, "确认删除", {
|
|
820
|
+
confirmButtonText: "确定",
|
|
821
|
+
cancelButtonText: "取消",
|
|
822
|
+
type: "warning"
|
|
823
|
+
}).then(async () => {
|
|
824
|
+
await t.deletes(s);
|
|
825
|
+
});
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
}), this.types = this.$router.currentRoute.value?.query?.types || "";
|
|
829
|
+
}
|
|
830
|
+
}), H0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA89JREFUaEPtWEtS20AQ7R6lgKWzj1yyyQK5srBvYJ8AcwN8gsAJCCewcwLICYATwA3wImWzCFhlZx8tAxVPJ62PJbuCZkaSE6iytprp6df9+ovwyj985frDBsD/9uDGAxsPFLRAaRRy3n9oz+V8HwiaCFghAId1QyAfAH1CuiFJV29gZ+h5Q7+g3ovrhQA4zp4zF+IEidqxwmrF0AeES5Lyy3fv7kZ9PvtEbgDVeuMTEZ3E4hFwyFa2hHUFv6QPsOWF/35WAERFCmoTwT4AtBPz4bklt46LeMQYQGh17ANBN1AEWQl56nl3kcLZFnOcZkWKpyMi+AhAFQTwBFFH9/6qdCMArLxEvGa68MOSqJeXBpGsCwJocoxYBB3PGw1NKaUNILAcPt7GyhexWqwky5yLpz4QHYYgZMvUE9oA7Jp7zfxFgKGg7U4R3q5auVp3+0RwlIdOWgCqdZc528/zgC4lqjWXvdvkmJo9jHq695QAAjfj04QDjog6eTmvUigdX5ZldbxvX7VSrBJAKl3ezCbjjkqRIv/t3cYhSDr7Q1Xtt5QA7Frjx7qtnwZdrbkTThQWYUsnK2UCeOfstRHxmovUdDJqFbGu7l273jjjrIQIx9OH8UB1LxOAXXe5YB0BwmD2MD5WCSvjv73rdkHChS6NsgFEqRMEHMzux5dlKKiSESaNxx98bjYZKymeeSDhI9VMC4xK0az/cdxZtP1WVW8UHggDWCWIixxG7bNacfQFQS8rQKu1xi0BNXUCWUUhUrky3WKolQ9PqPJ8aQB0KcQgwrZZ59vxVbTQfTdohrO5GPY/KovpqG1yxq65Ss/H8hRp1Cwnmyj53FnT2pMNwDAnlwHAtPZkAkjnZIv+TSo1bV2UhSIu7aZtbh5vxFWY2/bpZFzTkaEEEMzAiJMg/a3RC0vpWGBvdj86LwUAC1k0WMEAvt1SpUGdh1fPpKcyXesr02j8yNI8jDCYltzYxRNfnrlYSaEEBFNJ3AarkBJBLO2XiHoz706LOlp1YNXNtuN2AfEs2ucMBdFBkSYvpk34zpq3EoknGk2JxPschx9FhM9Cbg1M4oJHR5R0spAB5PFAn2dpoE2htDei+sBDR7Qm5H0nnWctb+PlLxJ0k8VvuJUD2PElPvLCzBhELgAxmKjs83402XdGdIi30sE8vdJqs6VJ4Gk6VUaJwhhEIQBLtPrb8jbltvTy97mVSR4QpQBYDfakvRYVAOmbBLopiLUAyFPIVmMsiYnsjciLBMBgFotfHu4zVo0vFoCuFzcAdC21rnMbD6zLsrpyX70HfgMYpmNPJYxpcQAAAABJRU5ErkJggg==", Q0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABA5JREFUaEPtWE1SGkEUfq/HUpdkL9SAWThUFnCAVMEJxBvICaInMJ4AcgLNCdQTaFUOIIsUuIgyBe6dZbSkX/LmxxkIme6ewb8qWNLT3e9773s//SG88x++c/thCeC1I7iMwDICOT2wMArZHz81JnKyDQQ1BCwQgM22IZAHgB4hXZCksxVY77luz8tp99P2XABse8ueCHGARI3IYLVh6AHCKUn5/da9ulB/n/5FZgClSvUrER1ExyNgj71sCesMHqUHsOoGa78LAKIgBTWIYBsAGrH78NiSq/t5ImIMIPA6doCg5RuCbIQ8dN2r0OB0j9l2rSDFwx4RfAGgAgK4gqipu3/2dCMAbLxEPGe68MWSqJ2VBuFZJwRQ4xyxCJqu2++ZUkobgO85vL+MjM/jtchIPnMiHjpAtBuAkHXTSGgDKJadc+YvAvQErTXz8HbWy6WK0yGCvSx00gJQqjjM2U6WC3QpUSo7HN0a59T4pt/W3acE4IcZH4accETUzMp5lUHJ/LIsq+n++qlVYpUAEuXyYjwcNFWGJNcZvAnVipvVXZB09Jeq2ncpARTL1bss3uecQQBb0FrdBESp7Ay5UFiEdZ2qlApgw95qIOI5N6nRsF838X5sCJVNKkuxUj3iqoQI+6ObQVd1ZyqAYsXhhrUHCN3xzWBfdVhyPTOATacFEk50aZQOICydIGBnfD04fQkAQdG4v+O7xsOBkuKpH2T1Il+eZ2+UdxatfVDljyICQQKrDooSNhkhQtgAghVAvEWix3gNPUHQTkvQUrl6SUA1nURWUYhUoUyOGLoUU9X5hQHQpQGDCMbm+DcR4gcQbSCKz0JObuOVdU9FC917/WE4zWvR/KPy2LwzTIyY3V8sO8rIR3sUZdSsJi+ijJr2nnQAhjV5EQBMe08qgGRNtsiso8aJqC6FSeCmo4uyUUSt3XTMte1qDVZEQXeqZBDFMOI8to+Gg7JOVVMC8N/AiEM+zDQKOgZE30yVY4Ht8XX/WGe/EoDvmWjA8h/gZtOljhF+5068ynS9ryyj87yDCN2R4WCnAhG9+LK8i7UiwAYEVBKXvhSyQBBT+hJRe+xeaVFHqw/802BspwWIR6Ge0xNEOyaz/ux5EW2C/59ZlYjpVK1JJNZzbL4UEb4JudpVjQdTpXKzuouSDp7OAHL5QZ9FNNCmUNKAsD/woyOUCVnvpOM08TYSf5GgFQu/gSoHsO5JvGfBzBhEJgARmLDtsz4a650hHSJV2n9Ph0p1grcuCTxMlsqwjBqDyAVgilbzxNtE2JLi7/+aWxYQCwEwm5zxeC0KANIzSXRTEM8CQFX3VevTINIVkTcJIOg7ofDLj/sUqfHNAlBFKVMj0z30Jb9bRuAlvT3vrmUEXjsCfwAY/L5P7G6ZggAAAABJRU5ErkJggg==", U0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAYhJREFUWEftl41NwzAQhd/bgBHoBnQD2IBuQDeACYAJKBPQDWADugHdgIzQDQ49dIdcx23cP1VIPqlS4iS+z8++nxJnNp7ZPxpAUQEzuwTwCOAagK5rrQPwSnJW+0EPwJ1/7ug497cAMCG5GgIpAbwDuPUPNcHSlYi5tMqwCwD6yTSeqrUkOd4H4NsnkvMxyc7MYqwjOYpJzewOwJvfTx1CCwioOUmNb7SSAuZvL0je6LoWgOTczK4AaAurII4O4MCC+EqWvVGJkwA4RLo9GpqRfMj3ohZAq9GqZCOdC3fy5OGq26m2IHWQnZHiO7UAaWQoxASgPY5oWQPLIO4BvPjYB8lJ+rwWQOElFeJg5UoW5U2ipXew41kVgMutrKiQyzOjst7ztqRjZocDJKsRwC8ESW3HoB0VYNBb4YUG0BRoCvw7BXoNyT6xnyQuZVD1B7KqWqB0q1Iqi5bsEAYBhCllq4L+2ama0hKwKqhavLVGdVtbrhKqHmCXtrzkWE2takaxYLV/Rk2BHz0UJDBVFX6oAAAAAElFTkSuQmCC", K0 = { class: "datav-header" }, j0 = { class: "screen-info" }, J0 = { class: "screen-top-left" }, $0 = { class: "datav-edit-header" }, N0 = { class: "editor-header-wp" }, F0 = { class: "editor-config" }, R0 = { class: "global-actions" };
|
|
831
|
+
function q0(e, t, n, o, s, r) {
|
|
832
|
+
const d = b("el-input"), i = b("IconLayer"), p = i1, A = b("el-link"), _ = b("el-tooltip"), u = b("IconRpanel"), C = b("ele-Delete"), l = b("el-icon"), k = b("ele-VideoPlay"), S = b("el-button");
|
|
833
|
+
return w(), m("div", K0, [
|
|
834
|
+
c("div", j0, [
|
|
835
|
+
c("span", null, d1(`${e.types === "template" ? "模版" : "节目"}制作 - `), 1),
|
|
836
|
+
f(d, {
|
|
837
|
+
modelValue: e.screen.name,
|
|
838
|
+
"onUpdate:modelValue": t[0] || (t[0] = (L) => e.screen.name = L)
|
|
839
|
+
}, null, 8, ["modelValue"])
|
|
840
|
+
]),
|
|
841
|
+
c("div", J0, [
|
|
842
|
+
f(_, { content: "图层" }, {
|
|
843
|
+
default: y(() => [
|
|
844
|
+
f(A, {
|
|
845
|
+
underline: !1,
|
|
846
|
+
onClick: e.changeLayerPanel
|
|
847
|
+
}, {
|
|
848
|
+
default: y(() => [
|
|
849
|
+
f(p, null, {
|
|
850
|
+
default: y(() => [
|
|
851
|
+
f(i)
|
|
852
|
+
]),
|
|
853
|
+
_: 1
|
|
854
|
+
})
|
|
855
|
+
]),
|
|
856
|
+
_: 1
|
|
857
|
+
}, 8, ["onClick"])
|
|
858
|
+
]),
|
|
859
|
+
_: 1
|
|
860
|
+
}),
|
|
861
|
+
f(_, { content: "右侧面板" }, {
|
|
862
|
+
default: y(() => [
|
|
863
|
+
f(A, {
|
|
864
|
+
underline: !1,
|
|
865
|
+
onClick: e.changeConfigPanel
|
|
866
|
+
}, {
|
|
867
|
+
default: y(() => [
|
|
868
|
+
f(p, null, {
|
|
869
|
+
default: y(() => [
|
|
870
|
+
f(u)
|
|
871
|
+
]),
|
|
872
|
+
_: 1
|
|
873
|
+
})
|
|
874
|
+
]),
|
|
875
|
+
_: 1
|
|
876
|
+
}, 8, ["onClick"])
|
|
877
|
+
]),
|
|
878
|
+
_: 1
|
|
879
|
+
})
|
|
880
|
+
]),
|
|
881
|
+
c("div", $0, [
|
|
882
|
+
c("div", N0, [
|
|
883
|
+
c("div", F0, [
|
|
884
|
+
f(A, {
|
|
885
|
+
underline: !1,
|
|
886
|
+
onClick: t[1] || (t[1] = (L) => e.submitScale("min"))
|
|
887
|
+
}, {
|
|
888
|
+
default: y(() => [...t[5] || (t[5] = [
|
|
889
|
+
c("img", {
|
|
890
|
+
src: H0,
|
|
891
|
+
alt: ""
|
|
892
|
+
}, null, -1)
|
|
893
|
+
])]),
|
|
894
|
+
_: 1
|
|
895
|
+
}),
|
|
896
|
+
f(A, {
|
|
897
|
+
underline: !1,
|
|
898
|
+
onClick: t[2] || (t[2] = (L) => e.submitScale("max"))
|
|
899
|
+
}, {
|
|
900
|
+
default: y(() => [...t[6] || (t[6] = [
|
|
901
|
+
c("img", {
|
|
902
|
+
src: Q0,
|
|
903
|
+
alt: ""
|
|
904
|
+
}, null, -1)
|
|
905
|
+
])]),
|
|
906
|
+
_: 1
|
|
907
|
+
})
|
|
908
|
+
]),
|
|
909
|
+
f(A, {
|
|
910
|
+
underline: !1,
|
|
911
|
+
onClick: t[3] || (t[3] = (L) => e.delAllClick())
|
|
912
|
+
}, {
|
|
913
|
+
default: y(() => [
|
|
914
|
+
f(l, { style: { "font-size": "18px" } }, {
|
|
915
|
+
default: y(() => [
|
|
916
|
+
f(C)
|
|
917
|
+
]),
|
|
918
|
+
_: 1
|
|
919
|
+
})
|
|
920
|
+
]),
|
|
921
|
+
_: 1
|
|
922
|
+
})
|
|
923
|
+
]),
|
|
924
|
+
c("div", R0, [
|
|
925
|
+
f(S, { onClick: e.goPreview }, {
|
|
926
|
+
default: y(() => [
|
|
927
|
+
f(l, { class: "el-icon--left" }, {
|
|
928
|
+
default: y(() => [
|
|
929
|
+
f(k)
|
|
930
|
+
]),
|
|
931
|
+
_: 1
|
|
932
|
+
}),
|
|
933
|
+
t[7] || (t[7] = T("预览 ", -1))
|
|
934
|
+
]),
|
|
935
|
+
_: 1
|
|
936
|
+
}, 8, ["onClick"]),
|
|
937
|
+
f(S, {
|
|
938
|
+
type: "primary",
|
|
939
|
+
onClick: t[4] || (t[4] = (L) => e.saveScreen("draft"))
|
|
940
|
+
}, {
|
|
941
|
+
default: y(() => [...t[8] || (t[8] = [
|
|
942
|
+
c("img", {
|
|
943
|
+
src: U0,
|
|
944
|
+
alt: ""
|
|
945
|
+
}, null, -1),
|
|
946
|
+
T("保存 ", -1)
|
|
947
|
+
])]),
|
|
948
|
+
_: 1
|
|
949
|
+
})
|
|
950
|
+
])
|
|
951
|
+
])
|
|
952
|
+
]);
|
|
953
|
+
}
|
|
954
|
+
const n3 = /* @__PURE__ */ v(P0, [["render", q0], ["__scopeId", "data-v-3829aa3d"]]);
|
|
955
|
+
export {
|
|
956
|
+
n3 as default
|
|
957
|
+
};
|