@gameap/frontend 4.1.0-dev8 → 4.1.0-dev9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AdminClientCertificatesView-BQyXmri1.js → AdminClientCertificatesView-rVNAX5Dl.js} +97 -94
- package/dist/AdminDaemonTaskListView-CoUVp9tK.js +316 -0
- package/dist/{AdminDaemonTaskOutputView-DRrZwAwW.js → AdminDaemonTaskOutputView-BJpuWCtc.js} +18 -17
- package/dist/{AdminGamesEdit-CDTCJu52.js → AdminGamesEdit-HKWU2C59.js} +121 -117
- package/dist/AdminGamesList-BwN_RFDY.js +518 -0
- package/dist/{AdminModEdit-P0crpkM3.js → AdminModEdit-CbVGlk5M.js} +123 -119
- package/dist/AdminNodeShowView-C7VsvwQo.js +175 -0
- package/dist/AdminNodesCreateView-BfEHhFn2.js +87 -0
- package/dist/{AdminNodesEditView-DdNciuMa.js → AdminNodesEditView-DE-zhVTd.js} +11 -11
- package/dist/AdminNodesView-QMdy3oJ1.js +167 -0
- package/dist/AdminPluginsView-BBALhxPk.js +984 -0
- package/dist/{AdminServersCreate-zGHHAEkO.js → AdminServersCreate-g_A290kz.js} +122 -124
- package/dist/{AdminServersEdit-BR6sRGlM.js → AdminServersEdit-D0RERbR5.js} +125 -124
- package/dist/{AdminServersList-DhUQ1zrt.js → AdminServersList-_ek_2u8B.js} +35 -31
- package/dist/{AdminUsersEditView-CqRLzCkV.js → AdminUsersEditView-CbZCH6eM.js} +89 -85
- package/dist/{AdminUsersView-TCHghzxY.js → AdminUsersView-D4WoRB5b.js} +145 -141
- package/dist/CreateModForm-CpbIOQNu.js +123 -0
- package/dist/CreateNodeModal-C96UVcAJ.js +99 -0
- package/dist/{DsIpSelector-EnBHsJLE.js → DsIpSelector-D_hc_JYQ.js} +1 -1
- package/dist/EmptyView-qkQQJ_OR.js +9 -0
- package/dist/FileManager-v-1ASSne.js +5931 -0
- package/dist/GameIcon-DaYNlnur.js +87 -0
- package/dist/{GameModSelector-bZsSGC6T.js → GameModSelector-CiI3H5Zq.js} +21 -20
- package/dist/InputManyList-C52f5V6l.js +110 -0
- package/dist/InputTextList-5KeNATa7.js +63 -0
- package/dist/PluginPendingView-CDR44QCG.js +34 -0
- package/dist/ProfileView-CC3KJ2gK.js +295 -0
- package/dist/RconConsole-DkRK7vz3.js +74 -0
- package/dist/{RconPlayers-CXL0bHlU.js → RconPlayers-CDRCp79f.js} +131 -127
- package/dist/ServerConsole-Bj0Zr1BS.js +99 -0
- package/dist/ServerControlButton-C4zWzA-d.js +185 -0
- package/dist/ServerIdView-BJS6wcMH.js +608 -0
- package/dist/{ServerSelector-D7O1thVu.js → ServerSelector-DPM5SjWO.js} +7 -7
- package/dist/{ServerSettings-Lk4lq5hI.js → ServerSettings-BYRSLaJk.js} +26 -26
- package/dist/{ServerStatus-CCFiPWXV.js → ServerStatus-BK8yKehx.js} +1 -1
- package/dist/{ServerTasks-gNFBkyv1.js → ServerTasks-DUC2DDcY.js} +304 -302
- package/dist/ServersView-BbLoOEEz.js +312 -0
- package/dist/SettingsParameters-C-TFWsJF.js +89 -0
- package/dist/SmartPortSelector-DCsuCDpV.js +174 -0
- package/dist/TokensView-B5D45QbV.js +392 -0
- package/dist/{UpdateNodeForm-BQDjp3CR.js → UpdateNodeForm-DmAoHURu.js} +131 -127
- package/dist/UserServerPrivileges-k-30v4ps.js +319 -0
- package/dist/{_createCompounder-NPjOAZm-.js → _createCompounder-DHQYnhTQ.js} +2 -2
- package/dist/{camelCase-BXg45SFI.js → camelCase-CE1GGhvX.js} +2 -2
- package/dist/{capitalize-BSQeiLff.js → capitalize-DnZmwhT4.js} +5 -5
- package/dist/{clientCertificates-Dm0Bh62v.js → clientCertificates-Dd9OqxGQ.js} +1 -1
- package/dist/frontend.css +6 -14
- package/dist/{gameList-CJAymSBL.js → gameList-BLdEusRA.js} +40 -40
- package/dist/gameap.svg +3 -0
- package/dist/gameap_full.svg +9 -0
- package/dist/index-BDKiNPpP.js +3840 -0
- package/dist/index.js +1 -1
- package/dist/isEmpty-lBntcFaB.js +263 -0
- package/dist/join-CmlzL0H9.js +7 -0
- package/dist/{loader-BGOXrNPF.js → loader-C49Def-j.js} +1 -1
- package/dist/{snakeCase-o1mQEFQr.js → snakeCase--wUVfLw4.js} +1 -1
- package/dist/validators-BVXTUmow.js +65 -0
- package/package.json +1 -1
- package/dist/AdminDaemonTaskListView-DTQbTpkt.js +0 -315
- package/dist/AdminGamesList-CU_RB7gu.js +0 -499
- package/dist/AdminNodeShowView-Col-7fyA.js +0 -166
- package/dist/AdminNodesCreateView-CZsMnSCJ.js +0 -84
- package/dist/AdminNodesView-DvuZ9haB.js +0 -160
- package/dist/CreateModForm-Byq8UvuW.js +0 -122
- package/dist/CreateNodeModal-BNV35RnR.js +0 -93
- package/dist/FileManager-X3FkHNzF.js +0 -31882
- package/dist/InputManyList-BFGIEnls.js +0 -110
- package/dist/InputTextList-D280D5fs.js +0 -63
- package/dist/PluginPendingView-Cp6KgA8z.js +0 -31
- package/dist/RconConsole-BxjHKC6E.js +0 -74
- package/dist/ServerConsole-Cr-BZJIC.js +0 -98
- package/dist/ServerIdView-wsnPfVUi.js +0 -576
- package/dist/SettingsParameters-BVpVg868.js +0 -87
- package/dist/SmartPortSelector-bubAEnvR.js +0 -161
- package/dist/UserServerPrivileges-CizE2EYl.js +0 -318
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/index-Fmomw6wi.js +0 -5750
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { mergeModels as Y, onMounted as Z, useModel as ee, ref as d, computed as se, createElementBlock as p, openBlock as _, Fragment as y, createElementVNode as e, createVNode as r, unref as n, withCtx as u, toDisplayString as a, renderList as E, createTextVNode as C, h as N } from "vue";
|
|
2
|
+
import { f as le, g as te, t as o, _ as g, a as h, e as I, n as T, b as ne } from "./index-BDKiNPpP.js";
|
|
3
|
+
import { storeToRefs as ae } from "pinia";
|
|
4
|
+
import { NTable as L, NModal as V, NSelect as re, NSwitch as oe } from "naive-ui";
|
|
5
|
+
import { _ as z } from "./GameIcon-DaYNlnur.js";
|
|
6
|
+
const ie = { class: "mb-4" }, ue = ["href"], de = { class: "flex flex-wrap gap-1" }, ce = { class: "mt-6 mb-3" }, ve = { class: "flex justify-center mt-2" }, me = { class: "md:w-full" }, fe = { class: "flex justify-center mt-2" }, pe = { class: "grid grid-cols-2 gap-x-20 mb-4" }, _e = { class: "grid grid-cols-4 gap-x-4 mb-6" }, ge = { class: "col-span-3" }, he = { class: "hidden lg:inline" }, Ce = {
|
|
7
|
+
__name: "UserServerPrivileges",
|
|
8
|
+
props: /* @__PURE__ */ Y({
|
|
9
|
+
userId: Number
|
|
10
|
+
}, {
|
|
11
|
+
modelValue: [],
|
|
12
|
+
modelModifiers: {}
|
|
13
|
+
}),
|
|
14
|
+
emits: ["update:modelValue"],
|
|
15
|
+
setup(j) {
|
|
16
|
+
const F = window.gameapLang || "en", b = le(), B = te(), { getServerPermissions: R } = ae(b);
|
|
17
|
+
Z(() => {
|
|
18
|
+
M("");
|
|
19
|
+
});
|
|
20
|
+
const S = ee(j, "modelValue", []), c = d(null), m = d([]), f = d([]), w = d(!1);
|
|
21
|
+
function U(l) {
|
|
22
|
+
for (let t of S.value)
|
|
23
|
+
if (t.id === l)
|
|
24
|
+
return !0;
|
|
25
|
+
}
|
|
26
|
+
function W(l) {
|
|
27
|
+
for (let t of m.value)
|
|
28
|
+
if (t.id === l)
|
|
29
|
+
return t;
|
|
30
|
+
}
|
|
31
|
+
function q(l) {
|
|
32
|
+
m.value = m.value.filter(function(t) {
|
|
33
|
+
return t.id !== l;
|
|
34
|
+
}), f.value = f.value.filter(function(t) {
|
|
35
|
+
return t.value !== l;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function A(l) {
|
|
39
|
+
S.value.splice(l, 1);
|
|
40
|
+
}
|
|
41
|
+
function D() {
|
|
42
|
+
if (!c.value) {
|
|
43
|
+
T(o("servers.select_server"));
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (x.value = !1, U(c.value)) {
|
|
47
|
+
T(o("servers.server_already_added"));
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const l = W(c.value);
|
|
51
|
+
l && (S.value.push(l), q(l.id), c.value = null);
|
|
52
|
+
}
|
|
53
|
+
let $;
|
|
54
|
+
function K(l) {
|
|
55
|
+
clearTimeout($), $ = setTimeout(() => {
|
|
56
|
+
l();
|
|
57
|
+
}, 500);
|
|
58
|
+
}
|
|
59
|
+
function M(l) {
|
|
60
|
+
w.value = !0, K(() => {
|
|
61
|
+
ne.get(`/api/servers/search?q=${encodeURI(l)}`).then(function(t) {
|
|
62
|
+
m.value = [], f.value = [];
|
|
63
|
+
for (let s of t.data)
|
|
64
|
+
U(s.id) || (m.value.push({
|
|
65
|
+
id: s.id,
|
|
66
|
+
name: s.name,
|
|
67
|
+
game: s.game,
|
|
68
|
+
server_ip: s.server_ip,
|
|
69
|
+
server_port: s.server_port
|
|
70
|
+
}), f.value.push({
|
|
71
|
+
name: s.name,
|
|
72
|
+
label: s.name + " (" + s.game.name + ") - " + s.server_ip + ":" + s.server_port,
|
|
73
|
+
address: `${s.server_ip}:${s.server_port}`,
|
|
74
|
+
game: s.game,
|
|
75
|
+
value: s.id
|
|
76
|
+
}));
|
|
77
|
+
w.value = !1;
|
|
78
|
+
}).catch(function(t) {
|
|
79
|
+
w.value = !1, I(t);
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
const O = (l) => {
|
|
84
|
+
if (l.startsWith("plugins.")) {
|
|
85
|
+
const t = l.split("."), s = t[1], v = t.slice(2).join("."), k = s ? B.getPluginTranslations(s) : null;
|
|
86
|
+
return (k?.[F] || k?.en || {})[v] ?? o(v);
|
|
87
|
+
}
|
|
88
|
+
return o(l);
|
|
89
|
+
}, G = (l) => N(
|
|
90
|
+
"div",
|
|
91
|
+
{ class: "flex" },
|
|
92
|
+
[
|
|
93
|
+
N("div", { class: "w-64" }, l.name),
|
|
94
|
+
N("div", { class: "w-56" }, l.game.name),
|
|
95
|
+
N("div", { class: "w-40" }, l.address)
|
|
96
|
+
]
|
|
97
|
+
), x = d(!1), H = () => {
|
|
98
|
+
x.value = !0;
|
|
99
|
+
}, P = d(!1), J = (l) => {
|
|
100
|
+
b.fetchPermissionsForServer(l.id).then(() => {
|
|
101
|
+
i.value = l, P.value = !0;
|
|
102
|
+
}).catch((t) => {
|
|
103
|
+
I(t);
|
|
104
|
+
});
|
|
105
|
+
}, i = d({}), Q = se({
|
|
106
|
+
get: () => i.value.id ? R.value(i.value.id) : [],
|
|
107
|
+
set: (l) => {
|
|
108
|
+
b.setServerPermissions(i.value.id, l);
|
|
109
|
+
}
|
|
110
|
+
}), X = () => {
|
|
111
|
+
b.savePermissionsForServer(i.value.id).then(() => {
|
|
112
|
+
T({
|
|
113
|
+
content: o("users.privileges_saved_success_msg"),
|
|
114
|
+
type: "success"
|
|
115
|
+
}, () => {
|
|
116
|
+
P.value = !1;
|
|
117
|
+
});
|
|
118
|
+
}).catch((l) => {
|
|
119
|
+
I(l);
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
return (l, t) => (_(), p(y, null, [
|
|
123
|
+
e("div", null, [
|
|
124
|
+
e("div", ie, [
|
|
125
|
+
r(n(L), {
|
|
126
|
+
bordered: !1,
|
|
127
|
+
"single-line": !0
|
|
128
|
+
}, {
|
|
129
|
+
default: u(() => [
|
|
130
|
+
e("thead", null, [
|
|
131
|
+
e("tr", null, [
|
|
132
|
+
e("th", null, a(n(o)("servers.name")), 1),
|
|
133
|
+
e("th", null, a(n(o)("servers.game")), 1),
|
|
134
|
+
e("th", null, a(n(o)("servers.ip_port")), 1),
|
|
135
|
+
e("th", null, a(n(o)("main.actions")), 1)
|
|
136
|
+
])
|
|
137
|
+
]),
|
|
138
|
+
e("tbody", null, [
|
|
139
|
+
(_(!0), p(y, null, E(S.value, (s, v) => (_(), p("tr", null, [
|
|
140
|
+
e("td", null, [
|
|
141
|
+
e("a", {
|
|
142
|
+
href: "/admin/servers/" + s.id + "/edit"
|
|
143
|
+
}, a(s.name), 9, ue)
|
|
144
|
+
]),
|
|
145
|
+
e("td", null, [
|
|
146
|
+
r(z, {
|
|
147
|
+
game: s.game.code
|
|
148
|
+
}, null, 8, ["game"]),
|
|
149
|
+
C(" " + a(s.game.name), 1)
|
|
150
|
+
]),
|
|
151
|
+
e("td", null, a(s.server_ip) + ":" + a(s.server_port), 1),
|
|
152
|
+
e("td", de, [
|
|
153
|
+
r(g, {
|
|
154
|
+
color: "blue",
|
|
155
|
+
size: "small",
|
|
156
|
+
onClick: (k) => J(s)
|
|
157
|
+
}, {
|
|
158
|
+
default: u(() => [
|
|
159
|
+
r(n(h), { name: "lock" })
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["onClick"]),
|
|
163
|
+
r(g, {
|
|
164
|
+
color: "red",
|
|
165
|
+
size: "small",
|
|
166
|
+
onClick: (k) => A(v)
|
|
167
|
+
}, {
|
|
168
|
+
default: u(() => [
|
|
169
|
+
r(n(h), { name: "close" })
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
}, 8, ["onClick"])
|
|
173
|
+
])
|
|
174
|
+
]))), 256))
|
|
175
|
+
])
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
})
|
|
179
|
+
]),
|
|
180
|
+
e("div", ce, [
|
|
181
|
+
e("div", ve, [
|
|
182
|
+
r(g, {
|
|
183
|
+
color: "green",
|
|
184
|
+
size: "small",
|
|
185
|
+
onClick: H
|
|
186
|
+
}, {
|
|
187
|
+
default: u(() => [
|
|
188
|
+
r(n(h), { name: "add" }),
|
|
189
|
+
C(" " + a(n(o)("main.add")), 1)
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
})
|
|
193
|
+
])
|
|
194
|
+
])
|
|
195
|
+
]),
|
|
196
|
+
r(n(V), {
|
|
197
|
+
show: x.value,
|
|
198
|
+
"onUpdate:show": t[1] || (t[1] = (s) => x.value = s),
|
|
199
|
+
class: "custom-card",
|
|
200
|
+
preset: "card",
|
|
201
|
+
title: n(o)("servers.add_server"),
|
|
202
|
+
bordered: !1,
|
|
203
|
+
style: { width: "800px" },
|
|
204
|
+
segmented: { content: "soft", footer: "soft" }
|
|
205
|
+
}, {
|
|
206
|
+
default: u(() => [
|
|
207
|
+
e("div", me, [
|
|
208
|
+
r(n(re), {
|
|
209
|
+
value: c.value,
|
|
210
|
+
"onUpdate:value": t[0] || (t[0] = (s) => c.value = s),
|
|
211
|
+
filterable: "",
|
|
212
|
+
placeholder: n(o)("users.servers_privileges_placeholder"),
|
|
213
|
+
options: f.value,
|
|
214
|
+
"render-label": G,
|
|
215
|
+
loading: w.value,
|
|
216
|
+
clearable: "",
|
|
217
|
+
remote: "",
|
|
218
|
+
onSearch: M
|
|
219
|
+
}, {
|
|
220
|
+
action: u(() => [...t[3] || (t[3] = [
|
|
221
|
+
e("div", null, [
|
|
222
|
+
e("div", { class: "m-2" }, [
|
|
223
|
+
e("span", null, "...")
|
|
224
|
+
])
|
|
225
|
+
], -1)
|
|
226
|
+
])]),
|
|
227
|
+
_: 1
|
|
228
|
+
}, 8, ["value", "placeholder", "options", "loading"])
|
|
229
|
+
]),
|
|
230
|
+
e("div", fe, [
|
|
231
|
+
r(g, {
|
|
232
|
+
color: "green",
|
|
233
|
+
onClick: D
|
|
234
|
+
}, {
|
|
235
|
+
default: u(() => [
|
|
236
|
+
r(n(h), { name: "add" }),
|
|
237
|
+
C(" " + a(n(o)("main.add")), 1)
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
})
|
|
241
|
+
])
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
}, 8, ["show", "title"]),
|
|
245
|
+
r(n(V), {
|
|
246
|
+
show: P.value,
|
|
247
|
+
"onUpdate:show": t[2] || (t[2] = (s) => P.value = s),
|
|
248
|
+
class: "custom-card",
|
|
249
|
+
preset: "card",
|
|
250
|
+
title: n(o)("users.server_permission_edit"),
|
|
251
|
+
bordered: !1,
|
|
252
|
+
style: { width: "800px" },
|
|
253
|
+
segmented: { content: "soft", footer: "soft" }
|
|
254
|
+
}, {
|
|
255
|
+
default: u(() => [
|
|
256
|
+
r(n(L), {
|
|
257
|
+
bordered: !1,
|
|
258
|
+
"single-line": !0,
|
|
259
|
+
size: "small",
|
|
260
|
+
class: "mb-8"
|
|
261
|
+
}, {
|
|
262
|
+
default: u(() => [
|
|
263
|
+
e("tbody", null, [
|
|
264
|
+
e("tr", null, [
|
|
265
|
+
e("td", null, [
|
|
266
|
+
e("strong", null, a(n(o)("servers.name")) + ":", 1)
|
|
267
|
+
]),
|
|
268
|
+
e("td", null, a(i.value.name), 1)
|
|
269
|
+
]),
|
|
270
|
+
e("tr", null, [
|
|
271
|
+
e("td", null, [
|
|
272
|
+
e("strong", null, a(n(o)("servers.ip_port")) + ":", 1)
|
|
273
|
+
]),
|
|
274
|
+
e("td", null, a(i.value.server_ip) + ":" + a(i.value.server_port), 1)
|
|
275
|
+
]),
|
|
276
|
+
e("tr", null, [
|
|
277
|
+
e("td", null, [
|
|
278
|
+
e("strong", null, a(n(o)("servers.game")) + ":", 1)
|
|
279
|
+
]),
|
|
280
|
+
e("td", null, [
|
|
281
|
+
r(z, {
|
|
282
|
+
game: i.value.game.code,
|
|
283
|
+
class: "mr-2"
|
|
284
|
+
}, null, 8, ["game"]),
|
|
285
|
+
C(" " + a(i.value.game.name), 1)
|
|
286
|
+
])
|
|
287
|
+
])
|
|
288
|
+
])
|
|
289
|
+
]),
|
|
290
|
+
_: 1
|
|
291
|
+
}),
|
|
292
|
+
e("div", pe, [
|
|
293
|
+
(_(!0), p(y, null, E(Q.value, (s) => (_(), p("div", _e, [
|
|
294
|
+
e("div", ge, a(O(s.name)), 1),
|
|
295
|
+
r(n(oe), {
|
|
296
|
+
value: s.value,
|
|
297
|
+
"onUpdate:value": (v) => s.value = v
|
|
298
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
299
|
+
]))), 256))
|
|
300
|
+
]),
|
|
301
|
+
r(g, {
|
|
302
|
+
color: "green",
|
|
303
|
+
onClick: X
|
|
304
|
+
}, {
|
|
305
|
+
default: u(() => [
|
|
306
|
+
r(n(h), { name: "save" }),
|
|
307
|
+
e("span", he, " " + a(n(o)("main.save")), 1)
|
|
308
|
+
]),
|
|
309
|
+
_: 1
|
|
310
|
+
})
|
|
311
|
+
]),
|
|
312
|
+
_: 1
|
|
313
|
+
}, 8, ["show", "title"])
|
|
314
|
+
], 64));
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
export {
|
|
318
|
+
Ce as default
|
|
319
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as s } from "./index-BDKiNPpP.js";
|
|
2
2
|
function E(u, e, x, t0) {
|
|
3
3
|
for (var f = -1, v = u == null ? 0 : u.length; ++f < v; )
|
|
4
4
|
x = e(x, u[f], f, u);
|
|
@@ -214,7 +214,7 @@ var j = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
|
214
214
|
function T(u) {
|
|
215
215
|
return j.test(u);
|
|
216
216
|
}
|
|
217
|
-
var c = "\\ud800-\\udfff", H = "\\u0300-\\u036f", y = "\\ufe20-\\ufe2f", G = "\\u20d0-\\u20ff", J = H + y + G, i = "\\u2700-\\u27bf", t = "a-z\\xdf-\\xf6\\xf8-\\xff",
|
|
217
|
+
var c = "\\ud800-\\udfff", H = "\\u0300-\\u036f", y = "\\ufe20-\\ufe2f", G = "\\u20d0-\\u20ff", J = H + y + G, i = "\\u2700-\\u27bf", t = "a-z\\xdf-\\xf6\\xf8-\\xff", P = "\\xac\\xb1\\xd7\\xf7", V = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Y = "\\u2000-\\u206f", B = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", b = "A-Z\\xc0-\\xd6\\xd8-\\xde", _ = "\\ufe0e\\ufe0f", g = P + V + Y + B, R = "['’]", a = "[" + g + "]", q = "[" + J + "]", p = "\\d+", F = "[" + i + "]", A = "[" + t + "]", l = "[^" + c + g + p + i + t + b + "]", K = "\\ud83c[\\udffb-\\udfff]", Q = "(?:" + q + "|" + K + ")", X = "[^" + c + "]", C = "(?:\\ud83c[\\udde6-\\uddff]){2}", m = "[\\ud800-\\udbff][\\udc00-\\udfff]", r = "[" + b + "]", u0 = "\\u200d", d = "(?:" + A + "|" + l + ")", e0 = "(?:" + r + "|" + l + ")", o = "(?:" + R + "(?:d|ll|m|re|s|t|ve))?", n = "(?:" + R + "(?:D|LL|M|RE|S|T|VE))?", O = Q + "?", U = "[" + _ + "]?", r0 = "(?:" + u0 + "(?:" + [X, C, m].join("|") + ")" + U + O + ")*", x0 = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", f0 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", a0 = U + O + r0, d0 = "(?:" + [F, C, m].join("|") + ")" + a0, o0 = RegExp([
|
|
218
218
|
r + "?" + A + "+" + o + "(?=" + [a, r, "$"].join("|") + ")",
|
|
219
219
|
e0 + "+" + n + "(?=" + [a, r + d, "$"].join("|") + ")",
|
|
220
220
|
r + "?" + d + "+" + o,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as t } from "./capitalize-
|
|
2
|
-
import { c } from "./_createCompounder-
|
|
1
|
+
import { c as t } from "./capitalize-DnZmwhT4.js";
|
|
2
|
+
import { c } from "./_createCompounder-DHQYnhTQ.js";
|
|
3
3
|
var i = c(function(e, a, r) {
|
|
4
4
|
return a = a.toLowerCase(), e + (r ? t(a) : a);
|
|
5
5
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as i } from "./index-BDKiNPpP.js";
|
|
2
2
|
function R(r, e, u) {
|
|
3
3
|
var o = -1, f = r.length;
|
|
4
4
|
e < 0 && (e = -e > f ? 0 : f + e), u = u > f ? f : u, u < 0 && (u += f), f = e > u ? 0 : u - e >>> 0, e >>>= 0;
|
|
@@ -31,10 +31,10 @@ function q(r) {
|
|
|
31
31
|
return o[r]() + f;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
var
|
|
35
|
-
function
|
|
36
|
-
return
|
|
34
|
+
var L = q("toUpperCase");
|
|
35
|
+
function P(r) {
|
|
36
|
+
return L(i(r).toLowerCase());
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
P as c
|
|
40
40
|
};
|