golden-logic-ui 1.0.89 → 1.0.91
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/golden-logic-ui.js +846 -834
- package/dist/golden-logic-ui.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as f, createStaticVNode as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as f, createStaticVNode as Qe, inject as Ce, watch as Y, effectScope as et, computed as G, reactive as Se, resolveComponent as X, Fragment as v, createVNode as Z, normalizeClass as b, toDisplayString as h, withModifiers as N, withDirectives as D, vModelText as L, renderList as $, normalizeStyle as tt, renderSlot as T, createTextVNode as w, vShow as F, createBlock as K, resolveDynamicComponent as oe, mergeProps as W, withCtx as J, ref as S, onMounted as R, vModelDynamic as rt, provide as st, pushScopeId as at, popScopeId as nt, vModelCheckbox as ot, nextTick as lt, isRef as it, unref as De, toHandlers as ae, TransitionGroup as dt, resolveDirective as Oe, markRaw as ut } from "vue";
|
|
2
2
|
const k = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
4
|
for (const [n, o] of t)
|
|
5
5
|
r[n] = o;
|
|
6
6
|
return r;
|
|
7
|
-
},
|
|
7
|
+
}, ct = {
|
|
8
8
|
props: ["isOpen"],
|
|
9
9
|
methods: {
|
|
10
10
|
confirmDeletion() {
|
|
@@ -14,27 +14,27 @@ const k = (e, t) => {
|
|
|
14
14
|
this.$emit("cancel-delete");
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
},
|
|
17
|
+
}, ft = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
20
20
|
"aria-labelledby": "modal-title",
|
|
21
21
|
role: "dialog",
|
|
22
22
|
"aria-modal": "true"
|
|
23
|
-
},
|
|
23
|
+
}, gt = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, ht = /* @__PURE__ */ s("div", {
|
|
24
24
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
25
25
|
"aria-hidden": "true"
|
|
26
|
-
}, null, -1),
|
|
26
|
+
}, null, -1), mt = /* @__PURE__ */ s("span", {
|
|
27
27
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
|
-
}, "", -1),
|
|
30
|
-
function
|
|
31
|
-
return r.isOpen ? (d(), u("div",
|
|
32
|
-
s("div",
|
|
33
|
-
gt,
|
|
29
|
+
}, "", -1), bt = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, pt = /* @__PURE__ */ Qe('<div class="px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4"><div class="sm:flex sm:items-start"><div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"><h3 class="text-lg font-medium leading-6 text-gray-900" id="modal-title"> Confirm Deletion </h3><div class="mt-2"><p class="text-sm text-gray-500"> Are you sure you want to delete this item? This action cannot be undone. </p></div></div></div></div>', 1), yt = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
30
|
+
function _t(e, t, r, n, o, a) {
|
|
31
|
+
return r.isOpen ? (d(), u("div", ft, [
|
|
32
|
+
s("div", gt, [
|
|
34
33
|
ht,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
mt,
|
|
35
|
+
s("div", bt, [
|
|
36
|
+
pt,
|
|
37
|
+
s("div", yt, [
|
|
38
38
|
s("button", {
|
|
39
39
|
onClick: t[0] || (t[0] = (...i) => a.confirmDeletion && a.confirmDeletion(...i)),
|
|
40
40
|
type: "button",
|
|
@@ -50,23 +50,23 @@ function yt(e, t, r, n, o, a) {
|
|
|
50
50
|
])
|
|
51
51
|
])) : f("", !0);
|
|
52
52
|
}
|
|
53
|
-
const ue = /* @__PURE__ */ k(
|
|
54
|
-
function
|
|
55
|
-
return
|
|
53
|
+
const ue = /* @__PURE__ */ k(ct, [["render", _t]]);
|
|
54
|
+
function vt() {
|
|
55
|
+
return Pe().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Pe() {
|
|
58
58
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const xt = typeof Proxy == "function", wt = "devtools-plugin:setup", kt = "plugin:settings:set";
|
|
61
61
|
let z, le;
|
|
62
|
-
function
|
|
62
|
+
function $t() {
|
|
63
63
|
var e;
|
|
64
64
|
return z !== void 0 || (typeof window < "u" && window.performance ? (z = !0, le = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (z = !0, le = globalThis.perf_hooks.performance) : z = !1), z;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function Ct() {
|
|
67
|
+
return $t() ? le.now() : Date.now();
|
|
68
68
|
}
|
|
69
|
-
class
|
|
69
|
+
class St {
|
|
70
70
|
constructor(t, r) {
|
|
71
71
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = r;
|
|
72
72
|
const n = {};
|
|
@@ -94,9 +94,9 @@ class Ct {
|
|
|
94
94
|
a = i;
|
|
95
95
|
},
|
|
96
96
|
now() {
|
|
97
|
-
return
|
|
97
|
+
return Ct();
|
|
98
98
|
}
|
|
99
|
-
}, r && r.on(
|
|
99
|
+
}, r && r.on(kt, (i, l) => {
|
|
100
100
|
i === this.plugin.id && this.fallbacks.setSettings(l);
|
|
101
101
|
}), this.proxiedOn = new Proxy({}, {
|
|
102
102
|
get: (i, l) => this.target ? this.target.on[l] : (...c) => {
|
|
@@ -111,11 +111,11 @@ class Ct {
|
|
|
111
111
|
args: c,
|
|
112
112
|
resolve: () => {
|
|
113
113
|
}
|
|
114
|
-
}), this.fallbacks[l](...c)) : (...c) => new Promise((
|
|
114
|
+
}), this.fallbacks[l](...c)) : (...c) => new Promise((g) => {
|
|
115
115
|
this.targetQueue.push({
|
|
116
116
|
method: l,
|
|
117
117
|
args: c,
|
|
118
|
-
resolve:
|
|
118
|
+
resolve: g
|
|
119
119
|
});
|
|
120
120
|
})
|
|
121
121
|
});
|
|
@@ -128,12 +128,12 @@ class Ct {
|
|
|
128
128
|
r.resolve(await this.target[r.method](...r.args));
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
const r = e, n =
|
|
131
|
+
function Dt(e, t) {
|
|
132
|
+
const r = e, n = Pe(), o = vt(), a = xt && r.enableEarlyProxy;
|
|
133
133
|
if (o && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
134
|
-
o.emit(
|
|
134
|
+
o.emit(wt, e, t);
|
|
135
135
|
else {
|
|
136
|
-
const i = a ? new
|
|
136
|
+
const i = a ? new St(r, o) : null;
|
|
137
137
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
138
138
|
pluginDescriptor: r,
|
|
139
139
|
setupFn: t,
|
|
@@ -146,37 +146,37 @@ function St(e, t) {
|
|
|
146
146
|
* (c) 2022 Evan You
|
|
147
147
|
* @license MIT
|
|
148
148
|
*/
|
|
149
|
-
var
|
|
150
|
-
function
|
|
151
|
-
return e === void 0 && (e = null), Ce(e !== null ? e :
|
|
149
|
+
var Ee = "store";
|
|
150
|
+
function Ae(e) {
|
|
151
|
+
return e === void 0 && (e = null), Ce(e !== null ? e : Ee);
|
|
152
152
|
}
|
|
153
153
|
function U(e, t) {
|
|
154
154
|
Object.keys(e).forEach(function(r) {
|
|
155
155
|
return t(e[r], r);
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function je(e) {
|
|
159
159
|
return e !== null && typeof e == "object";
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Ot(e) {
|
|
162
162
|
return e && typeof e.then == "function";
|
|
163
163
|
}
|
|
164
164
|
function I(e, t) {
|
|
165
165
|
if (!e)
|
|
166
166
|
throw new Error("[vuex] " + t);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Pt(e, t) {
|
|
169
169
|
return function() {
|
|
170
170
|
return e(t);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Te(e, t, r) {
|
|
174
174
|
return t.indexOf(e) < 0 && (r && r.prepend ? t.unshift(e) : t.push(e)), function() {
|
|
175
175
|
var n = t.indexOf(e);
|
|
176
176
|
n > -1 && t.splice(n, 1);
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Ie(e, t) {
|
|
180
180
|
e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
|
|
181
181
|
var r = e.state;
|
|
182
182
|
ee(e, r, [], e._modules.root, !0), ce(e, r, t);
|
|
@@ -184,10 +184,10 @@ function Te(e, t) {
|
|
|
184
184
|
function ce(e, t, r) {
|
|
185
185
|
var n = e._state, o = e._scope;
|
|
186
186
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
187
|
-
var a = e._wrappedGetters, i = {}, l = {}, c =
|
|
187
|
+
var a = e._wrappedGetters, i = {}, l = {}, c = et(!0);
|
|
188
188
|
c.run(function() {
|
|
189
|
-
U(a, function(
|
|
190
|
-
i[m] =
|
|
189
|
+
U(a, function(g, m) {
|
|
190
|
+
i[m] = Pt(g, e), l[m] = G(function() {
|
|
191
191
|
return i[m]();
|
|
192
192
|
}), Object.defineProperty(e.getters, m, {
|
|
193
193
|
get: function() {
|
|
@@ -199,7 +199,7 @@ function ce(e, t, r) {
|
|
|
199
199
|
});
|
|
200
200
|
}), e._state = Se({
|
|
201
201
|
data: t
|
|
202
|
-
}), e._scope = c, e.strict &&
|
|
202
|
+
}), e._scope = c, e.strict && It(e), n && r && e._withCommit(function() {
|
|
203
203
|
n.data = null;
|
|
204
204
|
}), o && o.stop();
|
|
205
205
|
}
|
|
@@ -213,37 +213,37 @@ function ee(e, t, r, n, o) {
|
|
|
213
213
|
), l[c] = n.state;
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
var
|
|
216
|
+
var g = n.context = Et(e, i, r);
|
|
217
217
|
n.forEachMutation(function(m, y) {
|
|
218
218
|
var x = i + y;
|
|
219
|
-
|
|
219
|
+
At(e, x, m, g);
|
|
220
220
|
}), n.forEachAction(function(m, y) {
|
|
221
221
|
var x = m.root ? y : i + y, C = m.handler || m;
|
|
222
|
-
|
|
222
|
+
jt(e, x, C, g);
|
|
223
223
|
}), n.forEachGetter(function(m, y) {
|
|
224
224
|
var x = i + y;
|
|
225
|
-
|
|
225
|
+
Tt(e, x, m, g);
|
|
226
226
|
}), n.forEachChild(function(m, y) {
|
|
227
227
|
ee(e, t, r.concat(y), m, o);
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Et(e, t, r) {
|
|
231
231
|
var n = t === "", o = {
|
|
232
232
|
dispatch: n ? e.dispatch : function(a, i, l) {
|
|
233
|
-
var c = Q(a, i, l),
|
|
233
|
+
var c = Q(a, i, l), g = c.payload, m = c.options, y = c.type;
|
|
234
234
|
if ((!m || !m.root) && (y = t + y, process.env.NODE_ENV !== "production" && !e._actions[y])) {
|
|
235
235
|
console.error("[vuex] unknown local action type: " + c.type + ", global type: " + y);
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
|
-
return e.dispatch(y,
|
|
238
|
+
return e.dispatch(y, g);
|
|
239
239
|
},
|
|
240
240
|
commit: n ? e.commit : function(a, i, l) {
|
|
241
|
-
var c = Q(a, i, l),
|
|
241
|
+
var c = Q(a, i, l), g = c.payload, m = c.options, y = c.type;
|
|
242
242
|
if ((!m || !m.root) && (y = t + y, process.env.NODE_ENV !== "production" && !e._mutations[y])) {
|
|
243
243
|
console.error("[vuex] unknown local mutation type: " + c.type + ", global type: " + y);
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
|
-
e.commit(y,
|
|
246
|
+
e.commit(y, g, m);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
return Object.defineProperties(o, {
|
|
@@ -251,7 +251,7 @@ function Pt(e, t, r) {
|
|
|
251
251
|
get: n ? function() {
|
|
252
252
|
return e.getters;
|
|
253
253
|
} : function() {
|
|
254
|
-
return
|
|
254
|
+
return Me(e, t);
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
257
|
state: {
|
|
@@ -261,7 +261,7 @@ function Pt(e, t, r) {
|
|
|
261
261
|
}
|
|
262
262
|
}), o;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Me(e, t) {
|
|
265
265
|
if (!e._makeLocalGettersCache[t]) {
|
|
266
266
|
var r = {}, n = t.length;
|
|
267
267
|
Object.keys(e.getters).forEach(function(o) {
|
|
@@ -278,13 +278,13 @@ function Ie(e, t) {
|
|
|
278
278
|
}
|
|
279
279
|
return e._makeLocalGettersCache[t];
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function At(e, t, r, n) {
|
|
282
282
|
var o = e._mutations[t] || (e._mutations[t] = []);
|
|
283
283
|
o.push(function(i) {
|
|
284
284
|
r.call(e, n.state, i);
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function jt(e, t, r, n) {
|
|
288
288
|
var o = e._actions[t] || (e._actions[t] = []);
|
|
289
289
|
o.push(function(i) {
|
|
290
290
|
var l = r.call(e, {
|
|
@@ -295,12 +295,12 @@ function At(e, t, r, n) {
|
|
|
295
295
|
rootGetters: e.getters,
|
|
296
296
|
rootState: e.state
|
|
297
297
|
}, i);
|
|
298
|
-
return
|
|
298
|
+
return Ot(l) || (l = Promise.resolve(l)), e._devtoolHook ? l.catch(function(c) {
|
|
299
299
|
throw e._devtoolHook.emit("vuex:error", c), c;
|
|
300
300
|
}) : l;
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Tt(e, t, r, n) {
|
|
304
304
|
if (e._wrappedGetters[t]) {
|
|
305
305
|
process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + t);
|
|
306
306
|
return;
|
|
@@ -318,7 +318,7 @@ function jt(e, t, r, n) {
|
|
|
318
318
|
);
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function It(e) {
|
|
322
322
|
Y(function() {
|
|
323
323
|
return e._state.data;
|
|
324
324
|
}, function() {
|
|
@@ -331,11 +331,11 @@ function fe(e, t) {
|
|
|
331
331
|
}, e);
|
|
332
332
|
}
|
|
333
333
|
function Q(e, t, r) {
|
|
334
|
-
return
|
|
334
|
+
return je(e) && e.type && (r = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && I(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: t, options: r };
|
|
335
335
|
}
|
|
336
|
-
var
|
|
337
|
-
function
|
|
338
|
-
|
|
336
|
+
var Mt = "vuex bindings", ve = "vuex:mutations", ne = "vuex:actions", H = "vuex", Nt = 0;
|
|
337
|
+
function Lt(e, t) {
|
|
338
|
+
Dt(
|
|
339
339
|
{
|
|
340
340
|
id: "org.vuejs.vuex",
|
|
341
341
|
app: e,
|
|
@@ -343,7 +343,7 @@ function Nt(e, t) {
|
|
|
343
343
|
homepage: "https://next.vuex.vuejs.org/",
|
|
344
344
|
logo: "https://vuejs.org/images/icons/favicon-96x96.png",
|
|
345
345
|
packageName: "vuex",
|
|
346
|
-
componentStateTypes: [
|
|
346
|
+
componentStateTypes: [Mt]
|
|
347
347
|
},
|
|
348
348
|
function(r) {
|
|
349
349
|
r.addTimelineLayer({
|
|
@@ -363,7 +363,7 @@ function Nt(e, t) {
|
|
|
363
363
|
if (n.app === e && n.inspectorId === H)
|
|
364
364
|
if (n.filter) {
|
|
365
365
|
var o = [];
|
|
366
|
-
|
|
366
|
+
Be(o, t._modules.root, n.filter, ""), n.rootNodes = o;
|
|
367
367
|
} else
|
|
368
368
|
n.rootNodes = [
|
|
369
369
|
Ve(t._modules.root, "")
|
|
@@ -371,8 +371,8 @@ function Nt(e, t) {
|
|
|
371
371
|
}), r.on.getInspectorState(function(n) {
|
|
372
372
|
if (n.app === e && n.inspectorId === H) {
|
|
373
373
|
var o = n.nodeId;
|
|
374
|
-
|
|
375
|
-
|
|
374
|
+
Me(t, o), n.state = Gt(
|
|
375
|
+
Rt(t._modules, o),
|
|
376
376
|
o === "root" ? t.getters : t._makeLocalGettersCache,
|
|
377
377
|
o
|
|
378
378
|
);
|
|
@@ -397,7 +397,7 @@ function Nt(e, t) {
|
|
|
397
397
|
}), t.subscribeAction({
|
|
398
398
|
before: function(n, o) {
|
|
399
399
|
var a = {};
|
|
400
|
-
n.payload && (a.payload = n.payload), n._id =
|
|
400
|
+
n.payload && (a.payload = n.payload), n._id = Nt++, n._time = Date.now(), a.state = o, r.addTimelineEvent({
|
|
401
401
|
layerId: ne,
|
|
402
402
|
event: {
|
|
403
403
|
time: n._time,
|
|
@@ -432,12 +432,12 @@ function Nt(e, t) {
|
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
var xe = 8702998, Vt = 6710886,
|
|
435
|
+
var xe = 8702998, Vt = 6710886, Bt = 16777215, Ne = {
|
|
436
436
|
label: "namespaced",
|
|
437
|
-
textColor:
|
|
437
|
+
textColor: Bt,
|
|
438
438
|
backgroundColor: Vt
|
|
439
439
|
};
|
|
440
|
-
function
|
|
440
|
+
function Le(e) {
|
|
441
441
|
return e && e !== "root" ? e.split("/").slice(-2, -1)[0] : "Root";
|
|
442
442
|
}
|
|
443
443
|
function Ve(e, t) {
|
|
@@ -446,8 +446,8 @@ function Ve(e, t) {
|
|
|
446
446
|
// all modules end with a `/`, we want the last segment only
|
|
447
447
|
// cart/ -> cart
|
|
448
448
|
// nested/cart/ -> cart
|
|
449
|
-
label:
|
|
450
|
-
tags: e.namespaced ? [
|
|
449
|
+
label: Le(t),
|
|
450
|
+
tags: e.namespaced ? [Ne] : [],
|
|
451
451
|
children: Object.keys(e._children).map(
|
|
452
452
|
function(r) {
|
|
453
453
|
return Ve(
|
|
@@ -458,16 +458,16 @@ function Ve(e, t) {
|
|
|
458
458
|
)
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Be(e, t, r, n) {
|
|
462
462
|
n.includes(r) && e.push({
|
|
463
463
|
id: n || "root",
|
|
464
464
|
label: n.endsWith("/") ? n.slice(0, n.length - 1) : n || "Root",
|
|
465
|
-
tags: t.namespaced ? [
|
|
465
|
+
tags: t.namespaced ? [Ne] : []
|
|
466
466
|
}), Object.keys(t._children).forEach(function(o) {
|
|
467
|
-
|
|
467
|
+
Be(e, t._children[o], r, n + o + "/");
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Gt(e, t, r) {
|
|
471
471
|
t = r === "root" ? t : t[r];
|
|
472
472
|
var n = Object.keys(t), o = {
|
|
473
473
|
state: Object.keys(e.state).map(function(i) {
|
|
@@ -479,10 +479,10 @@ function Bt(e, t, r) {
|
|
|
479
479
|
})
|
|
480
480
|
};
|
|
481
481
|
if (n.length) {
|
|
482
|
-
var a =
|
|
482
|
+
var a = Ft(t);
|
|
483
483
|
o.getters = Object.keys(a).map(function(i) {
|
|
484
484
|
return {
|
|
485
|
-
key: i.endsWith("/") ?
|
|
485
|
+
key: i.endsWith("/") ? Le(i) : i,
|
|
486
486
|
editable: !1,
|
|
487
487
|
value: ie(function() {
|
|
488
488
|
return a[i];
|
|
@@ -492,7 +492,7 @@ function Bt(e, t, r) {
|
|
|
492
492
|
}
|
|
493
493
|
return o;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Ft(e) {
|
|
496
496
|
var t = {};
|
|
497
497
|
return Object.keys(e).forEach(function(r) {
|
|
498
498
|
var n = r.split("/");
|
|
@@ -516,7 +516,7 @@ function Gt(e) {
|
|
|
516
516
|
});
|
|
517
517
|
}), t;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Rt(e, t) {
|
|
520
520
|
var r = t.split("/").filter(function(n) {
|
|
521
521
|
return n;
|
|
522
522
|
});
|
|
@@ -541,8 +541,8 @@ var M = function(t, r) {
|
|
|
541
541
|
this.runtime = r, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = t;
|
|
542
542
|
var n = t.state;
|
|
543
543
|
this.state = (typeof n == "function" ? n() : n) || {};
|
|
544
|
-
},
|
|
545
|
-
|
|
544
|
+
}, Ge = { namespaced: { configurable: !0 } };
|
|
545
|
+
Ge.namespaced.get = function() {
|
|
546
546
|
return !!this._rawModule.namespaced;
|
|
547
547
|
};
|
|
548
548
|
M.prototype.addChild = function(t, r) {
|
|
@@ -572,7 +572,7 @@ M.prototype.forEachAction = function(t) {
|
|
|
572
572
|
M.prototype.forEachMutation = function(t) {
|
|
573
573
|
this._rawModule.mutations && U(this._rawModule.mutations, t);
|
|
574
574
|
};
|
|
575
|
-
Object.defineProperties(M.prototype,
|
|
575
|
+
Object.defineProperties(M.prototype, Ge);
|
|
576
576
|
var q = function(t) {
|
|
577
577
|
this.register([], t, !1);
|
|
578
578
|
};
|
|
@@ -588,11 +588,11 @@ q.prototype.getNamespace = function(t) {
|
|
|
588
588
|
}, "");
|
|
589
589
|
};
|
|
590
590
|
q.prototype.update = function(t) {
|
|
591
|
-
|
|
591
|
+
Fe([], this.root, t);
|
|
592
592
|
};
|
|
593
593
|
q.prototype.register = function(t, r, n) {
|
|
594
594
|
var o = this;
|
|
595
|
-
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" &&
|
|
595
|
+
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" && Re(t, r);
|
|
596
596
|
var a = new M(r, n);
|
|
597
597
|
if (t.length === 0)
|
|
598
598
|
this.root = a;
|
|
@@ -618,8 +618,8 @@ q.prototype.isRegistered = function(t) {
|
|
|
618
618
|
var r = this.get(t.slice(0, -1)), n = t[t.length - 1];
|
|
619
619
|
return r ? r.hasChild(n) : !1;
|
|
620
620
|
};
|
|
621
|
-
function
|
|
622
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
621
|
+
function Fe(e, t, r) {
|
|
622
|
+
if (process.env.NODE_ENV !== "production" && Re(e, r), t.update(r), r.modules)
|
|
623
623
|
for (var n in r.modules) {
|
|
624
624
|
if (!t.getChild(n)) {
|
|
625
625
|
process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -627,7 +627,7 @@ function Ge(e, t, r) {
|
|
|
627
627
|
);
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
630
|
-
|
|
630
|
+
Fe(
|
|
631
631
|
e.concat(n),
|
|
632
632
|
t.getChild(n),
|
|
633
633
|
r.modules[n]
|
|
@@ -639,7 +639,7 @@ var we = {
|
|
|
639
639
|
return typeof e == "function";
|
|
640
640
|
},
|
|
641
641
|
expected: "function"
|
|
642
|
-
},
|
|
642
|
+
}, Ut = {
|
|
643
643
|
assert: function(e) {
|
|
644
644
|
return typeof e == "function" || typeof e == "object" && typeof e.handler == "function";
|
|
645
645
|
},
|
|
@@ -647,22 +647,22 @@ var we = {
|
|
|
647
647
|
}, ke = {
|
|
648
648
|
getters: we,
|
|
649
649
|
mutations: we,
|
|
650
|
-
actions:
|
|
650
|
+
actions: Ut
|
|
651
651
|
};
|
|
652
|
-
function
|
|
652
|
+
function Re(e, t) {
|
|
653
653
|
Object.keys(ke).forEach(function(r) {
|
|
654
654
|
if (t[r]) {
|
|
655
655
|
var n = ke[r];
|
|
656
656
|
U(t[r], function(o, a) {
|
|
657
657
|
I(
|
|
658
658
|
n.assert(o),
|
|
659
|
-
|
|
659
|
+
qt(e, r, a, o, n.expected)
|
|
660
660
|
);
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function qt(e, t, r, n, o) {
|
|
666
666
|
var a = t + " should be " + o + ' but "' + t + "." + r + '"';
|
|
667
667
|
return e.length > 0 && (a += ' in module "' + e.join(".") + '"'), a += " is " + JSON.stringify(n) + ".", a;
|
|
668
668
|
}
|
|
@@ -675,11 +675,11 @@ var A = function e(t) {
|
|
|
675
675
|
o === void 0 && (o = !1);
|
|
676
676
|
var a = t.devtools;
|
|
677
677
|
this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new q(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
|
|
678
|
-
var i = this, l = this, c = l.dispatch,
|
|
678
|
+
var i = this, l = this, c = l.dispatch, g = l.commit;
|
|
679
679
|
this.dispatch = function(x, C) {
|
|
680
680
|
return c.call(i, x, C);
|
|
681
|
-
}, this.commit = function(x, C,
|
|
682
|
-
return
|
|
681
|
+
}, this.commit = function(x, C, V) {
|
|
682
|
+
return g.call(i, x, C, V);
|
|
683
683
|
}, this.strict = o;
|
|
684
684
|
var m = this._modules.root.state;
|
|
685
685
|
ee(this, m, [], this._modules.root), ce(this, m), n.forEach(function(y) {
|
|
@@ -687,9 +687,9 @@ var A = function e(t) {
|
|
|
687
687
|
});
|
|
688
688
|
}, ge = { state: { configurable: !0 } };
|
|
689
689
|
A.prototype.install = function(t, r) {
|
|
690
|
-
t.provide(r ||
|
|
690
|
+
t.provide(r || Ee, this), t.config.globalProperties.$store = this;
|
|
691
691
|
var n = this._devtools !== void 0 ? this._devtools : process.env.NODE_ENV !== "production" || !1;
|
|
692
|
-
n &&
|
|
692
|
+
n && Lt(t, this);
|
|
693
693
|
};
|
|
694
694
|
ge.state.get = function() {
|
|
695
695
|
return this._state.data;
|
|
@@ -698,7 +698,7 @@ ge.state.set = function(e) {
|
|
|
698
698
|
process.env.NODE_ENV !== "production" && I(!1, "use store.replaceState() to explicit replace store state.");
|
|
699
699
|
};
|
|
700
700
|
A.prototype.commit = function(t, r, n) {
|
|
701
|
-
var o = this, a = Q(t, r, n), i = a.type, l = a.payload, c = a.options,
|
|
701
|
+
var o = this, a = Q(t, r, n), i = a.type, l = a.payload, c = a.options, g = { type: i, payload: l }, m = this._mutations[i];
|
|
702
702
|
if (!m) {
|
|
703
703
|
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + i);
|
|
704
704
|
return;
|
|
@@ -708,7 +708,7 @@ A.prototype.commit = function(t, r, n) {
|
|
|
708
708
|
x(l);
|
|
709
709
|
});
|
|
710
710
|
}), this._subscribers.slice().forEach(function(y) {
|
|
711
|
-
return y(
|
|
711
|
+
return y(g, o.state);
|
|
712
712
|
}), process.env.NODE_ENV !== "production" && c && c.silent && console.warn(
|
|
713
713
|
"[vuex] mutation type: " + i + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
|
|
714
714
|
);
|
|
@@ -728,11 +728,11 @@ A.prototype.dispatch = function(t, r) {
|
|
|
728
728
|
} catch (m) {
|
|
729
729
|
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(m));
|
|
730
730
|
}
|
|
731
|
-
var
|
|
731
|
+
var g = c.length > 1 ? Promise.all(c.map(function(m) {
|
|
732
732
|
return m(i);
|
|
733
733
|
})) : c[0](i);
|
|
734
734
|
return new Promise(function(m, y) {
|
|
735
|
-
|
|
735
|
+
g.then(function(x) {
|
|
736
736
|
try {
|
|
737
737
|
n._actionSubscribers.filter(function(C) {
|
|
738
738
|
return C.after;
|
|
@@ -758,11 +758,11 @@ A.prototype.dispatch = function(t, r) {
|
|
|
758
758
|
});
|
|
759
759
|
};
|
|
760
760
|
A.prototype.subscribe = function(t, r) {
|
|
761
|
-
return
|
|
761
|
+
return Te(t, this._subscribers, r);
|
|
762
762
|
};
|
|
763
763
|
A.prototype.subscribeAction = function(t, r) {
|
|
764
764
|
var n = typeof t == "function" ? { before: t } : t;
|
|
765
|
-
return
|
|
765
|
+
return Te(n, this._actionSubscribers, r);
|
|
766
766
|
};
|
|
767
767
|
A.prototype.watch = function(t, r, n) {
|
|
768
768
|
var o = this;
|
|
@@ -784,53 +784,53 @@ A.prototype.unregisterModule = function(t) {
|
|
|
784
784
|
typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && I(Array.isArray(t), "module path must be a string or an Array."), this._modules.unregister(t), this._withCommit(function() {
|
|
785
785
|
var n = fe(r.state, t.slice(0, -1));
|
|
786
786
|
delete n[t[t.length - 1]];
|
|
787
|
-
}),
|
|
787
|
+
}), Ie(this);
|
|
788
788
|
};
|
|
789
789
|
A.prototype.hasModule = function(t) {
|
|
790
790
|
return typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && I(Array.isArray(t), "module path must be a string or an Array."), this._modules.isRegistered(t);
|
|
791
791
|
};
|
|
792
792
|
A.prototype.hotUpdate = function(t) {
|
|
793
|
-
this._modules.update(t),
|
|
793
|
+
this._modules.update(t), Ie(this, !0);
|
|
794
794
|
};
|
|
795
795
|
A.prototype._withCommit = function(t) {
|
|
796
796
|
var r = this._committing;
|
|
797
797
|
this._committing = !0, t(), this._committing = r;
|
|
798
798
|
};
|
|
799
799
|
Object.defineProperties(A.prototype, ge);
|
|
800
|
-
var
|
|
800
|
+
var zt = qe(function(e, t) {
|
|
801
801
|
var r = {};
|
|
802
|
-
return process.env.NODE_ENV !== "production" && !he(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),
|
|
802
|
+
return process.env.NODE_ENV !== "production" && !he(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), Ue(t).forEach(function(n) {
|
|
803
803
|
var o = n.key, a = n.val;
|
|
804
804
|
r[o] = function() {
|
|
805
805
|
var l = this.$store.state, c = this.$store.getters;
|
|
806
806
|
if (e) {
|
|
807
|
-
var
|
|
808
|
-
if (!
|
|
807
|
+
var g = ze(this.$store, "mapState", e);
|
|
808
|
+
if (!g)
|
|
809
809
|
return;
|
|
810
|
-
l =
|
|
810
|
+
l = g.context.state, c = g.context.getters;
|
|
811
811
|
}
|
|
812
812
|
return typeof a == "function" ? a.call(this, l, c) : l[a];
|
|
813
813
|
}, r[o].vuex = !0;
|
|
814
814
|
}), r;
|
|
815
|
-
}),
|
|
815
|
+
}), Ht = qe(function(e, t) {
|
|
816
816
|
var r = {};
|
|
817
|
-
return process.env.NODE_ENV !== "production" && !he(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),
|
|
817
|
+
return process.env.NODE_ENV !== "production" && !he(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), Ue(t).forEach(function(n) {
|
|
818
818
|
var o = n.key, a = n.val;
|
|
819
819
|
r[o] = function() {
|
|
820
820
|
for (var l = [], c = arguments.length; c--; )
|
|
821
821
|
l[c] = arguments[c];
|
|
822
|
-
var
|
|
822
|
+
var g = this.$store.commit;
|
|
823
823
|
if (e) {
|
|
824
|
-
var m =
|
|
824
|
+
var m = ze(this.$store, "mapMutations", e);
|
|
825
825
|
if (!m)
|
|
826
826
|
return;
|
|
827
|
-
|
|
827
|
+
g = m.context.commit;
|
|
828
828
|
}
|
|
829
|
-
return typeof a == "function" ? a.apply(this, [
|
|
829
|
+
return typeof a == "function" ? a.apply(this, [g].concat(l)) : g.apply(this.$store, [a].concat(l));
|
|
830
830
|
};
|
|
831
831
|
}), r;
|
|
832
832
|
});
|
|
833
|
-
function
|
|
833
|
+
function Ue(e) {
|
|
834
834
|
return he(e) ? Array.isArray(e) ? e.map(function(t) {
|
|
835
835
|
return { key: t, val: t };
|
|
836
836
|
}) : Object.keys(e).map(function(t) {
|
|
@@ -838,18 +838,18 @@ function Re(e) {
|
|
|
838
838
|
}) : [];
|
|
839
839
|
}
|
|
840
840
|
function he(e) {
|
|
841
|
-
return Array.isArray(e) ||
|
|
841
|
+
return Array.isArray(e) || je(e);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function qe(e) {
|
|
844
844
|
return function(t, r) {
|
|
845
845
|
return typeof t != "string" ? (r = t, t = "") : t.charAt(t.length - 1) !== "/" && (t += "/"), e(t, r);
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function ze(e, t, r) {
|
|
849
849
|
var n = e._modulesNamespaceMap[r];
|
|
850
850
|
return process.env.NODE_ENV !== "production" && !n && console.error("[vuex] module namespace not found in " + t + "(): " + r), n;
|
|
851
851
|
}
|
|
852
|
-
const
|
|
852
|
+
const Zt = {
|
|
853
853
|
components: {
|
|
854
854
|
DeleteConfirmationModal: ue
|
|
855
855
|
},
|
|
@@ -999,7 +999,7 @@ const Ht = {
|
|
|
999
999
|
mounted() {
|
|
1000
1000
|
console.log(this.model_value), this.model_value ? Array.isArray(this.model_value) ? this.uploadFileList = this.model_value : this.uploadFileList = [this.model_value] : this.uploadFileList = [], this.error_message_data = this.error_message;
|
|
1001
1001
|
}
|
|
1002
|
-
},
|
|
1002
|
+
}, Kt = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, Wt = ["multiple"], Yt = ["name"], Xt = /* @__PURE__ */ s("svg", {
|
|
1003
1003
|
class: "w-8 h-8 mb-4 text-gray-500 dark:text-gray-400",
|
|
1004
1004
|
"aria-hidden": "true",
|
|
1005
1005
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1013,19 +1013,19 @@ const Ht = {
|
|
|
1013
1013
|
"stroke-width": "2",
|
|
1014
1014
|
d: "M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"
|
|
1015
1015
|
})
|
|
1016
|
-
], -1),
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
],
|
|
1020
|
-
|
|
1021
|
-
],
|
|
1016
|
+
], -1), Jt = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, " Drag & drop files or browse ", -1), Qt = [
|
|
1017
|
+
Xt,
|
|
1018
|
+
Jt
|
|
1019
|
+
], er = { key: 1 }, tr = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, "Drop files here", -1), rr = [
|
|
1020
|
+
tr
|
|
1021
|
+
], sr = { class: "mt-2 gl-span-form-error" }, ar = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, nr = {
|
|
1022
1022
|
key: 0,
|
|
1023
1023
|
class: ""
|
|
1024
|
-
},
|
|
1024
|
+
}, or = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, lr = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1), ir = { class: "w-full ml-3" }, dr = { class: "flex items-center justify-between mb-1" }, ur = { class: "text-xs text-black dark:text-white" }, cr = { class: "text-xs text-black dark:text-white" }, fr = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, gr = { class: "overflow-x-scroll max-h-56" }, hr = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, mr = { class: "flex items-center" }, br = /* @__PURE__ */ s("i", {
|
|
1025
1025
|
class: "text-3xl fas fa-file-alt",
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
|
-
}, null, -1),
|
|
1028
|
-
function
|
|
1027
|
+
}, null, -1), pr = { class: "flex flex-col ml-3" }, yr = { class: "text-xs" }, _r = { class: "text-xs" }, vr = { class: "flex gap-2" }, xr = ["href"], wr = ["onClick"];
|
|
1028
|
+
function kr(e, t, r, n, o, a) {
|
|
1029
1029
|
const i = X("DeleteConfirmationModal");
|
|
1030
1030
|
return d(), u(v, null, [
|
|
1031
1031
|
Z(i, {
|
|
@@ -1045,85 +1045,85 @@ function wr(e, t, r, n, o, a) {
|
|
|
1045
1045
|
"gl-label-form-invalid": o.error_message_data !== "",
|
|
1046
1046
|
required: r.is_required
|
|
1047
1047
|
})
|
|
1048
|
-
},
|
|
1048
|
+
}, h(r.label_name), 3),
|
|
1049
1049
|
s("div", {
|
|
1050
1050
|
onDragover: t[3] || (t[3] = N((...l) => a.onDragOver && a.onDragOver(...l), ["prevent"])),
|
|
1051
1051
|
onDragleave: t[4] || (t[4] = N((...l) => a.onDragLeave && a.onDragLeave(...l), ["prevent"])),
|
|
1052
1052
|
onDrop: t[5] || (t[5] = N((...l) => a.onDrop && a.onDrop(...l), ["prevent"])),
|
|
1053
1053
|
class: "flex flex-col items-center justify-center w-full h-40 mt-3 mb-3 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"
|
|
1054
1054
|
}, [
|
|
1055
|
-
s("div",
|
|
1055
|
+
s("div", Kt, [
|
|
1056
1056
|
s("input", {
|
|
1057
1057
|
type: "file",
|
|
1058
1058
|
ref: "file_input" + r.field_name,
|
|
1059
1059
|
hidden: "",
|
|
1060
1060
|
multiple: r.has_multiple_file,
|
|
1061
1061
|
onChange: t[0] || (t[0] = (...l) => a.uploadFiles && a.uploadFiles(...l))
|
|
1062
|
-
}, null, 40,
|
|
1063
|
-
|
|
1062
|
+
}, null, 40, Wt),
|
|
1063
|
+
D(s("input", {
|
|
1064
1064
|
type: "hidden",
|
|
1065
1065
|
name: r.field_name,
|
|
1066
1066
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => a.uploadedFileIds = l)
|
|
1067
|
-
}, null, 8,
|
|
1068
|
-
[
|
|
1067
|
+
}, null, 8, Yt), [
|
|
1068
|
+
[L, a.uploadedFileIds]
|
|
1069
1069
|
]),
|
|
1070
|
-
o.isDragging ? (d(), u("div",
|
|
1070
|
+
o.isDragging ? (d(), u("div", er, rr)) : (d(), u("div", {
|
|
1071
1071
|
key: 0,
|
|
1072
1072
|
class: "flex flex-col items-center justify-center",
|
|
1073
1073
|
onClick: t[2] || (t[2] = (l) => e.$refs["file_input" + this.field_name].click())
|
|
1074
|
-
},
|
|
1074
|
+
}, Qt))
|
|
1075
1075
|
])
|
|
1076
1076
|
], 32),
|
|
1077
|
-
s("span",
|
|
1078
|
-
s("small",
|
|
1079
|
-
o.files.length > 0 ? (d(), u("section",
|
|
1080
|
-
(d(!0), u(v, null, $(o.files, (l, c) => (d(), u("li",
|
|
1081
|
-
|
|
1082
|
-
s("div",
|
|
1083
|
-
s("div",
|
|
1084
|
-
s("span",
|
|
1085
|
-
s("span",
|
|
1077
|
+
s("span", sr, h(o.error_message_data), 1),
|
|
1078
|
+
s("small", ar, h(r.description), 1),
|
|
1079
|
+
o.files.length > 0 ? (d(), u("section", nr, [
|
|
1080
|
+
(d(!0), u(v, null, $(o.files, (l, c) => (d(), u("li", or, [
|
|
1081
|
+
lr,
|
|
1082
|
+
s("div", ir, [
|
|
1083
|
+
s("div", dr, [
|
|
1084
|
+
s("span", ur, h(a.getFileName(l.file_name)), 1),
|
|
1085
|
+
s("span", cr, h(l.loading), 1)
|
|
1086
1086
|
]),
|
|
1087
|
-
s("div",
|
|
1087
|
+
s("div", fr, [
|
|
1088
1088
|
s("div", {
|
|
1089
1089
|
class: "h-full bg-gray-500 rounded-full dark:bg-gray-400",
|
|
1090
|
-
style:
|
|
1090
|
+
style: tt({ width: l.loading + "%" })
|
|
1091
1091
|
}, null, 4)
|
|
1092
1092
|
])
|
|
1093
1093
|
])
|
|
1094
1094
|
]))), 256))
|
|
1095
1095
|
])) : f("", !0),
|
|
1096
|
-
s("section",
|
|
1097
|
-
(d(!0), u(v, null, $(o.uploadFileList, (l, c) => (d(), u("li",
|
|
1098
|
-
s("div",
|
|
1099
|
-
|
|
1100
|
-
s("div",
|
|
1101
|
-
s("span",
|
|
1102
|
-
s("span",
|
|
1096
|
+
s("section", gr, [
|
|
1097
|
+
(d(!0), u(v, null, $(o.uploadFileList, (l, c) => (d(), u("li", hr, [
|
|
1098
|
+
s("div", mr, [
|
|
1099
|
+
br,
|
|
1100
|
+
s("div", pr, [
|
|
1101
|
+
s("span", yr, h(a.getFileName(l.file_name)), 1),
|
|
1102
|
+
s("span", _r, h(a.formatFileSize(l.size)), 1)
|
|
1103
1103
|
])
|
|
1104
1104
|
]),
|
|
1105
|
-
s("div",
|
|
1105
|
+
s("div", vr, [
|
|
1106
1106
|
s("a", {
|
|
1107
1107
|
href: l.url,
|
|
1108
1108
|
target: "_blank",
|
|
1109
1109
|
class: "text-lg text-blue-600 cursor-pointer dark:text-blue-400 fas fa-download"
|
|
1110
|
-
}, null, 8,
|
|
1110
|
+
}, null, 8, xr),
|
|
1111
1111
|
r.is_enable_delete ? (d(), u("i", {
|
|
1112
1112
|
key: 0,
|
|
1113
|
-
onClick: (
|
|
1113
|
+
onClick: (g) => {
|
|
1114
1114
|
o.media_id = l.id, o.open_delete_modal = !0;
|
|
1115
1115
|
},
|
|
1116
1116
|
class: "text-lg text-red-600 cursor-pointer dark:text-red-400 fas fa-x"
|
|
1117
|
-
}, null, 8,
|
|
1117
|
+
}, null, 8, wr)) : f("", !0)
|
|
1118
1118
|
])
|
|
1119
1119
|
]))), 256))
|
|
1120
1120
|
])
|
|
1121
1121
|
], 2)
|
|
1122
1122
|
], 64);
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const qd = /* @__PURE__ */ k(Zt, [["render", kr]]), $r = {
|
|
1125
1125
|
computed: {
|
|
1126
|
-
...
|
|
1126
|
+
...zt("notification", ["notification"]),
|
|
1127
1127
|
alertClasses() {
|
|
1128
1128
|
switch (this.notification.type) {
|
|
1129
1129
|
case "info":
|
|
@@ -1158,7 +1158,7 @@ const Ud = /* @__PURE__ */ k(Ht, [["render", wr]]), kr = {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
},
|
|
1160
1160
|
methods: {
|
|
1161
|
-
...
|
|
1161
|
+
...Ht("notification", ["HIDE_NOTIFICATION"]),
|
|
1162
1162
|
dismiss() {
|
|
1163
1163
|
this.HIDE_NOTIFICATION();
|
|
1164
1164
|
}
|
|
@@ -1170,7 +1170,7 @@ const Ud = /* @__PURE__ */ k(Ht, [["render", wr]]), kr = {
|
|
|
1170
1170
|
}, this.notification.duration);
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
|
-
},
|
|
1173
|
+
}, Cr = /* @__PURE__ */ s("svg", {
|
|
1174
1174
|
class: "flex-shrink-0 w-4 h-4",
|
|
1175
1175
|
"aria-hidden": "true",
|
|
1176
1176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1178,7 +1178,7 @@ const Ud = /* @__PURE__ */ k(Ht, [["render", wr]]), kr = {
|
|
|
1178
1178
|
viewBox: "0 0 20 20"
|
|
1179
1179
|
}, [
|
|
1180
1180
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z" })
|
|
1181
|
-
], -1),
|
|
1181
|
+
], -1), Sr = /* @__PURE__ */ s("span", { class: "sr-only" }, "Info", -1), Dr = { class: "mr-3 text-sm font-medium ms-3" }, Or = /* @__PURE__ */ s("span", { class: "sr-only" }, "Close", -1), Pr = /* @__PURE__ */ s("svg", {
|
|
1182
1182
|
class: "w-3 h-3",
|
|
1183
1183
|
"aria-hidden": "true",
|
|
1184
1184
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1192,28 +1192,28 @@ const Ud = /* @__PURE__ */ k(Ht, [["render", wr]]), kr = {
|
|
|
1192
1192
|
"stroke-width": "2",
|
|
1193
1193
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
1194
1194
|
})
|
|
1195
|
-
], -1),
|
|
1196
|
-
|
|
1197
|
-
|
|
1195
|
+
], -1), Er = [
|
|
1196
|
+
Or,
|
|
1197
|
+
Pr
|
|
1198
1198
|
];
|
|
1199
|
-
function
|
|
1199
|
+
function Ar(e, t, r, n, o, a) {
|
|
1200
1200
|
return e.notification.show ? (d(), u("div", {
|
|
1201
1201
|
key: 0,
|
|
1202
1202
|
class: b(["fixed right-0 z-50 flex items-center p-4 m-5 mb-4 rounded-lg shadow-lg", a.alertClasses]),
|
|
1203
1203
|
role: "alert"
|
|
1204
1204
|
}, [
|
|
1205
|
-
$r,
|
|
1206
1205
|
Cr,
|
|
1207
|
-
|
|
1206
|
+
Sr,
|
|
1207
|
+
s("div", Dr, h(e.notification.message), 1),
|
|
1208
1208
|
s("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
1210
|
onClick: t[0] || (t[0] = (...i) => a.dismiss && a.dismiss(...i)),
|
|
1211
1211
|
class: b(["inline-flex items-center justify-center w-6 h-6 p-1 -mx-1 -my-1 rounded-lg ms-auto focus:ring-2 hover:bg-opacity-50", a.buttonClasses]),
|
|
1212
1212
|
"aria-label": "Close"
|
|
1213
|
-
},
|
|
1213
|
+
}, Er, 2)
|
|
1214
1214
|
], 2)) : f("", !0);
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const zd = /* @__PURE__ */ k($r, [["render", Ar]]), jr = {
|
|
1217
1217
|
components: {},
|
|
1218
1218
|
props: {
|
|
1219
1219
|
field_name: {
|
|
@@ -1248,9 +1248,9 @@ const qd = /* @__PURE__ */ k(kr, [["render", Er]]), Ar = {
|
|
|
1248
1248
|
},
|
|
1249
1249
|
mounted() {
|
|
1250
1250
|
}
|
|
1251
|
-
},
|
|
1252
|
-
function
|
|
1253
|
-
return d(), u("ul",
|
|
1251
|
+
}, Tr = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, Ir = ["name", "value", "id", "checked"], Mr = ["for"];
|
|
1252
|
+
function Nr(e, t, r, n, o, a) {
|
|
1253
|
+
return d(), u("ul", Tr, [
|
|
1254
1254
|
(d(!0), u(v, null, $(o.locals, (i, l) => (d(), u("li", null, [
|
|
1255
1255
|
s("input", {
|
|
1256
1256
|
type: "radio",
|
|
@@ -1260,7 +1260,7 @@ function Mr(e, t, r, n, o, a) {
|
|
|
1260
1260
|
id: i + "_" + r.field_name,
|
|
1261
1261
|
autocomplete: "off",
|
|
1262
1262
|
checked: i === o.default_language
|
|
1263
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, Ir),
|
|
1264
1264
|
s("label", {
|
|
1265
1265
|
for: i + "_" + r.field_name,
|
|
1266
1266
|
class: b([{
|
|
@@ -1268,14 +1268,14 @@ function Mr(e, t, r, n, o, a) {
|
|
|
1268
1268
|
"border md:!rounded-e-lg": l === o.locals.length - 1,
|
|
1269
1269
|
"border-t border-b": l !== 0 && l !== o.locals.length - 1
|
|
1270
1270
|
}, "w-full p-1 font-bold text-center text-gray-500 uppercase bg-white border-gray-200 rounded-lg cursor-pointer md:rounded-none dark:hover:text-gray-300 dark:border-gray-700 dark:peer-checked:text-blue-500 peer-checked:border-blue-600 peer-checked:text-blue-600 hover:text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:bg-gray-800 dark:hover:bg-gray-700"])
|
|
1271
|
-
},
|
|
1271
|
+
}, h(i), 11, Mr)
|
|
1272
1272
|
]))), 256))
|
|
1273
1273
|
]);
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const Hd = /* @__PURE__ */ k(jr, [["render", Nr]]), Lr = { class: "bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark" }, Vr = { class: "px-3 py-4 border-b border-stroke dark:border-strokedark" }, Br = { class: "font-semibold text-black dark:text-white" }, Gr = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "p-6"
|
|
1278
|
-
},
|
|
1278
|
+
}, Zd = {
|
|
1279
1279
|
__name: "GlCard",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
class: {
|
|
@@ -1288,19 +1288,19 @@ const zd = /* @__PURE__ */ k(Ar, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1288
1288
|
return (n, o) => (d(), u("div", {
|
|
1289
1289
|
class: b(["flex flex-col gap-9", r.value])
|
|
1290
1290
|
}, [
|
|
1291
|
-
s("div",
|
|
1291
|
+
s("div", Lr, [
|
|
1292
1292
|
s("div", Vr, [
|
|
1293
|
-
s("h3",
|
|
1293
|
+
s("h3", Br, [
|
|
1294
1294
|
T(n.$slots, "header")
|
|
1295
1295
|
])
|
|
1296
1296
|
]),
|
|
1297
|
-
n.$slots.body ? (d(), u("div",
|
|
1297
|
+
n.$slots.body ? (d(), u("div", Gr, [
|
|
1298
1298
|
T(n.$slots, "body")
|
|
1299
1299
|
])) : f("", !0)
|
|
1300
1300
|
])
|
|
1301
1301
|
], 2));
|
|
1302
1302
|
}
|
|
1303
|
-
},
|
|
1303
|
+
}, Fr = {
|
|
1304
1304
|
name: "MultiSelectDropdown",
|
|
1305
1305
|
template: "MultiSelectDropdown",
|
|
1306
1306
|
props: {
|
|
@@ -1457,16 +1457,16 @@ const zd = /* @__PURE__ */ k(Ar, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1457
1457
|
this.selectedIds = e.map((t) => t.id), this.$emit("update:modelValue", this.selectedIds), this.$emit("selected", this.selectedIds), this.$emit("selectionChanged", this.selectedIds);
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
|
-
},
|
|
1460
|
+
}, Rr = { class: "font-bold ptext-lg dark:text-white" }, Ur = { class: "mt-3 mb-4" }, qr = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, zr = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Hr = ["name", "value"], Zr = {
|
|
1461
1461
|
key: 0,
|
|
1462
1462
|
class: "dropdown"
|
|
1463
|
-
},
|
|
1463
|
+
}, Kr = {
|
|
1464
1464
|
class: "inline-flex ml-2 rounded-md shadow-sm",
|
|
1465
1465
|
role: "group"
|
|
1466
|
-
},
|
|
1466
|
+
}, Wr = { class: "border border-gray-200 rounded-lg focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, Yr = { class: "relative" }, Xr = ["onClick"], Jr = { class: "text-gray-700 bg-white dark:border-strokedark dark:bg-boxdark dark:text-gray-200 !border-b !border-t-0 !border-r !border-l absolute w-full z-[999999999] showOptions" }, Qr = { class: "p-1" }, es = /* @__PURE__ */ s("label", {
|
|
1467
1467
|
for: "default-search",
|
|
1468
1468
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
1469
|
-
}, "Search", -1),
|
|
1469
|
+
}, "Search", -1), ts = { class: "relative" }, rs = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
1470
1470
|
/* @__PURE__ */ s("svg", {
|
|
1471
1471
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
1472
1472
|
"aria-hidden": "true",
|
|
@@ -1482,18 +1482,18 @@ const zd = /* @__PURE__ */ k(Ar, [["render", Mr]]), Nr = { class: "bg-white bord
|
|
|
1482
1482
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
1483
1483
|
})
|
|
1484
1484
|
])
|
|
1485
|
-
], -1),
|
|
1486
|
-
function
|
|
1485
|
+
], -1), ss = ["id"], as = { class: "overflow-y-auto max-h-64" }, ns = ["onClick", "onMousedown", "id"];
|
|
1486
|
+
function os(e, t, r, n, o, a) {
|
|
1487
1487
|
return d(), u(v, null, [
|
|
1488
1488
|
r.show ? (d(), u("div", {
|
|
1489
1489
|
key: 0,
|
|
1490
1490
|
class: b(r.field_name)
|
|
1491
1491
|
}, [
|
|
1492
|
-
s("h3",
|
|
1493
|
-
s("p",
|
|
1494
|
-
(d(!0), u(v, null, $(o.selected, (i, l) => (d(), u("span",
|
|
1492
|
+
s("h3", Rr, h(r.label_name), 1),
|
|
1493
|
+
s("p", Ur, [
|
|
1494
|
+
(d(!0), u(v, null, $(o.selected, (i, l) => (d(), u("span", qr, h(i.name), 1))), 256))
|
|
1495
1495
|
]),
|
|
1496
|
-
|
|
1496
|
+
zr
|
|
1497
1497
|
], 2)) : f("", !0),
|
|
1498
1498
|
r.show ? f("", !0) : (d(), u("div", {
|
|
1499
1499
|
key: 1,
|
|
@@ -1504,16 +1504,16 @@ function ns(e, t, r, n, o, a) {
|
|
|
1504
1504
|
name: r.field_name + "[]",
|
|
1505
1505
|
key: l,
|
|
1506
1506
|
value: i
|
|
1507
|
-
}, null, 8,
|
|
1508
|
-
r.options ? (d(), u("div",
|
|
1507
|
+
}, null, 8, Hr))), 128)),
|
|
1508
|
+
r.options ? (d(), u("div", Zr, [
|
|
1509
1509
|
s("label", {
|
|
1510
1510
|
class: b({
|
|
1511
1511
|
"gl-label-form": r.error_message == "",
|
|
1512
1512
|
"gl-label-form-invalid": r.error_message !== "",
|
|
1513
1513
|
required: r.is_required
|
|
1514
1514
|
})
|
|
1515
|
-
},
|
|
1516
|
-
s("div",
|
|
1515
|
+
}, h(r.label_name), 3),
|
|
1516
|
+
s("div", Kr, [
|
|
1517
1517
|
s("button", {
|
|
1518
1518
|
onClick: t[0] || (t[0] = (...i) => a.selectAll && a.selectAll(...i)),
|
|
1519
1519
|
type: "button",
|
|
@@ -1525,8 +1525,8 @@ function ns(e, t, r, n, o, a) {
|
|
|
1525
1525
|
class: "px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 rounded-e-md hover:bg-gray-900 hover:text-white focus:z-10 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700"
|
|
1526
1526
|
}, " Deselect all ")
|
|
1527
1527
|
]),
|
|
1528
|
-
s("div",
|
|
1529
|
-
s("div",
|
|
1528
|
+
s("div", Wr, [
|
|
1529
|
+
s("div", Yr, [
|
|
1530
1530
|
s("div", {
|
|
1531
1531
|
class: "flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",
|
|
1532
1532
|
onClick: t[2] || (t[2] = (i) => a.showOptions())
|
|
@@ -1535,11 +1535,11 @@ function ns(e, t, r, n, o, a) {
|
|
|
1535
1535
|
key: l,
|
|
1536
1536
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded pointer-events-none dark:bg-blue-900 dark:text-blue-300"
|
|
1537
1537
|
}, [
|
|
1538
|
-
w(
|
|
1538
|
+
w(h(i.name) + " ", 1),
|
|
1539
1539
|
s("i", {
|
|
1540
1540
|
onClick: N((c) => a.clearOption(i), ["stop"]),
|
|
1541
1541
|
class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400 fas fa-times"
|
|
1542
|
-
}, null, 8,
|
|
1542
|
+
}, null, 8, Xr)
|
|
1543
1543
|
]))), 128))
|
|
1544
1544
|
]),
|
|
1545
1545
|
s("i", {
|
|
@@ -1547,12 +1547,12 @@ function ns(e, t, r, n, o, a) {
|
|
|
1547
1547
|
style: { top: "11px" }
|
|
1548
1548
|
}, null, 2)
|
|
1549
1549
|
]),
|
|
1550
|
-
|
|
1551
|
-
s("div",
|
|
1552
|
-
|
|
1553
|
-
s("div",
|
|
1554
|
-
|
|
1555
|
-
|
|
1550
|
+
D(s("div", Jr, [
|
|
1551
|
+
s("div", Qr, [
|
|
1552
|
+
es,
|
|
1553
|
+
s("div", ts, [
|
|
1554
|
+
rs,
|
|
1555
|
+
D(s("input", {
|
|
1556
1556
|
type: "search",
|
|
1557
1557
|
"onUpdate:modelValue": t[3] || (t[3] = (i) => o.searchFilter = i),
|
|
1558
1558
|
id: r.field_name + "search",
|
|
@@ -1561,12 +1561,12 @@ function ns(e, t, r, n, o, a) {
|
|
|
1561
1561
|
autocomplete: "off",
|
|
1562
1562
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
1563
1563
|
placeholder: "Search ..."
|
|
1564
|
-
}, null, 40,
|
|
1565
|
-
[
|
|
1564
|
+
}, null, 40, ss), [
|
|
1565
|
+
[L, o.searchFilter]
|
|
1566
1566
|
])
|
|
1567
1567
|
])
|
|
1568
1568
|
]),
|
|
1569
|
-
s("div",
|
|
1569
|
+
s("div", as, [
|
|
1570
1570
|
(d(!0), u(v, null, $(a.filteredOptions, (i, l) => (d(), u("div", {
|
|
1571
1571
|
class: b([
|
|
1572
1572
|
"block px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
@@ -1576,7 +1576,7 @@ function ns(e, t, r, n, o, a) {
|
|
|
1576
1576
|
onMousedown: (c) => a.selectOption(i),
|
|
1577
1577
|
key: l,
|
|
1578
1578
|
id: l + 1
|
|
1579
|
-
},
|
|
1579
|
+
}, h(i.name || i.id || "-"), 43, ns))), 128))
|
|
1580
1580
|
])
|
|
1581
1581
|
], 512), [
|
|
1582
1582
|
[F, o.optionsShown]
|
|
@@ -1586,7 +1586,7 @@ function ns(e, t, r, n, o, a) {
|
|
|
1586
1586
|
], 2))
|
|
1587
1587
|
], 64);
|
|
1588
1588
|
}
|
|
1589
|
-
const
|
|
1589
|
+
const Kd = /* @__PURE__ */ k(Fr, [["render", os]]), ls = {
|
|
1590
1590
|
props: {
|
|
1591
1591
|
button_type: {
|
|
1592
1592
|
type: String,
|
|
@@ -1642,7 +1642,7 @@ const Zd = /* @__PURE__ */ k(Gr, [["render", ns]]), os = {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
},
|
|
1644
1644
|
methods: {}
|
|
1645
|
-
},
|
|
1645
|
+
}, is = /* @__PURE__ */ s("svg", {
|
|
1646
1646
|
"aria-hidden": "true",
|
|
1647
1647
|
role: "status",
|
|
1648
1648
|
class: "inline w-4 h-4 me-3 animate-spin",
|
|
@@ -1659,14 +1659,14 @@ const Zd = /* @__PURE__ */ k(Gr, [["render", ns]]), os = {
|
|
|
1659
1659
|
fill: "#1C64F2"
|
|
1660
1660
|
})
|
|
1661
1661
|
], -1);
|
|
1662
|
-
function
|
|
1662
|
+
function ds(e, t, r, n, o, a) {
|
|
1663
1663
|
return r.is_loading ? (d(), K(oe("button"), {
|
|
1664
1664
|
key: 1,
|
|
1665
1665
|
disabled: "",
|
|
1666
1666
|
class: b(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`)
|
|
1667
1667
|
}, {
|
|
1668
1668
|
default: J(() => [
|
|
1669
|
-
|
|
1669
|
+
is,
|
|
1670
1670
|
w(" Loading... ")
|
|
1671
1671
|
]),
|
|
1672
1672
|
_: 1
|
|
@@ -1688,7 +1688,7 @@ function is(e, t, r, n, o, a) {
|
|
|
1688
1688
|
_: 3
|
|
1689
1689
|
}, 16, ["type", "disabled", "href", "class"]));
|
|
1690
1690
|
}
|
|
1691
|
-
const
|
|
1691
|
+
const Wd = /* @__PURE__ */ k(ls, [["render", ds]]), us = { class: "font-bold ptext-lg dark:text-white" }, cs = ["name", "id"], fs = ["id"], gs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), hs = ["for"], ms = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), bs = ["name", "id"], ps = ["required", "name", "id", "type"], ys = { class: "gl-span-form-error" }, _s = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Yd = {
|
|
1692
1692
|
__name: "GlTextareaTranslate",
|
|
1693
1693
|
props: {
|
|
1694
1694
|
is_required: {
|
|
@@ -1762,23 +1762,23 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1762
1762
|
key: 0,
|
|
1763
1763
|
class: b(e.field_name)
|
|
1764
1764
|
}, [
|
|
1765
|
-
s("h3",
|
|
1766
|
-
|
|
1765
|
+
s("h3", us, h(e.label_name), 1),
|
|
1766
|
+
D(s("input", {
|
|
1767
1767
|
type: "hidden",
|
|
1768
1768
|
"data-i18n": "true",
|
|
1769
1769
|
name: e.field_name + "_i18n",
|
|
1770
1770
|
id: e.field_name + "_i18n",
|
|
1771
1771
|
ref_key: "input_translate",
|
|
1772
1772
|
ref: i,
|
|
1773
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1774
|
-
}, null, 8,
|
|
1775
|
-
[
|
|
1773
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => l.inputTranslateValue = g)
|
|
1774
|
+
}, null, 8, cs), [
|
|
1775
|
+
[L, l.inputTranslateValue]
|
|
1776
1776
|
]),
|
|
1777
1777
|
s("p", {
|
|
1778
1778
|
id: e.field_name,
|
|
1779
1779
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1780
|
-
},
|
|
1781
|
-
|
|
1780
|
+
}, h(e.model_value), 9, fs),
|
|
1781
|
+
gs
|
|
1782
1782
|
], 2)) : f("", !0),
|
|
1783
1783
|
e.show ? f("", !0) : (d(), u("div", {
|
|
1784
1784
|
key: 1,
|
|
@@ -1791,18 +1791,18 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1791
1791
|
required: e.is_required
|
|
1792
1792
|
}),
|
|
1793
1793
|
for: e.field_name
|
|
1794
|
-
},
|
|
1795
|
-
|
|
1794
|
+
}, h(e.label_name), 11, hs),
|
|
1795
|
+
ms,
|
|
1796
1796
|
s("input", {
|
|
1797
1797
|
class: "mb-4",
|
|
1798
1798
|
type: "hidden",
|
|
1799
1799
|
"data-i18n": "true",
|
|
1800
1800
|
name: e.field_name + "_i18n",
|
|
1801
1801
|
id: e.field_name + "_i18n",
|
|
1802
|
-
onInput: c[1] || (c[1] = (
|
|
1802
|
+
onInput: c[1] || (c[1] = (g) => l.$emit("update:modelValueTranslate", g.target.value)),
|
|
1803
1803
|
ref_key: "input_translate",
|
|
1804
1804
|
ref: i
|
|
1805
|
-
}, null, 40,
|
|
1805
|
+
}, null, 40, bs),
|
|
1806
1806
|
s("textarea", {
|
|
1807
1807
|
required: e.is_required,
|
|
1808
1808
|
name: e.field_name,
|
|
@@ -1812,19 +1812,19 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1812
1812
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1813
1813
|
}),
|
|
1814
1814
|
type: e.type,
|
|
1815
|
-
onInput: c[2] || (c[2] = (
|
|
1816
|
-
onKeydown: c[3] || (c[3] = (
|
|
1815
|
+
onInput: c[2] || (c[2] = (g) => l.$emit("update:modelValue", g.target.value)),
|
|
1816
|
+
onKeydown: c[3] || (c[3] = (g) => l.$emit("keydown", g)),
|
|
1817
1817
|
ref_key: "input",
|
|
1818
1818
|
ref: a,
|
|
1819
1819
|
rows: "4"
|
|
1820
1820
|
}, `
|
|
1821
|
-
`, 42,
|
|
1822
|
-
s("span",
|
|
1823
|
-
s("small",
|
|
1821
|
+
`, 42, ps),
|
|
1822
|
+
s("span", ys, h(e.error_message), 1),
|
|
1823
|
+
s("small", _s, h(e.description), 1)
|
|
1824
1824
|
], 2))
|
|
1825
1825
|
], 64));
|
|
1826
1826
|
}
|
|
1827
|
-
},
|
|
1827
|
+
}, vs = { class: "font-bold ptext-lg dark:text-white" }, xs = ["name", "id"], ws = ["id"], ks = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), $s = ["for"], Cs = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), Ss = ["name", "id"], Ds = ["name", "id", "type"], Os = { class: "gl-span-form-error" }, Ps = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Xd = {
|
|
1828
1828
|
__name: "GlTinymceTranslate",
|
|
1829
1829
|
props: {
|
|
1830
1830
|
is_required: {
|
|
@@ -1902,23 +1902,23 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1902
1902
|
key: 0,
|
|
1903
1903
|
class: b(e.field_name)
|
|
1904
1904
|
}, [
|
|
1905
|
-
s("h3",
|
|
1906
|
-
|
|
1905
|
+
s("h3", vs, h(e.label_name), 1),
|
|
1906
|
+
D(s("input", {
|
|
1907
1907
|
type: "hidden",
|
|
1908
1908
|
"data-i18n": "true",
|
|
1909
1909
|
name: e.field_name + "_i18n",
|
|
1910
1910
|
id: e.field_name + "_i18n",
|
|
1911
1911
|
ref_key: "input_translate",
|
|
1912
1912
|
ref: i,
|
|
1913
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1914
|
-
}, null, 8,
|
|
1915
|
-
[
|
|
1913
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => l.inputTranslateValue = g)
|
|
1914
|
+
}, null, 8, xs), [
|
|
1915
|
+
[L, l.inputTranslateValue]
|
|
1916
1916
|
]),
|
|
1917
1917
|
s("p", {
|
|
1918
1918
|
id: e.field_name,
|
|
1919
1919
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1920
|
-
},
|
|
1921
|
-
|
|
1920
|
+
}, h(e.model_value), 9, ws),
|
|
1921
|
+
ks
|
|
1922
1922
|
], 2)) : f("", !0),
|
|
1923
1923
|
e.show ? f("", !0) : (d(), u("div", {
|
|
1924
1924
|
key: 1,
|
|
@@ -1931,18 +1931,18 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1931
1931
|
required: e.is_required
|
|
1932
1932
|
}),
|
|
1933
1933
|
for: e.field_name
|
|
1934
|
-
},
|
|
1935
|
-
|
|
1934
|
+
}, h(e.label_name), 11, $s),
|
|
1935
|
+
Cs,
|
|
1936
1936
|
s("input", {
|
|
1937
1937
|
class: "mb-4",
|
|
1938
1938
|
type: "hidden",
|
|
1939
1939
|
"data-i18n": "true",
|
|
1940
1940
|
name: e.field_name + "_i18n",
|
|
1941
1941
|
id: e.field_name + "_i18n",
|
|
1942
|
-
onInput: c[1] || (c[1] = (
|
|
1942
|
+
onInput: c[1] || (c[1] = (g) => l.$emit("update:modelValueTranslate", g.target.value)),
|
|
1943
1943
|
ref_key: "input_translate",
|
|
1944
1944
|
ref: i
|
|
1945
|
-
}, null, 40,
|
|
1945
|
+
}, null, 40, Ss),
|
|
1946
1946
|
s("textarea", {
|
|
1947
1947
|
name: e.field_name,
|
|
1948
1948
|
id: e.field_name,
|
|
@@ -1951,19 +1951,19 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
1951
1951
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1952
1952
|
}]),
|
|
1953
1953
|
type: e.type,
|
|
1954
|
-
onInput: c[2] || (c[2] = (
|
|
1955
|
-
onKeydown: c[3] || (c[3] = (
|
|
1954
|
+
onInput: c[2] || (c[2] = (g) => l.$emit("update:modelValue", g.target.value)),
|
|
1955
|
+
onKeydown: c[3] || (c[3] = (g) => l.$emit("keydown", g)),
|
|
1956
1956
|
ref_key: "input",
|
|
1957
1957
|
ref: a,
|
|
1958
1958
|
rows: "4"
|
|
1959
1959
|
}, `
|
|
1960
|
-
`, 42,
|
|
1961
|
-
s("span",
|
|
1962
|
-
s("small",
|
|
1960
|
+
`, 42, Ds),
|
|
1961
|
+
s("span", Os, h(e.error_message), 1),
|
|
1962
|
+
s("small", Ps, h(e.description), 1)
|
|
1963
1963
|
], 2))
|
|
1964
1964
|
], 64));
|
|
1965
1965
|
}
|
|
1966
|
-
},
|
|
1966
|
+
}, Es = { class: "font-bold ptext-lg dark:text-white" }, As = ["name", "id"], js = ["id"], Ts = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Is = ["for"], Ms = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), Ns = ["name", "id"], Ls = ["required", "name", "id", "type"], Vs = { class: "gl-span-form-error" }, Bs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Jd = {
|
|
1967
1967
|
__name: "GlTextTranslate",
|
|
1968
1968
|
props: {
|
|
1969
1969
|
is_required: {
|
|
@@ -2037,22 +2037,22 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2037
2037
|
key: 0,
|
|
2038
2038
|
class: b(e.field_name)
|
|
2039
2039
|
}, [
|
|
2040
|
-
s("h3",
|
|
2041
|
-
|
|
2040
|
+
s("h3", Es, h(e.label_name), 1),
|
|
2041
|
+
D(s("input", {
|
|
2042
2042
|
type: "hidden",
|
|
2043
2043
|
"data-i18n": "true",
|
|
2044
2044
|
name: e.field_name + "_i18n",
|
|
2045
2045
|
id: e.field_name + "_i18n",
|
|
2046
2046
|
ref: "input_translate_s",
|
|
2047
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2048
|
-
}, null, 8,
|
|
2049
|
-
[
|
|
2047
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => l.inputTranslateValue = g)
|
|
2048
|
+
}, null, 8, As), [
|
|
2049
|
+
[L, l.inputTranslateValue]
|
|
2050
2050
|
]),
|
|
2051
2051
|
s("p", {
|
|
2052
2052
|
id: e.field_name,
|
|
2053
2053
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
2054
|
-
},
|
|
2055
|
-
|
|
2054
|
+
}, h(e.model_value), 9, js),
|
|
2055
|
+
Ts
|
|
2056
2056
|
], 2)) : f("", !0),
|
|
2057
2057
|
e.show ? f("", !0) : (d(), u("div", {
|
|
2058
2058
|
key: 1,
|
|
@@ -2065,18 +2065,18 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2065
2065
|
required: e.is_required
|
|
2066
2066
|
}),
|
|
2067
2067
|
for: e.field_name
|
|
2068
|
-
},
|
|
2069
|
-
|
|
2068
|
+
}, h(e.label_name), 11, Is),
|
|
2069
|
+
Ms,
|
|
2070
2070
|
s("input", {
|
|
2071
2071
|
class: "mb-4",
|
|
2072
2072
|
type: "hidden",
|
|
2073
2073
|
"data-i18n": "true",
|
|
2074
2074
|
name: e.field_name + "_i18n",
|
|
2075
2075
|
id: e.field_name + "_i18n",
|
|
2076
|
-
onInput: c[1] || (c[1] = (
|
|
2076
|
+
onInput: c[1] || (c[1] = (g) => l.$emit("update:modelValueTranslate", g.target.value)),
|
|
2077
2077
|
ref_key: "input_translate",
|
|
2078
2078
|
ref: i
|
|
2079
|
-
}, null, 40,
|
|
2079
|
+
}, null, 40, Ns),
|
|
2080
2080
|
s("input", {
|
|
2081
2081
|
required: e.is_required,
|
|
2082
2082
|
name: e.field_name,
|
|
@@ -2086,17 +2086,17 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2086
2086
|
" gl-input-form-invalid form-input-translation mt-2 ": e.error_message !== ""
|
|
2087
2087
|
}),
|
|
2088
2088
|
type: e.type,
|
|
2089
|
-
onInput: c[2] || (c[2] = (
|
|
2090
|
-
onKeydown: c[3] || (c[3] = (
|
|
2089
|
+
onInput: c[2] || (c[2] = (g) => l.$emit("update:modelValue", g.target.value)),
|
|
2090
|
+
onKeydown: c[3] || (c[3] = (g) => l.$emit("keydown", g)),
|
|
2091
2091
|
ref_key: "input",
|
|
2092
2092
|
ref: a
|
|
2093
|
-
}, null, 42,
|
|
2094
|
-
s("span", Vs,
|
|
2095
|
-
s("small",
|
|
2093
|
+
}, null, 42, Ls),
|
|
2094
|
+
s("span", Vs, h(e.error_message), 1),
|
|
2095
|
+
s("small", Bs, h(e.description), 1)
|
|
2096
2096
|
], 2))
|
|
2097
2097
|
], 64));
|
|
2098
2098
|
}
|
|
2099
|
-
},
|
|
2099
|
+
}, Gs = { class: "font-bold ptext-lg dark:text-white" }, Fs = { class: "mb-4 text-base text-gray-900 dark:text-white" }, Rs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Us = ["for"], qs = ["required", "name", "id", "type", "placeholder"], zs = { class: "gl-span-form-error" }, Hs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Qd = {
|
|
2100
2100
|
__name: "GlTextInput",
|
|
2101
2101
|
props: {
|
|
2102
2102
|
is_required: {
|
|
@@ -2159,9 +2159,9 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2159
2159
|
key: 0,
|
|
2160
2160
|
class: b(e.field_name)
|
|
2161
2161
|
}, [
|
|
2162
|
-
s("h3",
|
|
2163
|
-
s("p",
|
|
2164
|
-
|
|
2162
|
+
s("h3", Gs, h(e.label_name), 1),
|
|
2163
|
+
s("p", Fs, h(e.type == "password" ? e.modelValue.replace(/./g, "*") : e.modelValue), 1),
|
|
2164
|
+
Rs
|
|
2165
2165
|
], 2)) : f("", !0),
|
|
2166
2166
|
e.show ? f("", !0) : (d(), u("div", {
|
|
2167
2167
|
key: 1,
|
|
@@ -2174,8 +2174,8 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2174
2174
|
required: e.is_required
|
|
2175
2175
|
}),
|
|
2176
2176
|
for: e.field_name
|
|
2177
|
-
},
|
|
2178
|
-
|
|
2177
|
+
}, h(e.label_name), 11, Us),
|
|
2178
|
+
D(s("input", {
|
|
2179
2179
|
required: e.is_required,
|
|
2180
2180
|
name: e.field_name,
|
|
2181
2181
|
id: e.field_name,
|
|
@@ -2184,33 +2184,33 @@ const Kd = /* @__PURE__ */ k(os, [["render", is]]), ds = { class: "font-bold pte
|
|
|
2184
2184
|
"gl-input-form-invalid": e.error_message !== ""
|
|
2185
2185
|
}),
|
|
2186
2186
|
type: e.type,
|
|
2187
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2188
|
-
onKeydown: c[1] || (c[1] = (
|
|
2187
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => i.value = g),
|
|
2188
|
+
onKeydown: c[1] || (c[1] = (g) => l.$emit("keydown", g)),
|
|
2189
2189
|
ref_key: "input",
|
|
2190
2190
|
ref: a,
|
|
2191
2191
|
placeholder: e.placeholder
|
|
2192
|
-
}, null, 42,
|
|
2193
|
-
[
|
|
2192
|
+
}, null, 42, qs), [
|
|
2193
|
+
[rt, i.value]
|
|
2194
2194
|
]),
|
|
2195
|
-
s("span",
|
|
2196
|
-
s("small",
|
|
2195
|
+
s("span", zs, h(e.error_message), 1),
|
|
2196
|
+
s("small", Hs, h(e.description), 1)
|
|
2197
2197
|
], 2))
|
|
2198
2198
|
], 64));
|
|
2199
2199
|
}
|
|
2200
|
-
},
|
|
2200
|
+
}, Zs = {
|
|
2201
2201
|
setup(e, { slots: t }) {
|
|
2202
2202
|
const r = S(t.default().map((o) => o.props)), n = S(r.value[0].title);
|
|
2203
|
-
return
|
|
2203
|
+
return st("selectedTitle", n), {
|
|
2204
2204
|
tabs: r,
|
|
2205
2205
|
selectedTitle: n
|
|
2206
2206
|
};
|
|
2207
2207
|
}
|
|
2208
|
-
},
|
|
2209
|
-
function
|
|
2208
|
+
}, Ks = { class: "flex flex-wrap" }, Ws = { class: "w-full" }, Ys = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, Xs = ["onClick"], Js = { class: "relative flex flex-col w-full min-w-0 mb-6 break-words bg-white rounded shadow-lg dark:border-strokedark dark:bg-boxdark" }, Qs = { class: "flex-auto px-4 py-5" }, ea = { class: "tab-content tab-space" };
|
|
2209
|
+
function ta(e, t, r, n, o, a) {
|
|
2210
2210
|
return d(), u(v, null, [
|
|
2211
|
-
s("div",
|
|
2212
|
-
s("div",
|
|
2213
|
-
s("ul",
|
|
2211
|
+
s("div", Ks, [
|
|
2212
|
+
s("div", Ws, [
|
|
2213
|
+
s("ul", Ys, [
|
|
2214
2214
|
(d(!0), u(v, null, $(n.tabs, (i) => (d(), u("li", {
|
|
2215
2215
|
key: i.title,
|
|
2216
2216
|
onClick: (l) => n.selectedTitle = i.title,
|
|
@@ -2222,37 +2222,37 @@ function ea(e, t, r, n, o, a) {
|
|
|
2222
2222
|
s("i", {
|
|
2223
2223
|
class: b([i.icon, "mr-1 text-base"])
|
|
2224
2224
|
}, null, 2),
|
|
2225
|
-
w(" " +
|
|
2225
|
+
w(" " + h(i.title), 1)
|
|
2226
2226
|
], 2)
|
|
2227
|
-
], 8,
|
|
2227
|
+
], 8, Xs))), 128))
|
|
2228
2228
|
])
|
|
2229
2229
|
])
|
|
2230
2230
|
]),
|
|
2231
|
-
s("div",
|
|
2232
|
-
s("div",
|
|
2233
|
-
s("div",
|
|
2231
|
+
s("div", Js, [
|
|
2232
|
+
s("div", Qs, [
|
|
2233
|
+
s("div", ea, [
|
|
2234
2234
|
T(e.$slots, "default")
|
|
2235
2235
|
])
|
|
2236
2236
|
])
|
|
2237
2237
|
])
|
|
2238
2238
|
], 64);
|
|
2239
2239
|
}
|
|
2240
|
-
const
|
|
2240
|
+
const eu = /* @__PURE__ */ k(Zs, [["render", ta]]), ra = {
|
|
2241
2241
|
props: ["title"],
|
|
2242
2242
|
setup() {
|
|
2243
2243
|
return {
|
|
2244
2244
|
selectedTitle: Ce("selectedTitle")
|
|
2245
2245
|
};
|
|
2246
2246
|
}
|
|
2247
|
-
},
|
|
2248
|
-
function
|
|
2249
|
-
return
|
|
2247
|
+
}, sa = { class: "block" };
|
|
2248
|
+
function aa(e, t, r, n, o, a) {
|
|
2249
|
+
return D((d(), u("div", sa, [
|
|
2250
2250
|
T(e.$slots, "default")
|
|
2251
2251
|
], 512)), [
|
|
2252
2252
|
[F, r.title == n.selectedTitle]
|
|
2253
2253
|
]);
|
|
2254
2254
|
}
|
|
2255
|
-
const
|
|
2255
|
+
const tu = /* @__PURE__ */ k(ra, [["render", aa]]), na = {
|
|
2256
2256
|
props: {
|
|
2257
2257
|
elements_to_show_prop: {
|
|
2258
2258
|
type: Number,
|
|
@@ -2314,7 +2314,7 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2314
2314
|
const r = (o) => {
|
|
2315
2315
|
t.style.cursor = "grabbing";
|
|
2316
2316
|
const a = (l) => {
|
|
2317
|
-
const c = l.clientX || l.touches && l.touches[0] && l.touches[0].clientX,
|
|
2317
|
+
const c = l.clientX || l.touches && l.touches[0] && l.touches[0].clientX, g = l.clientY || l.touches && l.touches[0] && l.touches[0].clientY, m = c - e.initialX, y = g - e.initialY;
|
|
2318
2318
|
Math.abs(m) > Math.abs(y) ? (l.preventDefault(), Math.abs(m) >= 70 && (m < 0 ? e.next() : e.prev(), e.initialX = c)) : t.style.cursor = "grab", Math.abs(y) > Math.abs(m) && (t.style.cursor = "grab");
|
|
2319
2319
|
}, i = () => {
|
|
2320
2320
|
document.removeEventListener("mousemove", a), document.removeEventListener("touchmove", a), document.removeEventListener("mouseup", i), document.removeEventListener("touchend", i), t.style.cursor = "grab";
|
|
@@ -2351,10 +2351,10 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2351
2351
|
this.direction_property == "rtl" ? t.style.marginRight = -this.dotsNavigation[e - 1] + "px" : t.style.marginLeft = -this.dotsNavigation[e - 1] + "px", this.currentDot = e;
|
|
2352
2352
|
}
|
|
2353
2353
|
}
|
|
2354
|
-
}, P = (e) => (
|
|
2354
|
+
}, P = (e) => (at("data-v-a94f16a9"), e = e(), nt(), e), oa = ["id"], la = {
|
|
2355
2355
|
key: 0,
|
|
2356
2356
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2357
|
-
},
|
|
2357
|
+
}, ia = { class: "w-full" }, da = {
|
|
2358
2358
|
key: 0,
|
|
2359
2359
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2360
2360
|
class: "w-6 h-6",
|
|
@@ -2362,13 +2362,13 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2362
2362
|
viewBox: "0 0 24 24",
|
|
2363
2363
|
stroke: "currentColor",
|
|
2364
2364
|
"stroke-width": "2"
|
|
2365
|
-
},
|
|
2365
|
+
}, ua = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2366
2366
|
"stroke-linecap": "round",
|
|
2367
2367
|
"stroke-linejoin": "round",
|
|
2368
2368
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2369
|
-
}, null, -1)),
|
|
2370
|
-
|
|
2371
|
-
],
|
|
2369
|
+
}, null, -1)), ca = [
|
|
2370
|
+
ua
|
|
2371
|
+
], fa = {
|
|
2372
2372
|
key: 1,
|
|
2373
2373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2374
2374
|
class: "w-6 h-6",
|
|
@@ -2376,13 +2376,13 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2376
2376
|
viewBox: "0 0 24 24",
|
|
2377
2377
|
stroke: "currentColor",
|
|
2378
2378
|
"stroke-width": "2"
|
|
2379
|
-
},
|
|
2379
|
+
}, ga = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2380
2380
|
"stroke-linecap": "round",
|
|
2381
2381
|
"stroke-linejoin": "round",
|
|
2382
2382
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2383
|
-
}, null, -1)),
|
|
2384
|
-
|
|
2385
|
-
],
|
|
2383
|
+
}, null, -1)), ha = [
|
|
2384
|
+
ga
|
|
2385
|
+
], ma = ["id"], ba = ["id"], pa = { class: "w-full" }, ya = {
|
|
2386
2386
|
key: 0,
|
|
2387
2387
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2388
2388
|
class: "w-6 h-6",
|
|
@@ -2390,13 +2390,13 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2390
2390
|
viewBox: "0 0 24 24",
|
|
2391
2391
|
stroke: "currentColor",
|
|
2392
2392
|
"stroke-width": "2"
|
|
2393
|
-
},
|
|
2393
|
+
}, _a = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2394
2394
|
"stroke-linecap": "round",
|
|
2395
2395
|
"stroke-linejoin": "round",
|
|
2396
2396
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2397
|
-
}, null, -1)),
|
|
2398
|
-
|
|
2399
|
-
],
|
|
2397
|
+
}, null, -1)), va = [
|
|
2398
|
+
_a
|
|
2399
|
+
], xa = {
|
|
2400
2400
|
key: 1,
|
|
2401
2401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2402
2402
|
class: "w-6 h-6",
|
|
@@ -2404,13 +2404,13 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2404
2404
|
viewBox: "0 0 24 24",
|
|
2405
2405
|
stroke: "currentColor",
|
|
2406
2406
|
"stroke-width": "2"
|
|
2407
|
-
},
|
|
2407
|
+
}, wa = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2408
2408
|
"stroke-linecap": "round",
|
|
2409
2409
|
"stroke-linejoin": "round",
|
|
2410
2410
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2411
|
-
}, null, -1)),
|
|
2412
|
-
|
|
2413
|
-
],
|
|
2411
|
+
}, null, -1)), ka = [
|
|
2412
|
+
wa
|
|
2413
|
+
], $a = { class: "w-full" }, Ca = {
|
|
2414
2414
|
key: 0,
|
|
2415
2415
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2416
2416
|
class: "w-6 h-6",
|
|
@@ -2418,13 +2418,13 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2418
2418
|
viewBox: "0 0 24 24",
|
|
2419
2419
|
stroke: "currentColor",
|
|
2420
2420
|
"stroke-width": "2"
|
|
2421
|
-
},
|
|
2421
|
+
}, Sa = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2422
2422
|
"stroke-linecap": "round",
|
|
2423
2423
|
"stroke-linejoin": "round",
|
|
2424
2424
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2425
|
-
}, null, -1)),
|
|
2426
|
-
|
|
2427
|
-
],
|
|
2425
|
+
}, null, -1)), Da = [
|
|
2426
|
+
Sa
|
|
2427
|
+
], Oa = {
|
|
2428
2428
|
key: 1,
|
|
2429
2429
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2430
2430
|
class: "w-6 h-6",
|
|
@@ -2432,23 +2432,23 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2432
2432
|
viewBox: "0 0 24 24",
|
|
2433
2433
|
stroke: "currentColor",
|
|
2434
2434
|
"stroke-width": "2"
|
|
2435
|
-
},
|
|
2435
|
+
}, Pa = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2436
2436
|
"stroke-linecap": "round",
|
|
2437
2437
|
"stroke-linejoin": "round",
|
|
2438
2438
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2439
|
-
}, null, -1)),
|
|
2440
|
-
|
|
2441
|
-
],
|
|
2442
|
-
|
|
2443
|
-
],
|
|
2439
|
+
}, null, -1)), Ea = [
|
|
2440
|
+
Pa
|
|
2441
|
+
], Aa = ["onClick"], ja = /* @__PURE__ */ P(() => /* @__PURE__ */ s("span", null, null, -1)), Ta = [
|
|
2442
|
+
ja
|
|
2443
|
+
], Ia = {
|
|
2444
2444
|
key: 1,
|
|
2445
2445
|
class: "flex justify-between pl-5 pr-5"
|
|
2446
|
-
},
|
|
2447
|
-
|
|
2446
|
+
}, Ma = ["onClick"], Na = /* @__PURE__ */ P(() => /* @__PURE__ */ s("span", null, null, -1)), La = [
|
|
2447
|
+
Na
|
|
2448
2448
|
], Va = {
|
|
2449
2449
|
key: 0,
|
|
2450
2450
|
class: "flex"
|
|
2451
|
-
},
|
|
2451
|
+
}, Ba = { class: "flex items-center" }, Ga = { class: "w-full" }, Fa = {
|
|
2452
2452
|
key: 0,
|
|
2453
2453
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2454
2454
|
class: "w-6 h-6",
|
|
@@ -2456,13 +2456,13 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2456
2456
|
viewBox: "0 0 24 24",
|
|
2457
2457
|
stroke: "currentColor",
|
|
2458
2458
|
"stroke-width": "2"
|
|
2459
|
-
},
|
|
2459
|
+
}, Ra = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2460
2460
|
"stroke-linecap": "round",
|
|
2461
2461
|
"stroke-linejoin": "round",
|
|
2462
2462
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2463
|
-
}, null, -1)),
|
|
2464
|
-
|
|
2465
|
-
],
|
|
2463
|
+
}, null, -1)), Ua = [
|
|
2464
|
+
Ra
|
|
2465
|
+
], qa = {
|
|
2466
2466
|
key: 1,
|
|
2467
2467
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2468
2468
|
class: "w-6 h-6",
|
|
@@ -2470,13 +2470,13 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2470
2470
|
viewBox: "0 0 24 24",
|
|
2471
2471
|
stroke: "currentColor",
|
|
2472
2472
|
"stroke-width": "2"
|
|
2473
|
-
},
|
|
2473
|
+
}, za = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2474
2474
|
"stroke-linecap": "round",
|
|
2475
2475
|
"stroke-linejoin": "round",
|
|
2476
2476
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2477
|
-
}, null, -1)),
|
|
2478
|
-
|
|
2479
|
-
],
|
|
2477
|
+
}, null, -1)), Ha = [
|
|
2478
|
+
za
|
|
2479
|
+
], Za = { class: "flex items-center" }, Ka = { class: "w-full" }, Wa = {
|
|
2480
2480
|
key: 0,
|
|
2481
2481
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2482
2482
|
class: "w-6 h-6",
|
|
@@ -2484,13 +2484,13 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2484
2484
|
viewBox: "0 0 24 24",
|
|
2485
2485
|
stroke: "currentColor",
|
|
2486
2486
|
"stroke-width": "2"
|
|
2487
|
-
},
|
|
2487
|
+
}, Ya = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2488
2488
|
"stroke-linecap": "round",
|
|
2489
2489
|
"stroke-linejoin": "round",
|
|
2490
2490
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2491
|
-
}, null, -1)),
|
|
2492
|
-
|
|
2493
|
-
],
|
|
2491
|
+
}, null, -1)), Xa = [
|
|
2492
|
+
Ya
|
|
2493
|
+
], Ja = {
|
|
2494
2494
|
key: 1,
|
|
2495
2495
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2496
2496
|
class: "w-6 h-6",
|
|
@@ -2498,16 +2498,16 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2498
2498
|
viewBox: "0 0 24 24",
|
|
2499
2499
|
stroke: "currentColor",
|
|
2500
2500
|
"stroke-width": "2"
|
|
2501
|
-
},
|
|
2501
|
+
}, Qa = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2502
2502
|
"stroke-linecap": "round",
|
|
2503
2503
|
"stroke-linejoin": "round",
|
|
2504
2504
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2505
|
-
}, null, -1)),
|
|
2506
|
-
|
|
2507
|
-
],
|
|
2505
|
+
}, null, -1)), en = [
|
|
2506
|
+
Qa
|
|
2507
|
+
], tn = {
|
|
2508
2508
|
key: 1,
|
|
2509
2509
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2510
|
-
},
|
|
2510
|
+
}, rn = { class: "w-full" }, sn = {
|
|
2511
2511
|
key: 0,
|
|
2512
2512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2513
2513
|
class: "w-6 h-6",
|
|
@@ -2515,13 +2515,13 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2515
2515
|
viewBox: "0 0 24 24",
|
|
2516
2516
|
stroke: "currentColor",
|
|
2517
2517
|
"stroke-width": "2"
|
|
2518
|
-
},
|
|
2518
|
+
}, an = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2519
2519
|
"stroke-linecap": "round",
|
|
2520
2520
|
"stroke-linejoin": "round",
|
|
2521
2521
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2522
|
-
}, null, -1)),
|
|
2523
|
-
|
|
2524
|
-
],
|
|
2522
|
+
}, null, -1)), nn = [
|
|
2523
|
+
an
|
|
2524
|
+
], on = {
|
|
2525
2525
|
key: 1,
|
|
2526
2526
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2527
2527
|
class: "w-6 h-6",
|
|
@@ -2529,27 +2529,27 @@ const eu = /* @__PURE__ */ k(ta, [["render", sa]]), aa = {
|
|
|
2529
2529
|
viewBox: "0 0 24 24",
|
|
2530
2530
|
stroke: "currentColor",
|
|
2531
2531
|
"stroke-width": "2"
|
|
2532
|
-
},
|
|
2532
|
+
}, ln = /* @__PURE__ */ P(() => /* @__PURE__ */ s("path", {
|
|
2533
2533
|
"stroke-linecap": "round",
|
|
2534
2534
|
"stroke-linejoin": "round",
|
|
2535
2535
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2536
|
-
}, null, -1)),
|
|
2537
|
-
|
|
2536
|
+
}, null, -1)), dn = [
|
|
2537
|
+
ln
|
|
2538
2538
|
];
|
|
2539
|
-
function
|
|
2539
|
+
function un(e, t, r, n, o, a) {
|
|
2540
2540
|
return d(), u("div", null, [
|
|
2541
2541
|
s("div", {
|
|
2542
2542
|
class: b(["", !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
2543
2543
|
id: "mainSliderContainer_" + e.Random_string
|
|
2544
2544
|
}, [
|
|
2545
|
-
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div",
|
|
2546
|
-
s("div",
|
|
2545
|
+
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", la, [
|
|
2546
|
+
s("div", ia, [
|
|
2547
2547
|
s("button", {
|
|
2548
2548
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2549
2549
|
onClick: t[0] || (t[0] = (i) => a.prev())
|
|
2550
2550
|
}, [
|
|
2551
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2552
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2551
|
+
r.direction_property == "ltr" ? (d(), u("svg", da, ca)) : f("", !0),
|
|
2552
|
+
r.direction_property == "rtl" ? (d(), u("svg", fa, ha)) : f("", !0)
|
|
2553
2553
|
])
|
|
2554
2554
|
])
|
|
2555
2555
|
])) : f("", !0),
|
|
@@ -2565,13 +2565,13 @@ function dn(e, t, r, n, o, a) {
|
|
|
2565
2565
|
key: 0,
|
|
2566
2566
|
class: b(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex", r.direction_property == "rtl" ? "arrow_button_next" : "arrow_button_prev"])
|
|
2567
2567
|
}, [
|
|
2568
|
-
s("div",
|
|
2568
|
+
s("div", pa, [
|
|
2569
2569
|
s("button", {
|
|
2570
2570
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2571
2571
|
onClick: t[1] || (t[1] = N((i) => a.prev(), ["stop"]))
|
|
2572
2572
|
}, [
|
|
2573
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2574
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2573
|
+
r.direction_property == "ltr" ? (d(), u("svg", ya, va)) : f("", !0),
|
|
2574
|
+
r.direction_property == "rtl" ? (d(), u("svg", xa, ka)) : f("", !0)
|
|
2575
2575
|
])
|
|
2576
2576
|
])
|
|
2577
2577
|
], 2)) : f("", !0),
|
|
@@ -2580,17 +2580,17 @@ function dn(e, t, r, n, o, a) {
|
|
|
2580
2580
|
key: 1,
|
|
2581
2581
|
class: b(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button", r.direction_property == "rtl" ? "arrow_button_prev" : "arrow_button_next"])
|
|
2582
2582
|
}, [
|
|
2583
|
-
s("div",
|
|
2583
|
+
s("div", $a, [
|
|
2584
2584
|
s("button", {
|
|
2585
2585
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2586
2586
|
onClick: t[2] || (t[2] = N((i) => a.next(), ["stop"]))
|
|
2587
2587
|
}, [
|
|
2588
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2589
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2588
|
+
r.direction_property == "ltr" ? (d(), u("svg", Ca, Da)) : f("", !0),
|
|
2589
|
+
r.direction_property == "rtl" ? (d(), u("svg", Oa, Ea)) : f("", !0)
|
|
2590
2590
|
])
|
|
2591
2591
|
])
|
|
2592
2592
|
], 2)) : f("", !0)
|
|
2593
|
-
], 8,
|
|
2593
|
+
], 8, ba),
|
|
2594
2594
|
r.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (d(), u("div", {
|
|
2595
2595
|
key: 0,
|
|
2596
2596
|
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
@@ -2600,9 +2600,9 @@ function dn(e, t, r, n, o, a) {
|
|
|
2600
2600
|
class: b(["gl-dot", { active: e.currentDot == i }]),
|
|
2601
2601
|
key: i,
|
|
2602
2602
|
onClick: (l) => a.setDot(i)
|
|
2603
|
-
},
|
|
2603
|
+
}, Ta, 10, Aa))), 128))
|
|
2604
2604
|
], 2)) : f("", !0),
|
|
2605
|
-
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div",
|
|
2605
|
+
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", Ia, [
|
|
2606
2606
|
s("div", {
|
|
2607
2607
|
class: b(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2608
2608
|
}, [
|
|
@@ -2611,53 +2611,53 @@ function dn(e, t, r, n, o, a) {
|
|
|
2611
2611
|
class: b(["gl-dot", { active: e.currentDot == i }]),
|
|
2612
2612
|
key: i,
|
|
2613
2613
|
onClick: (l) => a.setDot(i)
|
|
2614
|
-
},
|
|
2614
|
+
}, La, 10, Ma))), 128))
|
|
2615
2615
|
], 2),
|
|
2616
2616
|
e.dotsNum > 0 ? (d(), u("div", Va, [
|
|
2617
|
-
s("div",
|
|
2618
|
-
s("div",
|
|
2617
|
+
s("div", Ba, [
|
|
2618
|
+
s("div", Ga, [
|
|
2619
2619
|
s("button", {
|
|
2620
2620
|
class: b(["p-3 rounded-full arrow_button_styles", r.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2621
2621
|
onClick: t[3] || (t[3] = (i) => a.prev())
|
|
2622
2622
|
}, [
|
|
2623
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2624
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2623
|
+
r.direction_property == "ltr" ? (d(), u("svg", Fa, Ua)) : f("", !0),
|
|
2624
|
+
r.direction_property == "rtl" ? (d(), u("svg", qa, Ha)) : f("", !0)
|
|
2625
2625
|
], 2)
|
|
2626
2626
|
])
|
|
2627
2627
|
]),
|
|
2628
|
-
s("div",
|
|
2629
|
-
s("div",
|
|
2628
|
+
s("div", Za, [
|
|
2629
|
+
s("div", Ka, [
|
|
2630
2630
|
s("button", {
|
|
2631
2631
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2632
2632
|
onClick: t[4] || (t[4] = (i) => a.next())
|
|
2633
2633
|
}, [
|
|
2634
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2635
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2634
|
+
r.direction_property == "ltr" ? (d(), u("svg", Wa, Xa)) : f("", !0),
|
|
2635
|
+
r.direction_property == "rtl" ? (d(), u("svg", Ja, en)) : f("", !0)
|
|
2636
2636
|
])
|
|
2637
2637
|
])
|
|
2638
2638
|
])
|
|
2639
2639
|
])) : f("", !0)
|
|
2640
2640
|
])) : f("", !0)
|
|
2641
|
-
], 10,
|
|
2642
|
-
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div",
|
|
2643
|
-
s("div",
|
|
2641
|
+
], 10, ma),
|
|
2642
|
+
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", tn, [
|
|
2643
|
+
s("div", rn, [
|
|
2644
2644
|
s("button", {
|
|
2645
2645
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2646
2646
|
onClick: t[5] || (t[5] = (i) => a.next())
|
|
2647
2647
|
}, [
|
|
2648
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2649
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2648
|
+
r.direction_property == "ltr" ? (d(), u("svg", sn, nn)) : f("", !0),
|
|
2649
|
+
r.direction_property == "rtl" ? (d(), u("svg", on, dn)) : f("", !0)
|
|
2650
2650
|
])
|
|
2651
2651
|
])
|
|
2652
2652
|
])) : f("", !0)
|
|
2653
|
-
], 10,
|
|
2653
|
+
], 10, oa)
|
|
2654
2654
|
]);
|
|
2655
2655
|
}
|
|
2656
|
-
const
|
|
2656
|
+
const ru = /* @__PURE__ */ k(na, [["render", un], ["__scopeId", "data-v-a94f16a9"]]), cn = {
|
|
2657
2657
|
class: "fixed left-0 top-13 z-[1055] h-full w-full overflow-y-auto overflow-x-hidden outline-none inset-0 bg-black bg-opacity-80",
|
|
2658
2658
|
tabindex: "-1",
|
|
2659
2659
|
"aria-hidden": "true"
|
|
2660
|
-
},
|
|
2660
|
+
}, fn = { class: "pointer-events-auto relative flex max-h-[100%] w-full flex-col overflow-hidden text-current shadow-4 outline-none bg-white border rounded-lg border-stroke dark:border-strokedark dark:bg-boxdark" }, gn = { class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, hn = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, mn = /* @__PURE__ */ s("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
|
|
2661
2661
|
/* @__PURE__ */ s("svg", {
|
|
2662
2662
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2663
2663
|
fill: "currentColor",
|
|
@@ -2671,9 +2671,9 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2671
2671
|
d: "M6 18L18 6M6 6l12 12"
|
|
2672
2672
|
})
|
|
2673
2673
|
])
|
|
2674
|
-
], -1),
|
|
2675
|
-
|
|
2676
|
-
],
|
|
2674
|
+
], -1), bn = [
|
|
2675
|
+
mn
|
|
2676
|
+
], pn = { class: "flex flex-wrap items-center justify-end flex-shrink-0 p-4 border-t-2 rounded-b-md border-neutral-100 dark:border-gray-600" }, su = {
|
|
2677
2677
|
__name: "GlModal",
|
|
2678
2678
|
props: {
|
|
2679
2679
|
is_open: {
|
|
@@ -2708,26 +2708,26 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2708
2708
|
l ? o() : a();
|
|
2709
2709
|
},
|
|
2710
2710
|
{ immediate: !0, deep: !0 }
|
|
2711
|
-
), (l, c) =>
|
|
2711
|
+
), (l, c) => D((d(), u("div", cn, [
|
|
2712
2712
|
s("div", {
|
|
2713
2713
|
class: b(["pointer-events-none relative h-[calc(100%-1rem)] w-auto translate-y-[-50px] transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:h-[calc(100%-3.5rem)]", e.max_width])
|
|
2714
2714
|
}, [
|
|
2715
|
-
s("div",
|
|
2716
|
-
s("div",
|
|
2717
|
-
s("h5",
|
|
2715
|
+
s("div", fn, [
|
|
2716
|
+
s("div", gn, [
|
|
2717
|
+
s("h5", hn, h(e.title), 1),
|
|
2718
2718
|
s("button", {
|
|
2719
2719
|
type: "button",
|
|
2720
2720
|
class: "box-content border-none rounded-none text-neutral-500 hover:text-neutral-800 hover:no-underline focus:text-neutral-800 focus:opacity-100 focus:shadow-none focus:outline-none dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300",
|
|
2721
2721
|
onClick: i,
|
|
2722
2722
|
"aria-label": "Close"
|
|
2723
|
-
},
|
|
2723
|
+
}, bn)
|
|
2724
2724
|
]),
|
|
2725
2725
|
s("div", {
|
|
2726
2726
|
class: b(["relative overflow-y-auto", e.bodyClass])
|
|
2727
2727
|
}, [
|
|
2728
2728
|
T(l.$slots, "body")
|
|
2729
2729
|
], 2),
|
|
2730
|
-
s("div",
|
|
2730
|
+
s("div", pn, [
|
|
2731
2731
|
T(l.$slots, "buttons"),
|
|
2732
2732
|
s("button", {
|
|
2733
2733
|
onClick: i,
|
|
@@ -2741,7 +2741,7 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2741
2741
|
[F, e.is_open]
|
|
2742
2742
|
]);
|
|
2743
2743
|
}
|
|
2744
|
-
},
|
|
2744
|
+
}, yn = { class: "mb-4" }, _n = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, vn = { class: "relative inline-flex items-center cursor-pointer" }, xn = ["name", "id", "checked"], wn = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), kn = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), $n = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark" }, Cn = { class: "relative inline-flex items-center cursor-pointer" }, Sn = ["name", "id"], Dn = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), On = { class: "gl-span-form-error" }, Pn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, au = {
|
|
2745
2745
|
__name: "GlToggleBox",
|
|
2746
2746
|
props: {
|
|
2747
2747
|
is_required: {
|
|
@@ -2796,10 +2796,10 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2796
2796
|
key: 0,
|
|
2797
2797
|
class: b(e.field_name)
|
|
2798
2798
|
}, [
|
|
2799
|
-
s("div",
|
|
2800
|
-
s("li",
|
|
2801
|
-
w(
|
|
2802
|
-
s("label",
|
|
2799
|
+
s("div", yn, [
|
|
2800
|
+
s("li", _n, [
|
|
2801
|
+
w(h(e.label_name) + " ", 1),
|
|
2802
|
+
s("label", vn, [
|
|
2803
2803
|
s("input", {
|
|
2804
2804
|
type: "checkbox",
|
|
2805
2805
|
class: "sr-only peer",
|
|
@@ -2811,21 +2811,21 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2811
2811
|
ref_key: "input",
|
|
2812
2812
|
ref: o,
|
|
2813
2813
|
disabled: ""
|
|
2814
|
-
}, null, 8,
|
|
2815
|
-
|
|
2814
|
+
}, null, 8, xn),
|
|
2815
|
+
wn
|
|
2816
2816
|
])
|
|
2817
2817
|
])
|
|
2818
2818
|
]),
|
|
2819
|
-
|
|
2819
|
+
kn
|
|
2820
2820
|
], 2)) : f("", !0),
|
|
2821
2821
|
e.show ? f("", !0) : (d(), u("div", {
|
|
2822
2822
|
key: 1,
|
|
2823
2823
|
class: b(["mb-4", e.field_name])
|
|
2824
2824
|
}, [
|
|
2825
|
-
s("li",
|
|
2826
|
-
w(
|
|
2827
|
-
s("label",
|
|
2828
|
-
|
|
2825
|
+
s("li", $n, [
|
|
2826
|
+
w(h(e.label_name) + " ", 1),
|
|
2827
|
+
s("label", Cn, [
|
|
2828
|
+
D(s("input", {
|
|
2829
2829
|
type: "checkbox",
|
|
2830
2830
|
class: "sr-only peer",
|
|
2831
2831
|
name: e.field_name,
|
|
@@ -2835,24 +2835,24 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2835
2835
|
ref_key: "input",
|
|
2836
2836
|
ref: o,
|
|
2837
2837
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => a.value = c)
|
|
2838
|
-
}, null, 8,
|
|
2839
|
-
[
|
|
2838
|
+
}, null, 8, Sn), [
|
|
2839
|
+
[ot, a.value]
|
|
2840
2840
|
]),
|
|
2841
|
-
|
|
2841
|
+
Dn
|
|
2842
2842
|
])
|
|
2843
2843
|
]),
|
|
2844
|
-
s("span",
|
|
2845
|
-
s("small",
|
|
2844
|
+
s("span", On, h(e.error_message), 1),
|
|
2845
|
+
s("small", Pn, h(e.description), 1)
|
|
2846
2846
|
], 2))
|
|
2847
2847
|
], 64));
|
|
2848
2848
|
}
|
|
2849
|
-
},
|
|
2849
|
+
}, En = { class: "font-bold ptext-lg dark:text-white" }, An = { class: "mt-3 mb-4" }, jn = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, Tn = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), In = ["name", "id", "value"], Mn = {
|
|
2850
2850
|
key: 0,
|
|
2851
2851
|
class: "dropdown"
|
|
2852
|
-
},
|
|
2852
|
+
}, Nn = { class: "border border-gray-200 rounded-lg focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, Ln = { class: "relative showOptions" }, Vn = ["value", "placeholder"], Bn = { class: "text-gray-700 bg-white dark:border-strokedark dark:bg-boxdark dark:text-gray-200 !border-b !border-t-0 !border-r !border-l absolute w-full z-[999999999]" }, Gn = { class: "p-1" }, Fn = /* @__PURE__ */ s("label", {
|
|
2853
2853
|
for: "default-search",
|
|
2854
2854
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
2855
|
-
}, "Search", -1),
|
|
2855
|
+
}, "Search", -1), Rn = { class: "relative" }, Un = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
2856
2856
|
/* @__PURE__ */ s("svg", {
|
|
2857
2857
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
2858
2858
|
"aria-hidden": "true",
|
|
@@ -2868,22 +2868,22 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2868
2868
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
2869
2869
|
})
|
|
2870
2870
|
])
|
|
2871
|
-
], -1),
|
|
2871
|
+
], -1), qn = ["id"], zn = { class: "overflow-y-auto max-h-64" }, Hn = ["onClick", "onMousedown", "id"], Zn = { class: "flex items-center py-2 pl-10 pr-4" }, Kn = {
|
|
2872
2872
|
key: 0,
|
|
2873
2873
|
class: "absolute flex items-center flex-shrink-0 w-4 h-4 text-green-500 left-2 dark:text-green-400",
|
|
2874
2874
|
"aria-hidden": "true",
|
|
2875
2875
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2876
2876
|
fill: "none",
|
|
2877
2877
|
viewBox: "0 0 16 12"
|
|
2878
|
-
},
|
|
2878
|
+
}, Wn = /* @__PURE__ */ s("path", {
|
|
2879
2879
|
stroke: "currentColor",
|
|
2880
2880
|
"stroke-linecap": "round",
|
|
2881
2881
|
"stroke-linejoin": "round",
|
|
2882
2882
|
"stroke-width": "2",
|
|
2883
2883
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
2884
|
-
}, null, -1),
|
|
2885
|
-
|
|
2886
|
-
],
|
|
2884
|
+
}, null, -1), Yn = [
|
|
2885
|
+
Wn
|
|
2886
|
+
], Xn = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, Jn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, nu = {
|
|
2887
2887
|
__name: "GlDropdown",
|
|
2888
2888
|
props: {
|
|
2889
2889
|
modelValue: {
|
|
@@ -2943,19 +2943,19 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2943
2943
|
},
|
|
2944
2944
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2945
2945
|
setup(e, { emit: t }) {
|
|
2946
|
-
const r = e, n = t, o = S(null), a = S({}), i = S(0), l = S(!1), c = S(""),
|
|
2946
|
+
const r = e, n = t, o = S(null), a = S({}), i = S(0), l = S(!1), c = S(""), g = S("");
|
|
2947
2947
|
R(() => {
|
|
2948
|
-
|
|
2949
|
-
|
|
2948
|
+
g.value = V(), r.show || (document.body.addEventListener("click", (p) => {
|
|
2949
|
+
He(p);
|
|
2950
2950
|
}), document.addEventListener("keypress", (p) => {
|
|
2951
2951
|
p.key === "Enter" && p.target.form && p.preventDefault();
|
|
2952
2952
|
}));
|
|
2953
2953
|
});
|
|
2954
|
-
const m = G(() =>
|
|
2955
|
-
const p = [],
|
|
2954
|
+
const m = G(() => We()), y = G(() => Ye()), x = G(() => {
|
|
2955
|
+
const p = [], O = new RegExp(c.value, "ig");
|
|
2956
2956
|
for (const E of m.value) {
|
|
2957
2957
|
const B = String(E.name);
|
|
2958
|
-
(c.value.length < 1 || B.match(
|
|
2958
|
+
(c.value.length < 1 || B.match(O)) && p.length < r.maxItem && p.push(E);
|
|
2959
2959
|
}
|
|
2960
2960
|
return p;
|
|
2961
2961
|
});
|
|
@@ -2969,10 +2969,10 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2969
2969
|
].includes(p.key)) {
|
|
2970
2970
|
if (["ArrowUp", "ArrowDown"].includes(p.key) && p.preventDefault(), p.key === "ArrowDown" && r.posts === "")
|
|
2971
2971
|
return;
|
|
2972
|
-
|
|
2972
|
+
Ke(p.key);
|
|
2973
2973
|
}
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2975
|
+
function V() {
|
|
2976
2976
|
let p = (/* @__PURE__ */ new Date()).getTime();
|
|
2977
2977
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
2978
2978
|
/[xy]/g,
|
|
@@ -2985,24 +2985,24 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
2985
2985
|
function te(p) {
|
|
2986
2986
|
return p !== null && typeof p == "object" && Object.keys(p).length > 0;
|
|
2987
2987
|
}
|
|
2988
|
-
function
|
|
2989
|
-
p.target.id != r.field_name + "search" +
|
|
2988
|
+
function He(p) {
|
|
2989
|
+
p.target.id != r.field_name + "search" + g.value && p.target.id != r.field_name && !p.target.classList.contains("showOptions") && (pe(), i.value = 0);
|
|
2990
2990
|
}
|
|
2991
2991
|
function me(p) {
|
|
2992
|
-
const
|
|
2992
|
+
const O = `${p}${g.value}`, E = document.getElementById(O);
|
|
2993
2993
|
E && E.scrollIntoView();
|
|
2994
2994
|
}
|
|
2995
|
-
function He(p) {
|
|
2996
|
-
const D = `${p}${h.value}`, E = document.getElementById(D);
|
|
2997
|
-
E && E.click();
|
|
2998
|
-
}
|
|
2999
2995
|
function Ze(p) {
|
|
3000
|
-
|
|
2996
|
+
const O = `${p}${g.value}`, E = document.getElementById(O);
|
|
2997
|
+
E && E.click();
|
|
3001
2998
|
}
|
|
3002
|
-
function Ke() {
|
|
3003
|
-
|
|
2999
|
+
function Ke(p) {
|
|
3000
|
+
p === "ArrowDown" && i.value < x.value.length && (i.value++, me(i.value)), p === "ArrowUp" && i.value > 1 && (i.value--, me(i.value)), p === "Enter" && Ze(i.value);
|
|
3004
3001
|
}
|
|
3005
3002
|
function We() {
|
|
3003
|
+
return r.options.map((p, O) => typeof p == "object" ? p : { id: p, name: p });
|
|
3004
|
+
}
|
|
3005
|
+
function Ye() {
|
|
3006
3006
|
if (te(a.value))
|
|
3007
3007
|
return typeof a.value == "object" ? m.value.find(
|
|
3008
3008
|
(p) => String(p.id) === String(a.value.id)
|
|
@@ -3017,17 +3017,17 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3017
3017
|
) || {};
|
|
3018
3018
|
}
|
|
3019
3019
|
function be(p) {
|
|
3020
|
-
a.value = p, l.value = !1, n("update:modelValue", a.value), n("selected", a.value), n("selectionChanged", a.value);
|
|
3020
|
+
a.value = p, l.value = !1, n("update:modelValue", a.value.id), n("selected", a.value), n("selectionChanged", a.value);
|
|
3021
3021
|
}
|
|
3022
3022
|
function re() {
|
|
3023
|
-
r.show || (c.value = "", l.value = !0,
|
|
3023
|
+
r.show || (c.value = "", l.value = !0, lt(() => {
|
|
3024
3024
|
var p = document.getElementById(
|
|
3025
|
-
`${r.field_name}search${
|
|
3025
|
+
`${r.field_name}search${g.value}`
|
|
3026
3026
|
);
|
|
3027
3027
|
p && p.focus();
|
|
3028
3028
|
}));
|
|
3029
3029
|
}
|
|
3030
|
-
function
|
|
3030
|
+
function Xe() {
|
|
3031
3031
|
r.show || (a.value = {}, c.value = "", n("update:modelValue", ""), re());
|
|
3032
3032
|
}
|
|
3033
3033
|
function pe() {
|
|
@@ -3037,18 +3037,18 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3037
3037
|
x.value.length === 0 && (a.value = {});
|
|
3038
3038
|
}), Y(a, (p) => {
|
|
3039
3039
|
te(p) && n("update:modelValue", p.id);
|
|
3040
|
-
}), (p,
|
|
3040
|
+
}), (p, O) => {
|
|
3041
3041
|
var E, B, ye;
|
|
3042
3042
|
return d(), u(v, null, [
|
|
3043
3043
|
e.show ? (d(), u("div", {
|
|
3044
3044
|
key: 0,
|
|
3045
3045
|
class: b(e.field_name)
|
|
3046
3046
|
}, [
|
|
3047
|
-
s("h3",
|
|
3048
|
-
s("p",
|
|
3049
|
-
s("span",
|
|
3047
|
+
s("h3", En, h(e.label_name), 1),
|
|
3048
|
+
s("p", An, [
|
|
3049
|
+
s("span", jn, h((E = y.value) == null ? void 0 : E.name), 1)
|
|
3050
3050
|
]),
|
|
3051
|
-
|
|
3051
|
+
Tn
|
|
3052
3052
|
], 2)) : f("", !0),
|
|
3053
3053
|
e.show ? f("", !0) : (d(), u("div", {
|
|
3054
3054
|
key: 1,
|
|
@@ -3059,8 +3059,8 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3059
3059
|
name: e.field_name,
|
|
3060
3060
|
id: e.field_name,
|
|
3061
3061
|
value: (B = y.value) == null ? void 0 : B.id
|
|
3062
|
-
}, null, 8,
|
|
3063
|
-
e.options ? (d(), u("div",
|
|
3062
|
+
}, null, 8, In),
|
|
3063
|
+
e.options ? (d(), u("div", Mn, [
|
|
3064
3064
|
e.label_name ? (d(), u("label", {
|
|
3065
3065
|
key: 0,
|
|
3066
3066
|
class: b({
|
|
@@ -3068,69 +3068,69 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3068
3068
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3069
3069
|
required: e.is_required
|
|
3070
3070
|
})
|
|
3071
|
-
},
|
|
3072
|
-
s("div",
|
|
3073
|
-
s("div",
|
|
3071
|
+
}, h(e.label_name), 3)) : f("", !0),
|
|
3072
|
+
s("div", Nn, [
|
|
3073
|
+
s("div", Ln, [
|
|
3074
3074
|
s("input", {
|
|
3075
3075
|
class: b([{
|
|
3076
3076
|
"gl-input-form": e.error_message == "",
|
|
3077
3077
|
"gl-input-form-invalid": e.error_message !== ""
|
|
3078
3078
|
}, "pl-8 pr-2 showOptions"]),
|
|
3079
3079
|
ref: e.field_name,
|
|
3080
|
-
onClick:
|
|
3080
|
+
onClick: O[0] || (O[0] = (j) => re()),
|
|
3081
3081
|
value: (ye = y.value) == null ? void 0 : ye.name,
|
|
3082
3082
|
placeholder: e.placeholder,
|
|
3083
3083
|
autocomplete: "off",
|
|
3084
3084
|
readonly: ""
|
|
3085
3085
|
}, null, 10, Vn),
|
|
3086
|
-
|
|
3087
|
-
onClick:
|
|
3086
|
+
D(s("i", {
|
|
3087
|
+
onClick: O[1] || (O[1] = N((j) => Xe(), ["stop"])),
|
|
3088
3088
|
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
|
|
3089
3089
|
style: { top: "13px" }
|
|
3090
3090
|
}, null, 512), [
|
|
3091
3091
|
[F, te(y.value) && e.has_cancel]
|
|
3092
3092
|
]),
|
|
3093
3093
|
s("i", {
|
|
3094
|
-
onClick:
|
|
3094
|
+
onClick: O[2] || (O[2] = (j) => !l.value && re()),
|
|
3095
3095
|
class: b([l.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
|
|
3096
3096
|
style: { top: "11px" }
|
|
3097
3097
|
}, null, 2)
|
|
3098
3098
|
]),
|
|
3099
|
-
|
|
3100
|
-
s("div",
|
|
3101
|
-
|
|
3102
|
-
s("div",
|
|
3103
|
-
|
|
3104
|
-
|
|
3099
|
+
D(s("div", Bn, [
|
|
3100
|
+
s("div", Gn, [
|
|
3101
|
+
Fn,
|
|
3102
|
+
s("div", Rn, [
|
|
3103
|
+
Un,
|
|
3104
|
+
D(s("input", {
|
|
3105
3105
|
type: "search",
|
|
3106
|
-
"onUpdate:modelValue":
|
|
3106
|
+
"onUpdate:modelValue": O[3] || (O[3] = (j) => c.value = j),
|
|
3107
3107
|
ref: o.value,
|
|
3108
|
-
id: `${e.field_name}search${
|
|
3108
|
+
id: `${e.field_name}search${g.value}`,
|
|
3109
3109
|
onKeydown: C,
|
|
3110
|
-
onBlur:
|
|
3110
|
+
onBlur: O[4] || (O[4] = (j) => pe()),
|
|
3111
3111
|
autocomplete: "off",
|
|
3112
3112
|
class: "block w-full p-2 text-sm text-gray-900 border rounded-lg outline-none border-frontend ps-10 bg-gray-50 focus:border-frontend dark:bg-gray-700 dark:border-frontenddark dark:placeholder-frontenddark dark:text-white dark:focus:border-frontenddark",
|
|
3113
3113
|
placeholder: "Search ..."
|
|
3114
|
-
}, null, 40,
|
|
3115
|
-
[
|
|
3114
|
+
}, null, 40, qn), [
|
|
3115
|
+
[L, c.value]
|
|
3116
3116
|
])
|
|
3117
3117
|
])
|
|
3118
3118
|
]),
|
|
3119
|
-
s("div",
|
|
3119
|
+
s("div", zn, [
|
|
3120
3120
|
(d(!0), u(v, null, $(x.value, (j, se) => {
|
|
3121
3121
|
var _e;
|
|
3122
3122
|
return d(), u("div", {
|
|
3123
3123
|
class: b(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white", se + 1 == i.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
3124
|
-
onClick: (
|
|
3125
|
-
onMousedown: (
|
|
3124
|
+
onClick: (Je) => be(j),
|
|
3125
|
+
onMousedown: (Je) => be(j),
|
|
3126
3126
|
key: se,
|
|
3127
|
-
id: `${se + 1}${
|
|
3127
|
+
id: `${se + 1}${g.value}`
|
|
3128
3128
|
}, [
|
|
3129
|
-
s("div",
|
|
3130
|
-
((_e = y.value) == null ? void 0 : _e.id) === j.id ? (d(), u("svg",
|
|
3131
|
-
s("span", null,
|
|
3129
|
+
s("div", Zn, [
|
|
3130
|
+
((_e = y.value) == null ? void 0 : _e.id) === j.id ? (d(), u("svg", Kn, Yn)) : f("", !0),
|
|
3131
|
+
s("span", null, h(j.name || j.id || "-"), 1)
|
|
3132
3132
|
])
|
|
3133
|
-
], 42,
|
|
3133
|
+
], 42, Hn);
|
|
3134
3134
|
}), 128))
|
|
3135
3135
|
])
|
|
3136
3136
|
], 512), [
|
|
@@ -3138,13 +3138,13 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3138
3138
|
])
|
|
3139
3139
|
])
|
|
3140
3140
|
])) : f("", !0),
|
|
3141
|
-
s("span",
|
|
3142
|
-
s("small",
|
|
3141
|
+
s("span", Xn, h(e.error_message), 1),
|
|
3142
|
+
s("small", Jn, h(e.description), 1)
|
|
3143
3143
|
], 2))
|
|
3144
3144
|
], 64);
|
|
3145
3145
|
};
|
|
3146
3146
|
}
|
|
3147
|
-
},
|
|
3147
|
+
}, Qn = { class: "font-bold ptext-lg dark:text-white" }, eo = ["id"], to = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ro = ["for"], so = ["required", "name", "id", "type", "placeholder"], ao = { class: "gl-span-form-error" }, no = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, ou = {
|
|
3148
3148
|
__name: "GlTextarea",
|
|
3149
3149
|
props: {
|
|
3150
3150
|
is_required: {
|
|
@@ -3183,7 +3183,7 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3183
3183
|
type: String,
|
|
3184
3184
|
default: ""
|
|
3185
3185
|
},
|
|
3186
|
-
|
|
3186
|
+
placeholder: {
|
|
3187
3187
|
type: String,
|
|
3188
3188
|
default: ""
|
|
3189
3189
|
}
|
|
@@ -3191,19 +3191,28 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3191
3191
|
emits: ["update:modelValue", "keydown"],
|
|
3192
3192
|
setup(e, { expose: t, emit: r }) {
|
|
3193
3193
|
const n = e, o = r, a = S(null);
|
|
3194
|
-
|
|
3195
|
-
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus()
|
|
3196
|
-
})
|
|
3194
|
+
R(() => {
|
|
3195
|
+
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus();
|
|
3196
|
+
});
|
|
3197
|
+
const i = computed({
|
|
3198
|
+
get() {
|
|
3199
|
+
return n.modelValue;
|
|
3200
|
+
},
|
|
3201
|
+
set(l) {
|
|
3202
|
+
o("update:modelValue", l);
|
|
3203
|
+
}
|
|
3204
|
+
});
|
|
3205
|
+
return t({ focus: () => a.value.focus() }), (l, c) => (d(), u(v, null, [
|
|
3197
3206
|
e.show ? (d(), u("div", {
|
|
3198
3207
|
key: 0,
|
|
3199
3208
|
class: b(e.field_name)
|
|
3200
3209
|
}, [
|
|
3201
|
-
s("h3",
|
|
3210
|
+
s("h3", Qn, h(e.label_name), 1),
|
|
3202
3211
|
s("p", {
|
|
3203
3212
|
id: e.field_name,
|
|
3204
3213
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
3205
|
-
},
|
|
3206
|
-
|
|
3214
|
+
}, h(e.model_value), 9, eo),
|
|
3215
|
+
to
|
|
3207
3216
|
], 2)) : f("", !0),
|
|
3208
3217
|
e.show ? f("", !0) : (d(), u("div", {
|
|
3209
3218
|
key: 1,
|
|
@@ -3216,8 +3225,8 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3216
3225
|
required: e.is_required
|
|
3217
3226
|
}),
|
|
3218
3227
|
for: e.field_name
|
|
3219
|
-
},
|
|
3220
|
-
s("textarea", {
|
|
3228
|
+
}, h(e.label_name), 11, ro),
|
|
3229
|
+
D(s("textarea", {
|
|
3221
3230
|
required: e.is_required,
|
|
3222
3231
|
name: e.field_name,
|
|
3223
3232
|
id: e.field_name,
|
|
@@ -3226,18 +3235,21 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3226
3235
|
" gl-textarea-form-invalid mt-4 ": e.error_message !== ""
|
|
3227
3236
|
}),
|
|
3228
3237
|
type: e.type,
|
|
3229
|
-
|
|
3238
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => it(i) ? i.value = g : null),
|
|
3239
|
+
onKeydown: c[1] || (c[1] = (g) => l.$emit("keydown", g)),
|
|
3230
3240
|
ref_key: "input",
|
|
3231
3241
|
ref: a,
|
|
3232
3242
|
rows: "4",
|
|
3233
|
-
placeholder: e.
|
|
3234
|
-
}, null, 42,
|
|
3235
|
-
|
|
3236
|
-
|
|
3243
|
+
placeholder: e.placeholder
|
|
3244
|
+
}, null, 42, so), [
|
|
3245
|
+
[L, De(i)]
|
|
3246
|
+
]),
|
|
3247
|
+
s("span", ao, h(e.error_message), 1),
|
|
3248
|
+
s("small", no, h(e.description), 1)
|
|
3237
3249
|
], 2))
|
|
3238
3250
|
], 64));
|
|
3239
3251
|
}
|
|
3240
|
-
},
|
|
3252
|
+
}, oo = {
|
|
3241
3253
|
emits: ["pagination-change-page"],
|
|
3242
3254
|
props: {
|
|
3243
3255
|
data: {
|
|
@@ -3291,8 +3303,8 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3291
3303
|
return this.lastPage;
|
|
3292
3304
|
for (var e = this.currentPage, t = this.lastPage, r = this.limit, n = e - r, o = e + r + 1, a = [], i = [], l, c = 1; c <= t; c++)
|
|
3293
3305
|
(c === 1 || c === t || c >= n && c < o) && a.push(c);
|
|
3294
|
-
return a.forEach(function(
|
|
3295
|
-
l && (
|
|
3306
|
+
return a.forEach(function(g) {
|
|
3307
|
+
l && (g - l === 2 ? i.push(l + 1) : g - l !== 1 && i.push("...")), i.push(g), l = g;
|
|
3296
3308
|
}), i;
|
|
3297
3309
|
}
|
|
3298
3310
|
},
|
|
@@ -3342,14 +3354,14 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3342
3354
|
})
|
|
3343
3355
|
});
|
|
3344
3356
|
}
|
|
3345
|
-
},
|
|
3357
|
+
}, lo = {
|
|
3346
3358
|
compatConfig: {
|
|
3347
3359
|
MODE: 3
|
|
3348
3360
|
},
|
|
3349
3361
|
inheritAttrs: !1,
|
|
3350
3362
|
emits: ["pagination-change-page"],
|
|
3351
3363
|
components: {
|
|
3352
|
-
RenderlessPagination:
|
|
3364
|
+
RenderlessPagination: oo
|
|
3353
3365
|
},
|
|
3354
3366
|
props: {
|
|
3355
3367
|
data: {
|
|
@@ -3383,10 +3395,10 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3383
3395
|
},
|
|
3384
3396
|
mounted() {
|
|
3385
3397
|
}
|
|
3386
|
-
},
|
|
3398
|
+
}, io = { class: "flex flex-col items-center" }, uo = {
|
|
3387
3399
|
key: 0,
|
|
3388
3400
|
class: "text-sm text-gray-700 dark:text-gray-400"
|
|
3389
|
-
},
|
|
3401
|
+
}, co = { class: "font-semibold text-gray-900 dark:text-white" }, fo = { class: "font-semibold text-gray-900 dark:text-white" }, go = { class: "font-semibold text-gray-900 dark:text-white" }, ho = ["tabindex"], mo = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), bo = /* @__PURE__ */ s("svg", {
|
|
3390
3402
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3391
3403
|
"aria-hidden": "true",
|
|
3392
3404
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3400,7 +3412,7 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3400
3412
|
"stroke-width": "2",
|
|
3401
3413
|
d: "M5 1 1 5l4 4"
|
|
3402
3414
|
})
|
|
3403
|
-
], -1),
|
|
3415
|
+
], -1), po = ["aria-current"], yo = ["tabindex"], _o = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), vo = /* @__PURE__ */ s("svg", {
|
|
3404
3416
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3405
3417
|
"aria-hidden": "true",
|
|
3406
3418
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3415,7 +3427,7 @@ const tu = /* @__PURE__ */ k(aa, [["render", dn], ["__scopeId", "data-v-a94f16a9
|
|
|
3415
3427
|
d: "m1 9 4-4-4-4"
|
|
3416
3428
|
})
|
|
3417
3429
|
], -1);
|
|
3418
|
-
function
|
|
3430
|
+
function xo(e, t, r, n, o, a) {
|
|
3419
3431
|
const i = X("RenderlessPagination");
|
|
3420
3432
|
return d(), K(i, {
|
|
3421
3433
|
data: r.data,
|
|
@@ -3423,14 +3435,14 @@ function vo(e, t, r, n, o, a) {
|
|
|
3423
3435
|
onPaginationChangePage: a.onPaginationChangePage
|
|
3424
3436
|
}, {
|
|
3425
3437
|
default: J((l) => [
|
|
3426
|
-
s("div",
|
|
3427
|
-
l.computed.total > l.computed.perPage ? (d(), u("span",
|
|
3438
|
+
s("div", io, [
|
|
3439
|
+
l.computed.total > l.computed.perPage ? (d(), u("span", uo, [
|
|
3428
3440
|
w(" Showing "),
|
|
3429
|
-
s("span",
|
|
3441
|
+
s("span", co, h(l.computed.from), 1),
|
|
3430
3442
|
w(" to "),
|
|
3431
|
-
s("span",
|
|
3443
|
+
s("span", fo, h(l.computed.to), 1),
|
|
3432
3444
|
w(" of "),
|
|
3433
|
-
s("span",
|
|
3445
|
+
s("span", go, h(l.computed.total), 1),
|
|
3434
3446
|
w(" Entries ")
|
|
3435
3447
|
])) : f("", !0),
|
|
3436
3448
|
l.computed.total > l.computed.perPage ? (d(), u("ul", W({ key: 1 }, e.$attrs, {
|
|
@@ -3452,14 +3464,14 @@ function vo(e, t, r, n, o, a) {
|
|
|
3452
3464
|
tabindex: !l.computed.prevPageUrl && -1
|
|
3453
3465
|
}, ae(l.prevButtonEvents, !0)), [
|
|
3454
3466
|
T(e.$slots, "prev-nav", {}, () => [
|
|
3455
|
-
|
|
3456
|
-
|
|
3467
|
+
mo,
|
|
3468
|
+
bo
|
|
3457
3469
|
])
|
|
3458
|
-
], 16,
|
|
3470
|
+
], 16, ho)
|
|
3459
3471
|
], 2)) : f("", !0),
|
|
3460
|
-
(d(!0), u(v, null, $(l.computed.pageRange, (c,
|
|
3472
|
+
(d(!0), u(v, null, $(l.computed.pageRange, (c, g) => (d(), u("li", {
|
|
3461
3473
|
class: b(["", { active: c == l.computed.currentPage }]),
|
|
3462
|
-
key:
|
|
3474
|
+
key: g
|
|
3463
3475
|
}, [
|
|
3464
3476
|
s("a", W({
|
|
3465
3477
|
class: "",
|
|
@@ -3467,7 +3479,7 @@ function vo(e, t, r, n, o, a) {
|
|
|
3467
3479
|
}, ae(l.pageButtonEvents(c), !0), {
|
|
3468
3480
|
"aria-current": c == l.computed.currentPage ? "page" : null,
|
|
3469
3481
|
class: c == l.computed.currentPage ? "z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white" : "flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
3470
|
-
}),
|
|
3482
|
+
}), h(c), 17, po)
|
|
3471
3483
|
], 2))), 128)),
|
|
3472
3484
|
l.computed.nextPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3473
3485
|
key: 1,
|
|
@@ -3480,10 +3492,10 @@ function vo(e, t, r, n, o, a) {
|
|
|
3480
3492
|
tabindex: !l.computed.nextPageUrl && -1
|
|
3481
3493
|
}, ae(l.nextButtonEvents, !0)), [
|
|
3482
3494
|
T(e.$slots, "next-nav", {}, () => [
|
|
3483
|
-
|
|
3484
|
-
|
|
3495
|
+
_o,
|
|
3496
|
+
vo
|
|
3485
3497
|
])
|
|
3486
|
-
], 16,
|
|
3498
|
+
], 16, yo)
|
|
3487
3499
|
], 2)) : f("", !0)
|
|
3488
3500
|
], 16)) : f("", !0)
|
|
3489
3501
|
])
|
|
@@ -3491,8 +3503,8 @@ function vo(e, t, r, n, o, a) {
|
|
|
3491
3503
|
_: 3
|
|
3492
3504
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
3493
3505
|
}
|
|
3494
|
-
const
|
|
3495
|
-
components: { TailwindPagination:
|
|
3506
|
+
const wo = /* @__PURE__ */ k(lo, [["render", xo]]), ko = {
|
|
3507
|
+
components: { TailwindPagination: wo },
|
|
3496
3508
|
props: {
|
|
3497
3509
|
data: Array,
|
|
3498
3510
|
columns: Array,
|
|
@@ -3571,10 +3583,10 @@ const xo = /* @__PURE__ */ k(oo, [["render", vo]]), wo = {
|
|
|
3571
3583
|
this.isMounted && e !== t && this.GetItemLists();
|
|
3572
3584
|
}
|
|
3573
3585
|
}
|
|
3574
|
-
},
|
|
3586
|
+
}, $o = { class: "p-2" }, Co = { class: "flex flex-col flex-wrap pb-4 space-y-4 xl:flex-row xl:items-center xl:justify-between flex-column sm:space-y-0" }, So = { class: "flex items-center gap-2" }, Do = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), Oo = { style: { "margin-top": "9px" } }, Po = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), Eo = /* @__PURE__ */ s("label", {
|
|
3575
3587
|
for: "table-search",
|
|
3576
3588
|
class: "sr-only"
|
|
3577
|
-
}, "Search", -1),
|
|
3589
|
+
}, "Search", -1), Ao = { class: "relative" }, jo = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
|
|
3578
3590
|
/* @__PURE__ */ s("svg", {
|
|
3579
3591
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3580
3592
|
"aria-hidden": "true",
|
|
@@ -3588,16 +3600,16 @@ const xo = /* @__PURE__ */ k(oo, [["render", vo]]), wo = {
|
|
|
3588
3600
|
"clip-rule": "evenodd"
|
|
3589
3601
|
})
|
|
3590
3602
|
])
|
|
3591
|
-
], -1),
|
|
3603
|
+
], -1), To = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Io = { class: "w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-3 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark" }, Mo = { class: "hidden text-sm font-normal text-center text-gray-500 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, No = ["onClick"], Lo = {
|
|
3592
3604
|
key: 0,
|
|
3593
3605
|
class: "ml-2"
|
|
3594
3606
|
}, Vo = {
|
|
3595
3607
|
key: 0,
|
|
3596
3608
|
class: "fa fa-arrow-up"
|
|
3597
|
-
},
|
|
3609
|
+
}, Bo = {
|
|
3598
3610
|
key: 1,
|
|
3599
3611
|
class: "fa fa-arrow-down"
|
|
3600
|
-
},
|
|
3612
|
+
}, Go = { key: 0 }, Fo = ["colspan"], Ro = /* @__PURE__ */ s("div", {
|
|
3601
3613
|
role: "status",
|
|
3602
3614
|
class: "p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded shadow animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"
|
|
3603
3615
|
}, [
|
|
@@ -3637,16 +3649,16 @@ const xo = /* @__PURE__ */ k(oo, [["render", vo]]), wo = {
|
|
|
3637
3649
|
/* @__PURE__ */ s("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12" })
|
|
3638
3650
|
]),
|
|
3639
3651
|
/* @__PURE__ */ s("span", { class: "sr-only" }, "Loading...")
|
|
3640
|
-
], -1),
|
|
3641
|
-
|
|
3642
|
-
],
|
|
3643
|
-
function
|
|
3652
|
+
], -1), Uo = [
|
|
3653
|
+
Ro
|
|
3654
|
+
], qo = ["data-label"], zo = { class: "overflow-auto max-h-40" }, Ho = { class: "flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800" };
|
|
3655
|
+
function Zo(e, t, r, n, o, a) {
|
|
3644
3656
|
const i = X("dropdown"), l = X("TailwindPagination");
|
|
3645
|
-
return d(), u("div",
|
|
3646
|
-
s("div",
|
|
3647
|
-
s("div",
|
|
3648
|
-
|
|
3649
|
-
s("div",
|
|
3657
|
+
return d(), u("div", $o, [
|
|
3658
|
+
s("div", Co, [
|
|
3659
|
+
s("div", So, [
|
|
3660
|
+
Do,
|
|
3661
|
+
s("div", Oo, [
|
|
3650
3662
|
Z(i, {
|
|
3651
3663
|
has_cancel: !1,
|
|
3652
3664
|
options: o.pageOptions,
|
|
@@ -3660,46 +3672,46 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3660
3672
|
placeholder: "Please select an option"
|
|
3661
3673
|
}, null, 8, ["options", "modelValue"])
|
|
3662
3674
|
]),
|
|
3663
|
-
|
|
3675
|
+
Po
|
|
3664
3676
|
]),
|
|
3665
|
-
|
|
3666
|
-
s("div",
|
|
3667
|
-
|
|
3668
|
-
|
|
3677
|
+
Eo,
|
|
3678
|
+
s("div", Ao, [
|
|
3679
|
+
jo,
|
|
3680
|
+
D(s("input", {
|
|
3669
3681
|
type: "text",
|
|
3670
3682
|
"onUpdate:modelValue": t[1] || (t[1] = (c) => o.search = c),
|
|
3671
3683
|
onInput: t[2] || (t[2] = (c) => a.handleSearch()),
|
|
3672
3684
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
3673
3685
|
placeholder: "Search ..."
|
|
3674
3686
|
}, null, 544), [
|
|
3675
|
-
[
|
|
3687
|
+
[L, o.search]
|
|
3676
3688
|
])
|
|
3677
3689
|
])
|
|
3678
3690
|
]),
|
|
3679
|
-
s("div",
|
|
3680
|
-
s("table",
|
|
3681
|
-
s("thead",
|
|
3691
|
+
s("div", To, [
|
|
3692
|
+
s("table", Io, [
|
|
3693
|
+
s("thead", Mo, [
|
|
3682
3694
|
s("tr", null, [
|
|
3683
|
-
(d(!0), u(v, null, $(r.columns, (c,
|
|
3684
|
-
key:
|
|
3695
|
+
(d(!0), u(v, null, $(r.columns, (c, g) => (d(), u("th", {
|
|
3696
|
+
key: g,
|
|
3685
3697
|
onClick: (m) => a.updateSortColumn(c.field_name, c.sortable),
|
|
3686
3698
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3687
3699
|
}, [
|
|
3688
|
-
w(
|
|
3689
|
-
o.sortField === c.field_name ? (d(), u("span",
|
|
3690
|
-
o.sortOrder === "asc" ? (d(), u("i", Vo)) : (d(), u("i",
|
|
3700
|
+
w(h(c.field_label) + " ", 1),
|
|
3701
|
+
o.sortField === c.field_name ? (d(), u("span", Lo, [
|
|
3702
|
+
o.sortOrder === "asc" ? (d(), u("i", Vo)) : (d(), u("i", Bo))
|
|
3691
3703
|
])) : f("", !0)
|
|
3692
|
-
], 8,
|
|
3704
|
+
], 8, No))), 128))
|
|
3693
3705
|
])
|
|
3694
3706
|
]),
|
|
3695
3707
|
s("tbody", null, [
|
|
3696
|
-
o.isLoading ? (d(), u("tr",
|
|
3708
|
+
o.isLoading ? (d(), u("tr", Go, [
|
|
3697
3709
|
s("td", {
|
|
3698
3710
|
colspan: r.columns.length
|
|
3699
|
-
},
|
|
3711
|
+
}, Uo, 8, Fo)
|
|
3700
3712
|
])) : f("", !0),
|
|
3701
|
-
o.isLoading ? f("", !0) : (d(!0), u(v, { key: 1 }, $(o.itemLists.data, (c,
|
|
3702
|
-
key:
|
|
3713
|
+
o.isLoading ? f("", !0) : (d(!0), u(v, { key: 1 }, $(o.itemLists.data, (c, g) => (d(), u("tr", {
|
|
3714
|
+
key: g,
|
|
3703
3715
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
3704
3716
|
}, [
|
|
3705
3717
|
(d(!0), u(v, null, $(r.columns, (m, y) => (d(), u("td", {
|
|
@@ -3707,7 +3719,7 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3707
3719
|
"data-label": m.field_label,
|
|
3708
3720
|
class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-2.5 lg:px-4 border dark:border-gray-700"
|
|
3709
3721
|
}, [
|
|
3710
|
-
s("div",
|
|
3722
|
+
s("div", zo, [
|
|
3711
3723
|
m.tdComp ? (d(), K(oe(a.forDynCompIs(m.tdComp)), {
|
|
3712
3724
|
key: 0,
|
|
3713
3725
|
row: c,
|
|
@@ -3717,15 +3729,15 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3717
3729
|
onDeleteAction: t[3] || (t[3] = (x) => a.GetItemLists()),
|
|
3718
3730
|
onEditAction: (x) => a.editAction(c)
|
|
3719
3731
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (d(), u(v, { key: 1 }, [
|
|
3720
|
-
w(
|
|
3732
|
+
w(h(c[m.field_name]), 1)
|
|
3721
3733
|
], 64))
|
|
3722
3734
|
])
|
|
3723
|
-
], 8,
|
|
3735
|
+
], 8, qo))), 128))
|
|
3724
3736
|
]))), 128))
|
|
3725
3737
|
])
|
|
3726
3738
|
])
|
|
3727
3739
|
]),
|
|
3728
|
-
s("div",
|
|
3740
|
+
s("div", Ho, [
|
|
3729
3741
|
Z(l, {
|
|
3730
3742
|
class: "mt-3 mb-0",
|
|
3731
3743
|
data: o.itemLists,
|
|
@@ -3737,7 +3749,7 @@ function Ho(e, t, r, n, o, a) {
|
|
|
3737
3749
|
])
|
|
3738
3750
|
]);
|
|
3739
3751
|
}
|
|
3740
|
-
const
|
|
3752
|
+
const lu = /* @__PURE__ */ k(ko, [["render", Zo]]), Ko = {
|
|
3741
3753
|
components: {},
|
|
3742
3754
|
props: {
|
|
3743
3755
|
data: Array,
|
|
@@ -3817,10 +3829,10 @@ const ou = /* @__PURE__ */ k(wo, [["render", Ho]]), Zo = {
|
|
|
3817
3829
|
e >= 1 && e <= this.totalPages && (this.currentPage = e);
|
|
3818
3830
|
}
|
|
3819
3831
|
}
|
|
3820
|
-
},
|
|
3832
|
+
}, Wo = { class: "p-2" }, Yo = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, Xo = { class: "flex items-center gap-2" }, Jo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), Qo = { style: { "margin-top": "9px" } }, el = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), tl = /* @__PURE__ */ s("label", {
|
|
3821
3833
|
for: "table-search",
|
|
3822
3834
|
class: "sr-only"
|
|
3823
|
-
}, "Search", -1),
|
|
3835
|
+
}, "Search", -1), rl = { class: "relative" }, sl = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
|
|
3824
3836
|
/* @__PURE__ */ s("svg", {
|
|
3825
3837
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3826
3838
|
"aria-hidden": "true",
|
|
@@ -3834,19 +3846,19 @@ const ou = /* @__PURE__ */ k(wo, [["render", Ho]]), Zo = {
|
|
|
3834
3846
|
"clip-rule": "evenodd"
|
|
3835
3847
|
})
|
|
3836
3848
|
])
|
|
3837
|
-
], -1),
|
|
3849
|
+
], -1), al = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, nl = { class: "w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-3 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark" }, ol = { class: "hidden text-sm font-normal text-center text-gray-700 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, ll = ["onClick"], il = {
|
|
3838
3850
|
key: 0,
|
|
3839
3851
|
class: "ml-2"
|
|
3840
|
-
},
|
|
3852
|
+
}, dl = {
|
|
3841
3853
|
key: 0,
|
|
3842
3854
|
class: "fa fa-arrow-up"
|
|
3843
|
-
},
|
|
3855
|
+
}, ul = {
|
|
3844
3856
|
key: 1,
|
|
3845
3857
|
class: "fa fa-arrow-down"
|
|
3846
|
-
},
|
|
3858
|
+
}, cl = ["data-label"], fl = ["innerHTML"], gl = {
|
|
3847
3859
|
key: 0,
|
|
3848
3860
|
class: "flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800"
|
|
3849
|
-
},
|
|
3861
|
+
}, hl = { class: "flex justify-between flex-1 sm:hidden" }, ml = ["disabled"], bl = ["disabled"], pl = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, yl = { class: "text-sm text-gray-700 dark:text-gray-400" }, _l = { class: "font-medium" }, vl = { class: "font-medium" }, xl = { class: "font-medium" }, wl = { "aria-label": "Page navigation" }, kl = { class: "flex items-center h-8 -space-x-px text-sm" }, $l = ["disabled"], Cl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), Sl = /* @__PURE__ */ s("svg", {
|
|
3850
3862
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3851
3863
|
"aria-hidden": "true",
|
|
3852
3864
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3860,10 +3872,10 @@ const ou = /* @__PURE__ */ k(wo, [["render", Ho]]), Zo = {
|
|
|
3860
3872
|
"stroke-width": "2",
|
|
3861
3873
|
d: "M5 1 1 5l4 4"
|
|
3862
3874
|
})
|
|
3863
|
-
], -1),
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
],
|
|
3875
|
+
], -1), Dl = [
|
|
3876
|
+
Cl,
|
|
3877
|
+
Sl
|
|
3878
|
+
], Ol = ["onClick"], Pl = ["onClick"], El = ["disabled"], Al = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), jl = /* @__PURE__ */ s("svg", {
|
|
3867
3879
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3868
3880
|
"aria-hidden": "true",
|
|
3869
3881
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3877,17 +3889,17 @@ const ou = /* @__PURE__ */ k(wo, [["render", Ho]]), Zo = {
|
|
|
3877
3889
|
"stroke-width": "2",
|
|
3878
3890
|
d: "m1 9 4-4-4-4"
|
|
3879
3891
|
})
|
|
3880
|
-
], -1),
|
|
3881
|
-
|
|
3882
|
-
|
|
3892
|
+
], -1), Tl = [
|
|
3893
|
+
Al,
|
|
3894
|
+
jl
|
|
3883
3895
|
];
|
|
3884
|
-
function
|
|
3896
|
+
function Il(e, t, r, n, o, a) {
|
|
3885
3897
|
const i = X("dropdown");
|
|
3886
|
-
return d(), u("div",
|
|
3887
|
-
s("div",
|
|
3888
|
-
s("div",
|
|
3889
|
-
|
|
3890
|
-
s("div",
|
|
3898
|
+
return d(), u("div", Wo, [
|
|
3899
|
+
s("div", Yo, [
|
|
3900
|
+
s("div", Xo, [
|
|
3901
|
+
Jo,
|
|
3902
|
+
s("div", Qo, [
|
|
3891
3903
|
Z(i, {
|
|
3892
3904
|
has_cancel: !1,
|
|
3893
3905
|
options: o.showNoOfEntries,
|
|
@@ -3901,35 +3913,35 @@ function Tl(e, t, r, n, o, a) {
|
|
|
3901
3913
|
placeholder: "Please select an option"
|
|
3902
3914
|
}, null, 8, ["options", "modelValue"])
|
|
3903
3915
|
]),
|
|
3904
|
-
|
|
3916
|
+
el
|
|
3905
3917
|
]),
|
|
3906
|
-
|
|
3907
|
-
s("div",
|
|
3908
|
-
|
|
3909
|
-
|
|
3918
|
+
tl,
|
|
3919
|
+
s("div", rl, [
|
|
3920
|
+
sl,
|
|
3921
|
+
D(s("input", {
|
|
3910
3922
|
type: "text",
|
|
3911
3923
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => o.search = l),
|
|
3912
3924
|
class: "block p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
3913
3925
|
placeholder: "Search ..."
|
|
3914
3926
|
}, null, 512), [
|
|
3915
|
-
[
|
|
3927
|
+
[L, o.search]
|
|
3916
3928
|
])
|
|
3917
3929
|
])
|
|
3918
3930
|
]),
|
|
3919
|
-
s("div",
|
|
3920
|
-
s("table",
|
|
3921
|
-
s("thead",
|
|
3931
|
+
s("div", al, [
|
|
3932
|
+
s("table", nl, [
|
|
3933
|
+
s("thead", ol, [
|
|
3922
3934
|
s("tr", null, [
|
|
3923
3935
|
(d(!0), u(v, null, $(r.columns, (l, c) => (d(), u("th", {
|
|
3924
3936
|
key: c,
|
|
3925
|
-
onClick: (
|
|
3937
|
+
onClick: (g) => a.sort(l),
|
|
3926
3938
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3927
3939
|
}, [
|
|
3928
|
-
w(
|
|
3929
|
-
o.sortKey === l ? (d(), u("span",
|
|
3930
|
-
o.sortOrder === "asc" ? (d(), u("i",
|
|
3940
|
+
w(h(l) + " ", 1),
|
|
3941
|
+
o.sortKey === l ? (d(), u("span", il, [
|
|
3942
|
+
o.sortOrder === "asc" ? (d(), u("i", dl)) : (d(), u("i", ul))
|
|
3931
3943
|
])) : f("", !0)
|
|
3932
|
-
], 8,
|
|
3944
|
+
], 8, ll))), 128))
|
|
3933
3945
|
])
|
|
3934
3946
|
]),
|
|
3935
3947
|
s("tbody", null, [
|
|
@@ -3937,57 +3949,57 @@ function Tl(e, t, r, n, o, a) {
|
|
|
3937
3949
|
key: c,
|
|
3938
3950
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
|
|
3939
3951
|
}, [
|
|
3940
|
-
(d(!0), u(v, null, $(r.columns, (
|
|
3952
|
+
(d(!0), u(v, null, $(r.columns, (g, m) => (d(), u("td", {
|
|
3941
3953
|
key: m,
|
|
3942
|
-
"data-label":
|
|
3954
|
+
"data-label": g,
|
|
3943
3955
|
class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-2.5 lg:px-4 border dark:border-gray-700"
|
|
3944
3956
|
}, [
|
|
3945
3957
|
s("p", {
|
|
3946
3958
|
class: "text-pretty",
|
|
3947
3959
|
innerHTML: l[m]
|
|
3948
|
-
}, null, 8,
|
|
3949
|
-
], 8,
|
|
3960
|
+
}, null, 8, fl)
|
|
3961
|
+
], 8, cl))), 128))
|
|
3950
3962
|
]))), 128))
|
|
3951
3963
|
])
|
|
3952
3964
|
])
|
|
3953
3965
|
]),
|
|
3954
|
-
a.paginatedData.length > 0 ? (d(), u("div",
|
|
3955
|
-
s("div",
|
|
3966
|
+
a.paginatedData.length > 0 ? (d(), u("div", gl, [
|
|
3967
|
+
s("div", hl, [
|
|
3956
3968
|
s("a", {
|
|
3957
3969
|
href: "#",
|
|
3958
3970
|
onClick: t[2] || (t[2] = (...l) => a.previousPage && a.previousPage(...l)),
|
|
3959
3971
|
disabled: o.currentPage === 1,
|
|
3960
3972
|
class: "relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
3961
|
-
}, "Previous", 8,
|
|
3973
|
+
}, "Previous", 8, ml),
|
|
3962
3974
|
s("a", {
|
|
3963
3975
|
href: "#",
|
|
3964
3976
|
onClick: t[3] || (t[3] = (...l) => a.nextPage && a.nextPage(...l)),
|
|
3965
3977
|
disabled: o.currentPage === a.totalPages,
|
|
3966
3978
|
class: "relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
3967
|
-
}, "Next", 8,
|
|
3979
|
+
}, "Next", 8, bl)
|
|
3968
3980
|
]),
|
|
3969
|
-
s("div",
|
|
3981
|
+
s("div", pl, [
|
|
3970
3982
|
s("div", null, [
|
|
3971
|
-
s("p",
|
|
3983
|
+
s("p", yl, [
|
|
3972
3984
|
w(" Showing "),
|
|
3973
|
-
s("span",
|
|
3985
|
+
s("span", _l, h(a.firstItemIndex), 1),
|
|
3974
3986
|
w(" to "),
|
|
3975
|
-
s("span",
|
|
3987
|
+
s("span", vl, h(a.lastItemIndex), 1),
|
|
3976
3988
|
w(" of "),
|
|
3977
|
-
s("span",
|
|
3989
|
+
s("span", xl, h(a.filteredData.length), 1),
|
|
3978
3990
|
w(" entries ")
|
|
3979
3991
|
])
|
|
3980
3992
|
]),
|
|
3981
3993
|
s("div", null, [
|
|
3982
|
-
s("nav",
|
|
3983
|
-
s("ul",
|
|
3994
|
+
s("nav", wl, [
|
|
3995
|
+
s("ul", kl, [
|
|
3984
3996
|
s("li", null, [
|
|
3985
3997
|
s("a", {
|
|
3986
3998
|
href: "#",
|
|
3987
3999
|
onClick: t[4] || (t[4] = (...l) => a.previousPage && a.previousPage(...l)),
|
|
3988
4000
|
disabled: o.currentPage === 1,
|
|
3989
4001
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
3990
|
-
},
|
|
4002
|
+
}, Dl, 8, $l)
|
|
3991
4003
|
]),
|
|
3992
4004
|
(d(!0), u(v, null, $(a.displayedPageNumbers, (l) => (d(), u(v, { key: l }, [
|
|
3993
4005
|
s("li", null, [
|
|
@@ -3996,7 +4008,7 @@ function Tl(e, t, r, n, o, a) {
|
|
|
3996
4008
|
href: "#",
|
|
3997
4009
|
onClick: (c) => a.goToPage(l),
|
|
3998
4010
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
3999
|
-
},
|
|
4011
|
+
}, h(l), 9, Ol)) : f("", !0)
|
|
4000
4012
|
]),
|
|
4001
4013
|
s("li", null, [
|
|
4002
4014
|
o.currentPage === l ? (d(), u("a", {
|
|
@@ -4005,7 +4017,7 @@ function Tl(e, t, r, n, o, a) {
|
|
|
4005
4017
|
onClick: (c) => a.goToPage(l),
|
|
4006
4018
|
"aria-current": "page",
|
|
4007
4019
|
class: "z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white"
|
|
4008
|
-
},
|
|
4020
|
+
}, h(l), 9, Pl)) : f("", !0)
|
|
4009
4021
|
])
|
|
4010
4022
|
], 64))), 128)),
|
|
4011
4023
|
s("li", null, [
|
|
@@ -4014,7 +4026,7 @@ function Tl(e, t, r, n, o, a) {
|
|
|
4014
4026
|
onClick: t[5] || (t[5] = (...l) => a.nextPage && a.nextPage(...l)),
|
|
4015
4027
|
disabled: o.currentPage === a.totalPages,
|
|
4016
4028
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
4017
|
-
},
|
|
4029
|
+
}, Tl, 8, El)
|
|
4018
4030
|
])
|
|
4019
4031
|
])
|
|
4020
4032
|
])
|
|
@@ -4023,13 +4035,13 @@ function Tl(e, t, r, n, o, a) {
|
|
|
4023
4035
|
])) : f("", !0)
|
|
4024
4036
|
]);
|
|
4025
4037
|
}
|
|
4026
|
-
const
|
|
4038
|
+
const iu = /* @__PURE__ */ k(Ko, [["render", Il]]), Ml = {
|
|
4027
4039
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
4028
4040
|
role: "alert"
|
|
4029
|
-
},
|
|
4041
|
+
}, Nl = {
|
|
4030
4042
|
key: 0,
|
|
4031
4043
|
class: "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"
|
|
4032
|
-
},
|
|
4044
|
+
}, Ll = /* @__PURE__ */ s("svg", {
|
|
4033
4045
|
class: "w-5 h-5",
|
|
4034
4046
|
"aria-hidden": "true",
|
|
4035
4047
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4037,13 +4049,13 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4037
4049
|
viewBox: "0 0 20 20"
|
|
4038
4050
|
}, [
|
|
4039
4051
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z" })
|
|
4040
|
-
], -1), Vl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Check icon", -1),
|
|
4041
|
-
|
|
4052
|
+
], -1), Vl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Check icon", -1), Bl = [
|
|
4053
|
+
Ll,
|
|
4042
4054
|
Vl
|
|
4043
|
-
],
|
|
4055
|
+
], Gl = {
|
|
4044
4056
|
key: 1,
|
|
4045
4057
|
class: "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"
|
|
4046
|
-
},
|
|
4058
|
+
}, Fl = /* @__PURE__ */ s("svg", {
|
|
4047
4059
|
class: "w-5 h-5",
|
|
4048
4060
|
"aria-hidden": "true",
|
|
4049
4061
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4051,13 +4063,13 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4051
4063
|
viewBox: "0 0 20 20"
|
|
4052
4064
|
}, [
|
|
4053
4065
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 11.793a1 1 0 1 1-1.414 1.414L10 11.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L8.586 10 6.293 7.707a1 1 0 0 1 1.414-1.414L10 8.586l2.293-2.293a1 1 0 0 1 1.414 1.414L11.414 10l2.293 2.293Z" })
|
|
4054
|
-
], -1),
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
],
|
|
4066
|
+
], -1), Rl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Error icon", -1), Ul = [
|
|
4067
|
+
Fl,
|
|
4068
|
+
Rl
|
|
4069
|
+
], ql = {
|
|
4058
4070
|
key: 2,
|
|
4059
4071
|
class: "inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-700 dark:text-orange-200"
|
|
4060
|
-
},
|
|
4072
|
+
}, zl = /* @__PURE__ */ s("svg", {
|
|
4061
4073
|
class: "w-5 h-5",
|
|
4062
4074
|
"aria-hidden": "true",
|
|
4063
4075
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4065,10 +4077,10 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4065
4077
|
viewBox: "0 0 20 20"
|
|
4066
4078
|
}, [
|
|
4067
4079
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z" })
|
|
4068
|
-
], -1),
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
],
|
|
4080
|
+
], -1), Hl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Warning icon", -1), Zl = [
|
|
4081
|
+
zl,
|
|
4082
|
+
Hl
|
|
4083
|
+
], Kl = { class: "ml-3 text-sm font-normal" }, Wl = /* @__PURE__ */ s("span", { class: "sr-only" }, "Close", -1), Yl = /* @__PURE__ */ s("svg", {
|
|
4072
4084
|
"aria-hidden": "true",
|
|
4073
4085
|
class: "w-5 h-5",
|
|
4074
4086
|
fill: "currentColor",
|
|
@@ -4080,10 +4092,10 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4080
4092
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
4081
4093
|
"clip-rule": "evenodd"
|
|
4082
4094
|
})
|
|
4083
|
-
], -1),
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
],
|
|
4095
|
+
], -1), Xl = [
|
|
4096
|
+
Wl,
|
|
4097
|
+
Yl
|
|
4098
|
+
], Jl = {
|
|
4087
4099
|
__name: "ToastListItem",
|
|
4088
4100
|
props: {
|
|
4089
4101
|
message: String,
|
|
@@ -4103,23 +4115,23 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4103
4115
|
setTimeout(() => n("remove"), r.duration);
|
|
4104
4116
|
});
|
|
4105
4117
|
const n = t;
|
|
4106
|
-
return (o, a) => (d(), u("div",
|
|
4107
|
-
r.type === "success" ? (d(), u("div",
|
|
4108
|
-
r.type === "error" ? (d(), u("div",
|
|
4109
|
-
r.type === "warning" ? (d(), u("div",
|
|
4110
|
-
s("div",
|
|
4118
|
+
return (o, a) => (d(), u("div", Ml, [
|
|
4119
|
+
r.type === "success" ? (d(), u("div", Nl, Bl)) : f("", !0),
|
|
4120
|
+
r.type === "error" ? (d(), u("div", Gl, Ul)) : f("", !0),
|
|
4121
|
+
r.type === "warning" ? (d(), u("div", ql, Zl)) : f("", !0),
|
|
4122
|
+
s("div", Kl, h(r.message), 1),
|
|
4111
4123
|
s("button", {
|
|
4112
4124
|
onClick: a[0] || (a[0] = (i) => n("remove")),
|
|
4113
4125
|
type: "button",
|
|
4114
4126
|
class: "-mx-1.5 -my-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",
|
|
4115
4127
|
"data-dismiss-target": "#toast-default",
|
|
4116
4128
|
"aria-label": "Close"
|
|
4117
|
-
},
|
|
4129
|
+
}, Xl)
|
|
4118
4130
|
]));
|
|
4119
4131
|
}
|
|
4120
4132
|
}, de = Se({
|
|
4121
4133
|
items: []
|
|
4122
|
-
}),
|
|
4134
|
+
}), Ql = {
|
|
4123
4135
|
add(e) {
|
|
4124
4136
|
de.items.unshift({
|
|
4125
4137
|
key: Symbol(),
|
|
@@ -4133,14 +4145,14 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4133
4145
|
}
|
|
4134
4146
|
}, $e = {
|
|
4135
4147
|
state: de,
|
|
4136
|
-
methods:
|
|
4137
|
-
},
|
|
4148
|
+
methods: Ql
|
|
4149
|
+
}, du = {
|
|
4138
4150
|
__name: "GlToastList",
|
|
4139
4151
|
setup(e) {
|
|
4140
4152
|
function t(r) {
|
|
4141
4153
|
$e.methods.remove(r);
|
|
4142
4154
|
}
|
|
4143
|
-
return (r, n) => (d(), K(
|
|
4155
|
+
return (r, n) => (d(), K(dt, {
|
|
4144
4156
|
tag: "div",
|
|
4145
4157
|
"enter-from-class": "translate-x-full opacity-0",
|
|
4146
4158
|
"enter-active-class": "duration-500",
|
|
@@ -4149,7 +4161,7 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4149
4161
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
4150
4162
|
}, {
|
|
4151
4163
|
default: J(() => [
|
|
4152
|
-
(d(!0), u(v, null, $(
|
|
4164
|
+
(d(!0), u(v, null, $(De($e).state.items, (o, a) => (d(), K(Jl, {
|
|
4153
4165
|
key: o.key,
|
|
4154
4166
|
message: o.message,
|
|
4155
4167
|
type: o.type,
|
|
@@ -4160,10 +4172,10 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4160
4172
|
_: 1
|
|
4161
4173
|
}));
|
|
4162
4174
|
}
|
|
4163
|
-
},
|
|
4175
|
+
}, ei = {
|
|
4164
4176
|
key: 0,
|
|
4165
4177
|
class: "flex justify-center"
|
|
4166
|
-
},
|
|
4178
|
+
}, ti = /* @__PURE__ */ s("svg", {
|
|
4167
4179
|
class: "w-5 h-5",
|
|
4168
4180
|
"aria-hidden": "true",
|
|
4169
4181
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4171,12 +4183,12 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4171
4183
|
viewBox: "0 0 4 15"
|
|
4172
4184
|
}, [
|
|
4173
4185
|
/* @__PURE__ */ s("path", { d: "M3.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 6.041a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 5.959a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" })
|
|
4174
|
-
], -1),
|
|
4175
|
-
|
|
4176
|
-
],
|
|
4186
|
+
], -1), ri = [
|
|
4187
|
+
ti
|
|
4188
|
+
], si = { class: "absolute right-0 z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600" }, ai = {
|
|
4177
4189
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4178
4190
|
"aria-labelledby": "dropdownDividerButton"
|
|
4179
|
-
},
|
|
4191
|
+
}, ni = { key: 0 }, oi = ["href"], li = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), ii = { key: 1 }, di = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), uu = {
|
|
4180
4192
|
__name: "DatatableAction",
|
|
4181
4193
|
props: {
|
|
4182
4194
|
field: {
|
|
@@ -4202,13 +4214,13 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4202
4214
|
},
|
|
4203
4215
|
emits: ["deleteAction"],
|
|
4204
4216
|
setup(e, { emit: t }) {
|
|
4205
|
-
const r =
|
|
4217
|
+
const r = Ae(), n = e, o = S(!1), a = S(!1), i = () => {
|
|
4206
4218
|
o.value = !1;
|
|
4207
4219
|
}, l = () => {
|
|
4208
4220
|
o.value = !0;
|
|
4209
4221
|
}, c = () => {
|
|
4210
4222
|
a.value = !1;
|
|
4211
|
-
},
|
|
4223
|
+
}, g = () => {
|
|
4212
4224
|
a.value = !0;
|
|
4213
4225
|
}, m = t, y = () => {
|
|
4214
4226
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
@@ -4222,37 +4234,37 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4222
4234
|
});
|
|
4223
4235
|
};
|
|
4224
4236
|
return (x, C) => {
|
|
4225
|
-
const
|
|
4237
|
+
const V = Oe("click-outside");
|
|
4226
4238
|
return d(), u(v, null, [
|
|
4227
4239
|
Z(ue, {
|
|
4228
4240
|
isOpen: a.value,
|
|
4229
4241
|
onConfirmDelete: y,
|
|
4230
4242
|
onCancelDelete: c
|
|
4231
4243
|
}, null, 8, ["isOpen"]),
|
|
4232
|
-
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ?
|
|
4244
|
+
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? D((d(), u("div", ei, [
|
|
4233
4245
|
s("button", {
|
|
4234
4246
|
onClick: l,
|
|
4235
4247
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
4236
4248
|
type: "button"
|
|
4237
|
-
},
|
|
4238
|
-
|
|
4239
|
-
s("ul",
|
|
4240
|
-
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li",
|
|
4249
|
+
}, ri),
|
|
4250
|
+
D(s("div", si, [
|
|
4251
|
+
s("ul", ai, [
|
|
4252
|
+
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li", ni, [
|
|
4241
4253
|
s("a", {
|
|
4242
4254
|
href: e.xprops.route + "/" + e.row.id + "/edit",
|
|
4243
4255
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4244
4256
|
}, [
|
|
4245
|
-
|
|
4257
|
+
li,
|
|
4246
4258
|
w(" Edit")
|
|
4247
|
-
], 8,
|
|
4259
|
+
], 8, oi)
|
|
4248
4260
|
])) : f("", !0),
|
|
4249
|
-
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4261
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", ii, [
|
|
4250
4262
|
s("a", {
|
|
4251
4263
|
href: "#",
|
|
4252
|
-
onClick: N(
|
|
4264
|
+
onClick: N(g, ["prevent"]),
|
|
4253
4265
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4254
4266
|
}, [
|
|
4255
|
-
|
|
4267
|
+
di,
|
|
4256
4268
|
w(" Remove")
|
|
4257
4269
|
])
|
|
4258
4270
|
])) : f("", !0)
|
|
@@ -4261,15 +4273,15 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4261
4273
|
[F, o.value]
|
|
4262
4274
|
])
|
|
4263
4275
|
])), [
|
|
4264
|
-
[
|
|
4276
|
+
[V, i]
|
|
4265
4277
|
]) : f("", !0)
|
|
4266
4278
|
], 64);
|
|
4267
4279
|
};
|
|
4268
4280
|
}
|
|
4269
|
-
},
|
|
4281
|
+
}, ui = {
|
|
4270
4282
|
key: 0,
|
|
4271
4283
|
class: "flex justify-center"
|
|
4272
|
-
},
|
|
4284
|
+
}, ci = /* @__PURE__ */ s("svg", {
|
|
4273
4285
|
class: "w-5 h-5",
|
|
4274
4286
|
"aria-hidden": "true",
|
|
4275
4287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4277,12 +4289,12 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4277
4289
|
viewBox: "0 0 4 15"
|
|
4278
4290
|
}, [
|
|
4279
4291
|
/* @__PURE__ */ s("path", { d: "M3.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 6.041a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 5.959a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" })
|
|
4280
|
-
], -1),
|
|
4281
|
-
|
|
4282
|
-
],
|
|
4292
|
+
], -1), fi = [
|
|
4293
|
+
ci
|
|
4294
|
+
], gi = { class: "absolute right-0 z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600" }, hi = {
|
|
4283
4295
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4284
4296
|
"aria-labelledby": "dropdownDividerButton"
|
|
4285
|
-
},
|
|
4297
|
+
}, mi = { key: 0 }, bi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), cu = {
|
|
4286
4298
|
__name: "DatatableDeleteAction",
|
|
4287
4299
|
props: {
|
|
4288
4300
|
field: {
|
|
@@ -4308,13 +4320,13 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4308
4320
|
},
|
|
4309
4321
|
emits: ["deleteAction"],
|
|
4310
4322
|
setup(e, { emit: t }) {
|
|
4311
|
-
const r =
|
|
4323
|
+
const r = Ae(), n = e, o = S(!1), a = S(!1), i = () => {
|
|
4312
4324
|
o.value = !1;
|
|
4313
4325
|
}, l = () => {
|
|
4314
4326
|
o.value = !0;
|
|
4315
4327
|
}, c = () => {
|
|
4316
4328
|
a.value = !1;
|
|
4317
|
-
},
|
|
4329
|
+
}, g = () => {
|
|
4318
4330
|
a.value = !0;
|
|
4319
4331
|
}, m = t, y = () => {
|
|
4320
4332
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
@@ -4328,28 +4340,28 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4328
4340
|
});
|
|
4329
4341
|
};
|
|
4330
4342
|
return (x, C) => {
|
|
4331
|
-
const
|
|
4343
|
+
const V = Oe("click-outside");
|
|
4332
4344
|
return d(), u(v, null, [
|
|
4333
4345
|
Z(ue, {
|
|
4334
4346
|
isOpen: a.value,
|
|
4335
4347
|
onConfirmDelete: y,
|
|
4336
4348
|
onCancelDelete: c
|
|
4337
4349
|
}, null, 8, ["isOpen"]),
|
|
4338
|
-
e.row && x.can(`delete_${e.xprops.permission}`) ?
|
|
4350
|
+
e.row && x.can(`delete_${e.xprops.permission}`) ? D((d(), u("div", ui, [
|
|
4339
4351
|
s("button", {
|
|
4340
4352
|
onClick: l,
|
|
4341
4353
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
4342
4354
|
type: "button"
|
|
4343
|
-
},
|
|
4344
|
-
|
|
4345
|
-
s("ul",
|
|
4346
|
-
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4355
|
+
}, fi),
|
|
4356
|
+
D(s("div", gi, [
|
|
4357
|
+
s("ul", hi, [
|
|
4358
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", mi, [
|
|
4347
4359
|
s("a", {
|
|
4348
4360
|
href: "#",
|
|
4349
|
-
onClick: N(
|
|
4361
|
+
onClick: N(g, ["prevent"]),
|
|
4350
4362
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4351
4363
|
}, [
|
|
4352
|
-
|
|
4364
|
+
bi,
|
|
4353
4365
|
w(" Remove")
|
|
4354
4366
|
])
|
|
4355
4367
|
])) : f("", !0)
|
|
@@ -4358,12 +4370,12 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4358
4370
|
[F, o.value]
|
|
4359
4371
|
])
|
|
4360
4372
|
])), [
|
|
4361
|
-
[
|
|
4373
|
+
[V, i]
|
|
4362
4374
|
]) : f("", !0)
|
|
4363
4375
|
], 64);
|
|
4364
4376
|
};
|
|
4365
4377
|
}
|
|
4366
|
-
},
|
|
4378
|
+
}, pi = {
|
|
4367
4379
|
props: ["field", "row"],
|
|
4368
4380
|
computed: {
|
|
4369
4381
|
isArray() {
|
|
@@ -4378,7 +4390,7 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4378
4390
|
},
|
|
4379
4391
|
mounted() {
|
|
4380
4392
|
}
|
|
4381
|
-
},
|
|
4393
|
+
}, yi = ["href", "title"], _i = /* @__PURE__ */ s("svg", {
|
|
4382
4394
|
class: "w-3 h-3 text-white me-2",
|
|
4383
4395
|
"aria-hidden": "true",
|
|
4384
4396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4395,10 +4407,10 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4395
4407
|
d: "M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z",
|
|
4396
4408
|
"clip-rule": "evenodd"
|
|
4397
4409
|
})
|
|
4398
|
-
], -1),
|
|
4410
|
+
], -1), vi = {
|
|
4399
4411
|
key: 1,
|
|
4400
4412
|
class: "m-1 d-inline-block"
|
|
4401
|
-
},
|
|
4413
|
+
}, xi = ["href", "title"], wi = /* @__PURE__ */ s("svg", {
|
|
4402
4414
|
class: "w-3 h-3 text-white me-2",
|
|
4403
4415
|
"aria-hidden": "true",
|
|
4404
4416
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4416,7 +4428,7 @@ const lu = /* @__PURE__ */ k(Zo, [["render", Tl]]), Il = {
|
|
|
4416
4428
|
"clip-rule": "evenodd"
|
|
4417
4429
|
})
|
|
4418
4430
|
], -1);
|
|
4419
|
-
function
|
|
4431
|
+
function ki(e, t, r, n, o, a) {
|
|
4420
4432
|
return d(), u("div", null, [
|
|
4421
4433
|
a.isArray ? (d(!0), u(v, { key: 0 }, $(r.row, (i, l) => (d(), u("div", {
|
|
4422
4434
|
key: l,
|
|
@@ -4428,23 +4440,23 @@ function wi(e, t, r, n, o, a) {
|
|
|
4428
4440
|
target: "_blank",
|
|
4429
4441
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4430
4442
|
}, [
|
|
4431
|
-
|
|
4443
|
+
_i,
|
|
4432
4444
|
w(" Download ")
|
|
4433
|
-
], 8,
|
|
4434
|
-
]))), 128)) : a.isString ? (d(), u("div",
|
|
4445
|
+
], 8, yi)
|
|
4446
|
+
]))), 128)) : a.isString ? (d(), u("div", vi, [
|
|
4435
4447
|
s("a", {
|
|
4436
4448
|
href: r.row,
|
|
4437
4449
|
title: r.row,
|
|
4438
4450
|
target: "_blank",
|
|
4439
4451
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4440
4452
|
}, [
|
|
4441
|
-
|
|
4453
|
+
wi,
|
|
4442
4454
|
w(" Download ")
|
|
4443
|
-
], 8,
|
|
4455
|
+
], 8, xi)
|
|
4444
4456
|
])) : f("", !0)
|
|
4445
4457
|
]);
|
|
4446
4458
|
}
|
|
4447
|
-
const
|
|
4459
|
+
const fu = /* @__PURE__ */ k(pi, [["render", ki]]), $i = {
|
|
4448
4460
|
props: ["field", "row"],
|
|
4449
4461
|
computed: {
|
|
4450
4462
|
isArray() {
|
|
@@ -4454,7 +4466,7 @@ const cu = /* @__PURE__ */ k(bi, [["render", wi]]), ki = {
|
|
|
4454
4466
|
return typeof this.row[this.field] == "object";
|
|
4455
4467
|
}
|
|
4456
4468
|
}
|
|
4457
|
-
},
|
|
4469
|
+
}, Ci = ["href", "title"], Si = /* @__PURE__ */ s("svg", {
|
|
4458
4470
|
class: "w-3 h-3 text-white me-2",
|
|
4459
4471
|
"aria-hidden": "true",
|
|
4460
4472
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4471,10 +4483,10 @@ const cu = /* @__PURE__ */ k(bi, [["render", wi]]), ki = {
|
|
|
4471
4483
|
d: "M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z",
|
|
4472
4484
|
"clip-rule": "evenodd"
|
|
4473
4485
|
})
|
|
4474
|
-
], -1),
|
|
4486
|
+
], -1), Di = {
|
|
4475
4487
|
key: 1,
|
|
4476
4488
|
class: "m-1 d-inline-block"
|
|
4477
|
-
},
|
|
4489
|
+
}, Oi = ["href", "title"], Pi = /* @__PURE__ */ s("svg", {
|
|
4478
4490
|
class: "w-3 h-3 text-white me-2",
|
|
4479
4491
|
"aria-hidden": "true",
|
|
4480
4492
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4492,7 +4504,7 @@ const cu = /* @__PURE__ */ k(bi, [["render", wi]]), ki = {
|
|
|
4492
4504
|
"clip-rule": "evenodd"
|
|
4493
4505
|
})
|
|
4494
4506
|
], -1);
|
|
4495
|
-
function
|
|
4507
|
+
function Ei(e, t, r, n, o, a) {
|
|
4496
4508
|
return d(), u("div", null, [
|
|
4497
4509
|
a.isArray ? (d(!0), u(v, { key: 0 }, $(r.row[r.field], (i) => (d(), u("div", {
|
|
4498
4510
|
key: i.id,
|
|
@@ -4504,39 +4516,39 @@ function Pi(e, t, r, n, o, a) {
|
|
|
4504
4516
|
target: "_blank",
|
|
4505
4517
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4506
4518
|
}, [
|
|
4507
|
-
|
|
4519
|
+
Si,
|
|
4508
4520
|
w(" Download ")
|
|
4509
|
-
], 8,
|
|
4510
|
-
]))), 128)) : a.isObject ? (d(), u("div",
|
|
4521
|
+
], 8, Ci)
|
|
4522
|
+
]))), 128)) : a.isObject ? (d(), u("div", Di, [
|
|
4511
4523
|
s("a", {
|
|
4512
4524
|
href: r.row[r.field].url,
|
|
4513
4525
|
title: r.row[r.field].name,
|
|
4514
4526
|
target: "_blank",
|
|
4515
4527
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4516
4528
|
}, [
|
|
4517
|
-
|
|
4529
|
+
Pi,
|
|
4518
4530
|
w(" Download ")
|
|
4519
|
-
], 8,
|
|
4531
|
+
], 8, Oi)
|
|
4520
4532
|
])) : f("", !0)
|
|
4521
4533
|
]);
|
|
4522
4534
|
}
|
|
4523
|
-
const
|
|
4535
|
+
const gu = /* @__PURE__ */ k($i, [["render", Ei]]), Ai = {
|
|
4524
4536
|
props: ["field", "row", "tdProps"]
|
|
4525
|
-
},
|
|
4526
|
-
function
|
|
4527
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4537
|
+
}, ji = { key: 0 }, Ti = ["innerHTML"];
|
|
4538
|
+
function Ii(e, t, r, n, o, a) {
|
|
4539
|
+
return r.row[r.field] ? (d(), u("div", ji, [
|
|
4528
4540
|
s("div", {
|
|
4529
4541
|
class: "w-full",
|
|
4530
4542
|
innerHTML: r.row[r.field]
|
|
4531
|
-
}, null, 8,
|
|
4543
|
+
}, null, 8, Ti)
|
|
4532
4544
|
])) : f("", !0);
|
|
4533
4545
|
}
|
|
4534
|
-
const
|
|
4546
|
+
const hu = /* @__PURE__ */ k(Ai, [["render", Ii]]), Mi = {
|
|
4535
4547
|
props: ["field", "row", "tdProps"],
|
|
4536
4548
|
computed: {
|
|
4537
4549
|
entry() {
|
|
4538
4550
|
const [e, t] = this.field.split(".");
|
|
4539
|
-
return
|
|
4551
|
+
return ut({ key: e, field: t });
|
|
4540
4552
|
},
|
|
4541
4553
|
isArray() {
|
|
4542
4554
|
return Array.isArray(this.row[this.entry.key]);
|
|
@@ -4545,24 +4557,24 @@ const gu = /* @__PURE__ */ k(Ei, [["render", Ti]]), Ii = {
|
|
|
4545
4557
|
return typeof this.row[this.entry.key] == "object";
|
|
4546
4558
|
}
|
|
4547
4559
|
}
|
|
4548
|
-
},
|
|
4560
|
+
}, Ni = { class: "flex flex-wrap gap-2" }, Li = {
|
|
4549
4561
|
key: 1,
|
|
4550
4562
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4551
4563
|
};
|
|
4552
4564
|
function Vi(e, t, r, n, o, a) {
|
|
4553
|
-
return d(), u("div",
|
|
4565
|
+
return d(), u("div", Ni, [
|
|
4554
4566
|
a.isArray ? (d(!0), u(v, { key: 0 }, $(r.row[a.entry.key], (i, l) => (d(), u("span", {
|
|
4555
4567
|
key: l,
|
|
4556
4568
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4557
|
-
},
|
|
4569
|
+
}, h(i[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", Li, h(r.row[a.entry.key][a.entry.field]), 1)) : f("", !0)
|
|
4558
4570
|
]);
|
|
4559
4571
|
}
|
|
4560
|
-
const
|
|
4572
|
+
const mu = /* @__PURE__ */ k(Mi, [["render", Vi]]), Bi = {
|
|
4561
4573
|
props: ["field", "row", "tdProps"]
|
|
4562
|
-
},
|
|
4563
|
-
function
|
|
4564
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4565
|
-
s("div",
|
|
4574
|
+
}, Gi = { key: 0 }, Fi = { class: "m-1 d-inline-block" }, Ri = ["href", "title"], Ui = ["src", "alt", "title"];
|
|
4575
|
+
function qi(e, t, r, n, o, a) {
|
|
4576
|
+
return r.row[r.field] ? (d(), u("div", Gi, [
|
|
4577
|
+
s("div", Fi, [
|
|
4566
4578
|
s("a", {
|
|
4567
4579
|
href: r.row[r.field].url,
|
|
4568
4580
|
title: r.row[r.field].name,
|
|
@@ -4572,37 +4584,37 @@ function Ui(e, t, r, n, o, a) {
|
|
|
4572
4584
|
src: r.row[r.field].thumbnail,
|
|
4573
4585
|
alt: r.row[r.field].name,
|
|
4574
4586
|
title: r.row[r.field].name
|
|
4575
|
-
}, null, 8,
|
|
4576
|
-
], 8,
|
|
4587
|
+
}, null, 8, Ui)
|
|
4588
|
+
], 8, Ri)
|
|
4577
4589
|
])
|
|
4578
4590
|
])) : f("", !0);
|
|
4579
4591
|
}
|
|
4580
|
-
const
|
|
4592
|
+
const bu = /* @__PURE__ */ k(Bi, [["render", qi], ["__scopeId", "data-v-3a28c02c"]]), zi = {
|
|
4581
4593
|
props: ["field", "row", "tdProps"],
|
|
4582
4594
|
computed: {
|
|
4583
4595
|
isActive() {
|
|
4584
4596
|
return this.row[this.field] === 1;
|
|
4585
4597
|
}
|
|
4586
4598
|
}
|
|
4587
|
-
},
|
|
4599
|
+
}, Hi = { class: "flex flex-wrap gap-2 text-nowrap" }, Zi = {
|
|
4588
4600
|
key: 0,
|
|
4589
4601
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
|
|
4590
|
-
},
|
|
4602
|
+
}, Ki = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Wi = {
|
|
4591
4603
|
key: 1,
|
|
4592
4604
|
class: "inline-flex items-center bg-red-100 text-red-800 text-xs font-medium px-2.5 py-0.5 rounded-full dark:bg-red-900 dark:text-red-300"
|
|
4593
|
-
},
|
|
4594
|
-
function
|
|
4595
|
-
return d(), u("div",
|
|
4596
|
-
a.isActive ? (d(), u("span",
|
|
4597
|
-
|
|
4605
|
+
}, Yi = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
4606
|
+
function Xi(e, t, r, n, o, a) {
|
|
4607
|
+
return d(), u("div", Hi, [
|
|
4608
|
+
a.isActive ? (d(), u("span", Zi, [
|
|
4609
|
+
Ki,
|
|
4598
4610
|
w(" Active ")
|
|
4599
|
-
])) : a.isActive ? f("", !0) : (d(), u("span",
|
|
4600
|
-
|
|
4611
|
+
])) : a.isActive ? f("", !0) : (d(), u("span", Wi, [
|
|
4612
|
+
Yi,
|
|
4601
4613
|
w(" Inactive ")
|
|
4602
4614
|
]))
|
|
4603
4615
|
]);
|
|
4604
4616
|
}
|
|
4605
|
-
const
|
|
4617
|
+
const pu = /* @__PURE__ */ k(zi, [["render", Xi]]), Ji = {
|
|
4606
4618
|
props: ["field", "row", "tdProps"],
|
|
4607
4619
|
computed: {
|
|
4608
4620
|
hasLabelColor(e) {
|
|
@@ -4612,50 +4624,50 @@ const bu = /* @__PURE__ */ k(qi, [["render", Yi]]), Xi = {
|
|
|
4612
4624
|
return t ? t.class : "";
|
|
4613
4625
|
}
|
|
4614
4626
|
}
|
|
4615
|
-
},
|
|
4627
|
+
}, Qi = { class: "flex flex-wrap gap-2 text-nowrap" }, ed = {
|
|
4616
4628
|
key: 0,
|
|
4617
4629
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
|
|
4618
|
-
},
|
|
4630
|
+
}, td = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), rd = {
|
|
4619
4631
|
key: 1,
|
|
4620
4632
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-red-800 bg-red-100 rounded-full dark:bg-red-900 dark:text-red-300"
|
|
4621
|
-
},
|
|
4633
|
+
}, sd = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), ad = {
|
|
4622
4634
|
key: 2,
|
|
4623
4635
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-yellow-800 bg-yellow-100 rounded-full dark:bg-gray-700 dark:text-yellow-300"
|
|
4624
|
-
},
|
|
4636
|
+
}, nd = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), od = {
|
|
4625
4637
|
key: 3,
|
|
4626
4638
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-full dark:bg-gray-700 dark:text-blue-400"
|
|
4627
|
-
},
|
|
4639
|
+
}, ld = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1), id = {
|
|
4628
4640
|
key: 4,
|
|
4629
4641
|
class: "inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
|
|
4630
|
-
},
|
|
4642
|
+
}, dd = /* @__PURE__ */ s("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
4631
4643
|
/* @__PURE__ */ s("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
4632
4644
|
/* @__PURE__ */ s("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
4633
4645
|
], -1);
|
|
4634
|
-
function
|
|
4635
|
-
return d(), u("div",
|
|
4636
|
-
a.hasLabelColor == "green" ? (d(), u("span",
|
|
4637
|
-
|
|
4638
|
-
w(" " +
|
|
4646
|
+
function ud(e, t, r, n, o, a) {
|
|
4647
|
+
return d(), u("div", Qi, [
|
|
4648
|
+
a.hasLabelColor == "green" ? (d(), u("span", ed, [
|
|
4649
|
+
td,
|
|
4650
|
+
w(" " + h(this.row[this.field]), 1)
|
|
4639
4651
|
])) : f("", !0),
|
|
4640
|
-
a.hasLabelColor == "red" ? (d(), u("span",
|
|
4641
|
-
|
|
4642
|
-
w(" " +
|
|
4652
|
+
a.hasLabelColor == "red" ? (d(), u("span", rd, [
|
|
4653
|
+
sd,
|
|
4654
|
+
w(" " + h(this.row[this.field]), 1)
|
|
4643
4655
|
])) : f("", !0),
|
|
4644
|
-
a.hasLabelColor == "yellow" ? (d(), u("span",
|
|
4645
|
-
|
|
4646
|
-
w(" " +
|
|
4656
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", ad, [
|
|
4657
|
+
nd,
|
|
4658
|
+
w(" " + h(this.row[this.field]), 1)
|
|
4647
4659
|
])) : f("", !0),
|
|
4648
|
-
a.hasLabelColor == "default" ? (d(), u("span",
|
|
4649
|
-
|
|
4650
|
-
w(" " +
|
|
4660
|
+
a.hasLabelColor == "default" ? (d(), u("span", od, [
|
|
4661
|
+
ld,
|
|
4662
|
+
w(" " + h(this.row[this.field]), 1)
|
|
4651
4663
|
])) : f("", !0),
|
|
4652
|
-
a.hasLabelColor == "animate" ? (d(), u("span",
|
|
4653
|
-
|
|
4654
|
-
w(" " +
|
|
4664
|
+
a.hasLabelColor == "animate" ? (d(), u("span", id, [
|
|
4665
|
+
dd,
|
|
4666
|
+
w(" " + h(this.row[this.field]), 1)
|
|
4655
4667
|
])) : f("", !0)
|
|
4656
4668
|
]);
|
|
4657
4669
|
}
|
|
4658
|
-
const
|
|
4670
|
+
const yu = /* @__PURE__ */ k(Ji, [["render", ud]]), cd = {
|
|
4659
4671
|
props: ["field", "row", "tdProps"],
|
|
4660
4672
|
computed: {
|
|
4661
4673
|
hasLabelColor() {
|
|
@@ -4676,44 +4688,44 @@ const pu = /* @__PURE__ */ k(Xi, [["render", dd]]), ud = {
|
|
|
4676
4688
|
}
|
|
4677
4689
|
}
|
|
4678
4690
|
}
|
|
4679
|
-
},
|
|
4680
|
-
function
|
|
4681
|
-
return d(), u("div",
|
|
4691
|
+
}, fd = { class: "flex flex-wrap gap-2 text-nowrap" };
|
|
4692
|
+
function gd(e, t, r, n, o, a) {
|
|
4693
|
+
return d(), u("div", fd, [
|
|
4682
4694
|
a.hasLabelColor == "Default" ? (d(), u("span", {
|
|
4683
4695
|
key: 0,
|
|
4684
4696
|
class: b(["bg-blue-100 text-blue-800 font-medium me-2 px-2.5 py-0.5 dark:bg-blue-900 dark:text-blue-300 border-blue-400", a.badgeType])
|
|
4685
|
-
},
|
|
4697
|
+
}, h(this.row[this.field]), 3)) : f("", !0),
|
|
4686
4698
|
a.hasLabelColor == "Dark" ? (d(), u("span", {
|
|
4687
4699
|
key: 1,
|
|
4688
4700
|
class: b(["bg-gray-100 text-gray-800 font-medium me-2 px-2.5 py-0.5 dark:bg-gray-700 dark:text-gray-300 border-gray-500", a.badgeType])
|
|
4689
|
-
},
|
|
4701
|
+
}, h(this.row[this.field]), 3)) : f("", !0),
|
|
4690
4702
|
a.hasLabelColor == "Red" ? (d(), u("span", {
|
|
4691
4703
|
key: 2,
|
|
4692
4704
|
class: b(["bg-red-100 text-red-800 font-medium me-2 px-2.5 py-0.5 dark:bg-red-900 dark:text-red-300 border-red-400", a.badgeType])
|
|
4693
|
-
},
|
|
4705
|
+
}, h(this.row[this.field]), 3)) : f("", !0),
|
|
4694
4706
|
a.hasLabelColor == "Green" ? (d(), u("span", {
|
|
4695
4707
|
key: 3,
|
|
4696
4708
|
class: b(["bg-green-100 text-green-800 font-medium me-2 px-2.5 py-0.5 dark:bg-green-900 dark:text-green-300 border-green-400", a.badgeType])
|
|
4697
|
-
},
|
|
4709
|
+
}, h(this.row[this.field]), 3)) : f("", !0),
|
|
4698
4710
|
a.hasLabelColor == "Yellow" ? (d(), u("span", {
|
|
4699
4711
|
key: 4,
|
|
4700
4712
|
class: b(["bg-yellow-100 text-yellow-800 font-medium me-2 px-2.5 py-0.5 dark:bg-yellow-900 dark:text-yellow-300 border-yellow-300", a.badgeType])
|
|
4701
|
-
},
|
|
4713
|
+
}, h(this.row[this.field]), 3)) : f("", !0),
|
|
4702
4714
|
a.hasLabelColor == "Indigo" ? (d(), u("span", {
|
|
4703
4715
|
key: 5,
|
|
4704
4716
|
class: b(["bg-indigo-100 text-indigo-800 font-medium me-2 px-2.5 py-0.5 dark:bg-indigo-900 dark:text-indigo-300 border-indigo-400", a.badgeType])
|
|
4705
|
-
},
|
|
4717
|
+
}, h(this.row[this.field]), 3)) : f("", !0),
|
|
4706
4718
|
a.hasLabelColor == "Purple" ? (d(), u("span", {
|
|
4707
4719
|
key: 6,
|
|
4708
4720
|
class: b(["bg-purple-100 text-purple-800 font-medium me-2 px-2.5 py-0.5 dark:bg-purple-900 dark:text-purple-300 border-purple-400", a.badgeType])
|
|
4709
|
-
},
|
|
4721
|
+
}, h(this.row[this.field]), 3)) : f("", !0),
|
|
4710
4722
|
a.hasLabelColor == "Pink" ? (d(), u("span", {
|
|
4711
4723
|
key: 7,
|
|
4712
4724
|
class: b(["bg-pink-100 text-pink-800 font-medium me-2 px-2.5 py-0.5 dark:bg-pink-900 dark:text-pink-300 border-pink-400", a.badgeType])
|
|
4713
|
-
},
|
|
4725
|
+
}, h(this.row[this.field]), 3)) : f("", !0)
|
|
4714
4726
|
]);
|
|
4715
4727
|
}
|
|
4716
|
-
const
|
|
4728
|
+
const _u = /* @__PURE__ */ k(cd, [["render", gd]]), hd = {
|
|
4717
4729
|
props: ["field", "row", "tdProps"],
|
|
4718
4730
|
computed: {
|
|
4719
4731
|
formattedDate() {
|
|
@@ -4728,54 +4740,54 @@ const yu = /* @__PURE__ */ k(ud, [["render", fd]]), gd = {
|
|
|
4728
4740
|
return this.row[this.field] === 1;
|
|
4729
4741
|
}
|
|
4730
4742
|
}
|
|
4731
|
-
},
|
|
4732
|
-
function
|
|
4733
|
-
return d(), u("div",
|
|
4743
|
+
}, md = { class: "w-full" };
|
|
4744
|
+
function bd(e, t, r, n, o, a) {
|
|
4745
|
+
return d(), u("div", md, h(a.formattedDate), 1);
|
|
4734
4746
|
}
|
|
4735
|
-
const
|
|
4747
|
+
const vu = /* @__PURE__ */ k(hd, [["render", bd]]), pd = {
|
|
4736
4748
|
props: ["field", "row", "tdProps"]
|
|
4737
|
-
},
|
|
4749
|
+
}, yd = { class: "flex flex-wrap gap-2 text-nowrap" }, _d = {
|
|
4738
4750
|
key: 0,
|
|
4739
4751
|
class: "inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
|
|
4740
|
-
},
|
|
4752
|
+
}, vd = /* @__PURE__ */ s("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
4741
4753
|
/* @__PURE__ */ s("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
4742
4754
|
/* @__PURE__ */ s("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
4743
|
-
], -1),
|
|
4755
|
+
], -1), xd = {
|
|
4744
4756
|
key: 1,
|
|
4745
4757
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-yellow-800 bg-yellow-100 rounded-full dark:bg-gray-700 dark:text-yellow-300"
|
|
4746
|
-
},
|
|
4758
|
+
}, wd = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), kd = {
|
|
4747
4759
|
key: 2,
|
|
4748
4760
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
|
|
4749
|
-
},
|
|
4750
|
-
function
|
|
4751
|
-
return d(), u("div",
|
|
4752
|
-
r.row[r.field] === 0 ? (d(), u("span",
|
|
4753
|
-
|
|
4761
|
+
}, $d = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1);
|
|
4762
|
+
function Cd(e, t, r, n, o, a) {
|
|
4763
|
+
return d(), u("div", yd, [
|
|
4764
|
+
r.row[r.field] === 0 ? (d(), u("span", _d, [
|
|
4765
|
+
vd,
|
|
4754
4766
|
w(" Provisioning")
|
|
4755
4767
|
])) : f("", !0),
|
|
4756
|
-
r.row[r.field] === 2 ? (d(), u("span",
|
|
4757
|
-
|
|
4768
|
+
r.row[r.field] === 2 ? (d(), u("span", xd, [
|
|
4769
|
+
wd,
|
|
4758
4770
|
w(" Paused ")
|
|
4759
4771
|
])) : f("", !0),
|
|
4760
|
-
r.row[r.field] === 1 ? (d(), u("span",
|
|
4761
|
-
|
|
4772
|
+
r.row[r.field] === 1 ? (d(), u("span", kd, [
|
|
4773
|
+
$d,
|
|
4762
4774
|
w(" Active ")
|
|
4763
4775
|
])) : f("", !0)
|
|
4764
4776
|
]);
|
|
4765
4777
|
}
|
|
4766
|
-
const
|
|
4778
|
+
const xu = /* @__PURE__ */ k(pd, [["render", Cd]]), Sd = {
|
|
4767
4779
|
props: ["field", "row", "tdProps"]
|
|
4768
|
-
},
|
|
4780
|
+
}, Dd = {
|
|
4769
4781
|
key: 0,
|
|
4770
4782
|
class: "text-nowrap"
|
|
4771
|
-
},
|
|
4772
|
-
function
|
|
4773
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4774
|
-
s("pre",
|
|
4783
|
+
}, Od = { class: "w-full h-full p-3 mx-0 mt-0 overflow-auto font-mono text-left text-white break-words rounded cursor-default whitespace-nowrap bg-zinc-700" };
|
|
4784
|
+
function Pd(e, t, r, n, o, a) {
|
|
4785
|
+
return r.row[r.field] ? (d(), u("div", Dd, [
|
|
4786
|
+
s("pre", Od, " " + h(r.row[r.field]) + `
|
|
4775
4787
|
`, 1)
|
|
4776
4788
|
])) : f("", !0);
|
|
4777
4789
|
}
|
|
4778
|
-
const
|
|
4790
|
+
const wu = /* @__PURE__ */ k(Sd, [["render", Pd]]), Ed = {
|
|
4779
4791
|
props: ["isOpen", "title", "button_text"],
|
|
4780
4792
|
methods: {
|
|
4781
4793
|
confirmAction() {
|
|
@@ -4785,40 +4797,40 @@ const xu = /* @__PURE__ */ k(Cd, [["render", Od]]), Pd = {
|
|
|
4785
4797
|
this.$emit("cancel-action");
|
|
4786
4798
|
}
|
|
4787
4799
|
}
|
|
4788
|
-
},
|
|
4800
|
+
}, Ad = {
|
|
4789
4801
|
key: 0,
|
|
4790
4802
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
4791
4803
|
role: "dialog",
|
|
4792
4804
|
"aria-modal": "true"
|
|
4793
|
-
},
|
|
4805
|
+
}, jd = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, Td = /* @__PURE__ */ s("div", {
|
|
4794
4806
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
4795
4807
|
"aria-hidden": "true"
|
|
4796
|
-
}, null, -1),
|
|
4808
|
+
}, null, -1), Id = /* @__PURE__ */ s("span", {
|
|
4797
4809
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4798
4810
|
"aria-hidden": "true"
|
|
4799
|
-
}, "", -1),
|
|
4800
|
-
function
|
|
4801
|
-
return r.isOpen ? (d(), u("div",
|
|
4802
|
-
s("div",
|
|
4803
|
-
jd,
|
|
4811
|
+
}, "", -1), Md = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, Nd = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, Ld = { class: "sm:flex sm:items-start" }, Vd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, Bd = { class: "text-lg font-medium leading-6 text-gray-900" }, Gd = { class: "mt-2" }, Fd = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
4812
|
+
function Rd(e, t, r, n, o, a) {
|
|
4813
|
+
return r.isOpen ? (d(), u("div", Ad, [
|
|
4814
|
+
s("div", jd, [
|
|
4804
4815
|
Td,
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4816
|
+
Id,
|
|
4817
|
+
s("div", Md, [
|
|
4818
|
+
s("div", Nd, [
|
|
4819
|
+
s("div", Ld, [
|
|
4808
4820
|
s("div", Vd, [
|
|
4809
|
-
s("h3",
|
|
4810
|
-
s("div",
|
|
4821
|
+
s("h3", Bd, h(r.title), 1),
|
|
4822
|
+
s("div", Gd, [
|
|
4811
4823
|
T(e.$slots, "default")
|
|
4812
4824
|
])
|
|
4813
4825
|
])
|
|
4814
4826
|
])
|
|
4815
4827
|
]),
|
|
4816
|
-
s("div",
|
|
4828
|
+
s("div", Fd, [
|
|
4817
4829
|
s("button", {
|
|
4818
4830
|
onClick: t[0] || (t[0] = (...i) => a.confirmAction && a.confirmAction(...i)),
|
|
4819
4831
|
type: "button",
|
|
4820
4832
|
class: "inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4821
|
-
},
|
|
4833
|
+
}, h(r.button_text), 1),
|
|
4822
4834
|
s("button", {
|
|
4823
4835
|
onClick: t[1] || (t[1] = (...i) => a.cancelAction && a.cancelAction(...i)),
|
|
4824
4836
|
type: "button",
|
|
@@ -4829,43 +4841,43 @@ function Fd(e, t, r, n, o, a) {
|
|
|
4829
4841
|
])
|
|
4830
4842
|
])) : f("", !0);
|
|
4831
4843
|
}
|
|
4832
|
-
const
|
|
4844
|
+
const ku = /* @__PURE__ */ k(Ed, [["render", Rd]]);
|
|
4833
4845
|
export {
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4846
|
+
wu as GLDatatableCommand,
|
|
4847
|
+
vu as GLDatatableDateTime,
|
|
4848
|
+
xu as GLDatatableStatusServer,
|
|
4849
|
+
Wd as GlButton,
|
|
4850
|
+
Zd as GlCard,
|
|
4851
|
+
ku as GlConfirmationModal,
|
|
4852
|
+
iu as GlDataTable,
|
|
4853
|
+
lu as GlDataTableServerSide,
|
|
4854
|
+
uu as GlDatatableAction,
|
|
4855
|
+
cu as GlDatatableDeleteAction,
|
|
4856
|
+
fu as GlDatatableFileDownload,
|
|
4857
|
+
gu as GlDatatableFiles,
|
|
4858
|
+
hu as GlDatatableHtml,
|
|
4859
|
+
mu as GlDatatableList,
|
|
4860
|
+
bu as GlDatatablePicture,
|
|
4861
|
+
pu as GlDatatableStatus,
|
|
4862
|
+
yu as GlDatatableStatusGeneral,
|
|
4863
|
+
_u as GlDatatableStatusSpecficColor,
|
|
4852
4864
|
ue as GlDeleteConfirmationModal,
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4865
|
+
nu as GlDropdown,
|
|
4866
|
+
qd as GlFilesUpload,
|
|
4867
|
+
Hd as GlLanguageSelector,
|
|
4868
|
+
su as GlModal,
|
|
4869
|
+
ru as GlMultiItemSlide,
|
|
4870
|
+
Kd as GlMultiSelectDropdown,
|
|
4871
|
+
zd as GlNotify,
|
|
4872
|
+
tu as GlTab,
|
|
4873
|
+
eu as GlTabsWrapper,
|
|
4874
|
+
wo as GlTailwindPagination,
|
|
4875
|
+
Qd as GlTextInput,
|
|
4876
|
+
Jd as GlTextTranslate,
|
|
4877
|
+
ou as GlTextarea,
|
|
4878
|
+
Yd as GlTextareaTranslate,
|
|
4879
|
+
Xd as GlTinymceTranslate,
|
|
4868
4880
|
$e as GlToast,
|
|
4869
|
-
|
|
4870
|
-
|
|
4881
|
+
du as GlToastList,
|
|
4882
|
+
au as GlToggleBox
|
|
4871
4883
|
};
|