@webitel/ui-sdk 26.6.43 → 26.6.45

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.
@@ -1,785 +0,0 @@
1
- import { n as e, t } from "./dist-05Bf47Wg.js";
2
- import { t as n } from "./wt-icon-pxO7IjwV.js";
3
- import { c as r, d as i, u as a } from "./enums-pbYAJNeb.js";
4
- import { computed as o, createBlock as s, createCommentVNode as c, createElementVNode as l, createTextVNode as u, defineComponent as d, effectScope as f, inject as p, mergeProps as ee, normalizeClass as m, openBlock as h, reactive as te, ref as g, renderSlot as _, resolveComponent as v, toDisplayString as ne, unref as y, useAttrs as re, watch as b, withCtx as x, withModifiers as ie } from "vue";
5
- //#region src/components/wt-badge-new/wt-badge.vue?vue&type=script&setup=true&lang.ts
6
- t();
7
- //#endregion
8
- //#region src/components/wt-badge-new/wt-badge.vue
9
- var S = /* @__PURE__ */ d({
10
- __name: "wt-badge",
11
- props: {
12
- value: { default: "" },
13
- severity: { default: null },
14
- size: { default: r.MD }
15
- },
16
- setup(e) {
17
- let t = e;
18
- return (e, n) => {
19
- let r = v("p-badge");
20
- return h(), s(r, {
21
- value: t.value,
22
- class: m([[t.size && `p-badge--${t.size}`, t.severity && `p-badge--${t.severity}`], "wt-badge typo-caption"])
23
- }, {
24
- default: x(() => [_(e.$slots, "default")], void 0, !0),
25
- _: 3
26
- }, 8, ["value", "class"]);
27
- };
28
- }
29
- });
30
- //#endregion
31
- //#region node_modules/vuex/node_modules/@vue/devtools-api/lib/esm/env.js
32
- function C() {
33
- return w().__VUE_DEVTOOLS_GLOBAL_HOOK__;
34
- }
35
- function w() {
36
- return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
37
- }
38
- var T = typeof Proxy == "function", E = "devtools-plugin:setup", D = "plugin:settings:set", O, k;
39
- function ae() {
40
- return O === void 0 && (typeof window < "u" && window.performance ? (O = !0, k = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (O = !0, k = globalThis.perf_hooks.performance) : O = !1), O;
41
- }
42
- function oe() {
43
- return ae() ? k.now() : Date.now();
44
- }
45
- //#endregion
46
- //#region node_modules/vuex/node_modules/@vue/devtools-api/lib/esm/proxy.js
47
- var se = class {
48
- constructor(e, t) {
49
- this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
50
- let n = {};
51
- if (e.settings) for (let t in e.settings) n[t] = e.settings[t].defaultValue;
52
- let r = `__vue-devtools-plugin-settings__${e.id}`, i = Object.assign({}, n);
53
- try {
54
- let e = localStorage.getItem(r), t = JSON.parse(e);
55
- Object.assign(i, t);
56
- } catch {}
57
- this.fallbacks = {
58
- getSettings() {
59
- return i;
60
- },
61
- setSettings(e) {
62
- try {
63
- localStorage.setItem(r, JSON.stringify(e));
64
- } catch {}
65
- i = e;
66
- },
67
- now() {
68
- return oe();
69
- }
70
- }, t && t.on(D, (e, t) => {
71
- e === this.plugin.id && this.fallbacks.setSettings(t);
72
- }), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
73
- this.onQueue.push({
74
- method: t,
75
- args: e
76
- });
77
- } }), this.proxiedTarget = new Proxy({}, { get: (e, t) => this.target ? this.target[t] : t === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(t) ? (...e) => (this.targetQueue.push({
78
- method: t,
79
- args: e,
80
- resolve: () => {}
81
- }), this.fallbacks[t](...e)) : (...e) => new Promise((n) => {
82
- this.targetQueue.push({
83
- method: t,
84
- args: e,
85
- resolve: n
86
- });
87
- }) });
88
- }
89
- async setRealTarget(e) {
90
- this.target = e;
91
- for (let e of this.onQueue) this.target.on[e.method](...e.args);
92
- for (let e of this.targetQueue) e.resolve(await this.target[e.method](...e.args));
93
- }
94
- };
95
- //#endregion
96
- //#region node_modules/vuex/node_modules/@vue/devtools-api/lib/esm/index.js
97
- function ce(e, t) {
98
- let n = e, r = w(), i = C(), a = T && n.enableEarlyProxy;
99
- if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(E, e, t);
100
- else {
101
- let e = a ? new se(n, i) : null;
102
- (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
103
- pluginDescriptor: n,
104
- setupFn: t,
105
- proxy: e
106
- }), e && t(e.proxiedTarget);
107
- }
108
- }
109
- //#endregion
110
- //#region node_modules/vuex/dist/vuex.esm-bundler.js
111
- var le = "store";
112
- function ue(e) {
113
- return e === void 0 && (e = null), p(e === null ? le : e);
114
- }
115
- function A(e, t) {
116
- Object.keys(e).forEach(function(n) {
117
- return t(e[n], n);
118
- });
119
- }
120
- function de(e) {
121
- return typeof e == "object" && !!e;
122
- }
123
- function fe(e) {
124
- return e && typeof e.then == "function";
125
- }
126
- function j(e, t) {
127
- if (!e) throw Error("[vuex] " + t);
128
- }
129
- function pe(e, t) {
130
- return function() {
131
- return e(t);
132
- };
133
- }
134
- function M(e, t, n) {
135
- return t.indexOf(e) < 0 && (n && n.prepend ? t.unshift(e) : t.push(e)), function() {
136
- var n = t.indexOf(e);
137
- n > -1 && t.splice(n, 1);
138
- };
139
- }
140
- function N(e, t) {
141
- e._actions = Object.create(null), e._mutations = Object.create(null), e._wrappedGetters = Object.create(null), e._modulesNamespaceMap = Object.create(null);
142
- var n = e.state;
143
- F(e, n, [], e._modules.root, !0), P(e, n, t);
144
- }
145
- function P(e, t, n) {
146
- var r = e._state, i = e._scope;
147
- e.getters = {}, e._makeLocalGettersCache = Object.create(null);
148
- var a = e._wrappedGetters, s = {}, c = {}, l = f(!0);
149
- l.run(function() {
150
- A(a, function(t, n) {
151
- s[n] = pe(t, e), c[n] = o(function() {
152
- return s[n]();
153
- }), Object.defineProperty(e.getters, n, {
154
- get: function() {
155
- return c[n].value;
156
- },
157
- enumerable: !0
158
- });
159
- });
160
- }), e._state = te({ data: t }), e._scope = l, e.strict && ve(e), r && n && e._withCommit(function() {
161
- r.data = null;
162
- }), i && i.stop();
163
- }
164
- function F(t, n, r, i, a) {
165
- var o = !r.length, s = t._modules.getNamespace(r);
166
- if (i.namespaced && (t._modulesNamespaceMap[s] && e.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + s + " for the namespaced module " + r.join("/")), t._modulesNamespaceMap[s] = i), !o && !a) {
167
- var c = L(n, r.slice(0, -1)), l = r[r.length - 1];
168
- t._withCommit(function() {
169
- e.env.NODE_ENV !== "production" && l in c && console.warn("[vuex] state field \"" + l + "\" was overridden by a module with the same name at \"" + r.join(".") + "\""), c[l] = i.state;
170
- });
171
- }
172
- var u = i.context = me(t, s, r);
173
- i.forEachMutation(function(e, n) {
174
- he(t, s + n, e, u);
175
- }), i.forEachAction(function(e, n) {
176
- ge(t, e.root ? n : s + n, e.handler || e, u);
177
- }), i.forEachGetter(function(e, n) {
178
- _e(t, s + n, e, u);
179
- }), i.forEachChild(function(e, i) {
180
- F(t, n, r.concat(i), e, a);
181
- });
182
- }
183
- function me(t, n, r) {
184
- var i = n === "", a = {
185
- dispatch: i ? t.dispatch : function(r, i, a) {
186
- var o = R(r, i, a), s = o.payload, c = o.options, l = o.type;
187
- if ((!c || !c.root) && (l = n + l, e.env.NODE_ENV !== "production" && !t._actions[l])) {
188
- console.error("[vuex] unknown local action type: " + o.type + ", global type: " + l);
189
- return;
190
- }
191
- return t.dispatch(l, s);
192
- },
193
- commit: i ? t.commit : function(r, i, a) {
194
- var o = R(r, i, a), s = o.payload, c = o.options, l = o.type;
195
- if ((!c || !c.root) && (l = n + l, e.env.NODE_ENV !== "production" && !t._mutations[l])) {
196
- console.error("[vuex] unknown local mutation type: " + o.type + ", global type: " + l);
197
- return;
198
- }
199
- t.commit(l, s, c);
200
- }
201
- };
202
- return Object.defineProperties(a, {
203
- getters: { get: i ? function() {
204
- return t.getters;
205
- } : function() {
206
- return I(t, n);
207
- } },
208
- state: { get: function() {
209
- return L(t.state, r);
210
- } }
211
- }), a;
212
- }
213
- function I(e, t) {
214
- if (!e._makeLocalGettersCache[t]) {
215
- var n = {}, r = t.length;
216
- Object.keys(e.getters).forEach(function(i) {
217
- if (i.slice(0, r) === t) {
218
- var a = i.slice(r);
219
- Object.defineProperty(n, a, {
220
- get: function() {
221
- return e.getters[i];
222
- },
223
- enumerable: !0
224
- });
225
- }
226
- }), e._makeLocalGettersCache[t] = n;
227
- }
228
- return e._makeLocalGettersCache[t];
229
- }
230
- function he(e, t, n, r) {
231
- (e._mutations[t] || (e._mutations[t] = [])).push(function(t) {
232
- n.call(e, r.state, t);
233
- });
234
- }
235
- function ge(e, t, n, r) {
236
- (e._actions[t] || (e._actions[t] = [])).push(function(t) {
237
- var i = n.call(e, {
238
- dispatch: r.dispatch,
239
- commit: r.commit,
240
- getters: r.getters,
241
- state: r.state,
242
- rootGetters: e.getters,
243
- rootState: e.state
244
- }, t);
245
- return fe(i) || (i = Promise.resolve(i)), e._devtoolHook ? i.catch(function(t) {
246
- throw e._devtoolHook.emit("vuex:error", t), t;
247
- }) : i;
248
- });
249
- }
250
- function _e(t, n, r, i) {
251
- if (t._wrappedGetters[n]) {
252
- e.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + n);
253
- return;
254
- }
255
- t._wrappedGetters[n] = function(e) {
256
- return r(i.state, i.getters, e.state, e.getters);
257
- };
258
- }
259
- function ve(t) {
260
- b(function() {
261
- return t._state.data;
262
- }, function() {
263
- e.env.NODE_ENV !== "production" && j(t._committing, "do not mutate vuex store state outside mutation handlers.");
264
- }, {
265
- deep: !0,
266
- flush: "sync"
267
- });
268
- }
269
- function L(e, t) {
270
- return t.reduce(function(e, t) {
271
- return e[t];
272
- }, e);
273
- }
274
- function R(t, n, r) {
275
- return de(t) && t.type && (r = n, n = t, t = t.type), e.env.NODE_ENV !== "production" && j(typeof t == "string", "expects string as the type, but found " + typeof t + "."), {
276
- type: t,
277
- payload: n,
278
- options: r
279
- };
280
- }
281
- var ye = "vuex bindings", z = "vuex:mutations", B = "vuex:actions", V = "vuex", be = 0;
282
- function xe(e, t) {
283
- ce({
284
- id: "org.vuejs.vuex",
285
- app: e,
286
- label: "Vuex",
287
- homepage: "https://next.vuex.vuejs.org/",
288
- logo: "https://vuejs.org/images/icons/favicon-96x96.png",
289
- packageName: "vuex",
290
- componentStateTypes: [ye]
291
- }, function(n) {
292
- n.addTimelineLayer({
293
- id: z,
294
- label: "Vuex Mutations",
295
- color: H
296
- }), n.addTimelineLayer({
297
- id: B,
298
- label: "Vuex Actions",
299
- color: H
300
- }), n.addInspector({
301
- id: V,
302
- label: "Vuex",
303
- icon: "storage",
304
- treeFilterPlaceholder: "Filter stores..."
305
- }), n.on.getInspectorTree(function(n) {
306
- if (n.app === e && n.inspectorId === V) if (n.filter) {
307
- var r = [];
308
- K(r, t._modules.root, n.filter, ""), n.rootNodes = r;
309
- } else n.rootNodes = [G(t._modules.root, "")];
310
- }), n.on.getInspectorState(function(n) {
311
- if (n.app === e && n.inspectorId === V) {
312
- var r = n.nodeId;
313
- I(t, r), n.state = Se(we(t._modules, r), r === "root" ? t.getters : t._makeLocalGettersCache, r);
314
- }
315
- }), n.on.editInspectorState(function(n) {
316
- if (n.app === e && n.inspectorId === V) {
317
- var r = n.nodeId, i = n.path;
318
- r !== "root" && (i = r.split("/").filter(Boolean).concat(i)), t._withCommit(function() {
319
- n.set(t._state.data, i, n.state.value);
320
- });
321
- }
322
- }), t.subscribe(function(e, t) {
323
- var r = {};
324
- e.payload && (r.payload = e.payload), r.state = t, n.notifyComponentUpdate(), n.sendInspectorTree(V), n.sendInspectorState(V), n.addTimelineEvent({
325
- layerId: z,
326
- event: {
327
- time: Date.now(),
328
- title: e.type,
329
- data: r
330
- }
331
- });
332
- }), t.subscribeAction({
333
- before: function(e, t) {
334
- var r = {};
335
- e.payload && (r.payload = e.payload), e._id = be++, e._time = Date.now(), r.state = t, n.addTimelineEvent({
336
- layerId: B,
337
- event: {
338
- time: e._time,
339
- title: e.type,
340
- groupId: e._id,
341
- subtitle: "start",
342
- data: r
343
- }
344
- });
345
- },
346
- after: function(e, t) {
347
- var r = {}, i = Date.now() - e._time;
348
- r.duration = { _custom: {
349
- type: "duration",
350
- display: i + "ms",
351
- tooltip: "Action duration",
352
- value: i
353
- } }, e.payload && (r.payload = e.payload), r.state = t, n.addTimelineEvent({
354
- layerId: B,
355
- event: {
356
- time: Date.now(),
357
- title: e.type,
358
- groupId: e._id,
359
- subtitle: "end",
360
- data: r
361
- }
362
- });
363
- }
364
- });
365
- });
366
- }
367
- var H = 8702998, U = {
368
- label: "namespaced",
369
- textColor: 16777215,
370
- backgroundColor: 6710886
371
- };
372
- function W(e) {
373
- return e && e !== "root" ? e.split("/").slice(-2, -1)[0] : "Root";
374
- }
375
- function G(e, t) {
376
- return {
377
- id: t || "root",
378
- label: W(t),
379
- tags: e.namespaced ? [U] : [],
380
- children: Object.keys(e._children).map(function(n) {
381
- return G(e._children[n], t + n + "/");
382
- })
383
- };
384
- }
385
- function K(e, t, n, r) {
386
- r.includes(n) && e.push({
387
- id: r || "root",
388
- label: r.endsWith("/") ? r.slice(0, r.length - 1) : r || "Root",
389
- tags: t.namespaced ? [U] : []
390
- }), Object.keys(t._children).forEach(function(i) {
391
- K(e, t._children[i], n, r + i + "/");
392
- });
393
- }
394
- function Se(e, t, n) {
395
- t = n === "root" ? t : t[n];
396
- var r = Object.keys(t), i = { state: Object.keys(e.state).map(function(t) {
397
- return {
398
- key: t,
399
- editable: !0,
400
- value: e.state[t]
401
- };
402
- }) };
403
- if (r.length) {
404
- var a = Ce(t);
405
- i.getters = Object.keys(a).map(function(e) {
406
- return {
407
- key: e.endsWith("/") ? W(e) : e,
408
- editable: !1,
409
- value: q(function() {
410
- return a[e];
411
- })
412
- };
413
- });
414
- }
415
- return i;
416
- }
417
- function Ce(e) {
418
- var t = {};
419
- return Object.keys(e).forEach(function(n) {
420
- var r = n.split("/");
421
- if (r.length > 1) {
422
- var i = t, a = r.pop();
423
- r.forEach(function(e) {
424
- i[e] || (i[e] = { _custom: {
425
- value: {},
426
- display: e,
427
- tooltip: "Module",
428
- abstract: !0
429
- } }), i = i[e]._custom.value;
430
- }), i[a] = q(function() {
431
- return e[n];
432
- });
433
- } else t[n] = q(function() {
434
- return e[n];
435
- });
436
- }), t;
437
- }
438
- function we(e, t) {
439
- var n = t.split("/").filter(function(e) {
440
- return e;
441
- });
442
- return n.reduce(function(e, r, i) {
443
- var a = e[r];
444
- if (!a) throw Error("Missing module \"" + r + "\" for path \"" + t + "\".");
445
- return i === n.length - 1 ? a : a._children;
446
- }, t === "root" ? e : e.root._children);
447
- }
448
- function q(e) {
449
- try {
450
- return e();
451
- } catch (e) {
452
- return e;
453
- }
454
- }
455
- var J = function(e, t) {
456
- this.runtime = t, this._children = Object.create(null), this._rawModule = e;
457
- var n = e.state;
458
- this.state = (typeof n == "function" ? n() : n) || {};
459
- }, Y = { namespaced: { configurable: !0 } };
460
- Y.namespaced.get = function() {
461
- return !!this._rawModule.namespaced;
462
- }, J.prototype.addChild = function(e, t) {
463
- this._children[e] = t;
464
- }, J.prototype.removeChild = function(e) {
465
- delete this._children[e];
466
- }, J.prototype.getChild = function(e) {
467
- return this._children[e];
468
- }, J.prototype.hasChild = function(e) {
469
- return e in this._children;
470
- }, J.prototype.update = function(e) {
471
- this._rawModule.namespaced = e.namespaced, e.actions && (this._rawModule.actions = e.actions), e.mutations && (this._rawModule.mutations = e.mutations), e.getters && (this._rawModule.getters = e.getters);
472
- }, J.prototype.forEachChild = function(e) {
473
- A(this._children, e);
474
- }, J.prototype.forEachGetter = function(e) {
475
- this._rawModule.getters && A(this._rawModule.getters, e);
476
- }, J.prototype.forEachAction = function(e) {
477
- this._rawModule.actions && A(this._rawModule.actions, e);
478
- }, J.prototype.forEachMutation = function(e) {
479
- this._rawModule.mutations && A(this._rawModule.mutations, e);
480
- }, Object.defineProperties(J.prototype, Y);
481
- var X = function(e) {
482
- this.register([], e, !1);
483
- };
484
- X.prototype.get = function(e) {
485
- return e.reduce(function(e, t) {
486
- return e.getChild(t);
487
- }, this.root);
488
- }, X.prototype.getNamespace = function(e) {
489
- var t = this.root;
490
- return e.reduce(function(e, n) {
491
- return t = t.getChild(n), e + (t.namespaced ? n + "/" : "");
492
- }, "");
493
- }, X.prototype.update = function(e) {
494
- Te([], this.root, e);
495
- }, X.prototype.register = function(t, n, r) {
496
- var i = this;
497
- r === void 0 && (r = !0), e.env.NODE_ENV !== "production" && Z(t, n);
498
- var a = new J(n, r);
499
- t.length === 0 ? this.root = a : this.get(t.slice(0, -1)).addChild(t[t.length - 1], a), n.modules && A(n.modules, function(e, n) {
500
- i.register(t.concat(n), e, r);
501
- });
502
- }, X.prototype.unregister = function(t) {
503
- var n = this.get(t.slice(0, -1)), r = t[t.length - 1], i = n.getChild(r);
504
- if (!i) {
505
- e.env.NODE_ENV !== "production" && console.warn("[vuex] trying to unregister module '" + r + "', which is not registered");
506
- return;
507
- }
508
- i.runtime && n.removeChild(r);
509
- }, X.prototype.isRegistered = function(e) {
510
- var t = this.get(e.slice(0, -1)), n = e[e.length - 1];
511
- return t ? t.hasChild(n) : !1;
512
- };
513
- function Te(t, n, r) {
514
- if (e.env.NODE_ENV !== "production" && Z(t, r), n.update(r), r.modules) for (var i in r.modules) {
515
- if (!n.getChild(i)) {
516
- e.env.NODE_ENV !== "production" && console.warn("[vuex] trying to add a new module '" + i + "' on hot reloading, manual reload is needed");
517
- return;
518
- }
519
- Te(t.concat(i), n.getChild(i), r.modules[i]);
520
- }
521
- }
522
- var Ee = {
523
- assert: function(e) {
524
- return typeof e == "function";
525
- },
526
- expected: "function"
527
- }, De = {
528
- getters: Ee,
529
- mutations: Ee,
530
- actions: {
531
- assert: function(e) {
532
- return typeof e == "function" || typeof e == "object" && typeof e.handler == "function";
533
- },
534
- expected: "function or object with \"handler\" function"
535
- }
536
- };
537
- function Z(e, t) {
538
- Object.keys(De).forEach(function(n) {
539
- if (t[n]) {
540
- var r = De[n];
541
- A(t[n], function(t, i) {
542
- j(r.assert(t), Oe(e, n, i, t, r.expected));
543
- });
544
- }
545
- });
546
- }
547
- function Oe(e, t, n, r, i) {
548
- var a = t + " should be " + i + " but \"" + t + "." + n + "\"";
549
- return e.length > 0 && (a += " in module \"" + e.join(".") + "\""), a += " is " + JSON.stringify(r) + ".", a;
550
- }
551
- var Q = function t(n) {
552
- var r = this;
553
- n === void 0 && (n = {}), e.env.NODE_ENV !== "production" && (j(typeof Promise < "u", "vuex requires a Promise polyfill in this browser."), j(this instanceof t, "store must be called with the new operator."));
554
- var i = n.plugins;
555
- i === void 0 && (i = []);
556
- var a = n.strict;
557
- a === void 0 && (a = !1);
558
- var o = n.devtools;
559
- this._committing = !1, this._actions = Object.create(null), this._actionSubscribers = [], this._mutations = Object.create(null), this._wrappedGetters = Object.create(null), this._modules = new X(n), this._modulesNamespaceMap = Object.create(null), this._subscribers = [], this._makeLocalGettersCache = Object.create(null), this._scope = null, this._devtools = o;
560
- var s = this, c = this, l = c.dispatch, u = c.commit;
561
- this.dispatch = function(e, t) {
562
- return l.call(s, e, t);
563
- }, this.commit = function(e, t, n) {
564
- return u.call(s, e, t, n);
565
- }, this.strict = a;
566
- var d = this._modules.root.state;
567
- F(this, d, [], this._modules.root), P(this, d), i.forEach(function(e) {
568
- return e(r);
569
- });
570
- }, $ = { state: { configurable: !0 } };
571
- Q.prototype.install = function(t, n) {
572
- t.provide(n || "store", this), t.config.globalProperties.$store = this, (this._devtools === void 0 ? e.env.NODE_ENV !== "production" : this._devtools) && xe(t, this);
573
- }, $.state.get = function() {
574
- return this._state.data;
575
- }, $.state.set = function(t) {
576
- e.env.NODE_ENV !== "production" && j(!1, "use store.replaceState() to explicit replace store state.");
577
- }, Q.prototype.commit = function(t, n, r) {
578
- var i = this, a = R(t, n, r), o = a.type, s = a.payload, c = a.options, l = {
579
- type: o,
580
- payload: s
581
- }, u = this._mutations[o];
582
- if (!u) {
583
- e.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + o);
584
- return;
585
- }
586
- this._withCommit(function() {
587
- u.forEach(function(e) {
588
- e(s);
589
- });
590
- }), this._subscribers.slice().forEach(function(e) {
591
- return e(l, i.state);
592
- }), e.env.NODE_ENV !== "production" && c && c.silent && console.warn("[vuex] mutation type: " + o + ". Silent option has been removed. Use the filter functionality in the vue-devtools");
593
- }, Q.prototype.dispatch = function(t, n) {
594
- var r = this, i = R(t, n), a = i.type, o = i.payload, s = {
595
- type: a,
596
- payload: o
597
- }, c = this._actions[a];
598
- if (!c) {
599
- e.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " + a);
600
- return;
601
- }
602
- try {
603
- this._actionSubscribers.slice().filter(function(e) {
604
- return e.before;
605
- }).forEach(function(e) {
606
- return e.before(s, r.state);
607
- });
608
- } catch (t) {
609
- e.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(t));
610
- }
611
- var l = c.length > 1 ? Promise.all(c.map(function(e) {
612
- return e(o);
613
- })) : c[0](o);
614
- return new Promise(function(t, n) {
615
- l.then(function(n) {
616
- try {
617
- r._actionSubscribers.filter(function(e) {
618
- return e.after;
619
- }).forEach(function(e) {
620
- return e.after(s, r.state);
621
- });
622
- } catch (t) {
623
- e.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(t));
624
- }
625
- t(n);
626
- }, function(t) {
627
- try {
628
- r._actionSubscribers.filter(function(e) {
629
- return e.error;
630
- }).forEach(function(e) {
631
- return e.error(s, r.state, t);
632
- });
633
- } catch (t) {
634
- e.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(t));
635
- }
636
- n(t);
637
- });
638
- });
639
- }, Q.prototype.subscribe = function(e, t) {
640
- return M(e, this._subscribers, t);
641
- }, Q.prototype.subscribeAction = function(e, t) {
642
- return M(typeof e == "function" ? { before: e } : e, this._actionSubscribers, t);
643
- }, Q.prototype.watch = function(t, n, r) {
644
- var i = this;
645
- return e.env.NODE_ENV !== "production" && j(typeof t == "function", "store.watch only accepts a function."), b(function() {
646
- return t(i.state, i.getters);
647
- }, n, Object.assign({}, r));
648
- }, Q.prototype.replaceState = function(e) {
649
- var t = this;
650
- this._withCommit(function() {
651
- t._state.data = e;
652
- });
653
- }, Q.prototype.registerModule = function(t, n, r) {
654
- r === void 0 && (r = {}), typeof t == "string" && (t = [t]), e.env.NODE_ENV !== "production" && (j(Array.isArray(t), "module path must be a string or an Array."), j(t.length > 0, "cannot register the root module by using registerModule.")), this._modules.register(t, n), F(this, this.state, t, this._modules.get(t), r.preserveState), P(this, this.state);
655
- }, Q.prototype.unregisterModule = function(t) {
656
- var n = this;
657
- typeof t == "string" && (t = [t]), e.env.NODE_ENV !== "production" && j(Array.isArray(t), "module path must be a string or an Array."), this._modules.unregister(t), this._withCommit(function() {
658
- var e = L(n.state, t.slice(0, -1));
659
- delete e[t[t.length - 1]];
660
- }), N(this);
661
- }, Q.prototype.hasModule = function(t) {
662
- return typeof t == "string" && (t = [t]), e.env.NODE_ENV !== "production" && j(Array.isArray(t), "module path must be a string or an Array."), this._modules.isRegistered(t);
663
- }, Q.prototype.hotUpdate = function(e) {
664
- this._modules.update(e), N(this, !0);
665
- }, Q.prototype._withCommit = function(e) {
666
- var t = this._committing;
667
- this._committing = !0, e(), this._committing = t;
668
- }, Object.defineProperties(Q.prototype, $);
669
- //#endregion
670
- //#region src/components/wt-button/wt-button.vue?vue&type=script&setup=true&lang.ts
671
- var ke = { class: "wt-button__contents" }, Ae = /* @__PURE__ */ d({
672
- __name: "wt-button",
673
- props: {
674
- color: { default: i.PRIMARY },
675
- disabled: {
676
- type: Boolean,
677
- default: !1
678
- },
679
- loading: {
680
- type: Boolean,
681
- default: !1
682
- },
683
- size: { default: r.MD },
684
- wide: {
685
- type: Boolean,
686
- default: !1
687
- },
688
- widthByContent: {
689
- type: Boolean,
690
- default: !1
691
- },
692
- icon: { default: "" },
693
- iconPrefix: { default: "" },
694
- badge: {},
695
- badgeSeverity: {},
696
- badgeAbsolutePosition: { type: Boolean },
697
- variant: { default: a.ACTIVE }
698
- },
699
- emits: ["click"],
700
- setup(e, { emit: t }) {
701
- let i = {
702
- [r.XS]: "extra-small",
703
- [r.SM]: "small",
704
- [r.MD]: "medium"
705
- }, a = {
706
- [r.XS]: "sm",
707
- [r.SM]: "sm",
708
- [r.MD]: "md"
709
- }, d = e, f = t, te = re(), C = g(!1), w = o(() => ({ "wt-badge--absolute": d.badgeAbsolutePosition })), T = null;
710
- try {
711
- T = ue();
712
- } catch {
713
- T = null;
714
- }
715
- let E = p("darkMode"), D = o(() => E?.value ? E.value : T?.getters ? T.getters["appearance/DARK_MODE"] ?? !1 : !1), O = o(() => D.value ? "on-dark" : "on-light");
716
- return b(() => d.loading, (e) => {
717
- e ? C.value = !0 : setTimeout(() => {
718
- C.value = e;
719
- }, 1e3);
720
- }, { immediate: !0 }), (t, o) => {
721
- let p = v("wt-loader"), g = v("p-button");
722
- return h(), s(g, ee(y(te), {
723
- class: [{
724
- "p-button--width-by-content": e.widthByContent || e.icon,
725
- "p-button--wide": e.wide,
726
- "p-button--with-badge": d.badge,
727
- "p-button--loading": C.value,
728
- "p-button--icon": e.icon,
729
- [`p-button--size-${e.size}`]: !0,
730
- [`p-button--icon-${e.variant} p-button--icon-${e.size}`]: e.icon
731
- }, "wt-button typo-button typo-button"],
732
- disabled: e.disabled,
733
- loading: C.value,
734
- severity: e.color,
735
- size: i[e.size],
736
- variant: e.variant
737
- }, { onClick: o[0] ||= ie((e) => f("click", e), ["prevent"]) }), {
738
- default: x(() => [C.value ? (h(), s(p, {
739
- key: 0,
740
- color: O.value,
741
- size: "sm"
742
- }, null, 8, ["color"])) : c("", !0), l("div", ke, [
743
- e.icon ? c("", !0) : _(t.$slots, "default", { key: 0 }, () => [o[1] ||= u(" no content provided", -1)]),
744
- d.badge ? (h(), s(S, {
745
- key: 1,
746
- value: d.badge,
747
- severity: d.badgeSeverity,
748
- class: m(w.value),
749
- size: y(r).MD
750
- }, {
751
- default: x(() => [_(t.$slots, "badge", {}, () => [u(ne(d.badge), 1)])]),
752
- _: 3
753
- }, 8, [
754
- "value",
755
- "severity",
756
- "class",
757
- "size"
758
- ])) : c("", !0),
759
- e.icon ? (h(), s(n, {
760
- key: 2,
761
- class: m({ "wt-button__icon--hidden": C.value }),
762
- icon: e.icon,
763
- "icon-prefix": e.iconPrefix,
764
- size: a[e.size]
765
- }, null, 8, [
766
- "class",
767
- "icon",
768
- "icon-prefix",
769
- "size"
770
- ])) : c("", !0)
771
- ])], void 0, !0),
772
- _: 3
773
- }, 16, [
774
- "class",
775
- "disabled",
776
- "loading",
777
- "severity",
778
- "size",
779
- "variant"
780
- ]);
781
- };
782
- }
783
- });
784
- //#endregion
785
- export { S as n, Ae as t };