golden-logic-ui 1.0.125 → 1.0.127
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 +993 -989
- package/dist/golden-logic-ui.umd.cjs +5 -5
- 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 r, createCommentVNode as f, createStaticVNode as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as r, createCommentVNode as f, createStaticVNode as Qe, inject as je, watch as q, effectScope as et, computed as M, reactive as Te, resolveComponent as ae, Fragment as k, createVNode as Y, normalizeClass as p, toDisplayString as g, withModifiers as U, withDirectives as A, vModelText as R, renderList as O, normalizeStyle as tt, renderSlot as N, ref as C, onMounted as F, createTextVNode as w, vShow as X, nextTick as Me, createBlock as J, resolveDynamicComponent as pe, mergeProps as se, withCtx as le, vModelDynamic as rt, provide as st, pushScopeId as at, popScopeId as nt, vModelCheckbox as ot, toHandlers as me, TransitionGroup as lt, unref as it, resolveDirective as Le, markRaw as dt } from "vue";
|
|
2
2
|
const D = (e, t) => {
|
|
3
3
|
const s = e.__vccOpts || e;
|
|
4
4
|
for (const [n, o] of t)
|
|
5
5
|
s[n] = o;
|
|
6
6
|
return s;
|
|
7
|
-
},
|
|
7
|
+
}, ut = {
|
|
8
8
|
props: ["isOpen"],
|
|
9
9
|
methods: {
|
|
10
10
|
confirmDeletion() {
|
|
@@ -14,27 +14,27 @@ const D = (e, t) => {
|
|
|
14
14
|
this.$emit("cancel-delete");
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
},
|
|
17
|
+
}, ct = {
|
|
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
|
+
}, ft = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, gt = /* @__PURE__ */ r("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), ht = /* @__PURE__ */ r("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 s.isOpen ? (d(), u("div",
|
|
32
|
-
r("div",
|
|
33
|
-
ft,
|
|
29
|
+
}, "", -1), mt = { 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" }, bt = /* @__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), pt = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
30
|
+
function yt(e, t, s, n, o, a) {
|
|
31
|
+
return s.isOpen ? (d(), u("div", ct, [
|
|
32
|
+
r("div", ft, [
|
|
34
33
|
gt,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
ht,
|
|
35
|
+
r("div", mt, [
|
|
36
|
+
bt,
|
|
37
|
+
r("div", pt, [
|
|
38
38
|
r("button", {
|
|
39
39
|
onClick: t[0] || (t[0] = (...i) => a.confirmDeletion && a.confirmDeletion(...i)),
|
|
40
40
|
type: "button",
|
|
@@ -50,23 +50,23 @@ function pt(e, t, s, n, o, a) {
|
|
|
50
50
|
])
|
|
51
51
|
])) : f("", !0);
|
|
52
52
|
}
|
|
53
|
-
const xe = /* @__PURE__ */ D(
|
|
54
|
-
function
|
|
55
|
-
return
|
|
53
|
+
const xe = /* @__PURE__ */ D(ut, [["render", yt]]);
|
|
54
|
+
function _t() {
|
|
55
|
+
return Ne().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Ne() {
|
|
58
58
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
59
59
|
}
|
|
60
|
-
const
|
|
61
|
-
let
|
|
62
|
-
function
|
|
60
|
+
const vt = typeof Proxy == "function", xt = "devtools-plugin:setup", wt = "plugin:settings:set";
|
|
61
|
+
let K, ye;
|
|
62
|
+
function kt() {
|
|
63
63
|
var e;
|
|
64
|
-
return
|
|
64
|
+
return K !== void 0 || (typeof window < "u" && window.performance ? (K = !0, ye = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (K = !0, ye = globalThis.perf_hooks.performance) : K = !1), K;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function $t() {
|
|
67
|
+
return kt() ? ye.now() : Date.now();
|
|
68
68
|
}
|
|
69
|
-
class
|
|
69
|
+
class Ct {
|
|
70
70
|
constructor(t, s) {
|
|
71
71
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = s;
|
|
72
72
|
const n = {};
|
|
@@ -94,9 +94,9 @@ class $t {
|
|
|
94
94
|
a = i;
|
|
95
95
|
},
|
|
96
96
|
now() {
|
|
97
|
-
return
|
|
97
|
+
return $t();
|
|
98
98
|
}
|
|
99
|
-
}, s && s.on(
|
|
99
|
+
}, s && s.on(wt, (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) => {
|
|
@@ -128,12 +128,12 @@ class $t {
|
|
|
128
128
|
s.resolve(await this.target[s.method](...s.args));
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
const s = e, n =
|
|
131
|
+
function St(e, t) {
|
|
132
|
+
const s = e, n = Ne(), o = _t(), a = vt && s.enableEarlyProxy;
|
|
133
133
|
if (o && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
134
|
-
o.emit(
|
|
134
|
+
o.emit(xt, e, t);
|
|
135
135
|
else {
|
|
136
|
-
const i = a ? new
|
|
136
|
+
const i = a ? new Ct(s, o) : null;
|
|
137
137
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
138
138
|
pluginDescriptor: s,
|
|
139
139
|
setupFn: t,
|
|
@@ -146,37 +146,37 @@ function Ct(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),
|
|
149
|
+
var Ie = "store";
|
|
150
|
+
function Ve(e) {
|
|
151
|
+
return e === void 0 && (e = null), je(e !== null ? e : Ie);
|
|
152
152
|
}
|
|
153
153
|
function H(e, t) {
|
|
154
154
|
Object.keys(e).forEach(function(s) {
|
|
155
155
|
return t(e[s], s);
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Be(e) {
|
|
159
159
|
return e !== null && typeof e == "object";
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Dt(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 Ot(e, t) {
|
|
169
169
|
return function() {
|
|
170
170
|
return e(t);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Ge(e, t, s) {
|
|
174
174
|
return t.indexOf(e) < 0 && (s && s.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 Ue(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 s = e.state;
|
|
182
182
|
de(e, s, [], e._modules.root, !0), we(e, s, t);
|
|
@@ -184,22 +184,22 @@ function Ge(e, t) {
|
|
|
184
184
|
function we(e, t, s) {
|
|
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
|
-
H(a, function(h,
|
|
190
|
-
i[
|
|
191
|
-
return i[
|
|
192
|
-
}), Object.defineProperty(e.getters,
|
|
189
|
+
H(a, function(h, b) {
|
|
190
|
+
i[b] = Ot(h, e), l[b] = M(function() {
|
|
191
|
+
return i[b]();
|
|
192
|
+
}), Object.defineProperty(e.getters, b, {
|
|
193
193
|
get: function() {
|
|
194
|
-
return l[
|
|
194
|
+
return l[b].value;
|
|
195
195
|
},
|
|
196
196
|
enumerable: !0
|
|
197
197
|
// for local getters
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
|
-
}), e._state =
|
|
200
|
+
}), e._state = Te({
|
|
201
201
|
data: t
|
|
202
|
-
}), e._scope = c, e.strict &&
|
|
202
|
+
}), e._scope = c, e.strict && Tt(e), n && s && e._withCommit(function() {
|
|
203
203
|
n.data = null;
|
|
204
204
|
}), o && o.stop();
|
|
205
205
|
}
|
|
@@ -213,37 +213,37 @@ function de(e, t, s, n, o) {
|
|
|
213
213
|
), l[c] = n.state;
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
var h = n.context =
|
|
217
|
-
n.forEachMutation(function(
|
|
216
|
+
var h = n.context = Pt(e, i, s);
|
|
217
|
+
n.forEachMutation(function(b, _) {
|
|
218
218
|
var $ = i + _;
|
|
219
|
-
|
|
220
|
-
}), n.forEachAction(function(
|
|
221
|
-
var $ =
|
|
222
|
-
|
|
223
|
-
}), n.forEachGetter(function(
|
|
219
|
+
At(e, $, b, h);
|
|
220
|
+
}), n.forEachAction(function(b, _) {
|
|
221
|
+
var $ = b.root ? _ : i + _, S = b.handler || b;
|
|
222
|
+
Et(e, $, S, h);
|
|
223
|
+
}), n.forEachGetter(function(b, _) {
|
|
224
224
|
var $ = i + _;
|
|
225
|
-
|
|
226
|
-
}), n.forEachChild(function(
|
|
227
|
-
de(e, t, s.concat(_),
|
|
225
|
+
jt(e, $, b, h);
|
|
226
|
+
}), n.forEachChild(function(b, _) {
|
|
227
|
+
de(e, t, s.concat(_), b, o);
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Pt(e, t, s) {
|
|
231
231
|
var n = t === "", o = {
|
|
232
232
|
dispatch: n ? e.dispatch : function(a, i, l) {
|
|
233
|
-
var c = ie(a, i, l), h = c.payload,
|
|
234
|
-
if ((!
|
|
233
|
+
var c = ie(a, i, l), h = c.payload, b = c.options, _ = c.type;
|
|
234
|
+
if ((!b || !b.root) && (_ = t + _, process.env.NODE_ENV !== "production" && !e._actions[_])) {
|
|
235
235
|
console.error("[vuex] unknown local action type: " + c.type + ", global type: " + _);
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
238
|
return e.dispatch(_, h);
|
|
239
239
|
},
|
|
240
240
|
commit: n ? e.commit : function(a, i, l) {
|
|
241
|
-
var c = ie(a, i, l), h = c.payload,
|
|
242
|
-
if ((!
|
|
241
|
+
var c = ie(a, i, l), h = c.payload, b = c.options, _ = c.type;
|
|
242
|
+
if ((!b || !b.root) && (_ = t + _, process.env.NODE_ENV !== "production" && !e._mutations[_])) {
|
|
243
243
|
console.error("[vuex] unknown local mutation type: " + c.type + ", global type: " + _);
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
|
-
e.commit(_, h,
|
|
246
|
+
e.commit(_, h, b);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
return Object.defineProperties(o, {
|
|
@@ -251,7 +251,7 @@ function Ot(e, t, s) {
|
|
|
251
251
|
get: n ? function() {
|
|
252
252
|
return e.getters;
|
|
253
253
|
} : function() {
|
|
254
|
-
return
|
|
254
|
+
return Re(e, t);
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
257
|
state: {
|
|
@@ -261,7 +261,7 @@ function Ot(e, t, s) {
|
|
|
261
261
|
}
|
|
262
262
|
}), o;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Re(e, t) {
|
|
265
265
|
if (!e._makeLocalGettersCache[t]) {
|
|
266
266
|
var s = {}, n = t.length;
|
|
267
267
|
Object.keys(e.getters).forEach(function(o) {
|
|
@@ -278,13 +278,13 @@ function Ue(e, t) {
|
|
|
278
278
|
}
|
|
279
279
|
return e._makeLocalGettersCache[t];
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function At(e, t, s, n) {
|
|
282
282
|
var o = e._mutations[t] || (e._mutations[t] = []);
|
|
283
283
|
o.push(function(i) {
|
|
284
284
|
s.call(e, n.state, i);
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Et(e, t, s, n) {
|
|
288
288
|
var o = e._actions[t] || (e._actions[t] = []);
|
|
289
289
|
o.push(function(i) {
|
|
290
290
|
var l = s.call(e, {
|
|
@@ -295,12 +295,12 @@ function At(e, t, s, n) {
|
|
|
295
295
|
rootGetters: e.getters,
|
|
296
296
|
rootState: e.state
|
|
297
297
|
}, i);
|
|
298
|
-
return
|
|
298
|
+
return Dt(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 jt(e, t, s, 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 Et(e, t, s, n) {
|
|
|
318
318
|
);
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Tt(e) {
|
|
322
322
|
q(function() {
|
|
323
323
|
return e._state.data;
|
|
324
324
|
}, function() {
|
|
@@ -331,11 +331,11 @@ function ke(e, t) {
|
|
|
331
331
|
}, e);
|
|
332
332
|
}
|
|
333
333
|
function ie(e, t, s) {
|
|
334
|
-
return
|
|
334
|
+
return Be(e) && e.type && (s = 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: s };
|
|
335
335
|
}
|
|
336
|
-
var
|
|
337
|
-
function
|
|
338
|
-
|
|
336
|
+
var Mt = "vuex bindings", De = "vuex:mutations", be = "vuex:actions", W = "vuex", Lt = 0;
|
|
337
|
+
function Nt(e, t) {
|
|
338
|
+
St(
|
|
339
339
|
{
|
|
340
340
|
id: "org.vuejs.vuex",
|
|
341
341
|
app: e,
|
|
@@ -343,42 +343,42 @@ function Lt(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(s) {
|
|
349
349
|
s.addTimelineLayer({
|
|
350
|
-
id:
|
|
350
|
+
id: De,
|
|
351
351
|
label: "Vuex Mutations",
|
|
352
|
-
color:
|
|
352
|
+
color: Oe
|
|
353
353
|
}), s.addTimelineLayer({
|
|
354
354
|
id: be,
|
|
355
355
|
label: "Vuex Actions",
|
|
356
|
-
color:
|
|
356
|
+
color: Oe
|
|
357
357
|
}), s.addInspector({
|
|
358
|
-
id:
|
|
358
|
+
id: W,
|
|
359
359
|
label: "Vuex",
|
|
360
360
|
icon: "storage",
|
|
361
361
|
treeFilterPlaceholder: "Filter stores..."
|
|
362
362
|
}), s.on.getInspectorTree(function(n) {
|
|
363
|
-
if (n.app === e && n.inspectorId ===
|
|
363
|
+
if (n.app === e && n.inspectorId === W)
|
|
364
364
|
if (n.filter) {
|
|
365
365
|
var o = [];
|
|
366
|
-
|
|
366
|
+
ze(o, t._modules.root, n.filter, ""), n.rootNodes = o;
|
|
367
367
|
} else
|
|
368
368
|
n.rootNodes = [
|
|
369
|
-
|
|
369
|
+
He(t._modules.root, "")
|
|
370
370
|
];
|
|
371
371
|
}), s.on.getInspectorState(function(n) {
|
|
372
|
-
if (n.app === e && n.inspectorId ===
|
|
372
|
+
if (n.app === e && n.inspectorId === W) {
|
|
373
373
|
var o = n.nodeId;
|
|
374
|
-
|
|
375
|
-
|
|
374
|
+
Re(t, o), n.state = Bt(
|
|
375
|
+
Ut(t._modules, o),
|
|
376
376
|
o === "root" ? t.getters : t._makeLocalGettersCache,
|
|
377
377
|
o
|
|
378
378
|
);
|
|
379
379
|
}
|
|
380
380
|
}), s.on.editInspectorState(function(n) {
|
|
381
|
-
if (n.app === e && n.inspectorId ===
|
|
381
|
+
if (n.app === e && n.inspectorId === W) {
|
|
382
382
|
var o = n.nodeId, a = n.path;
|
|
383
383
|
o !== "root" && (a = o.split("/").filter(Boolean).concat(a)), t._withCommit(function() {
|
|
384
384
|
n.set(t._state.data, a, n.state.value);
|
|
@@ -386,8 +386,8 @@ function Lt(e, t) {
|
|
|
386
386
|
}
|
|
387
387
|
}), t.subscribe(function(n, o) {
|
|
388
388
|
var a = {};
|
|
389
|
-
n.payload && (a.payload = n.payload), a.state = o, s.notifyComponentUpdate(), s.sendInspectorTree(
|
|
390
|
-
layerId:
|
|
389
|
+
n.payload && (a.payload = n.payload), a.state = o, s.notifyComponentUpdate(), s.sendInspectorTree(W), s.sendInspectorState(W), s.addTimelineEvent({
|
|
390
|
+
layerId: De,
|
|
391
391
|
event: {
|
|
392
392
|
time: Date.now(),
|
|
393
393
|
title: n.type,
|
|
@@ -397,7 +397,7 @@ function Lt(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 = Lt++, n._time = Date.now(), a.state = o, s.addTimelineEvent({
|
|
401
401
|
layerId: be,
|
|
402
402
|
event: {
|
|
403
403
|
time: n._time,
|
|
@@ -432,25 +432,25 @@ function Lt(e, t) {
|
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var Oe = 8702998, It = 6710886, Vt = 16777215, Fe = {
|
|
436
436
|
label: "namespaced",
|
|
437
|
-
textColor:
|
|
438
|
-
backgroundColor:
|
|
437
|
+
textColor: Vt,
|
|
438
|
+
backgroundColor: It
|
|
439
439
|
};
|
|
440
|
-
function
|
|
440
|
+
function qe(e) {
|
|
441
441
|
return e && e !== "root" ? e.split("/").slice(-2, -1)[0] : "Root";
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function He(e, t) {
|
|
444
444
|
return {
|
|
445
445
|
id: t || "root",
|
|
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: qe(t),
|
|
450
|
+
tags: e.namespaced ? [Fe] : [],
|
|
451
451
|
children: Object.keys(e._children).map(
|
|
452
452
|
function(s) {
|
|
453
|
-
return
|
|
453
|
+
return He(
|
|
454
454
|
e._children[s],
|
|
455
455
|
t + s + "/"
|
|
456
456
|
);
|
|
@@ -458,16 +458,16 @@ function qe(e, t) {
|
|
|
458
458
|
)
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function ze(e, t, s, n) {
|
|
462
462
|
n.includes(s) && 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 ? [Fe] : []
|
|
466
466
|
}), Object.keys(t._children).forEach(function(o) {
|
|
467
|
-
|
|
467
|
+
ze(e, t._children[o], s, n + o + "/");
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Bt(e, t, s) {
|
|
471
471
|
t = s === "root" ? t : t[s];
|
|
472
472
|
var n = Object.keys(t), o = {
|
|
473
473
|
state: Object.keys(e.state).map(function(i) {
|
|
@@ -479,10 +479,10 @@ function Vt(e, t, s) {
|
|
|
479
479
|
})
|
|
480
480
|
};
|
|
481
481
|
if (n.length) {
|
|
482
|
-
var a =
|
|
482
|
+
var a = Gt(t);
|
|
483
483
|
o.getters = Object.keys(a).map(function(i) {
|
|
484
484
|
return {
|
|
485
|
-
key: i.endsWith("/") ?
|
|
485
|
+
key: i.endsWith("/") ? qe(i) : i,
|
|
486
486
|
editable: !1,
|
|
487
487
|
value: _e(function() {
|
|
488
488
|
return a[i];
|
|
@@ -492,7 +492,7 @@ function Vt(e, t, s) {
|
|
|
492
492
|
}
|
|
493
493
|
return o;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Gt(e) {
|
|
496
496
|
var t = {};
|
|
497
497
|
return Object.keys(e).forEach(function(s) {
|
|
498
498
|
var n = s.split("/");
|
|
@@ -516,7 +516,7 @@ function Bt(e) {
|
|
|
516
516
|
});
|
|
517
517
|
}), t;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Ut(e, t) {
|
|
520
520
|
var s = t.split("/").filter(function(n) {
|
|
521
521
|
return n;
|
|
522
522
|
});
|
|
@@ -541,8 +541,8 @@ var V = function(t, s) {
|
|
|
541
541
|
this.runtime = s, 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
|
+
}, Ze = { namespaced: { configurable: !0 } };
|
|
545
|
+
Ze.namespaced.get = function() {
|
|
546
546
|
return !!this._rawModule.namespaced;
|
|
547
547
|
};
|
|
548
548
|
V.prototype.addChild = function(t, s) {
|
|
@@ -572,7 +572,7 @@ V.prototype.forEachAction = function(t) {
|
|
|
572
572
|
V.prototype.forEachMutation = function(t) {
|
|
573
573
|
this._rawModule.mutations && H(this._rawModule.mutations, t);
|
|
574
574
|
};
|
|
575
|
-
Object.defineProperties(V.prototype,
|
|
575
|
+
Object.defineProperties(V.prototype, Ze);
|
|
576
576
|
var z = function(t) {
|
|
577
577
|
this.register([], t, !1);
|
|
578
578
|
};
|
|
@@ -588,11 +588,11 @@ z.prototype.getNamespace = function(t) {
|
|
|
588
588
|
}, "");
|
|
589
589
|
};
|
|
590
590
|
z.prototype.update = function(t) {
|
|
591
|
-
|
|
591
|
+
Ke([], this.root, t);
|
|
592
592
|
};
|
|
593
593
|
z.prototype.register = function(t, s, 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" && We(t, s);
|
|
596
596
|
var a = new V(s, n);
|
|
597
597
|
if (t.length === 0)
|
|
598
598
|
this.root = a;
|
|
@@ -618,8 +618,8 @@ z.prototype.isRegistered = function(t) {
|
|
|
618
618
|
var s = this.get(t.slice(0, -1)), n = t[t.length - 1];
|
|
619
619
|
return s ? s.hasChild(n) : !1;
|
|
620
620
|
};
|
|
621
|
-
function
|
|
622
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
621
|
+
function Ke(e, t, s) {
|
|
622
|
+
if (process.env.NODE_ENV !== "production" && We(e, s), t.update(s), s.modules)
|
|
623
623
|
for (var n in s.modules) {
|
|
624
624
|
if (!t.getChild(n)) {
|
|
625
625
|
process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -627,42 +627,42 @@ function Ze(e, t, s) {
|
|
|
627
627
|
);
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
630
|
-
|
|
630
|
+
Ke(
|
|
631
631
|
e.concat(n),
|
|
632
632
|
t.getChild(n),
|
|
633
633
|
s.modules[n]
|
|
634
634
|
);
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
var
|
|
637
|
+
var Pe = {
|
|
638
638
|
assert: function(e) {
|
|
639
639
|
return typeof e == "function";
|
|
640
640
|
},
|
|
641
641
|
expected: "function"
|
|
642
|
-
},
|
|
642
|
+
}, Rt = {
|
|
643
643
|
assert: function(e) {
|
|
644
644
|
return typeof e == "function" || typeof e == "object" && typeof e.handler == "function";
|
|
645
645
|
},
|
|
646
646
|
expected: 'function or object with "handler" function'
|
|
647
|
-
},
|
|
648
|
-
getters:
|
|
649
|
-
mutations:
|
|
650
|
-
actions:
|
|
647
|
+
}, Ae = {
|
|
648
|
+
getters: Pe,
|
|
649
|
+
mutations: Pe,
|
|
650
|
+
actions: Rt
|
|
651
651
|
};
|
|
652
|
-
function
|
|
653
|
-
Object.keys(
|
|
652
|
+
function We(e, t) {
|
|
653
|
+
Object.keys(Ae).forEach(function(s) {
|
|
654
654
|
if (t[s]) {
|
|
655
|
-
var n =
|
|
655
|
+
var n = Ae[s];
|
|
656
656
|
H(t[s], function(o, a) {
|
|
657
657
|
I(
|
|
658
658
|
n.assert(o),
|
|
659
|
-
|
|
659
|
+
Ft(e, s, a, o, n.expected)
|
|
660
660
|
);
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function Ft(e, t, s, n, o) {
|
|
666
666
|
var a = t + " should be " + o + ' but "' + t + "." + s + '"';
|
|
667
667
|
return e.length > 0 && (a += ' in module "' + e.join(".") + '"'), a += " is " + JSON.stringify(n) + ".", a;
|
|
668
668
|
}
|
|
@@ -678,18 +678,18 @@ var L = function e(t) {
|
|
|
678
678
|
var i = this, l = this, c = l.dispatch, h = l.commit;
|
|
679
679
|
this.dispatch = function($, S) {
|
|
680
680
|
return c.call(i, $, S);
|
|
681
|
-
}, this.commit = function($, S,
|
|
682
|
-
return h.call(i, $, S,
|
|
681
|
+
}, this.commit = function($, S, B) {
|
|
682
|
+
return h.call(i, $, S, B);
|
|
683
683
|
}, this.strict = o;
|
|
684
|
-
var
|
|
685
|
-
de(this,
|
|
684
|
+
var b = this._modules.root.state;
|
|
685
|
+
de(this, b, [], this._modules.root), we(this, b), n.forEach(function(_) {
|
|
686
686
|
return _(s);
|
|
687
687
|
});
|
|
688
688
|
}, $e = { state: { configurable: !0 } };
|
|
689
689
|
L.prototype.install = function(t, s) {
|
|
690
|
-
t.provide(s ||
|
|
690
|
+
t.provide(s || Ie, 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 && Nt(t, this);
|
|
693
693
|
};
|
|
694
694
|
$e.state.get = function() {
|
|
695
695
|
return this._state.data;
|
|
@@ -698,13 +698,13 @@ $e.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
|
L.prototype.commit = function(t, s, n) {
|
|
701
|
-
var o = this, a = ie(t, s, n), i = a.type, l = a.payload, c = a.options, h = { type: i, payload: l },
|
|
702
|
-
if (!
|
|
701
|
+
var o = this, a = ie(t, s, n), i = a.type, l = a.payload, c = a.options, h = { type: i, payload: l }, b = this._mutations[i];
|
|
702
|
+
if (!b) {
|
|
703
703
|
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + i);
|
|
704
704
|
return;
|
|
705
705
|
}
|
|
706
706
|
this._withCommit(function() {
|
|
707
|
-
|
|
707
|
+
b.forEach(function($) {
|
|
708
708
|
$(l);
|
|
709
709
|
});
|
|
710
710
|
}), this._subscribers.slice().forEach(function(_) {
|
|
@@ -720,18 +720,18 @@ L.prototype.dispatch = function(t, s) {
|
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
722
|
try {
|
|
723
|
-
this._actionSubscribers.slice().filter(function(
|
|
724
|
-
return
|
|
725
|
-
}).forEach(function(
|
|
726
|
-
return
|
|
723
|
+
this._actionSubscribers.slice().filter(function(b) {
|
|
724
|
+
return b.before;
|
|
725
|
+
}).forEach(function(b) {
|
|
726
|
+
return b.before(l, n.state);
|
|
727
727
|
});
|
|
728
|
-
} catch (
|
|
729
|
-
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(
|
|
728
|
+
} catch (b) {
|
|
729
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(b));
|
|
730
730
|
}
|
|
731
|
-
var h = c.length > 1 ? Promise.all(c.map(function(
|
|
732
|
-
return
|
|
731
|
+
var h = c.length > 1 ? Promise.all(c.map(function(b) {
|
|
732
|
+
return b(i);
|
|
733
733
|
})) : c[0](i);
|
|
734
|
-
return new Promise(function(
|
|
734
|
+
return new Promise(function(b, _) {
|
|
735
735
|
h.then(function($) {
|
|
736
736
|
try {
|
|
737
737
|
n._actionSubscribers.filter(function(S) {
|
|
@@ -742,7 +742,7 @@ L.prototype.dispatch = function(t, s) {
|
|
|
742
742
|
} catch (S) {
|
|
743
743
|
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(S));
|
|
744
744
|
}
|
|
745
|
-
|
|
745
|
+
b($);
|
|
746
746
|
}, function($) {
|
|
747
747
|
try {
|
|
748
748
|
n._actionSubscribers.filter(function(S) {
|
|
@@ -758,11 +758,11 @@ L.prototype.dispatch = function(t, s) {
|
|
|
758
758
|
});
|
|
759
759
|
};
|
|
760
760
|
L.prototype.subscribe = function(t, s) {
|
|
761
|
-
return
|
|
761
|
+
return Ge(t, this._subscribers, s);
|
|
762
762
|
};
|
|
763
763
|
L.prototype.subscribeAction = function(t, s) {
|
|
764
764
|
var n = typeof t == "function" ? { before: t } : t;
|
|
765
|
-
return
|
|
765
|
+
return Ge(n, this._actionSubscribers, s);
|
|
766
766
|
};
|
|
767
767
|
L.prototype.watch = function(t, s, n) {
|
|
768
768
|
var o = this;
|
|
@@ -784,27 +784,27 @@ L.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 = ke(s.state, t.slice(0, -1));
|
|
786
786
|
delete n[t[t.length - 1]];
|
|
787
|
-
}),
|
|
787
|
+
}), Ue(this);
|
|
788
788
|
};
|
|
789
789
|
L.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
|
L.prototype.hotUpdate = function(t) {
|
|
793
|
-
this._modules.update(t),
|
|
793
|
+
this._modules.update(t), Ue(this, !0);
|
|
794
794
|
};
|
|
795
795
|
L.prototype._withCommit = function(t) {
|
|
796
796
|
var s = this._committing;
|
|
797
797
|
this._committing = !0, t(), this._committing = s;
|
|
798
798
|
};
|
|
799
799
|
Object.defineProperties(L.prototype, $e);
|
|
800
|
-
var
|
|
800
|
+
var qt = Xe(function(e, t) {
|
|
801
801
|
var s = {};
|
|
802
|
-
return process.env.NODE_ENV !== "production" && !Ce(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),
|
|
802
|
+
return process.env.NODE_ENV !== "production" && !Ce(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), Ye(t).forEach(function(n) {
|
|
803
803
|
var o = n.key, a = n.val;
|
|
804
804
|
s[o] = function() {
|
|
805
805
|
var l = this.$store.state, c = this.$store.getters;
|
|
806
806
|
if (e) {
|
|
807
|
-
var h =
|
|
807
|
+
var h = Je(this.$store, "mapState", e);
|
|
808
808
|
if (!h)
|
|
809
809
|
return;
|
|
810
810
|
l = h.context.state, c = h.context.getters;
|
|
@@ -812,25 +812,25 @@ var Ft = Ye(function(e, t) {
|
|
|
812
812
|
return typeof a == "function" ? a.call(this, l, c) : l[a];
|
|
813
813
|
}, s[o].vuex = !0;
|
|
814
814
|
}), s;
|
|
815
|
-
}),
|
|
815
|
+
}), Ht = Xe(function(e, t) {
|
|
816
816
|
var s = {};
|
|
817
|
-
return process.env.NODE_ENV !== "production" && !Ce(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),
|
|
817
|
+
return process.env.NODE_ENV !== "production" && !Ce(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), Ye(t).forEach(function(n) {
|
|
818
818
|
var o = n.key, a = n.val;
|
|
819
819
|
s[o] = function() {
|
|
820
820
|
for (var l = [], c = arguments.length; c--; )
|
|
821
821
|
l[c] = arguments[c];
|
|
822
822
|
var h = this.$store.commit;
|
|
823
823
|
if (e) {
|
|
824
|
-
var
|
|
825
|
-
if (!
|
|
824
|
+
var b = Je(this.$store, "mapMutations", e);
|
|
825
|
+
if (!b)
|
|
826
826
|
return;
|
|
827
|
-
h =
|
|
827
|
+
h = b.context.commit;
|
|
828
828
|
}
|
|
829
829
|
return typeof a == "function" ? a.apply(this, [h].concat(l)) : h.apply(this.$store, [a].concat(l));
|
|
830
830
|
};
|
|
831
831
|
}), s;
|
|
832
832
|
});
|
|
833
|
-
function
|
|
833
|
+
function Ye(e) {
|
|
834
834
|
return Ce(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 We(e) {
|
|
|
838
838
|
}) : [];
|
|
839
839
|
}
|
|
840
840
|
function Ce(e) {
|
|
841
|
-
return Array.isArray(e) ||
|
|
841
|
+
return Array.isArray(e) || Be(e);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function Xe(e) {
|
|
844
844
|
return function(t, s) {
|
|
845
845
|
return typeof t != "string" ? (s = t, t = "") : t.charAt(t.length - 1) !== "/" && (t += "/"), e(t, s);
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Je(e, t, s) {
|
|
849
849
|
var n = e._modulesNamespaceMap[s];
|
|
850
850
|
return process.env.NODE_ENV !== "production" && !n && console.error("[vuex] module namespace not found in " + t + "(): " + s), n;
|
|
851
851
|
}
|
|
852
|
-
const
|
|
852
|
+
const zt = {
|
|
853
853
|
components: {
|
|
854
854
|
DeleteConfirmationModal: xe
|
|
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
|
+
}, Zt = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, Kt = ["multiple"], Wt = ["name"], Yt = /* @__PURE__ */ r("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,22 +1013,22 @@ 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), Xt = /* @__PURE__ */ r("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, " Drag & drop files or browse ", -1), Jt = [
|
|
1017
|
+
Yt,
|
|
1018
|
+
Xt
|
|
1019
|
+
], Qt = { key: 1 }, er = /* @__PURE__ */ r("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, "Drop files here", -1), tr = [
|
|
1020
|
+
er
|
|
1021
|
+
], rr = { class: "mt-2 gl-span-form-error" }, sr = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, ar = {
|
|
1022
1022
|
key: 0,
|
|
1023
1023
|
class: ""
|
|
1024
|
-
},
|
|
1024
|
+
}, nr = { 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" }, or = /* @__PURE__ */ r("i", { class: "text-3xl fas fa-file-alt" }, null, -1), lr = { class: "w-full ml-3" }, ir = { class: "flex items-center justify-between mb-1" }, dr = { class: "text-xs text-black dark:text-white" }, ur = { class: "text-xs text-black dark:text-white" }, cr = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, fr = { class: "overflow-x-scroll max-h-56" }, gr = { 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" }, hr = { class: "flex items-center" }, mr = /* @__PURE__ */ r("i", {
|
|
1025
1025
|
class: "text-3xl fas fa-file-alt",
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
|
-
}, null, -1),
|
|
1028
|
-
function
|
|
1029
|
-
const i =
|
|
1027
|
+
}, null, -1), br = { class: "flex flex-col ml-3" }, pr = { class: "text-xs" }, yr = { class: "text-xs" }, _r = { class: "flex gap-2" }, vr = ["href"], xr = ["onClick"];
|
|
1028
|
+
function wr(e, t, s, n, o, a) {
|
|
1029
|
+
const i = ae("DeleteConfirmationModal");
|
|
1030
1030
|
return d(), u(k, null, [
|
|
1031
|
-
|
|
1031
|
+
Y(i, {
|
|
1032
1032
|
isOpen: o.open_delete_modal,
|
|
1033
1033
|
onConfirmDelete: a.deleteAction,
|
|
1034
1034
|
onCancelDelete: a.closeDeleteModal
|
|
@@ -1052,78 +1052,78 @@ function xr(e, t, s, n, o, a) {
|
|
|
1052
1052
|
onDrop: t[5] || (t[5] = U((...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
|
-
r("div",
|
|
1055
|
+
r("div", Zt, [
|
|
1056
1056
|
r("input", {
|
|
1057
1057
|
type: "file",
|
|
1058
1058
|
ref: "file_input" + s.field_name,
|
|
1059
1059
|
hidden: "",
|
|
1060
1060
|
multiple: s.has_multiple_file,
|
|
1061
1061
|
onChange: t[0] || (t[0] = (...l) => a.uploadFiles && a.uploadFiles(...l))
|
|
1062
|
-
}, null, 40,
|
|
1062
|
+
}, null, 40, Kt),
|
|
1063
1063
|
A(r("input", {
|
|
1064
1064
|
type: "hidden",
|
|
1065
1065
|
name: s.field_name,
|
|
1066
1066
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => a.uploadedFileIds = l)
|
|
1067
|
-
}, null, 8,
|
|
1067
|
+
}, null, 8, Wt), [
|
|
1068
1068
|
[R, a.uploadedFileIds]
|
|
1069
1069
|
]),
|
|
1070
|
-
o.isDragging ? (d(), u("div",
|
|
1070
|
+
o.isDragging ? (d(), u("div", Qt, tr)) : (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
|
+
}, Jt))
|
|
1075
1075
|
])
|
|
1076
1076
|
], 32),
|
|
1077
|
-
r("span",
|
|
1078
|
-
r("small",
|
|
1079
|
-
o.files.length > 0 ? (d(), u("section",
|
|
1080
|
-
(d(!0), u(k, null, O(o.files, (l, c) => (d(), u("li",
|
|
1081
|
-
|
|
1082
|
-
r("div",
|
|
1083
|
-
r("div",
|
|
1084
|
-
r("span",
|
|
1085
|
-
r("span",
|
|
1077
|
+
r("span", rr, g(o.error_message_data), 1),
|
|
1078
|
+
r("small", sr, g(s.description), 1),
|
|
1079
|
+
o.files.length > 0 ? (d(), u("section", ar, [
|
|
1080
|
+
(d(!0), u(k, null, O(o.files, (l, c) => (d(), u("li", nr, [
|
|
1081
|
+
or,
|
|
1082
|
+
r("div", lr, [
|
|
1083
|
+
r("div", ir, [
|
|
1084
|
+
r("span", dr, g(a.getFileName(l.file_name)), 1),
|
|
1085
|
+
r("span", ur, g(l.loading), 1)
|
|
1086
1086
|
]),
|
|
1087
|
-
r("div",
|
|
1087
|
+
r("div", cr, [
|
|
1088
1088
|
r("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
|
-
r("section",
|
|
1097
|
-
(d(!0), u(k, null, O(o.uploadFileList, (l, c) => (d(), u("li",
|
|
1098
|
-
r("div",
|
|
1099
|
-
|
|
1100
|
-
r("div",
|
|
1101
|
-
r("span",
|
|
1102
|
-
r("span",
|
|
1096
|
+
r("section", fr, [
|
|
1097
|
+
(d(!0), u(k, null, O(o.uploadFileList, (l, c) => (d(), u("li", gr, [
|
|
1098
|
+
r("div", hr, [
|
|
1099
|
+
mr,
|
|
1100
|
+
r("div", br, [
|
|
1101
|
+
r("span", pr, g(a.getFileName(l.file_name)), 1),
|
|
1102
|
+
r("span", yr, g(a.formatFileSize(l.size)), 1)
|
|
1103
1103
|
])
|
|
1104
1104
|
]),
|
|
1105
|
-
r("div",
|
|
1105
|
+
r("div", _r, [
|
|
1106
1106
|
r("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, vr),
|
|
1111
1111
|
s.is_enable_delete ? (d(), u("i", {
|
|
1112
1112
|
key: 0,
|
|
1113
1113
|
onClick: (h) => {
|
|
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, xr)) : f("", !0)
|
|
1118
1118
|
])
|
|
1119
1119
|
]))), 256))
|
|
1120
1120
|
])
|
|
1121
1121
|
], 2)
|
|
1122
1122
|
], 64);
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const Au = /* @__PURE__ */ D(zt, [["render", wr]]), kr = {
|
|
1125
1125
|
computed: {
|
|
1126
|
-
...
|
|
1126
|
+
...qt("notification", ["notification"]),
|
|
1127
1127
|
alertClasses() {
|
|
1128
1128
|
switch (this.notification.type) {
|
|
1129
1129
|
case "info":
|
|
@@ -1158,7 +1158,7 @@ const Pu = /* @__PURE__ */ D(Ht, [["render", xr]]), wr = {
|
|
|
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 Pu = /* @__PURE__ */ D(Ht, [["render", xr]]), wr = {
|
|
|
1170
1170
|
}, this.notification.duration);
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
|
-
},
|
|
1173
|
+
}, $r = /* @__PURE__ */ r("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 Pu = /* @__PURE__ */ D(Ht, [["render", xr]]), wr = {
|
|
|
1178
1178
|
viewBox: "0 0 20 20"
|
|
1179
1179
|
}, [
|
|
1180
1180
|
/* @__PURE__ */ r("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), Cr = /* @__PURE__ */ r("span", { class: "sr-only" }, "Info", -1), Sr = { class: "mr-3 text-sm font-medium ms-3" }, Dr = /* @__PURE__ */ r("span", { class: "sr-only" }, "Close", -1), Or = /* @__PURE__ */ r("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 Pu = /* @__PURE__ */ D(Ht, [["render", xr]]), wr = {
|
|
|
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), Pr = [
|
|
1196
|
+
Dr,
|
|
1197
|
+
Or
|
|
1198
1198
|
];
|
|
1199
|
-
function
|
|
1199
|
+
function Ar(e, t, s, n, o, a) {
|
|
1200
1200
|
return e.notification.show ? (d(), u("div", {
|
|
1201
1201
|
key: 0,
|
|
1202
1202
|
class: p(["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
|
-
kr,
|
|
1206
1205
|
$r,
|
|
1207
|
-
|
|
1206
|
+
Cr,
|
|
1207
|
+
r("div", Sr, g(e.notification.message), 1),
|
|
1208
1208
|
r("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
1210
|
onClick: t[0] || (t[0] = (...i) => a.dismiss && a.dismiss(...i)),
|
|
1211
1211
|
class: p(["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
|
+
}, Pr, 2)
|
|
1214
1214
|
], 2)) : f("", !0);
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const Eu = /* @__PURE__ */ D(kr, [["render", Ar]]), Er = {
|
|
1217
1217
|
components: {},
|
|
1218
1218
|
props: {
|
|
1219
1219
|
field_name: {
|
|
@@ -1248,9 +1248,9 @@ const Au = /* @__PURE__ */ D(wr, [["render", Pr]]), Ar = {
|
|
|
1248
1248
|
},
|
|
1249
1249
|
mounted() {
|
|
1250
1250
|
}
|
|
1251
|
-
},
|
|
1252
|
-
function
|
|
1253
|
-
return d(), u("ul",
|
|
1251
|
+
}, jr = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, Tr = ["name", "value", "id", "checked"], Mr = ["for"];
|
|
1252
|
+
function Lr(e, t, s, n, o, a) {
|
|
1253
|
+
return d(), u("ul", jr, [
|
|
1254
1254
|
(d(!0), u(k, null, O(o.locals, (i, l) => (d(), u("li", null, [
|
|
1255
1255
|
r("input", {
|
|
1256
1256
|
type: "radio",
|
|
@@ -1260,7 +1260,7 @@ function Mr(e, t, s, n, o, a) {
|
|
|
1260
1260
|
id: i + "_" + s.field_name,
|
|
1261
1261
|
autocomplete: "off",
|
|
1262
1262
|
checked: i === o.default_language
|
|
1263
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, Tr),
|
|
1264
1264
|
r("label", {
|
|
1265
1265
|
for: i + "_" + s.field_name,
|
|
1266
1266
|
class: p([{
|
|
@@ -1268,14 +1268,14 @@ function Mr(e, t, s, 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
|
-
}, g(i), 11,
|
|
1271
|
+
}, g(i), 11, Mr)
|
|
1272
1272
|
]))), 256))
|
|
1273
1273
|
]);
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const ju = /* @__PURE__ */ D(Er, [["render", Lr]]), Nr = { class: "bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark" }, Ir = { class: "px-3 py-4 border-b border-stroke dark:border-strokedark" }, Vr = { class: "font-semibold text-black dark:text-white" }, Br = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "p-6"
|
|
1278
|
-
},
|
|
1278
|
+
}, Tu = {
|
|
1279
1279
|
__name: "GlCard",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
class: {
|
|
@@ -1288,25 +1288,25 @@ const Eu = /* @__PURE__ */ D(Ar, [["render", Mr]]), Lr = { class: "bg-white bord
|
|
|
1288
1288
|
return (n, o) => (d(), u("div", {
|
|
1289
1289
|
class: p(["flex flex-col gap-9", s.value])
|
|
1290
1290
|
}, [
|
|
1291
|
-
r("div",
|
|
1292
|
-
r("div",
|
|
1293
|
-
r("h3",
|
|
1291
|
+
r("div", Nr, [
|
|
1292
|
+
r("div", Ir, [
|
|
1293
|
+
r("h3", Vr, [
|
|
1294
1294
|
N(n.$slots, "header")
|
|
1295
1295
|
])
|
|
1296
1296
|
]),
|
|
1297
|
-
n.$slots.body ? (d(), u("div",
|
|
1297
|
+
n.$slots.body ? (d(), u("div", Br, [
|
|
1298
1298
|
N(n.$slots, "body")
|
|
1299
1299
|
])) : f("", !0)
|
|
1300
1300
|
])
|
|
1301
1301
|
], 2));
|
|
1302
1302
|
}
|
|
1303
|
-
},
|
|
1303
|
+
}, Gr = { class: "font-bold ptext-lg dark:text-white" }, Ur = { class: "mt-3 mb-4" }, Rr = { 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" }, Fr = /* @__PURE__ */ r("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), qr = ["name", "value"], Hr = {
|
|
1304
1304
|
key: 0,
|
|
1305
1305
|
class: "dropdown"
|
|
1306
|
-
},
|
|
1306
|
+
}, zr = { 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" }, Zr = { class: "relative" }, Kr = ["onClick"], Wr = { 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" }, Yr = { class: "p-1" }, Xr = /* @__PURE__ */ r("label", {
|
|
1307
1307
|
for: "default-search",
|
|
1308
1308
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
1309
|
-
}, "Search", -1),
|
|
1309
|
+
}, "Search", -1), Jr = { class: "relative" }, Qr = /* @__PURE__ */ r("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
1310
1310
|
/* @__PURE__ */ r("svg", {
|
|
1311
1311
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
1312
1312
|
"aria-hidden": "true",
|
|
@@ -1322,7 +1322,7 @@ const Eu = /* @__PURE__ */ D(Ar, [["render", Mr]]), Lr = { class: "bg-white bord
|
|
|
1322
1322
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
1323
1323
|
})
|
|
1324
1324
|
])
|
|
1325
|
-
], -1),
|
|
1325
|
+
], -1), es = ["id"], ts = { class: "overflow-y-auto max-h-64" }, rs = ["onClick", "onMousedown", "id"], Mu = {
|
|
1326
1326
|
__name: "GlMultiSelectDropdown",
|
|
1327
1327
|
props: {
|
|
1328
1328
|
modelValue: {
|
|
@@ -1382,141 +1382,145 @@ const Eu = /* @__PURE__ */ D(Ar, [["render", Mr]]), Lr = { class: "bg-white bord
|
|
|
1382
1382
|
},
|
|
1383
1383
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
1384
1384
|
setup(e, { emit: t }) {
|
|
1385
|
-
const s = e, n = t, o = C(null), a = C([]), i = C([]), l = C(0), c = C(!1), h = C(""),
|
|
1385
|
+
const s = e, n = t, o = C(null), a = C([]), i = C([]), l = C(0), c = C(!1), h = C(""), b = C("");
|
|
1386
1386
|
F(() => {
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
}), document.addEventListener("keypress", (
|
|
1390
|
-
|
|
1387
|
+
b.value = Q(), s.show || (document.body.addEventListener("click", (m) => {
|
|
1388
|
+
ne(m);
|
|
1389
|
+
}), document.addEventListener("keypress", (m) => {
|
|
1390
|
+
m.key === "Enter" && m.target.form && m.preventDefault();
|
|
1391
1391
|
}));
|
|
1392
1392
|
});
|
|
1393
|
-
const _ = M(() =>
|
|
1394
|
-
const
|
|
1393
|
+
const _ = M(() => y()), $ = M(() => P()), S = M(() => {
|
|
1394
|
+
const m = [], v = new RegExp(h.value, "ig");
|
|
1395
1395
|
for (const x of _.value) {
|
|
1396
|
-
const
|
|
1397
|
-
(h.value.length < 1 ||
|
|
1396
|
+
const j = String(x.name);
|
|
1397
|
+
(h.value.length < 1 || j.match(v)) && m.length < s.maxItem && m.push(x);
|
|
1398
1398
|
}
|
|
1399
|
-
return
|
|
1399
|
+
return m;
|
|
1400
1400
|
});
|
|
1401
|
-
function
|
|
1401
|
+
function B(m) {
|
|
1402
1402
|
if ([
|
|
1403
1403
|
"ArrowLeft",
|
|
1404
1404
|
"ArrowUp",
|
|
1405
1405
|
"ArrowRight",
|
|
1406
1406
|
"ArrowDown",
|
|
1407
1407
|
"Enter"
|
|
1408
|
-
].includes(
|
|
1409
|
-
if (["ArrowUp", "ArrowDown"].includes(
|
|
1408
|
+
].includes(m.key)) {
|
|
1409
|
+
if (["ArrowUp", "ArrowDown"].includes(m.key) && m.preventDefault(), m.key === "ArrowDown" && s.posts === "")
|
|
1410
1410
|
return;
|
|
1411
|
-
|
|
1411
|
+
oe(m.key);
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1415
|
-
let
|
|
1414
|
+
function Q() {
|
|
1415
|
+
let m = (/* @__PURE__ */ new Date()).getTime();
|
|
1416
1416
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
1417
1417
|
/[xy]/g,
|
|
1418
1418
|
function(x) {
|
|
1419
|
-
const
|
|
1420
|
-
return
|
|
1419
|
+
const j = (m + Math.random() * 16) % 16 | 0;
|
|
1420
|
+
return m = Math.floor(m / 16), (x === "x" ? j : j & 3 | 8).toString(16);
|
|
1421
1421
|
}
|
|
1422
1422
|
);
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1425
|
-
return Array.isArray(
|
|
1424
|
+
function ee(m) {
|
|
1425
|
+
return Array.isArray(m) && m.length > 0 && m.every((v) => typeof v == "object" && v !== null);
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1428
|
-
return
|
|
1427
|
+
function te(m) {
|
|
1428
|
+
return m.every((v) => typeof v == "object" && v !== null);
|
|
1429
1429
|
}
|
|
1430
|
-
function ue(
|
|
1431
|
-
return a.value.findIndex((v) => v.id ===
|
|
1430
|
+
function ue(m) {
|
|
1431
|
+
return a.value.findIndex((v) => v.id === m) !== -1;
|
|
1432
1432
|
}
|
|
1433
1433
|
function ce() {
|
|
1434
|
-
a.value =
|
|
1434
|
+
a.value = y();
|
|
1435
1435
|
}
|
|
1436
1436
|
function fe() {
|
|
1437
1437
|
a.value = [];
|
|
1438
1438
|
}
|
|
1439
|
-
function ge(
|
|
1440
|
-
|
|
1439
|
+
function ge(m) {
|
|
1440
|
+
let v = a.value.findIndex((x) => x.id === m.id);
|
|
1441
|
+
v !== -1 && a.value.splice(v, 1), i.value = a.value.map((x) => x.id), n("update:modelValue", i.value), n("selected", a.value), n("selectionChanged", a.value);
|
|
1441
1442
|
}
|
|
1442
|
-
function
|
|
1443
|
-
|
|
1443
|
+
function ne(m) {
|
|
1444
|
+
m.target.id != s.field_name + "search" + b.value && m.target.id != s.field_name && !m.target.classList.contains("showOptions") && (re(), l.value = 0);
|
|
1445
|
+
}
|
|
1446
|
+
function Z(m) {
|
|
1447
|
+
const v = `${m}${b.value}`, x = document.getElementById(v);
|
|
1444
1448
|
x && x.scrollIntoView();
|
|
1445
1449
|
}
|
|
1446
|
-
function
|
|
1447
|
-
const v = `${
|
|
1450
|
+
function he(m) {
|
|
1451
|
+
const v = `${m}${b.value}`, x = document.getElementById(v);
|
|
1448
1452
|
x && x.click();
|
|
1449
1453
|
}
|
|
1450
|
-
function
|
|
1451
|
-
|
|
1452
|
-
}
|
|
1453
|
-
function se() {
|
|
1454
|
-
return s.options.map((b, v) => typeof b == "object" ? b : { id: b, name: b });
|
|
1454
|
+
function oe(m) {
|
|
1455
|
+
m === "ArrowDown" && l.value < S.value.length && (l.value++, Z(l.value)), m === "ArrowUp" && l.value > 1 && (l.value--, Z(l.value)), m === "Enter" && he(l.value);
|
|
1455
1456
|
}
|
|
1456
1457
|
function y() {
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1458
|
+
return s.options.map((m, v) => typeof m == "object" ? m : { id: m, name: m });
|
|
1459
|
+
}
|
|
1460
|
+
function P() {
|
|
1461
|
+
if (console.log("selected.value", a.value), console.log("isArrayObjectNotEmpty", ee(a.value)), ee(a.value))
|
|
1462
|
+
return te(a.value) ? _.value.filter(
|
|
1463
|
+
(m) => a.value.some(
|
|
1464
|
+
(v) => String(v.id) === String(m.id)
|
|
1461
1465
|
)
|
|
1462
1466
|
) || [] : _.value.filter(
|
|
1463
|
-
(
|
|
1464
|
-
(v) => String(v) === String(
|
|
1467
|
+
(m) => a.value.some(
|
|
1468
|
+
(v) => String(v) === String(m.id)
|
|
1465
1469
|
)
|
|
1466
1470
|
) || [];
|
|
1467
1471
|
if (s.modelValue)
|
|
1468
|
-
return
|
|
1469
|
-
(
|
|
1470
|
-
(v) => String(v.id) === String(
|
|
1472
|
+
return te(s.modelValue) ? a.value = _.value.filter(
|
|
1473
|
+
(m) => s.modelValue.some(
|
|
1474
|
+
(v) => String(v.id) === String(m.id)
|
|
1471
1475
|
)
|
|
1472
|
-
) || [] : _.value.filter(
|
|
1473
|
-
(
|
|
1474
|
-
(v) => String(v) === String(
|
|
1476
|
+
) || [] : a.value = _.value.filter(
|
|
1477
|
+
(m) => s.modelValue.some(
|
|
1478
|
+
(v) => String(v) === String(m.id)
|
|
1475
1479
|
)
|
|
1476
1480
|
) || [];
|
|
1477
1481
|
}
|
|
1478
|
-
function
|
|
1479
|
-
console.log("selectOption",
|
|
1480
|
-
let v = a.value.findIndex((x) => x.id ===
|
|
1481
|
-
v !== -1 ? a.value.splice(v, 1) : a.value.push(
|
|
1482
|
+
function E(m) {
|
|
1483
|
+
console.log("selectOption", m);
|
|
1484
|
+
let v = a.value.findIndex((x) => x.id === m.id);
|
|
1485
|
+
v !== -1 ? a.value.splice(v, 1) : a.value.push(m), console.log("selectOption selected", a.value), c.value = !1, i.value = a.value.map((x) => x.id), n("update:modelValue", i.value), n("selected", a.value), n("selectionChanged", a.value);
|
|
1482
1486
|
}
|
|
1483
|
-
function
|
|
1484
|
-
s.show || (h.value = "", c.value = !0,
|
|
1485
|
-
var
|
|
1486
|
-
`${s.field_name}search${
|
|
1487
|
+
function G() {
|
|
1488
|
+
s.show || (h.value = "", c.value = !0, Me(() => {
|
|
1489
|
+
var m = document.getElementById(
|
|
1490
|
+
`${s.field_name}search${b.value}`
|
|
1487
1491
|
);
|
|
1488
|
-
|
|
1492
|
+
m && m.focus();
|
|
1489
1493
|
}));
|
|
1490
1494
|
}
|
|
1491
|
-
function
|
|
1495
|
+
function re() {
|
|
1492
1496
|
h.value = "", n("selected", a.value), c.value = !1;
|
|
1493
1497
|
}
|
|
1494
1498
|
return q(h, () => {
|
|
1495
1499
|
S.value.length === 0 && (a.value = []);
|
|
1496
|
-
}), q(a, (
|
|
1497
|
-
|
|
1498
|
-
}), (
|
|
1500
|
+
}), q(a, (m) => {
|
|
1501
|
+
ee(a.value) && (i.value = a.value.map((v) => v.id), n("update:modelValue", i.value));
|
|
1502
|
+
}), (m, v) => (d(), u(k, null, [
|
|
1499
1503
|
e.show ? (d(), u("div", {
|
|
1500
1504
|
key: 0,
|
|
1501
1505
|
class: p(e.field_name)
|
|
1502
1506
|
}, [
|
|
1503
|
-
r("h3",
|
|
1504
|
-
r("p",
|
|
1505
|
-
(d(!0), u(k, null, O($.value, (x,
|
|
1507
|
+
r("h3", Gr, g(e.label_name), 1),
|
|
1508
|
+
r("p", Ur, [
|
|
1509
|
+
(d(!0), u(k, null, O($.value, (x, j) => (d(), u("span", Rr, g(x == null ? void 0 : x.name), 1))), 256))
|
|
1506
1510
|
]),
|
|
1507
|
-
|
|
1511
|
+
Fr
|
|
1508
1512
|
], 2)) : f("", !0),
|
|
1509
1513
|
e.show ? f("", !0) : (d(), u("div", {
|
|
1510
1514
|
key: 1,
|
|
1511
1515
|
class: p(["mb-4", e.field_name])
|
|
1512
1516
|
}, [
|
|
1513
|
-
(d(!0), u(k, null, O(i.value, (x,
|
|
1517
|
+
(d(!0), u(k, null, O(i.value, (x, j) => (d(), u("input", {
|
|
1514
1518
|
type: "hidden",
|
|
1515
1519
|
name: e.field_name + "[]",
|
|
1516
|
-
key:
|
|
1520
|
+
key: j,
|
|
1517
1521
|
value: x
|
|
1518
|
-
}, null, 8,
|
|
1519
|
-
e.options ? (d(), u("div",
|
|
1522
|
+
}, null, 8, qr))), 128)),
|
|
1523
|
+
e.options ? (d(), u("div", Hr, [
|
|
1520
1524
|
r("label", {
|
|
1521
1525
|
class: p({
|
|
1522
1526
|
"gl-label-form": e.error_message == "",
|
|
@@ -1539,21 +1543,21 @@ const Eu = /* @__PURE__ */ D(Ar, [["render", Mr]]), Lr = { class: "bg-white bord
|
|
|
1539
1543
|
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"
|
|
1540
1544
|
}, " Deselect all ")
|
|
1541
1545
|
]),
|
|
1542
|
-
r("div",
|
|
1543
|
-
r("div",
|
|
1546
|
+
r("div", zr, [
|
|
1547
|
+
r("div", Zr, [
|
|
1544
1548
|
r("div", {
|
|
1545
1549
|
class: "flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",
|
|
1546
|
-
onClick: v[0] || (v[0] = (x) =>
|
|
1550
|
+
onClick: v[0] || (v[0] = (x) => G())
|
|
1547
1551
|
}, [
|
|
1548
|
-
(d(!0), u(k, null, O($.value, (x,
|
|
1549
|
-
key:
|
|
1552
|
+
(d(!0), u(k, null, O($.value, (x, j) => (d(), u("span", {
|
|
1553
|
+
key: j,
|
|
1550
1554
|
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"
|
|
1551
1555
|
}, [
|
|
1552
1556
|
w(g(x == null ? void 0 : x.name) + " ", 1),
|
|
1553
1557
|
r("i", {
|
|
1554
|
-
onClick: U((
|
|
1558
|
+
onClick: U((Se) => ge(x), ["stop"]),
|
|
1555
1559
|
class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400 fas fa-times"
|
|
1556
|
-
}, null, 8,
|
|
1560
|
+
}, null, 8, Kr)
|
|
1557
1561
|
]))), 128))
|
|
1558
1562
|
]),
|
|
1559
1563
|
r("i", {
|
|
@@ -1561,47 +1565,47 @@ const Eu = /* @__PURE__ */ D(Ar, [["render", Mr]]), Lr = { class: "bg-white bord
|
|
|
1561
1565
|
style: { top: "11px" }
|
|
1562
1566
|
}, null, 2)
|
|
1563
1567
|
]),
|
|
1564
|
-
A(r("div",
|
|
1565
|
-
r("div",
|
|
1566
|
-
|
|
1567
|
-
r("div",
|
|
1568
|
-
|
|
1568
|
+
A(r("div", Wr, [
|
|
1569
|
+
r("div", Yr, [
|
|
1570
|
+
Xr,
|
|
1571
|
+
r("div", Jr, [
|
|
1572
|
+
Qr,
|
|
1569
1573
|
A(r("input", {
|
|
1570
1574
|
type: "search",
|
|
1571
1575
|
"onUpdate:modelValue": v[1] || (v[1] = (x) => h.value = x),
|
|
1572
1576
|
ref: o.value,
|
|
1573
|
-
id: `${e.field_name}search${
|
|
1574
|
-
onKeydown:
|
|
1575
|
-
onBlur: v[2] || (v[2] = (x) =>
|
|
1577
|
+
id: `${e.field_name}search${b.value}`,
|
|
1578
|
+
onKeydown: B,
|
|
1579
|
+
onBlur: v[2] || (v[2] = (x) => re()),
|
|
1576
1580
|
autocomplete: "off",
|
|
1577
1581
|
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",
|
|
1578
1582
|
placeholder: "Search ..."
|
|
1579
|
-
}, null, 40,
|
|
1583
|
+
}, null, 40, es), [
|
|
1580
1584
|
[R, h.value]
|
|
1581
1585
|
])
|
|
1582
1586
|
])
|
|
1583
1587
|
]),
|
|
1584
|
-
r("div",
|
|
1585
|
-
(d(!0), u(k, null, O(S.value, (x,
|
|
1588
|
+
r("div", ts, [
|
|
1589
|
+
(d(!0), u(k, null, O(S.value, (x, j) => (d(), u("div", {
|
|
1586
1590
|
class: p([
|
|
1587
1591
|
"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",
|
|
1588
|
-
|
|
1592
|
+
j + 1 == l.value || ue(x.id) ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
1589
1593
|
]),
|
|
1590
|
-
onClick: (
|
|
1591
|
-
onMousedown: (
|
|
1592
|
-
key:
|
|
1593
|
-
id:
|
|
1594
|
-
}, g(x.name || x.id || "-"), 43,
|
|
1594
|
+
onClick: (Se) => E(x),
|
|
1595
|
+
onMousedown: (Se) => E(x),
|
|
1596
|
+
key: j,
|
|
1597
|
+
id: j + 1
|
|
1598
|
+
}, g(x.name || x.id || "-"), 43, rs))), 128))
|
|
1595
1599
|
])
|
|
1596
1600
|
], 512), [
|
|
1597
|
-
[
|
|
1601
|
+
[X, c.value]
|
|
1598
1602
|
])
|
|
1599
1603
|
])
|
|
1600
1604
|
])) : f("", !0)
|
|
1601
1605
|
], 2))
|
|
1602
1606
|
], 64));
|
|
1603
1607
|
}
|
|
1604
|
-
},
|
|
1608
|
+
}, ss = {
|
|
1605
1609
|
props: {
|
|
1606
1610
|
button_type: {
|
|
1607
1611
|
type: String,
|
|
@@ -1657,7 +1661,7 @@ const Eu = /* @__PURE__ */ D(Ar, [["render", Mr]]), Lr = { class: "bg-white bord
|
|
|
1657
1661
|
}
|
|
1658
1662
|
},
|
|
1659
1663
|
methods: {}
|
|
1660
|
-
},
|
|
1664
|
+
}, as = /* @__PURE__ */ r("svg", {
|
|
1661
1665
|
"aria-hidden": "true",
|
|
1662
1666
|
role: "status",
|
|
1663
1667
|
class: "inline w-4 h-4 me-3 animate-spin",
|
|
@@ -1674,18 +1678,18 @@ const Eu = /* @__PURE__ */ D(Ar, [["render", Mr]]), Lr = { class: "bg-white bord
|
|
|
1674
1678
|
fill: "#1C64F2"
|
|
1675
1679
|
})
|
|
1676
1680
|
], -1);
|
|
1677
|
-
function
|
|
1678
|
-
return s.is_loading ? (d(),
|
|
1681
|
+
function ns(e, t, s, n, o, a) {
|
|
1682
|
+
return s.is_loading ? (d(), J(pe("button"), {
|
|
1679
1683
|
key: 1,
|
|
1680
1684
|
disabled: "",
|
|
1681
1685
|
class: p(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`)
|
|
1682
1686
|
}, {
|
|
1683
1687
|
default: le(() => [
|
|
1684
|
-
|
|
1688
|
+
as,
|
|
1685
1689
|
w(" Loading... ")
|
|
1686
1690
|
]),
|
|
1687
1691
|
_: 1
|
|
1688
|
-
}, 8, ["class"])) : (d(),
|
|
1692
|
+
}, 8, ["class"])) : (d(), J(pe(s.tag), se({
|
|
1689
1693
|
key: 0,
|
|
1690
1694
|
type: s.is_submit,
|
|
1691
1695
|
disabled: s.is_disabled
|
|
@@ -1703,7 +1707,7 @@ function as(e, t, s, n, o, a) {
|
|
|
1703
1707
|
_: 3
|
|
1704
1708
|
}, 16, ["type", "disabled", "href", "class"]));
|
|
1705
1709
|
}
|
|
1706
|
-
const
|
|
1710
|
+
const Lu = /* @__PURE__ */ D(ss, [["render", ns]]), os = { class: "font-bold ptext-lg dark:text-white" }, ls = ["name", "id"], is = ["id"], ds = /* @__PURE__ */ r("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), us = ["for"], cs = /* @__PURE__ */ r("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), fs = ["name", "id"], gs = ["required", "name", "id", "type"], hs = { class: "gl-span-form-error" }, ms = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Nu = {
|
|
1707
1711
|
__name: "GlTextareaTranslate",
|
|
1708
1712
|
props: {
|
|
1709
1713
|
is_required: {
|
|
@@ -1777,7 +1781,7 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
1777
1781
|
key: 0,
|
|
1778
1782
|
class: p(e.field_name)
|
|
1779
1783
|
}, [
|
|
1780
|
-
r("h3",
|
|
1784
|
+
r("h3", os, g(e.label_name), 1),
|
|
1781
1785
|
A(r("input", {
|
|
1782
1786
|
type: "hidden",
|
|
1783
1787
|
"data-i18n": "true",
|
|
@@ -1786,14 +1790,14 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
1786
1790
|
ref_key: "input_translate",
|
|
1787
1791
|
ref: i,
|
|
1788
1792
|
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
1789
|
-
}, null, 8,
|
|
1793
|
+
}, null, 8, ls), [
|
|
1790
1794
|
[R, l.inputTranslateValue]
|
|
1791
1795
|
]),
|
|
1792
1796
|
r("p", {
|
|
1793
1797
|
id: e.field_name,
|
|
1794
1798
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1795
|
-
}, g(e.model_value), 9,
|
|
1796
|
-
|
|
1799
|
+
}, g(e.model_value), 9, is),
|
|
1800
|
+
ds
|
|
1797
1801
|
], 2)) : f("", !0),
|
|
1798
1802
|
e.show ? f("", !0) : (d(), u("div", {
|
|
1799
1803
|
key: 1,
|
|
@@ -1806,8 +1810,8 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
1806
1810
|
required: e.is_required
|
|
1807
1811
|
}),
|
|
1808
1812
|
for: e.field_name
|
|
1809
|
-
}, g(e.label_name), 11,
|
|
1810
|
-
|
|
1813
|
+
}, g(e.label_name), 11, us),
|
|
1814
|
+
cs,
|
|
1811
1815
|
r("input", {
|
|
1812
1816
|
class: "mb-4",
|
|
1813
1817
|
type: "hidden",
|
|
@@ -1817,7 +1821,7 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
1817
1821
|
onInput: c[1] || (c[1] = (h) => l.$emit("update:modelValueTranslate", h.target.value)),
|
|
1818
1822
|
ref_key: "input_translate",
|
|
1819
1823
|
ref: i
|
|
1820
|
-
}, null, 40,
|
|
1824
|
+
}, null, 40, fs),
|
|
1821
1825
|
r("textarea", {
|
|
1822
1826
|
required: e.is_required,
|
|
1823
1827
|
name: e.field_name,
|
|
@@ -1833,13 +1837,13 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
1833
1837
|
ref: a,
|
|
1834
1838
|
rows: "4"
|
|
1835
1839
|
}, `
|
|
1836
|
-
`, 42,
|
|
1837
|
-
r("span",
|
|
1838
|
-
r("small",
|
|
1840
|
+
`, 42, gs),
|
|
1841
|
+
r("span", hs, g(e.error_message), 1),
|
|
1842
|
+
r("small", ms, g(e.description), 1)
|
|
1839
1843
|
], 2))
|
|
1840
1844
|
], 64));
|
|
1841
1845
|
}
|
|
1842
|
-
},
|
|
1846
|
+
}, bs = { class: "font-bold ptext-lg dark:text-white" }, ps = ["name", "id"], ys = ["id"], _s = /* @__PURE__ */ r("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), vs = ["for"], xs = /* @__PURE__ */ r("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), ws = ["name", "id"], ks = ["name", "id", "type"], $s = { class: "gl-span-form-error" }, Cs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Iu = {
|
|
1843
1847
|
__name: "GlTinymceTranslate",
|
|
1844
1848
|
props: {
|
|
1845
1849
|
is_required: {
|
|
@@ -1917,7 +1921,7 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
1917
1921
|
key: 0,
|
|
1918
1922
|
class: p(e.field_name)
|
|
1919
1923
|
}, [
|
|
1920
|
-
r("h3",
|
|
1924
|
+
r("h3", bs, g(e.label_name), 1),
|
|
1921
1925
|
A(r("input", {
|
|
1922
1926
|
type: "hidden",
|
|
1923
1927
|
"data-i18n": "true",
|
|
@@ -1926,14 +1930,14 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
1926
1930
|
ref_key: "input_translate",
|
|
1927
1931
|
ref: i,
|
|
1928
1932
|
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
1929
|
-
}, null, 8,
|
|
1933
|
+
}, null, 8, ps), [
|
|
1930
1934
|
[R, l.inputTranslateValue]
|
|
1931
1935
|
]),
|
|
1932
1936
|
r("p", {
|
|
1933
1937
|
id: e.field_name,
|
|
1934
1938
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1935
|
-
}, g(e.model_value), 9,
|
|
1936
|
-
|
|
1939
|
+
}, g(e.model_value), 9, ys),
|
|
1940
|
+
_s
|
|
1937
1941
|
], 2)) : f("", !0),
|
|
1938
1942
|
e.show ? f("", !0) : (d(), u("div", {
|
|
1939
1943
|
key: 1,
|
|
@@ -1946,8 +1950,8 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
1946
1950
|
required: e.is_required
|
|
1947
1951
|
}),
|
|
1948
1952
|
for: e.field_name
|
|
1949
|
-
}, g(e.label_name), 11,
|
|
1950
|
-
|
|
1953
|
+
}, g(e.label_name), 11, vs),
|
|
1954
|
+
xs,
|
|
1951
1955
|
r("input", {
|
|
1952
1956
|
class: "mb-4",
|
|
1953
1957
|
type: "hidden",
|
|
@@ -1957,7 +1961,7 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
1957
1961
|
onInput: c[1] || (c[1] = (h) => l.$emit("update:modelValueTranslate", h.target.value)),
|
|
1958
1962
|
ref_key: "input_translate",
|
|
1959
1963
|
ref: i
|
|
1960
|
-
}, null, 40,
|
|
1964
|
+
}, null, 40, ws),
|
|
1961
1965
|
r("textarea", {
|
|
1962
1966
|
name: e.field_name,
|
|
1963
1967
|
id: e.field_name,
|
|
@@ -1972,13 +1976,13 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
1972
1976
|
ref: a,
|
|
1973
1977
|
rows: "4"
|
|
1974
1978
|
}, `
|
|
1975
|
-
`, 42,
|
|
1976
|
-
r("span",
|
|
1977
|
-
r("small",
|
|
1979
|
+
`, 42, ks),
|
|
1980
|
+
r("span", $s, g(e.error_message), 1),
|
|
1981
|
+
r("small", Cs, g(e.description), 1)
|
|
1978
1982
|
], 2))
|
|
1979
1983
|
], 64));
|
|
1980
1984
|
}
|
|
1981
|
-
},
|
|
1985
|
+
}, Ss = { class: "font-bold ptext-lg dark:text-white" }, Ds = ["name", "id"], Os = ["id"], Ps = /* @__PURE__ */ r("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), As = ["for"], Es = /* @__PURE__ */ r("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), js = ["name", "id"], Ts = ["required", "name", "id", "type"], Ms = { class: "gl-span-form-error" }, Ls = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Vu = {
|
|
1982
1986
|
__name: "GlTextTranslate",
|
|
1983
1987
|
props: {
|
|
1984
1988
|
is_required: {
|
|
@@ -2052,7 +2056,7 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
2052
2056
|
key: 0,
|
|
2053
2057
|
class: p(e.field_name)
|
|
2054
2058
|
}, [
|
|
2055
|
-
r("h3",
|
|
2059
|
+
r("h3", Ss, g(e.label_name), 1),
|
|
2056
2060
|
A(r("input", {
|
|
2057
2061
|
type: "hidden",
|
|
2058
2062
|
"data-i18n": "true",
|
|
@@ -2060,14 +2064,14 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
2060
2064
|
id: e.field_name + "_i18n",
|
|
2061
2065
|
ref: "input_translate_s",
|
|
2062
2066
|
"onUpdate:modelValue": c[0] || (c[0] = (h) => l.inputTranslateValue = h)
|
|
2063
|
-
}, null, 8,
|
|
2067
|
+
}, null, 8, Ds), [
|
|
2064
2068
|
[R, l.inputTranslateValue]
|
|
2065
2069
|
]),
|
|
2066
2070
|
r("p", {
|
|
2067
2071
|
id: e.field_name,
|
|
2068
2072
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
2069
|
-
}, g(e.model_value), 9,
|
|
2070
|
-
|
|
2073
|
+
}, g(e.model_value), 9, Os),
|
|
2074
|
+
Ps
|
|
2071
2075
|
], 2)) : f("", !0),
|
|
2072
2076
|
e.show ? f("", !0) : (d(), u("div", {
|
|
2073
2077
|
key: 1,
|
|
@@ -2080,8 +2084,8 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
2080
2084
|
required: e.is_required
|
|
2081
2085
|
}),
|
|
2082
2086
|
for: e.field_name
|
|
2083
|
-
}, g(e.label_name), 11,
|
|
2084
|
-
|
|
2087
|
+
}, g(e.label_name), 11, As),
|
|
2088
|
+
Es,
|
|
2085
2089
|
r("input", {
|
|
2086
2090
|
class: "mb-4",
|
|
2087
2091
|
type: "hidden",
|
|
@@ -2091,7 +2095,7 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
2091
2095
|
onInput: c[1] || (c[1] = (h) => l.$emit("update:modelValueTranslate", h.target.value)),
|
|
2092
2096
|
ref_key: "input_translate",
|
|
2093
2097
|
ref: i
|
|
2094
|
-
}, null, 40,
|
|
2098
|
+
}, null, 40, js),
|
|
2095
2099
|
r("input", {
|
|
2096
2100
|
required: e.is_required,
|
|
2097
2101
|
name: e.field_name,
|
|
@@ -2105,13 +2109,13 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
2105
2109
|
onKeydown: c[3] || (c[3] = (h) => l.$emit("keydown", h)),
|
|
2106
2110
|
ref_key: "input",
|
|
2107
2111
|
ref: a
|
|
2108
|
-
}, null, 42,
|
|
2109
|
-
r("span",
|
|
2110
|
-
r("small",
|
|
2112
|
+
}, null, 42, Ts),
|
|
2113
|
+
r("span", Ms, g(e.error_message), 1),
|
|
2114
|
+
r("small", Ls, g(e.description), 1)
|
|
2111
2115
|
], 2))
|
|
2112
2116
|
], 64));
|
|
2113
2117
|
}
|
|
2114
|
-
},
|
|
2118
|
+
}, Ns = { class: "font-bold ptext-lg dark:text-white" }, Is = { class: "mb-4 text-base text-gray-900 dark:text-white" }, Vs = /* @__PURE__ */ r("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Bs = ["for"], Gs = ["required", "name", "id", "type", "placeholder"], Us = { class: "gl-span-form-error" }, Rs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Bu = {
|
|
2115
2119
|
__name: "GlTextInput",
|
|
2116
2120
|
props: {
|
|
2117
2121
|
is_required: {
|
|
@@ -2174,9 +2178,9 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
2174
2178
|
key: 0,
|
|
2175
2179
|
class: p(e.field_name)
|
|
2176
2180
|
}, [
|
|
2177
|
-
r("h3",
|
|
2178
|
-
r("p",
|
|
2179
|
-
|
|
2181
|
+
r("h3", Ns, g(e.label_name), 1),
|
|
2182
|
+
r("p", Is, g(e.type == "password" ? e.modelValue.replace(/./g, "*") : e.modelValue), 1),
|
|
2183
|
+
Vs
|
|
2180
2184
|
], 2)) : f("", !0),
|
|
2181
2185
|
e.show ? f("", !0) : (d(), u("div", {
|
|
2182
2186
|
key: 1,
|
|
@@ -2189,7 +2193,7 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
2189
2193
|
required: e.is_required
|
|
2190
2194
|
}),
|
|
2191
2195
|
for: e.field_name
|
|
2192
|
-
}, g(e.label_name), 11,
|
|
2196
|
+
}, g(e.label_name), 11, Bs),
|
|
2193
2197
|
A(r("input", {
|
|
2194
2198
|
required: e.is_required,
|
|
2195
2199
|
name: e.field_name,
|
|
@@ -2204,28 +2208,28 @@ const Mu = /* @__PURE__ */ D(rs, [["render", as]]), ns = { class: "font-bold pte
|
|
|
2204
2208
|
ref_key: "input",
|
|
2205
2209
|
ref: a,
|
|
2206
2210
|
placeholder: e.placeholder
|
|
2207
|
-
}, null, 42,
|
|
2208
|
-
[
|
|
2211
|
+
}, null, 42, Gs), [
|
|
2212
|
+
[rt, i.value]
|
|
2209
2213
|
]),
|
|
2210
|
-
r("span",
|
|
2211
|
-
r("small",
|
|
2214
|
+
r("span", Us, g(e.error_message), 1),
|
|
2215
|
+
r("small", Rs, g(e.description), 1)
|
|
2212
2216
|
], 2))
|
|
2213
2217
|
], 64));
|
|
2214
2218
|
}
|
|
2215
|
-
},
|
|
2219
|
+
}, Fs = {
|
|
2216
2220
|
setup(e, { slots: t }) {
|
|
2217
2221
|
const s = C(t.default().map((o) => o.props)), n = C(s.value[0].title);
|
|
2218
|
-
return
|
|
2222
|
+
return st("selectedTitle", n), {
|
|
2219
2223
|
tabs: s,
|
|
2220
2224
|
selectedTitle: n
|
|
2221
2225
|
};
|
|
2222
2226
|
}
|
|
2223
|
-
},
|
|
2224
|
-
function
|
|
2227
|
+
}, qs = { class: "flex flex-wrap" }, Hs = { class: "w-full" }, zs = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, Zs = ["onClick"], Ks = { 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" }, Ws = { class: "flex-auto px-4 py-5" }, Ys = { class: "tab-content tab-space" };
|
|
2228
|
+
function Xs(e, t, s, n, o, a) {
|
|
2225
2229
|
return d(), u(k, null, [
|
|
2226
|
-
r("div",
|
|
2227
|
-
r("div",
|
|
2228
|
-
r("ul",
|
|
2230
|
+
r("div", qs, [
|
|
2231
|
+
r("div", Hs, [
|
|
2232
|
+
r("ul", zs, [
|
|
2229
2233
|
(d(!0), u(k, null, O(n.tabs, (i) => (d(), u("li", {
|
|
2230
2234
|
key: i.title,
|
|
2231
2235
|
onClick: (l) => n.selectedTitle = i.title,
|
|
@@ -2239,36 +2243,36 @@ function Ys(e, t, s, n, o, a) {
|
|
|
2239
2243
|
}, null, 2),
|
|
2240
2244
|
w(" " + g(i.title), 1)
|
|
2241
2245
|
], 2)
|
|
2242
|
-
], 8,
|
|
2246
|
+
], 8, Zs))), 128))
|
|
2243
2247
|
])
|
|
2244
2248
|
])
|
|
2245
2249
|
]),
|
|
2246
|
-
r("div",
|
|
2247
|
-
r("div",
|
|
2248
|
-
r("div",
|
|
2250
|
+
r("div", Ks, [
|
|
2251
|
+
r("div", Ws, [
|
|
2252
|
+
r("div", Ys, [
|
|
2249
2253
|
N(e.$slots, "default")
|
|
2250
2254
|
])
|
|
2251
2255
|
])
|
|
2252
2256
|
])
|
|
2253
2257
|
], 64);
|
|
2254
2258
|
}
|
|
2255
|
-
const
|
|
2259
|
+
const Gu = /* @__PURE__ */ D(Fs, [["render", Xs]]), Js = {
|
|
2256
2260
|
props: ["title"],
|
|
2257
2261
|
setup() {
|
|
2258
2262
|
return {
|
|
2259
|
-
selectedTitle:
|
|
2263
|
+
selectedTitle: je("selectedTitle")
|
|
2260
2264
|
};
|
|
2261
2265
|
}
|
|
2262
|
-
},
|
|
2266
|
+
}, Qs = {
|
|
2263
2267
|
key: 0,
|
|
2264
2268
|
class: "block"
|
|
2265
2269
|
};
|
|
2266
|
-
function
|
|
2267
|
-
return s.title == n.selectedTitle ? (d(), u("div",
|
|
2270
|
+
function ea(e, t, s, n, o, a) {
|
|
2271
|
+
return s.title == n.selectedTitle ? (d(), u("div", Qs, [
|
|
2268
2272
|
N(e.$slots, "default")
|
|
2269
2273
|
])) : f("", !0);
|
|
2270
2274
|
}
|
|
2271
|
-
const
|
|
2275
|
+
const Uu = /* @__PURE__ */ D(Js, [["render", ea]]), ta = {
|
|
2272
2276
|
props: {
|
|
2273
2277
|
elements_to_show_prop: {
|
|
2274
2278
|
type: Number,
|
|
@@ -2330,8 +2334,8 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2330
2334
|
const s = (o) => {
|
|
2331
2335
|
t.style.cursor = "grabbing";
|
|
2332
2336
|
const a = (l) => {
|
|
2333
|
-
const c = l.clientX || l.touches && l.touches[0] && l.touches[0].clientX, h = l.clientY || l.touches && l.touches[0] && l.touches[0].clientY,
|
|
2334
|
-
Math.abs(
|
|
2337
|
+
const c = l.clientX || l.touches && l.touches[0] && l.touches[0].clientX, h = l.clientY || l.touches && l.touches[0] && l.touches[0].clientY, b = c - e.initialX, _ = h - e.initialY;
|
|
2338
|
+
Math.abs(b) > Math.abs(_) ? (l.preventDefault(), Math.abs(b) >= 70 && (b < 0 ? e.next() : e.prev(), e.initialX = c)) : t.style.cursor = "grab", Math.abs(_) > Math.abs(b) && (t.style.cursor = "grab");
|
|
2335
2339
|
}, i = () => {
|
|
2336
2340
|
document.removeEventListener("mousemove", a), document.removeEventListener("touchmove", a), document.removeEventListener("mouseup", i), document.removeEventListener("touchend", i), t.style.cursor = "grab";
|
|
2337
2341
|
};
|
|
@@ -2367,10 +2371,10 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2367
2371
|
this.direction_property == "rtl" ? t.style.marginRight = -this.dotsNavigation[e - 1] + "px" : t.style.marginLeft = -this.dotsNavigation[e - 1] + "px", this.currentDot = e;
|
|
2368
2372
|
}
|
|
2369
2373
|
}
|
|
2370
|
-
}, T = (e) => (
|
|
2374
|
+
}, T = (e) => (at("data-v-a94f16a9"), e = e(), nt(), e), ra = ["id"], sa = {
|
|
2371
2375
|
key: 0,
|
|
2372
2376
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2373
|
-
},
|
|
2377
|
+
}, aa = { class: "w-full" }, na = {
|
|
2374
2378
|
key: 0,
|
|
2375
2379
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2376
2380
|
class: "w-6 h-6",
|
|
@@ -2378,13 +2382,13 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2378
2382
|
viewBox: "0 0 24 24",
|
|
2379
2383
|
stroke: "currentColor",
|
|
2380
2384
|
"stroke-width": "2"
|
|
2381
|
-
},
|
|
2385
|
+
}, oa = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2382
2386
|
"stroke-linecap": "round",
|
|
2383
2387
|
"stroke-linejoin": "round",
|
|
2384
2388
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2385
|
-
}, null, -1)),
|
|
2386
|
-
|
|
2387
|
-
],
|
|
2389
|
+
}, null, -1)), la = [
|
|
2390
|
+
oa
|
|
2391
|
+
], ia = {
|
|
2388
2392
|
key: 1,
|
|
2389
2393
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2390
2394
|
class: "w-6 h-6",
|
|
@@ -2392,13 +2396,13 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2392
2396
|
viewBox: "0 0 24 24",
|
|
2393
2397
|
stroke: "currentColor",
|
|
2394
2398
|
"stroke-width": "2"
|
|
2395
|
-
},
|
|
2399
|
+
}, da = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2396
2400
|
"stroke-linecap": "round",
|
|
2397
2401
|
"stroke-linejoin": "round",
|
|
2398
2402
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2399
|
-
}, null, -1)),
|
|
2400
|
-
|
|
2401
|
-
],
|
|
2403
|
+
}, null, -1)), ua = [
|
|
2404
|
+
da
|
|
2405
|
+
], ca = ["id"], fa = ["id"], ga = { class: "w-full" }, ha = {
|
|
2402
2406
|
key: 0,
|
|
2403
2407
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2404
2408
|
class: "w-6 h-6",
|
|
@@ -2406,13 +2410,13 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2406
2410
|
viewBox: "0 0 24 24",
|
|
2407
2411
|
stroke: "currentColor",
|
|
2408
2412
|
"stroke-width": "2"
|
|
2409
|
-
},
|
|
2413
|
+
}, ma = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2410
2414
|
"stroke-linecap": "round",
|
|
2411
2415
|
"stroke-linejoin": "round",
|
|
2412
2416
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2413
|
-
}, null, -1)),
|
|
2414
|
-
|
|
2415
|
-
],
|
|
2417
|
+
}, null, -1)), ba = [
|
|
2418
|
+
ma
|
|
2419
|
+
], pa = {
|
|
2416
2420
|
key: 1,
|
|
2417
2421
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2418
2422
|
class: "w-6 h-6",
|
|
@@ -2420,13 +2424,13 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2420
2424
|
viewBox: "0 0 24 24",
|
|
2421
2425
|
stroke: "currentColor",
|
|
2422
2426
|
"stroke-width": "2"
|
|
2423
|
-
},
|
|
2427
|
+
}, ya = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2424
2428
|
"stroke-linecap": "round",
|
|
2425
2429
|
"stroke-linejoin": "round",
|
|
2426
2430
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2427
|
-
}, null, -1)),
|
|
2428
|
-
|
|
2429
|
-
],
|
|
2431
|
+
}, null, -1)), _a = [
|
|
2432
|
+
ya
|
|
2433
|
+
], va = { class: "w-full" }, xa = {
|
|
2430
2434
|
key: 0,
|
|
2431
2435
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2432
2436
|
class: "w-6 h-6",
|
|
@@ -2434,13 +2438,13 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2434
2438
|
viewBox: "0 0 24 24",
|
|
2435
2439
|
stroke: "currentColor",
|
|
2436
2440
|
"stroke-width": "2"
|
|
2437
|
-
},
|
|
2441
|
+
}, wa = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2438
2442
|
"stroke-linecap": "round",
|
|
2439
2443
|
"stroke-linejoin": "round",
|
|
2440
2444
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2441
|
-
}, null, -1)),
|
|
2442
|
-
|
|
2443
|
-
],
|
|
2445
|
+
}, null, -1)), ka = [
|
|
2446
|
+
wa
|
|
2447
|
+
], $a = {
|
|
2444
2448
|
key: 1,
|
|
2445
2449
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2446
2450
|
class: "w-6 h-6",
|
|
@@ -2448,23 +2452,23 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2448
2452
|
viewBox: "0 0 24 24",
|
|
2449
2453
|
stroke: "currentColor",
|
|
2450
2454
|
"stroke-width": "2"
|
|
2451
|
-
},
|
|
2455
|
+
}, Ca = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2452
2456
|
"stroke-linecap": "round",
|
|
2453
2457
|
"stroke-linejoin": "round",
|
|
2454
2458
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2455
|
-
}, null, -1)),
|
|
2456
|
-
|
|
2457
|
-
],
|
|
2458
|
-
|
|
2459
|
-
],
|
|
2459
|
+
}, null, -1)), Sa = [
|
|
2460
|
+
Ca
|
|
2461
|
+
], Da = ["onClick"], Oa = /* @__PURE__ */ T(() => /* @__PURE__ */ r("span", null, null, -1)), Pa = [
|
|
2462
|
+
Oa
|
|
2463
|
+
], Aa = {
|
|
2460
2464
|
key: 1,
|
|
2461
2465
|
class: "flex justify-between pl-5 pr-5"
|
|
2462
|
-
},
|
|
2463
|
-
|
|
2464
|
-
],
|
|
2466
|
+
}, Ea = ["onClick"], ja = /* @__PURE__ */ T(() => /* @__PURE__ */ r("span", null, null, -1)), Ta = [
|
|
2467
|
+
ja
|
|
2468
|
+
], Ma = {
|
|
2465
2469
|
key: 0,
|
|
2466
2470
|
class: "flex"
|
|
2467
|
-
},
|
|
2471
|
+
}, La = { class: "flex items-center" }, Na = { class: "w-full" }, Ia = {
|
|
2468
2472
|
key: 0,
|
|
2469
2473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2470
2474
|
class: "w-6 h-6",
|
|
@@ -2472,13 +2476,13 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2472
2476
|
viewBox: "0 0 24 24",
|
|
2473
2477
|
stroke: "currentColor",
|
|
2474
2478
|
"stroke-width": "2"
|
|
2475
|
-
},
|
|
2479
|
+
}, Va = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2476
2480
|
"stroke-linecap": "round",
|
|
2477
2481
|
"stroke-linejoin": "round",
|
|
2478
2482
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2479
|
-
}, null, -1)),
|
|
2480
|
-
|
|
2481
|
-
],
|
|
2483
|
+
}, null, -1)), Ba = [
|
|
2484
|
+
Va
|
|
2485
|
+
], Ga = {
|
|
2482
2486
|
key: 1,
|
|
2483
2487
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2484
2488
|
class: "w-6 h-6",
|
|
@@ -2486,13 +2490,13 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2486
2490
|
viewBox: "0 0 24 24",
|
|
2487
2491
|
stroke: "currentColor",
|
|
2488
2492
|
"stroke-width": "2"
|
|
2489
|
-
},
|
|
2493
|
+
}, Ua = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2490
2494
|
"stroke-linecap": "round",
|
|
2491
2495
|
"stroke-linejoin": "round",
|
|
2492
2496
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2493
|
-
}, null, -1)),
|
|
2494
|
-
|
|
2495
|
-
],
|
|
2497
|
+
}, null, -1)), Ra = [
|
|
2498
|
+
Ua
|
|
2499
|
+
], Fa = { class: "flex items-center" }, qa = { class: "w-full" }, Ha = {
|
|
2496
2500
|
key: 0,
|
|
2497
2501
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2498
2502
|
class: "w-6 h-6",
|
|
@@ -2500,13 +2504,13 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2500
2504
|
viewBox: "0 0 24 24",
|
|
2501
2505
|
stroke: "currentColor",
|
|
2502
2506
|
"stroke-width": "2"
|
|
2503
|
-
},
|
|
2507
|
+
}, za = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2504
2508
|
"stroke-linecap": "round",
|
|
2505
2509
|
"stroke-linejoin": "round",
|
|
2506
2510
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2507
|
-
}, null, -1)),
|
|
2508
|
-
|
|
2509
|
-
],
|
|
2511
|
+
}, null, -1)), Za = [
|
|
2512
|
+
za
|
|
2513
|
+
], Ka = {
|
|
2510
2514
|
key: 1,
|
|
2511
2515
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2512
2516
|
class: "w-6 h-6",
|
|
@@ -2514,16 +2518,16 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2514
2518
|
viewBox: "0 0 24 24",
|
|
2515
2519
|
stroke: "currentColor",
|
|
2516
2520
|
"stroke-width": "2"
|
|
2517
|
-
},
|
|
2521
|
+
}, Wa = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2518
2522
|
"stroke-linecap": "round",
|
|
2519
2523
|
"stroke-linejoin": "round",
|
|
2520
2524
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2521
|
-
}, null, -1)),
|
|
2522
|
-
|
|
2523
|
-
],
|
|
2525
|
+
}, null, -1)), Ya = [
|
|
2526
|
+
Wa
|
|
2527
|
+
], Xa = {
|
|
2524
2528
|
key: 1,
|
|
2525
2529
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2526
|
-
},
|
|
2530
|
+
}, Ja = { class: "w-full" }, Qa = {
|
|
2527
2531
|
key: 0,
|
|
2528
2532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2529
2533
|
class: "w-6 h-6",
|
|
@@ -2531,13 +2535,13 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2531
2535
|
viewBox: "0 0 24 24",
|
|
2532
2536
|
stroke: "currentColor",
|
|
2533
2537
|
"stroke-width": "2"
|
|
2534
|
-
},
|
|
2538
|
+
}, en = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2535
2539
|
"stroke-linecap": "round",
|
|
2536
2540
|
"stroke-linejoin": "round",
|
|
2537
2541
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2538
|
-
}, null, -1)),
|
|
2539
|
-
|
|
2540
|
-
],
|
|
2542
|
+
}, null, -1)), tn = [
|
|
2543
|
+
en
|
|
2544
|
+
], rn = {
|
|
2541
2545
|
key: 1,
|
|
2542
2546
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2543
2547
|
class: "w-6 h-6",
|
|
@@ -2545,27 +2549,27 @@ const Gu = /* @__PURE__ */ D(Xs, [["render", Qs]]), ea = {
|
|
|
2545
2549
|
viewBox: "0 0 24 24",
|
|
2546
2550
|
stroke: "currentColor",
|
|
2547
2551
|
"stroke-width": "2"
|
|
2548
|
-
},
|
|
2552
|
+
}, sn = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
|
|
2549
2553
|
"stroke-linecap": "round",
|
|
2550
2554
|
"stroke-linejoin": "round",
|
|
2551
2555
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2552
|
-
}, null, -1)),
|
|
2553
|
-
|
|
2556
|
+
}, null, -1)), an = [
|
|
2557
|
+
sn
|
|
2554
2558
|
];
|
|
2555
|
-
function
|
|
2559
|
+
function nn(e, t, s, n, o, a) {
|
|
2556
2560
|
return d(), u("div", null, [
|
|
2557
2561
|
r("div", {
|
|
2558
2562
|
class: p(["", !s.hide_arrow && s.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
2559
2563
|
id: "mainSliderContainer_" + e.Random_string
|
|
2560
2564
|
}, [
|
|
2561
|
-
e.dotsNum > 0 && !s.hide_arrow && s.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div",
|
|
2562
|
-
r("div",
|
|
2565
|
+
e.dotsNum > 0 && !s.hide_arrow && s.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", sa, [
|
|
2566
|
+
r("div", aa, [
|
|
2563
2567
|
r("button", {
|
|
2564
2568
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2565
2569
|
onClick: t[0] || (t[0] = (i) => a.prev())
|
|
2566
2570
|
}, [
|
|
2567
|
-
s.direction_property == "ltr" ? (d(), u("svg",
|
|
2568
|
-
s.direction_property == "rtl" ? (d(), u("svg",
|
|
2571
|
+
s.direction_property == "ltr" ? (d(), u("svg", na, la)) : f("", !0),
|
|
2572
|
+
s.direction_property == "rtl" ? (d(), u("svg", ia, ua)) : f("", !0)
|
|
2569
2573
|
])
|
|
2570
2574
|
])
|
|
2571
2575
|
])) : f("", !0),
|
|
@@ -2581,13 +2585,13 @@ function an(e, t, s, n, o, a) {
|
|
|
2581
2585
|
key: 0,
|
|
2582
2586
|
class: p(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex", s.direction_property == "rtl" ? "arrow_button_next" : "arrow_button_prev"])
|
|
2583
2587
|
}, [
|
|
2584
|
-
r("div",
|
|
2588
|
+
r("div", ga, [
|
|
2585
2589
|
r("button", {
|
|
2586
2590
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2587
2591
|
onClick: t[1] || (t[1] = U((i) => a.prev(), ["stop"]))
|
|
2588
2592
|
}, [
|
|
2589
|
-
s.direction_property == "ltr" ? (d(), u("svg",
|
|
2590
|
-
s.direction_property == "rtl" ? (d(), u("svg",
|
|
2593
|
+
s.direction_property == "ltr" ? (d(), u("svg", ha, ba)) : f("", !0),
|
|
2594
|
+
s.direction_property == "rtl" ? (d(), u("svg", pa, _a)) : f("", !0)
|
|
2591
2595
|
])
|
|
2592
2596
|
])
|
|
2593
2597
|
], 2)) : f("", !0),
|
|
@@ -2596,17 +2600,17 @@ function an(e, t, s, n, o, a) {
|
|
|
2596
2600
|
key: 1,
|
|
2597
2601
|
class: p(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button", s.direction_property == "rtl" ? "arrow_button_prev" : "arrow_button_next"])
|
|
2598
2602
|
}, [
|
|
2599
|
-
r("div",
|
|
2603
|
+
r("div", va, [
|
|
2600
2604
|
r("button", {
|
|
2601
2605
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2602
2606
|
onClick: t[2] || (t[2] = U((i) => a.next(), ["stop"]))
|
|
2603
2607
|
}, [
|
|
2604
|
-
s.direction_property == "ltr" ? (d(), u("svg",
|
|
2605
|
-
s.direction_property == "rtl" ? (d(), u("svg",
|
|
2608
|
+
s.direction_property == "ltr" ? (d(), u("svg", xa, ka)) : f("", !0),
|
|
2609
|
+
s.direction_property == "rtl" ? (d(), u("svg", $a, Sa)) : f("", !0)
|
|
2606
2610
|
])
|
|
2607
2611
|
])
|
|
2608
2612
|
], 2)) : f("", !0)
|
|
2609
|
-
], 8,
|
|
2613
|
+
], 8, fa),
|
|
2610
2614
|
s.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (d(), u("div", {
|
|
2611
2615
|
key: 0,
|
|
2612
2616
|
class: p(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
@@ -2616,9 +2620,9 @@ function an(e, t, s, n, o, a) {
|
|
|
2616
2620
|
class: p(["gl-dot", { active: e.currentDot == i }]),
|
|
2617
2621
|
key: i,
|
|
2618
2622
|
onClick: (l) => a.setDot(i)
|
|
2619
|
-
},
|
|
2623
|
+
}, Pa, 10, Da))), 128))
|
|
2620
2624
|
], 2)) : f("", !0),
|
|
2621
|
-
s.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div",
|
|
2625
|
+
s.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", Aa, [
|
|
2622
2626
|
r("div", {
|
|
2623
2627
|
class: p(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2624
2628
|
}, [
|
|
@@ -2627,53 +2631,53 @@ function an(e, t, s, n, o, a) {
|
|
|
2627
2631
|
class: p(["gl-dot", { active: e.currentDot == i }]),
|
|
2628
2632
|
key: i,
|
|
2629
2633
|
onClick: (l) => a.setDot(i)
|
|
2630
|
-
},
|
|
2634
|
+
}, Ta, 10, Ea))), 128))
|
|
2631
2635
|
], 2),
|
|
2632
|
-
e.dotsNum > 0 ? (d(), u("div",
|
|
2633
|
-
r("div",
|
|
2634
|
-
r("div",
|
|
2636
|
+
e.dotsNum > 0 ? (d(), u("div", Ma, [
|
|
2637
|
+
r("div", La, [
|
|
2638
|
+
r("div", Na, [
|
|
2635
2639
|
r("button", {
|
|
2636
2640
|
class: p(["p-3 rounded-full arrow_button_styles", s.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2637
2641
|
onClick: t[3] || (t[3] = (i) => a.prev())
|
|
2638
2642
|
}, [
|
|
2639
|
-
s.direction_property == "ltr" ? (d(), u("svg",
|
|
2640
|
-
s.direction_property == "rtl" ? (d(), u("svg",
|
|
2643
|
+
s.direction_property == "ltr" ? (d(), u("svg", Ia, Ba)) : f("", !0),
|
|
2644
|
+
s.direction_property == "rtl" ? (d(), u("svg", Ga, Ra)) : f("", !0)
|
|
2641
2645
|
], 2)
|
|
2642
2646
|
])
|
|
2643
2647
|
]),
|
|
2644
|
-
r("div",
|
|
2645
|
-
r("div",
|
|
2648
|
+
r("div", Fa, [
|
|
2649
|
+
r("div", qa, [
|
|
2646
2650
|
r("button", {
|
|
2647
2651
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2648
2652
|
onClick: t[4] || (t[4] = (i) => a.next())
|
|
2649
2653
|
}, [
|
|
2650
|
-
s.direction_property == "ltr" ? (d(), u("svg",
|
|
2651
|
-
s.direction_property == "rtl" ? (d(), u("svg",
|
|
2654
|
+
s.direction_property == "ltr" ? (d(), u("svg", Ha, Za)) : f("", !0),
|
|
2655
|
+
s.direction_property == "rtl" ? (d(), u("svg", Ka, Ya)) : f("", !0)
|
|
2652
2656
|
])
|
|
2653
2657
|
])
|
|
2654
2658
|
])
|
|
2655
2659
|
])) : f("", !0)
|
|
2656
2660
|
])) : f("", !0)
|
|
2657
|
-
], 10,
|
|
2658
|
-
e.dotsNum > 0 && !s.hide_arrow && s.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div",
|
|
2659
|
-
r("div",
|
|
2661
|
+
], 10, ca),
|
|
2662
|
+
e.dotsNum > 0 && !s.hide_arrow && s.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", Xa, [
|
|
2663
|
+
r("div", Ja, [
|
|
2660
2664
|
r("button", {
|
|
2661
2665
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2662
2666
|
onClick: t[5] || (t[5] = (i) => a.next())
|
|
2663
2667
|
}, [
|
|
2664
|
-
s.direction_property == "ltr" ? (d(), u("svg",
|
|
2665
|
-
s.direction_property == "rtl" ? (d(), u("svg",
|
|
2668
|
+
s.direction_property == "ltr" ? (d(), u("svg", Qa, tn)) : f("", !0),
|
|
2669
|
+
s.direction_property == "rtl" ? (d(), u("svg", rn, an)) : f("", !0)
|
|
2666
2670
|
])
|
|
2667
2671
|
])
|
|
2668
2672
|
])) : f("", !0)
|
|
2669
|
-
], 10,
|
|
2673
|
+
], 10, ra)
|
|
2670
2674
|
]);
|
|
2671
2675
|
}
|
|
2672
|
-
const
|
|
2676
|
+
const Ru = /* @__PURE__ */ D(ta, [["render", nn], ["__scopeId", "data-v-a94f16a9"]]), on = {
|
|
2673
2677
|
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",
|
|
2674
2678
|
tabindex: "-1",
|
|
2675
2679
|
"aria-hidden": "true"
|
|
2676
|
-
},
|
|
2680
|
+
}, ln = { 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" }, dn = { class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, un = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, cn = /* @__PURE__ */ r("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
|
|
2677
2681
|
/* @__PURE__ */ r("svg", {
|
|
2678
2682
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2679
2683
|
fill: "currentColor",
|
|
@@ -2687,9 +2691,9 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
2687
2691
|
d: "M6 18L18 6M6 6l12 12"
|
|
2688
2692
|
})
|
|
2689
2693
|
])
|
|
2690
|
-
], -1),
|
|
2691
|
-
|
|
2692
|
-
],
|
|
2694
|
+
], -1), fn = [
|
|
2695
|
+
cn
|
|
2696
|
+
], gn = { 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" }, Fu = {
|
|
2693
2697
|
__name: "GlModal",
|
|
2694
2698
|
props: {
|
|
2695
2699
|
is_open: {
|
|
@@ -2724,26 +2728,26 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
2724
2728
|
l ? o() : a();
|
|
2725
2729
|
},
|
|
2726
2730
|
{ immediate: !0, deep: !0 }
|
|
2727
|
-
), (l, c) => A((d(), u("div",
|
|
2731
|
+
), (l, c) => A((d(), u("div", on, [
|
|
2728
2732
|
r("div", {
|
|
2729
2733
|
class: p(["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])
|
|
2730
2734
|
}, [
|
|
2731
|
-
r("div",
|
|
2732
|
-
r("div",
|
|
2733
|
-
r("h5",
|
|
2735
|
+
r("div", ln, [
|
|
2736
|
+
r("div", dn, [
|
|
2737
|
+
r("h5", un, g(e.title), 1),
|
|
2734
2738
|
r("button", {
|
|
2735
2739
|
type: "button",
|
|
2736
2740
|
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",
|
|
2737
2741
|
onClick: i,
|
|
2738
2742
|
"aria-label": "Close"
|
|
2739
|
-
},
|
|
2743
|
+
}, fn)
|
|
2740
2744
|
]),
|
|
2741
2745
|
r("div", {
|
|
2742
2746
|
class: p(["relative overflow-y-auto", e.bodyClass])
|
|
2743
2747
|
}, [
|
|
2744
2748
|
N(l.$slots, "body")
|
|
2745
2749
|
], 2),
|
|
2746
|
-
r("div",
|
|
2750
|
+
r("div", gn, [
|
|
2747
2751
|
N(l.$slots, "buttons"),
|
|
2748
2752
|
r("button", {
|
|
2749
2753
|
onClick: i,
|
|
@@ -2754,13 +2758,13 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
2754
2758
|
])
|
|
2755
2759
|
], 2)
|
|
2756
2760
|
], 512)), [
|
|
2757
|
-
[
|
|
2761
|
+
[X, e.is_open]
|
|
2758
2762
|
]);
|
|
2759
2763
|
}
|
|
2760
|
-
},
|
|
2764
|
+
}, hn = { class: "flex justify-between p-2 -mb-px border border-gray-300 no-underlin" }, mn = { class: "relative inline-flex items-center cursor-pointer" }, bn = ["name", "id", "checked"], pn = /* @__PURE__ */ r("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), yn = /* @__PURE__ */ r("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), _n = {
|
|
2761
2765
|
key: 0,
|
|
2762
2766
|
class: "flex justify-between items-center"
|
|
2763
|
-
},
|
|
2767
|
+
}, vn = { class: "gl-label-form" }, xn = { class: "flex justify-between p-2 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark" }, wn = { class: "relative inline-flex items-center cursor-pointer" }, kn = ["name", "id"], $n = /* @__PURE__ */ r("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), Cn = { class: "gl-span-form-error" }, Sn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, qu = {
|
|
2764
2768
|
__name: "GlToggleBox",
|
|
2765
2769
|
props: {
|
|
2766
2770
|
is_required: {
|
|
@@ -2820,9 +2824,9 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
2820
2824
|
class: p(e.field_name)
|
|
2821
2825
|
}, [
|
|
2822
2826
|
r("div", null, [
|
|
2823
|
-
r("li",
|
|
2827
|
+
r("li", hn, [
|
|
2824
2828
|
w(g(e.label_name) + " ", 1),
|
|
2825
|
-
r("label",
|
|
2829
|
+
r("label", mn, [
|
|
2826
2830
|
r("input", {
|
|
2827
2831
|
type: "checkbox",
|
|
2828
2832
|
class: "sr-only peer",
|
|
@@ -2834,23 +2838,23 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
2834
2838
|
ref_key: "input",
|
|
2835
2839
|
ref: o,
|
|
2836
2840
|
disabled: ""
|
|
2837
|
-
}, null, 8,
|
|
2838
|
-
|
|
2841
|
+
}, null, 8, bn),
|
|
2842
|
+
pn
|
|
2839
2843
|
])
|
|
2840
2844
|
])
|
|
2841
2845
|
]),
|
|
2842
|
-
|
|
2846
|
+
yn
|
|
2843
2847
|
], 2)) : f("", !0),
|
|
2844
2848
|
e.show ? f("", !0) : (d(), u("div", {
|
|
2845
2849
|
key: 1,
|
|
2846
2850
|
class: p(e.field_name)
|
|
2847
2851
|
}, [
|
|
2848
|
-
e.has_label_up ? (d(), u("div",
|
|
2849
|
-
r("label",
|
|
2852
|
+
e.has_label_up ? (d(), u("div", _n, [
|
|
2853
|
+
r("label", vn, g(e.label_name), 1)
|
|
2850
2854
|
])) : f("", !0),
|
|
2851
|
-
r("li",
|
|
2855
|
+
r("li", xn, [
|
|
2852
2856
|
w(g(e.label_name) + " ", 1),
|
|
2853
|
-
r("label",
|
|
2857
|
+
r("label", wn, [
|
|
2854
2858
|
A(r("input", {
|
|
2855
2859
|
type: "checkbox",
|
|
2856
2860
|
class: "sr-only peer",
|
|
@@ -2861,24 +2865,24 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
2861
2865
|
ref_key: "input",
|
|
2862
2866
|
ref: o,
|
|
2863
2867
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => a.value = c)
|
|
2864
|
-
}, null, 8,
|
|
2865
|
-
[
|
|
2868
|
+
}, null, 8, kn), [
|
|
2869
|
+
[ot, a.value]
|
|
2866
2870
|
]),
|
|
2867
|
-
|
|
2871
|
+
$n
|
|
2868
2872
|
])
|
|
2869
2873
|
]),
|
|
2870
|
-
r("span",
|
|
2871
|
-
r("small",
|
|
2874
|
+
r("span", Cn, g(e.error_message), 1),
|
|
2875
|
+
r("small", Sn, g(e.description), 1)
|
|
2872
2876
|
], 2))
|
|
2873
2877
|
], 64));
|
|
2874
2878
|
}
|
|
2875
|
-
},
|
|
2879
|
+
}, Dn = { class: "font-bold ptext-lg dark:text-white" }, On = { class: "mt-3 mb-4" }, Pn = { 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" }, An = /* @__PURE__ */ r("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), En = ["name", "id", "value"], jn = {
|
|
2876
2880
|
key: 0,
|
|
2877
2881
|
class: "dropdown"
|
|
2878
|
-
},
|
|
2882
|
+
}, Tn = { class: "focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, Mn = { class: "relative showOptions" }, Ln = ["value", "placeholder"], Nn = { 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]" }, In = { class: "p-1" }, Vn = /* @__PURE__ */ r("label", {
|
|
2879
2883
|
for: "default-search",
|
|
2880
2884
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
2881
|
-
}, "Search", -1),
|
|
2885
|
+
}, "Search", -1), Bn = { class: "relative" }, Gn = /* @__PURE__ */ r("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
2882
2886
|
/* @__PURE__ */ r("svg", {
|
|
2883
2887
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
2884
2888
|
"aria-hidden": "true",
|
|
@@ -2894,22 +2898,22 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
2894
2898
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
2895
2899
|
})
|
|
2896
2900
|
])
|
|
2897
|
-
], -1),
|
|
2901
|
+
], -1), Un = ["id"], Rn = { class: "overflow-y-auto max-h-64" }, Fn = ["onClick", "onMousedown", "id"], qn = { class: "flex items-center py-2 pl-10 pr-4" }, Hn = {
|
|
2898
2902
|
key: 0,
|
|
2899
2903
|
class: "absolute flex items-center flex-shrink-0 w-4 h-4 text-green-500 left-2 dark:text-green-400",
|
|
2900
2904
|
"aria-hidden": "true",
|
|
2901
2905
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2902
2906
|
fill: "none",
|
|
2903
2907
|
viewBox: "0 0 16 12"
|
|
2904
|
-
},
|
|
2908
|
+
}, zn = /* @__PURE__ */ r("path", {
|
|
2905
2909
|
stroke: "currentColor",
|
|
2906
2910
|
"stroke-linecap": "round",
|
|
2907
2911
|
"stroke-linejoin": "round",
|
|
2908
2912
|
"stroke-width": "2",
|
|
2909
2913
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
2910
|
-
}, null, -1),
|
|
2911
|
-
|
|
2912
|
-
],
|
|
2914
|
+
}, null, -1), Zn = [
|
|
2915
|
+
zn
|
|
2916
|
+
], Kn = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, Wn = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Hu = {
|
|
2913
2917
|
__name: "GlDropdown",
|
|
2914
2918
|
props: {
|
|
2915
2919
|
modelValue: {
|
|
@@ -2971,17 +2975,17 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
2971
2975
|
setup(e, { emit: t }) {
|
|
2972
2976
|
const s = e, n = t, o = C(null), a = C({}), i = C(0), l = C(!1), c = C(""), h = C("");
|
|
2973
2977
|
F(() => {
|
|
2974
|
-
h.value =
|
|
2975
|
-
|
|
2978
|
+
h.value = B(), s.show || (document.body.addEventListener("click", (y) => {
|
|
2979
|
+
ee(y);
|
|
2976
2980
|
}), document.addEventListener("keypress", (y) => {
|
|
2977
2981
|
y.key === "Enter" && y.target.form && y.preventDefault();
|
|
2978
2982
|
}));
|
|
2979
2983
|
});
|
|
2980
|
-
const
|
|
2984
|
+
const b = M(() => fe()), _ = M(() => ge()), $ = M(() => {
|
|
2981
2985
|
const y = [], P = new RegExp(c.value, "ig");
|
|
2982
|
-
for (const
|
|
2983
|
-
const
|
|
2984
|
-
(c.value.length < 1 ||
|
|
2986
|
+
for (const E of b.value) {
|
|
2987
|
+
const G = String(E.name);
|
|
2988
|
+
(c.value.length < 1 || G.match(P)) && y.length < s.maxItem && y.push(E);
|
|
2985
2989
|
}
|
|
2986
2990
|
return y;
|
|
2987
2991
|
});
|
|
@@ -2998,55 +3002,55 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
2998
3002
|
ce(y.key);
|
|
2999
3003
|
}
|
|
3000
3004
|
}
|
|
3001
|
-
function
|
|
3005
|
+
function B() {
|
|
3002
3006
|
let y = (/* @__PURE__ */ new Date()).getTime();
|
|
3003
3007
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
3004
3008
|
/[xy]/g,
|
|
3005
|
-
function(
|
|
3006
|
-
const
|
|
3007
|
-
return y = Math.floor(y / 16), (
|
|
3009
|
+
function(E) {
|
|
3010
|
+
const G = (y + Math.random() * 16) % 16 | 0;
|
|
3011
|
+
return y = Math.floor(y / 16), (E === "x" ? G : G & 3 | 8).toString(16);
|
|
3008
3012
|
}
|
|
3009
3013
|
);
|
|
3010
3014
|
}
|
|
3011
|
-
function J(y) {
|
|
3012
|
-
return y !== null && typeof y == "object" && Object.keys(y).length > 0;
|
|
3013
|
-
}
|
|
3014
3015
|
function Q(y) {
|
|
3015
|
-
y
|
|
3016
|
+
return y !== null && typeof y == "object" && Object.keys(y).length > 0;
|
|
3016
3017
|
}
|
|
3017
3018
|
function ee(y) {
|
|
3018
|
-
|
|
3019
|
-
|
|
3019
|
+
y.target.id != s.field_name + "search" + h.value && y.target.id != s.field_name && !y.target.classList.contains("showOptions") && (oe(), i.value = 0);
|
|
3020
|
+
}
|
|
3021
|
+
function te(y) {
|
|
3022
|
+
const P = `${y}${h.value}`, E = document.getElementById(P);
|
|
3023
|
+
E && E.scrollIntoView();
|
|
3020
3024
|
}
|
|
3021
3025
|
function ue(y) {
|
|
3022
|
-
const P = `${y}${h.value}`,
|
|
3023
|
-
|
|
3026
|
+
const P = `${y}${h.value}`, E = document.getElementById(P);
|
|
3027
|
+
E && E.click();
|
|
3024
3028
|
}
|
|
3025
3029
|
function ce(y) {
|
|
3026
|
-
y === "ArrowDown" && i.value < $.value.length && (i.value++,
|
|
3030
|
+
y === "ArrowDown" && i.value < $.value.length && (i.value++, te(i.value)), y === "ArrowUp" && i.value > 1 && (i.value--, te(i.value)), y === "Enter" && ue(i.value);
|
|
3027
3031
|
}
|
|
3028
3032
|
function fe() {
|
|
3029
3033
|
return s.options.map((y, P) => typeof y == "object" ? y : { id: y, name: y });
|
|
3030
3034
|
}
|
|
3031
3035
|
function ge() {
|
|
3032
|
-
if (
|
|
3033
|
-
return typeof a.value == "object" ?
|
|
3036
|
+
if (Q(a.value))
|
|
3037
|
+
return typeof a.value == "object" ? b.value.find(
|
|
3034
3038
|
(y) => String(y.id) === String(a.value.id)
|
|
3035
|
-
) || {} :
|
|
3039
|
+
) || {} : b.value.find(
|
|
3036
3040
|
(y) => String(y.id) === String(a.value)
|
|
3037
3041
|
) || {};
|
|
3038
3042
|
if (s.modelValue)
|
|
3039
|
-
return typeof s.modelValue == "object" ?
|
|
3043
|
+
return typeof s.modelValue == "object" ? b.value.find(
|
|
3040
3044
|
(y) => String(y.id) === String(s.modelValue.id)
|
|
3041
|
-
) || {} :
|
|
3045
|
+
) || {} : b.value.find(
|
|
3042
3046
|
(y) => String(y.id) === String(s.modelValue)
|
|
3043
3047
|
) || {};
|
|
3044
3048
|
}
|
|
3045
|
-
function
|
|
3049
|
+
function ne(y) {
|
|
3046
3050
|
a.value = y, l.value = !1, n("update:modelValue", a.value.id), n("selected", a.value), n("selectionChanged", a.value);
|
|
3047
3051
|
}
|
|
3048
|
-
function
|
|
3049
|
-
s.show || (c.value = "", l.value = !0,
|
|
3052
|
+
function Z() {
|
|
3053
|
+
s.show || (c.value = "", l.value = !0, Me(() => {
|
|
3050
3054
|
var y = document.getElementById(
|
|
3051
3055
|
`${s.field_name}search${h.value}`
|
|
3052
3056
|
);
|
|
@@ -3054,27 +3058,27 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
3054
3058
|
}));
|
|
3055
3059
|
}
|
|
3056
3060
|
function he() {
|
|
3057
|
-
s.show || (a.value = {}, c.value = "", n("update:modelValue", ""),
|
|
3061
|
+
s.show || (a.value = {}, c.value = "", n("update:modelValue", ""), Z());
|
|
3058
3062
|
}
|
|
3059
|
-
function
|
|
3063
|
+
function oe() {
|
|
3060
3064
|
a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), l.value = !1;
|
|
3061
3065
|
}
|
|
3062
3066
|
return q(c, () => {
|
|
3063
3067
|
$.value.length === 0 && (a.value = {});
|
|
3064
3068
|
}), q(a, (y) => {
|
|
3065
|
-
|
|
3069
|
+
Q(y) && n("update:modelValue", y.id);
|
|
3066
3070
|
}), (y, P) => {
|
|
3067
|
-
var
|
|
3071
|
+
var E, G, re;
|
|
3068
3072
|
return d(), u(k, null, [
|
|
3069
3073
|
e.show ? (d(), u("div", {
|
|
3070
3074
|
key: 0,
|
|
3071
3075
|
class: p(e.field_name)
|
|
3072
3076
|
}, [
|
|
3073
|
-
r("h3",
|
|
3074
|
-
r("p",
|
|
3075
|
-
r("span",
|
|
3077
|
+
r("h3", Dn, g(e.label_name), 1),
|
|
3078
|
+
r("p", On, [
|
|
3079
|
+
r("span", Pn, g((E = _.value) == null ? void 0 : E.name), 1)
|
|
3076
3080
|
]),
|
|
3077
|
-
|
|
3081
|
+
An
|
|
3078
3082
|
], 2)) : f("", !0),
|
|
3079
3083
|
e.show ? f("", !0) : (d(), u("div", {
|
|
3080
3084
|
key: 1,
|
|
@@ -3084,9 +3088,9 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
3084
3088
|
type: "hidden",
|
|
3085
3089
|
name: e.field_name,
|
|
3086
3090
|
id: e.field_name,
|
|
3087
|
-
value: (
|
|
3088
|
-
}, null, 8,
|
|
3089
|
-
e.options ? (d(), u("div",
|
|
3091
|
+
value: (G = _.value) == null ? void 0 : G.id
|
|
3092
|
+
}, null, 8, En),
|
|
3093
|
+
e.options ? (d(), u("div", jn, [
|
|
3090
3094
|
e.label_name ? (d(), u("label", {
|
|
3091
3095
|
key: 0,
|
|
3092
3096
|
class: p({
|
|
@@ -3095,82 +3099,82 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
3095
3099
|
required: e.is_required
|
|
3096
3100
|
})
|
|
3097
3101
|
}, g(e.label_name), 3)) : f("", !0),
|
|
3098
|
-
r("div",
|
|
3099
|
-
r("div",
|
|
3102
|
+
r("div", Tn, [
|
|
3103
|
+
r("div", Mn, [
|
|
3100
3104
|
r("input", {
|
|
3101
3105
|
class: p([{
|
|
3102
3106
|
"gl-input-form": e.error_message == "",
|
|
3103
3107
|
"gl-input-form-invalid": e.error_message !== ""
|
|
3104
3108
|
}, "pl-8 pr-2 showOptions"]),
|
|
3105
3109
|
ref: e.field_name,
|
|
3106
|
-
onClick: P[0] || (P[0] = (
|
|
3107
|
-
value: (
|
|
3110
|
+
onClick: P[0] || (P[0] = (m) => Z()),
|
|
3111
|
+
value: (re = _.value) == null ? void 0 : re.name,
|
|
3108
3112
|
placeholder: e.placeholder,
|
|
3109
3113
|
autocomplete: "off",
|
|
3110
3114
|
readonly: ""
|
|
3111
|
-
}, null, 10,
|
|
3115
|
+
}, null, 10, Ln),
|
|
3112
3116
|
A(r("i", {
|
|
3113
|
-
onClick: P[1] || (P[1] = U((
|
|
3117
|
+
onClick: P[1] || (P[1] = U((m) => he(), ["stop"])),
|
|
3114
3118
|
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
|
|
3115
3119
|
style: { top: "13px" }
|
|
3116
3120
|
}, null, 512), [
|
|
3117
|
-
[
|
|
3121
|
+
[X, Q(_.value) && e.has_cancel]
|
|
3118
3122
|
]),
|
|
3119
3123
|
r("i", {
|
|
3120
|
-
onClick: P[2] || (P[2] = (
|
|
3124
|
+
onClick: P[2] || (P[2] = (m) => !l.value && Z()),
|
|
3121
3125
|
class: p([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"]),
|
|
3122
3126
|
style: { top: "11px" }
|
|
3123
3127
|
}, null, 2)
|
|
3124
3128
|
]),
|
|
3125
|
-
A(r("div",
|
|
3126
|
-
r("div",
|
|
3127
|
-
|
|
3128
|
-
r("div",
|
|
3129
|
-
|
|
3129
|
+
A(r("div", Nn, [
|
|
3130
|
+
r("div", In, [
|
|
3131
|
+
Vn,
|
|
3132
|
+
r("div", Bn, [
|
|
3133
|
+
Gn,
|
|
3130
3134
|
A(r("input", {
|
|
3131
3135
|
type: "search",
|
|
3132
|
-
"onUpdate:modelValue": P[3] || (P[3] = (
|
|
3136
|
+
"onUpdate:modelValue": P[3] || (P[3] = (m) => c.value = m),
|
|
3133
3137
|
ref: o.value,
|
|
3134
3138
|
id: `${e.field_name}search${h.value}`,
|
|
3135
3139
|
onKeydown: S,
|
|
3136
|
-
onBlur: P[4] || (P[4] = (
|
|
3140
|
+
onBlur: P[4] || (P[4] = (m) => oe()),
|
|
3137
3141
|
autocomplete: "off",
|
|
3138
3142
|
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",
|
|
3139
3143
|
placeholder: "Search ..."
|
|
3140
|
-
}, null, 40,
|
|
3144
|
+
}, null, 40, Un), [
|
|
3141
3145
|
[R, c.value]
|
|
3142
3146
|
])
|
|
3143
3147
|
])
|
|
3144
3148
|
]),
|
|
3145
|
-
r("div",
|
|
3146
|
-
(d(!0), u(k, null, O($.value, (
|
|
3147
|
-
var
|
|
3149
|
+
r("div", Rn, [
|
|
3150
|
+
(d(!0), u(k, null, O($.value, (m, v) => {
|
|
3151
|
+
var x;
|
|
3148
3152
|
return d(), u("div", {
|
|
3149
|
-
class: p(["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",
|
|
3150
|
-
onClick: (
|
|
3151
|
-
onMousedown: (
|
|
3152
|
-
key:
|
|
3153
|
-
id: `${
|
|
3153
|
+
class: p(["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", v + 1 == i.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
3154
|
+
onClick: (j) => ne(m),
|
|
3155
|
+
onMousedown: (j) => ne(m),
|
|
3156
|
+
key: v,
|
|
3157
|
+
id: `${v + 1}${h.value}`
|
|
3154
3158
|
}, [
|
|
3155
|
-
r("div",
|
|
3156
|
-
((
|
|
3157
|
-
r("span", null, g(
|
|
3159
|
+
r("div", qn, [
|
|
3160
|
+
((x = _.value) == null ? void 0 : x.id) === m.id ? (d(), u("svg", Hn, Zn)) : f("", !0),
|
|
3161
|
+
r("span", null, g(m.name || m.id || "-"), 1)
|
|
3158
3162
|
])
|
|
3159
|
-
], 42,
|
|
3163
|
+
], 42, Fn);
|
|
3160
3164
|
}), 128))
|
|
3161
3165
|
])
|
|
3162
3166
|
], 512), [
|
|
3163
|
-
[
|
|
3167
|
+
[X, l.value]
|
|
3164
3168
|
])
|
|
3165
3169
|
])
|
|
3166
3170
|
])) : f("", !0),
|
|
3167
|
-
r("span",
|
|
3168
|
-
r("small",
|
|
3171
|
+
r("span", Kn, g(e.error_message), 1),
|
|
3172
|
+
r("small", Wn, g(e.description), 1)
|
|
3169
3173
|
], 2))
|
|
3170
3174
|
], 64);
|
|
3171
3175
|
};
|
|
3172
3176
|
}
|
|
3173
|
-
},
|
|
3177
|
+
}, Yn = { class: "font-bold ptext-lg dark:text-white" }, Xn = ["id"], Jn = /* @__PURE__ */ r("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Qn = ["for"], eo = ["required", "name", "id", "type", "placeholder"], to = { class: "gl-span-form-error" }, ro = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, zu = {
|
|
3174
3178
|
__name: "GlTextarea",
|
|
3175
3179
|
props: {
|
|
3176
3180
|
is_required: {
|
|
@@ -3233,12 +3237,12 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
3233
3237
|
key: 0,
|
|
3234
3238
|
class: p(e.field_name)
|
|
3235
3239
|
}, [
|
|
3236
|
-
r("h3",
|
|
3240
|
+
r("h3", Yn, g(e.label_name), 1),
|
|
3237
3241
|
r("p", {
|
|
3238
3242
|
id: e.field_name,
|
|
3239
3243
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
3240
|
-
}, g(e.model_value), 9,
|
|
3241
|
-
|
|
3244
|
+
}, g(e.model_value), 9, Xn),
|
|
3245
|
+
Jn
|
|
3242
3246
|
], 2)) : f("", !0),
|
|
3243
3247
|
e.show ? f("", !0) : (d(), u("div", {
|
|
3244
3248
|
key: 1,
|
|
@@ -3251,7 +3255,7 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
3251
3255
|
required: e.is_required
|
|
3252
3256
|
}),
|
|
3253
3257
|
for: e.field_name
|
|
3254
|
-
}, g(e.label_name), 11,
|
|
3258
|
+
}, g(e.label_name), 11, Qn),
|
|
3255
3259
|
A(r("textarea", {
|
|
3256
3260
|
required: e.is_required,
|
|
3257
3261
|
name: e.field_name,
|
|
@@ -3267,15 +3271,15 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
3267
3271
|
ref: a,
|
|
3268
3272
|
rows: "4",
|
|
3269
3273
|
placeholder: e.placeholder
|
|
3270
|
-
}, null, 42,
|
|
3274
|
+
}, null, 42, eo), [
|
|
3271
3275
|
[R, i.value]
|
|
3272
3276
|
]),
|
|
3273
|
-
r("span",
|
|
3274
|
-
r("small",
|
|
3277
|
+
r("span", to, g(e.error_message), 1),
|
|
3278
|
+
r("small", ro, g(e.description), 1)
|
|
3275
3279
|
], 2))
|
|
3276
3280
|
], 64));
|
|
3277
3281
|
}
|
|
3278
|
-
},
|
|
3282
|
+
}, so = {
|
|
3279
3283
|
emits: ["pagination-change-page"],
|
|
3280
3284
|
props: {
|
|
3281
3285
|
data: {
|
|
@@ -3380,14 +3384,14 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
3380
3384
|
})
|
|
3381
3385
|
});
|
|
3382
3386
|
}
|
|
3383
|
-
},
|
|
3387
|
+
}, ao = {
|
|
3384
3388
|
compatConfig: {
|
|
3385
3389
|
MODE: 3
|
|
3386
3390
|
},
|
|
3387
3391
|
inheritAttrs: !1,
|
|
3388
3392
|
emits: ["pagination-change-page"],
|
|
3389
3393
|
components: {
|
|
3390
|
-
RenderlessPagination:
|
|
3394
|
+
RenderlessPagination: so
|
|
3391
3395
|
},
|
|
3392
3396
|
props: {
|
|
3393
3397
|
data: {
|
|
@@ -3421,10 +3425,10 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
3421
3425
|
},
|
|
3422
3426
|
mounted() {
|
|
3423
3427
|
}
|
|
3424
|
-
},
|
|
3428
|
+
}, no = { class: "flex flex-col items-center" }, oo = {
|
|
3425
3429
|
key: 0,
|
|
3426
3430
|
class: "text-sm text-gray-700 dark:text-gray-400"
|
|
3427
|
-
},
|
|
3431
|
+
}, lo = { class: "font-semibold text-gray-900 dark:text-white" }, io = { class: "font-semibold text-gray-900 dark:text-white" }, uo = { class: "font-semibold text-gray-900 dark:text-white" }, co = ["tabindex"], fo = /* @__PURE__ */ r("span", { class: "sr-only" }, "Previous", -1), go = /* @__PURE__ */ r("svg", {
|
|
3428
3432
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3429
3433
|
"aria-hidden": "true",
|
|
3430
3434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3438,7 +3442,7 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
3438
3442
|
"stroke-width": "2",
|
|
3439
3443
|
d: "M5 1 1 5l4 4"
|
|
3440
3444
|
})
|
|
3441
|
-
], -1),
|
|
3445
|
+
], -1), ho = ["aria-current"], mo = ["tabindex"], bo = /* @__PURE__ */ r("span", { class: "sr-only" }, "Next", -1), po = /* @__PURE__ */ r("svg", {
|
|
3442
3446
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3443
3447
|
"aria-hidden": "true",
|
|
3444
3448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3453,25 +3457,25 @@ const Uu = /* @__PURE__ */ D(ea, [["render", an], ["__scopeId", "data-v-a94f16a9
|
|
|
3453
3457
|
d: "m1 9 4-4-4-4"
|
|
3454
3458
|
})
|
|
3455
3459
|
], -1);
|
|
3456
|
-
function
|
|
3457
|
-
const i =
|
|
3458
|
-
return d(),
|
|
3460
|
+
function yo(e, t, s, n, o, a) {
|
|
3461
|
+
const i = ae("RenderlessPagination");
|
|
3462
|
+
return d(), J(i, {
|
|
3459
3463
|
data: s.data,
|
|
3460
3464
|
limit: s.limit,
|
|
3461
3465
|
onPaginationChangePage: a.onPaginationChangePage
|
|
3462
3466
|
}, {
|
|
3463
3467
|
default: le((l) => [
|
|
3464
|
-
r("div",
|
|
3465
|
-
l.computed.total > l.computed.perPage ? (d(), u("span",
|
|
3468
|
+
r("div", no, [
|
|
3469
|
+
l.computed.total > l.computed.perPage ? (d(), u("span", oo, [
|
|
3466
3470
|
w(" Showing "),
|
|
3467
|
-
r("span",
|
|
3471
|
+
r("span", lo, g(l.computed.from), 1),
|
|
3468
3472
|
w(" to "),
|
|
3469
|
-
r("span",
|
|
3473
|
+
r("span", io, g(l.computed.to), 1),
|
|
3470
3474
|
w(" of "),
|
|
3471
|
-
r("span",
|
|
3475
|
+
r("span", uo, g(l.computed.total), 1),
|
|
3472
3476
|
w(" Entries ")
|
|
3473
3477
|
])) : f("", !0),
|
|
3474
|
-
l.computed.total > l.computed.perPage ? (d(), u("ul",
|
|
3478
|
+
l.computed.total > l.computed.perPage ? (d(), u("ul", se({ key: 1 }, e.$attrs, {
|
|
3475
3479
|
class: ["flex items-center h-8 -space-x-px text-sm", {
|
|
3476
3480
|
"pagination-sm": s.size == "small",
|
|
3477
3481
|
"pagination-lg": s.size == "large",
|
|
@@ -3483,45 +3487,45 @@ function po(e, t, s, n, o, a) {
|
|
|
3483
3487
|
key: 0,
|
|
3484
3488
|
class: p(["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", { disabled: !l.computed.prevPageUrl }])
|
|
3485
3489
|
}, [
|
|
3486
|
-
r("a",
|
|
3490
|
+
r("a", se({
|
|
3487
3491
|
class: "page-link",
|
|
3488
3492
|
href: "#",
|
|
3489
3493
|
"aria-label": "Previous",
|
|
3490
3494
|
tabindex: !l.computed.prevPageUrl && -1
|
|
3491
3495
|
}, me(l.prevButtonEvents, !0)), [
|
|
3492
3496
|
N(e.$slots, "prev-nav", {}, () => [
|
|
3493
|
-
|
|
3494
|
-
|
|
3497
|
+
fo,
|
|
3498
|
+
go
|
|
3495
3499
|
])
|
|
3496
|
-
], 16,
|
|
3500
|
+
], 16, co)
|
|
3497
3501
|
], 2)) : f("", !0),
|
|
3498
3502
|
(d(!0), u(k, null, O(l.computed.pageRange, (c, h) => (d(), u("li", {
|
|
3499
3503
|
class: p(["", { active: c == l.computed.currentPage }]),
|
|
3500
3504
|
key: h
|
|
3501
3505
|
}, [
|
|
3502
|
-
r("a",
|
|
3506
|
+
r("a", se({
|
|
3503
3507
|
class: "",
|
|
3504
3508
|
href: "#"
|
|
3505
3509
|
}, me(l.pageButtonEvents(c), !0), {
|
|
3506
3510
|
"aria-current": c == l.computed.currentPage ? "page" : null,
|
|
3507
3511
|
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"
|
|
3508
|
-
}), g(c), 17,
|
|
3512
|
+
}), g(c), 17, ho)
|
|
3509
3513
|
], 2))), 128)),
|
|
3510
3514
|
l.computed.nextPageUrl || s.showDisabled ? (d(), u("li", {
|
|
3511
3515
|
key: 1,
|
|
3512
3516
|
class: p(["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", { disabled: !l.computed.nextPageUrl }])
|
|
3513
3517
|
}, [
|
|
3514
|
-
r("a",
|
|
3518
|
+
r("a", se({
|
|
3515
3519
|
class: "",
|
|
3516
3520
|
href: "#",
|
|
3517
3521
|
"aria-label": "Next",
|
|
3518
3522
|
tabindex: !l.computed.nextPageUrl && -1
|
|
3519
3523
|
}, me(l.nextButtonEvents, !0)), [
|
|
3520
3524
|
N(e.$slots, "next-nav", {}, () => [
|
|
3521
|
-
|
|
3522
|
-
|
|
3525
|
+
bo,
|
|
3526
|
+
po
|
|
3523
3527
|
])
|
|
3524
|
-
], 16,
|
|
3528
|
+
], 16, mo)
|
|
3525
3529
|
], 2)) : f("", !0)
|
|
3526
3530
|
], 16)) : f("", !0)
|
|
3527
3531
|
])
|
|
@@ -3529,8 +3533,8 @@ function po(e, t, s, n, o, a) {
|
|
|
3529
3533
|
_: 3
|
|
3530
3534
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
3531
3535
|
}
|
|
3532
|
-
const
|
|
3533
|
-
components: { TailwindPagination:
|
|
3536
|
+
const _o = /* @__PURE__ */ D(ao, [["render", yo]]), vo = {
|
|
3537
|
+
components: { TailwindPagination: _o },
|
|
3534
3538
|
props: {
|
|
3535
3539
|
data: Array,
|
|
3536
3540
|
columns: Array,
|
|
@@ -3609,10 +3613,10 @@ const yo = /* @__PURE__ */ D(so, [["render", po]]), _o = {
|
|
|
3609
3613
|
this.isMounted && e !== t && this.GetItemLists();
|
|
3610
3614
|
}
|
|
3611
3615
|
}
|
|
3612
|
-
},
|
|
3616
|
+
}, xo = { class: "p-2" }, wo = { 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" }, ko = { class: "flex items-center gap-2" }, $o = /* @__PURE__ */ r("span", { class: "font-medium" }, " Show ", -1), Co = { style: { "margin-top": "9px" } }, So = /* @__PURE__ */ r("span", { class: "font-medium" }, " Entries ", -1), Do = /* @__PURE__ */ r("label", {
|
|
3613
3617
|
for: "table-search",
|
|
3614
3618
|
class: "sr-only"
|
|
3615
|
-
}, "Search", -1),
|
|
3619
|
+
}, "Search", -1), Oo = { class: "relative" }, Po = /* @__PURE__ */ r("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
|
|
3616
3620
|
/* @__PURE__ */ r("svg", {
|
|
3617
3621
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3618
3622
|
"aria-hidden": "true",
|
|
@@ -3626,16 +3630,16 @@ const yo = /* @__PURE__ */ D(so, [["render", po]]), _o = {
|
|
|
3626
3630
|
"clip-rule": "evenodd"
|
|
3627
3631
|
})
|
|
3628
3632
|
])
|
|
3629
|
-
], -1),
|
|
3633
|
+
], -1), Ao = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Eo = { 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" }, jo = { 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" }, To = ["onClick"], Mo = {
|
|
3630
3634
|
key: 0,
|
|
3631
3635
|
class: "ml-2"
|
|
3632
|
-
},
|
|
3636
|
+
}, Lo = {
|
|
3633
3637
|
key: 0,
|
|
3634
3638
|
class: "fa fa-arrow-up"
|
|
3635
|
-
},
|
|
3639
|
+
}, No = {
|
|
3636
3640
|
key: 1,
|
|
3637
3641
|
class: "fa fa-arrow-down"
|
|
3638
|
-
},
|
|
3642
|
+
}, Io = { key: 0 }, Vo = ["colspan"], Bo = /* @__PURE__ */ r("div", {
|
|
3639
3643
|
role: "status",
|
|
3640
3644
|
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"
|
|
3641
3645
|
}, [
|
|
@@ -3675,17 +3679,17 @@ const yo = /* @__PURE__ */ D(so, [["render", po]]), _o = {
|
|
|
3675
3679
|
/* @__PURE__ */ r("div", { class: "h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12" })
|
|
3676
3680
|
]),
|
|
3677
3681
|
/* @__PURE__ */ r("span", { class: "sr-only" }, "Loading...")
|
|
3678
|
-
], -1),
|
|
3679
|
-
|
|
3680
|
-
],
|
|
3681
|
-
function
|
|
3682
|
-
const i =
|
|
3683
|
-
return d(), u("div",
|
|
3684
|
-
r("div",
|
|
3685
|
-
r("div",
|
|
3686
|
-
|
|
3687
|
-
r("div",
|
|
3688
|
-
|
|
3682
|
+
], -1), Go = [
|
|
3683
|
+
Bo
|
|
3684
|
+
], Uo = ["data-label"], Ro = { class: "overflow-auto max-h-40" }, Fo = { 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" };
|
|
3685
|
+
function qo(e, t, s, n, o, a) {
|
|
3686
|
+
const i = ae("dropdown"), l = ae("TailwindPagination");
|
|
3687
|
+
return d(), u("div", xo, [
|
|
3688
|
+
r("div", wo, [
|
|
3689
|
+
r("div", ko, [
|
|
3690
|
+
$o,
|
|
3691
|
+
r("div", Co, [
|
|
3692
|
+
Y(i, {
|
|
3689
3693
|
has_cancel: !1,
|
|
3690
3694
|
options: o.pageOptions,
|
|
3691
3695
|
modelValue: o.perPage,
|
|
@@ -3698,11 +3702,11 @@ function Fo(e, t, s, n, o, a) {
|
|
|
3698
3702
|
placeholder: "Please select an option"
|
|
3699
3703
|
}, null, 8, ["options", "modelValue"])
|
|
3700
3704
|
]),
|
|
3701
|
-
|
|
3705
|
+
So
|
|
3702
3706
|
]),
|
|
3703
|
-
|
|
3704
|
-
r("div",
|
|
3705
|
-
|
|
3707
|
+
Do,
|
|
3708
|
+
r("div", Oo, [
|
|
3709
|
+
Po,
|
|
3706
3710
|
A(r("input", {
|
|
3707
3711
|
type: "text",
|
|
3708
3712
|
"onUpdate:modelValue": t[1] || (t[1] = (c) => o.search = c),
|
|
@@ -3714,57 +3718,57 @@ function Fo(e, t, s, n, o, a) {
|
|
|
3714
3718
|
])
|
|
3715
3719
|
])
|
|
3716
3720
|
]),
|
|
3717
|
-
r("div",
|
|
3718
|
-
r("table",
|
|
3719
|
-
r("thead",
|
|
3721
|
+
r("div", Ao, [
|
|
3722
|
+
r("table", Eo, [
|
|
3723
|
+
r("thead", jo, [
|
|
3720
3724
|
r("tr", null, [
|
|
3721
3725
|
(d(!0), u(k, null, O(s.columns, (c, h) => (d(), u("th", {
|
|
3722
3726
|
key: h,
|
|
3723
|
-
onClick: (
|
|
3727
|
+
onClick: (b) => a.updateSortColumn(c.field_name, c.sortable),
|
|
3724
3728
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3725
3729
|
}, [
|
|
3726
3730
|
w(g(c.field_label) + " ", 1),
|
|
3727
|
-
o.sortField === c.field_name ? (d(), u("span",
|
|
3728
|
-
o.sortOrder === "asc" ? (d(), u("i",
|
|
3731
|
+
o.sortField === c.field_name ? (d(), u("span", Mo, [
|
|
3732
|
+
o.sortOrder === "asc" ? (d(), u("i", Lo)) : (d(), u("i", No))
|
|
3729
3733
|
])) : f("", !0)
|
|
3730
|
-
], 8,
|
|
3734
|
+
], 8, To))), 128))
|
|
3731
3735
|
])
|
|
3732
3736
|
]),
|
|
3733
3737
|
r("tbody", null, [
|
|
3734
|
-
o.isLoading ? (d(), u("tr",
|
|
3738
|
+
o.isLoading ? (d(), u("tr", Io, [
|
|
3735
3739
|
r("td", {
|
|
3736
3740
|
colspan: s.columns.length
|
|
3737
|
-
},
|
|
3741
|
+
}, Go, 8, Vo)
|
|
3738
3742
|
])) : f("", !0),
|
|
3739
3743
|
o.isLoading ? f("", !0) : (d(!0), u(k, { key: 1 }, O(o.itemLists.data, (c, h) => (d(), u("tr", {
|
|
3740
3744
|
key: h,
|
|
3741
3745
|
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"
|
|
3742
3746
|
}, [
|
|
3743
|
-
(d(!0), u(k, null, O(s.columns, (
|
|
3747
|
+
(d(!0), u(k, null, O(s.columns, (b, _) => (d(), u("td", {
|
|
3744
3748
|
key: _,
|
|
3745
|
-
"data-label":
|
|
3749
|
+
"data-label": b.field_label,
|
|
3746
3750
|
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"
|
|
3747
3751
|
}, [
|
|
3748
|
-
r("div",
|
|
3749
|
-
|
|
3752
|
+
r("div", Ro, [
|
|
3753
|
+
b.tdComp ? (d(), J(pe(a.forDynCompIs(b.tdComp)), {
|
|
3750
3754
|
key: 0,
|
|
3751
3755
|
row: c,
|
|
3752
|
-
field:
|
|
3756
|
+
field: b.field_name,
|
|
3753
3757
|
xprops: s.xprops,
|
|
3754
|
-
tdProps:
|
|
3758
|
+
tdProps: b.tdProps,
|
|
3755
3759
|
onDeleteAction: t[3] || (t[3] = ($) => a.GetItemLists()),
|
|
3756
3760
|
onEditAction: ($) => a.editAction(c)
|
|
3757
3761
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (d(), u(k, { key: 1 }, [
|
|
3758
|
-
w(g(c[
|
|
3762
|
+
w(g(c[b.field_name]), 1)
|
|
3759
3763
|
], 64))
|
|
3760
3764
|
])
|
|
3761
|
-
], 8,
|
|
3765
|
+
], 8, Uo))), 128))
|
|
3762
3766
|
]))), 128))
|
|
3763
3767
|
])
|
|
3764
3768
|
])
|
|
3765
3769
|
]),
|
|
3766
|
-
r("div",
|
|
3767
|
-
|
|
3770
|
+
r("div", Fo, [
|
|
3771
|
+
Y(l, {
|
|
3768
3772
|
class: "mt-3 mb-0",
|
|
3769
3773
|
data: o.itemLists,
|
|
3770
3774
|
limit: o.limit,
|
|
@@ -3775,7 +3779,7 @@ function Fo(e, t, s, n, o, a) {
|
|
|
3775
3779
|
])
|
|
3776
3780
|
]);
|
|
3777
3781
|
}
|
|
3778
|
-
const
|
|
3782
|
+
const Zu = /* @__PURE__ */ D(vo, [["render", qo]]), Ho = {
|
|
3779
3783
|
components: {},
|
|
3780
3784
|
props: {
|
|
3781
3785
|
data: Array,
|
|
@@ -3855,10 +3859,10 @@ const zu = /* @__PURE__ */ D(_o, [["render", Fo]]), qo = {
|
|
|
3855
3859
|
e >= 1 && e <= this.totalPages && (this.currentPage = e);
|
|
3856
3860
|
}
|
|
3857
3861
|
}
|
|
3858
|
-
},
|
|
3862
|
+
}, zo = { class: "p-2" }, Zo = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, Ko = { class: "flex items-center gap-2" }, Wo = /* @__PURE__ */ r("span", { class: "font-medium" }, " Show ", -1), Yo = { style: { "margin-top": "9px" } }, Xo = /* @__PURE__ */ r("span", { class: "font-medium" }, " Entries ", -1), Jo = /* @__PURE__ */ r("label", {
|
|
3859
3863
|
for: "table-search",
|
|
3860
3864
|
class: "sr-only"
|
|
3861
|
-
}, "Search", -1),
|
|
3865
|
+
}, "Search", -1), Qo = { class: "relative" }, el = /* @__PURE__ */ r("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
|
|
3862
3866
|
/* @__PURE__ */ r("svg", {
|
|
3863
3867
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3864
3868
|
"aria-hidden": "true",
|
|
@@ -3872,19 +3876,19 @@ const zu = /* @__PURE__ */ D(_o, [["render", Fo]]), qo = {
|
|
|
3872
3876
|
"clip-rule": "evenodd"
|
|
3873
3877
|
})
|
|
3874
3878
|
])
|
|
3875
|
-
], -1),
|
|
3879
|
+
], -1), tl = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, rl = { 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" }, sl = { 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" }, al = ["onClick"], nl = {
|
|
3876
3880
|
key: 0,
|
|
3877
3881
|
class: "ml-2"
|
|
3878
|
-
},
|
|
3882
|
+
}, ol = {
|
|
3879
3883
|
key: 0,
|
|
3880
3884
|
class: "fa fa-arrow-up"
|
|
3881
|
-
},
|
|
3885
|
+
}, ll = {
|
|
3882
3886
|
key: 1,
|
|
3883
3887
|
class: "fa fa-arrow-down"
|
|
3884
|
-
},
|
|
3888
|
+
}, il = ["data-label"], dl = ["innerHTML"], ul = {
|
|
3885
3889
|
key: 0,
|
|
3886
3890
|
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"
|
|
3887
|
-
},
|
|
3891
|
+
}, cl = { class: "flex justify-between flex-1 sm:hidden" }, fl = ["disabled"], gl = ["disabled"], hl = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, ml = { class: "text-sm text-gray-700 dark:text-gray-400" }, bl = { class: "font-medium" }, pl = { class: "font-medium" }, yl = { class: "font-medium" }, _l = { "aria-label": "Page navigation" }, vl = { class: "flex items-center h-8 -space-x-px text-sm" }, xl = ["disabled"], wl = /* @__PURE__ */ r("span", { class: "sr-only" }, "Previous", -1), kl = /* @__PURE__ */ r("svg", {
|
|
3888
3892
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3889
3893
|
"aria-hidden": "true",
|
|
3890
3894
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3898,10 +3902,10 @@ const zu = /* @__PURE__ */ D(_o, [["render", Fo]]), qo = {
|
|
|
3898
3902
|
"stroke-width": "2",
|
|
3899
3903
|
d: "M5 1 1 5l4 4"
|
|
3900
3904
|
})
|
|
3901
|
-
], -1),
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
],
|
|
3905
|
+
], -1), $l = [
|
|
3906
|
+
wl,
|
|
3907
|
+
kl
|
|
3908
|
+
], Cl = ["onClick"], Sl = ["onClick"], Dl = ["disabled"], Ol = /* @__PURE__ */ r("span", { class: "sr-only" }, "Next", -1), Pl = /* @__PURE__ */ r("svg", {
|
|
3905
3909
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3906
3910
|
"aria-hidden": "true",
|
|
3907
3911
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3915,18 +3919,18 @@ const zu = /* @__PURE__ */ D(_o, [["render", Fo]]), qo = {
|
|
|
3915
3919
|
"stroke-width": "2",
|
|
3916
3920
|
d: "m1 9 4-4-4-4"
|
|
3917
3921
|
})
|
|
3918
|
-
], -1),
|
|
3919
|
-
|
|
3920
|
-
|
|
3922
|
+
], -1), Al = [
|
|
3923
|
+
Ol,
|
|
3924
|
+
Pl
|
|
3921
3925
|
];
|
|
3922
|
-
function
|
|
3923
|
-
const i =
|
|
3924
|
-
return d(), u("div",
|
|
3925
|
-
r("div",
|
|
3926
|
-
r("div",
|
|
3927
|
-
|
|
3928
|
-
r("div",
|
|
3929
|
-
|
|
3926
|
+
function El(e, t, s, n, o, a) {
|
|
3927
|
+
const i = ae("dropdown");
|
|
3928
|
+
return d(), u("div", zo, [
|
|
3929
|
+
r("div", Zo, [
|
|
3930
|
+
r("div", Ko, [
|
|
3931
|
+
Wo,
|
|
3932
|
+
r("div", Yo, [
|
|
3933
|
+
Y(i, {
|
|
3930
3934
|
has_cancel: !1,
|
|
3931
3935
|
options: o.showNoOfEntries,
|
|
3932
3936
|
modelValue: o.itemsPerPage,
|
|
@@ -3939,11 +3943,11 @@ function Al(e, t, s, n, o, a) {
|
|
|
3939
3943
|
placeholder: "Please select an option"
|
|
3940
3944
|
}, null, 8, ["options", "modelValue"])
|
|
3941
3945
|
]),
|
|
3942
|
-
|
|
3946
|
+
Xo
|
|
3943
3947
|
]),
|
|
3944
|
-
|
|
3945
|
-
r("div",
|
|
3946
|
-
|
|
3948
|
+
Jo,
|
|
3949
|
+
r("div", Qo, [
|
|
3950
|
+
el,
|
|
3947
3951
|
A(r("input", {
|
|
3948
3952
|
type: "text",
|
|
3949
3953
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => o.search = l),
|
|
@@ -3954,9 +3958,9 @@ function Al(e, t, s, n, o, a) {
|
|
|
3954
3958
|
])
|
|
3955
3959
|
])
|
|
3956
3960
|
]),
|
|
3957
|
-
r("div",
|
|
3958
|
-
r("table",
|
|
3959
|
-
r("thead",
|
|
3961
|
+
r("div", tl, [
|
|
3962
|
+
r("table", rl, [
|
|
3963
|
+
r("thead", sl, [
|
|
3960
3964
|
r("tr", null, [
|
|
3961
3965
|
(d(!0), u(k, null, O(s.columns, (l, c) => (d(), u("th", {
|
|
3962
3966
|
key: c,
|
|
@@ -3964,10 +3968,10 @@ function Al(e, t, s, n, o, a) {
|
|
|
3964
3968
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3965
3969
|
}, [
|
|
3966
3970
|
w(g(l) + " ", 1),
|
|
3967
|
-
o.sortKey === l ? (d(), u("span",
|
|
3968
|
-
o.sortOrder === "asc" ? (d(), u("i",
|
|
3971
|
+
o.sortKey === l ? (d(), u("span", nl, [
|
|
3972
|
+
o.sortOrder === "asc" ? (d(), u("i", ol)) : (d(), u("i", ll))
|
|
3969
3973
|
])) : f("", !0)
|
|
3970
|
-
], 8,
|
|
3974
|
+
], 8, al))), 128))
|
|
3971
3975
|
])
|
|
3972
3976
|
]),
|
|
3973
3977
|
r("tbody", null, [
|
|
@@ -3975,57 +3979,57 @@ function Al(e, t, s, n, o, a) {
|
|
|
3975
3979
|
key: c,
|
|
3976
3980
|
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"
|
|
3977
3981
|
}, [
|
|
3978
|
-
(d(!0), u(k, null, O(s.columns, (h,
|
|
3979
|
-
key:
|
|
3982
|
+
(d(!0), u(k, null, O(s.columns, (h, b) => (d(), u("td", {
|
|
3983
|
+
key: b,
|
|
3980
3984
|
"data-label": h,
|
|
3981
3985
|
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"
|
|
3982
3986
|
}, [
|
|
3983
3987
|
r("p", {
|
|
3984
3988
|
class: "text-pretty",
|
|
3985
|
-
innerHTML: l[
|
|
3986
|
-
}, null, 8,
|
|
3987
|
-
], 8,
|
|
3989
|
+
innerHTML: l[b]
|
|
3990
|
+
}, null, 8, dl)
|
|
3991
|
+
], 8, il))), 128))
|
|
3988
3992
|
]))), 128))
|
|
3989
3993
|
])
|
|
3990
3994
|
])
|
|
3991
3995
|
]),
|
|
3992
|
-
a.paginatedData.length > 0 ? (d(), u("div",
|
|
3993
|
-
r("div",
|
|
3996
|
+
a.paginatedData.length > 0 ? (d(), u("div", ul, [
|
|
3997
|
+
r("div", cl, [
|
|
3994
3998
|
r("a", {
|
|
3995
3999
|
href: "#",
|
|
3996
4000
|
onClick: t[2] || (t[2] = (...l) => a.previousPage && a.previousPage(...l)),
|
|
3997
4001
|
disabled: o.currentPage === 1,
|
|
3998
4002
|
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"
|
|
3999
|
-
}, "Previous", 8,
|
|
4003
|
+
}, "Previous", 8, fl),
|
|
4000
4004
|
r("a", {
|
|
4001
4005
|
href: "#",
|
|
4002
4006
|
onClick: t[3] || (t[3] = (...l) => a.nextPage && a.nextPage(...l)),
|
|
4003
4007
|
disabled: o.currentPage === a.totalPages,
|
|
4004
4008
|
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"
|
|
4005
|
-
}, "Next", 8,
|
|
4009
|
+
}, "Next", 8, gl)
|
|
4006
4010
|
]),
|
|
4007
|
-
r("div",
|
|
4011
|
+
r("div", hl, [
|
|
4008
4012
|
r("div", null, [
|
|
4009
|
-
r("p",
|
|
4013
|
+
r("p", ml, [
|
|
4010
4014
|
w(" Showing "),
|
|
4011
|
-
r("span",
|
|
4015
|
+
r("span", bl, g(a.firstItemIndex), 1),
|
|
4012
4016
|
w(" to "),
|
|
4013
|
-
r("span",
|
|
4017
|
+
r("span", pl, g(a.lastItemIndex), 1),
|
|
4014
4018
|
w(" of "),
|
|
4015
|
-
r("span",
|
|
4019
|
+
r("span", yl, g(a.filteredData.length), 1),
|
|
4016
4020
|
w(" entries ")
|
|
4017
4021
|
])
|
|
4018
4022
|
]),
|
|
4019
4023
|
r("div", null, [
|
|
4020
|
-
r("nav",
|
|
4021
|
-
r("ul",
|
|
4024
|
+
r("nav", _l, [
|
|
4025
|
+
r("ul", vl, [
|
|
4022
4026
|
r("li", null, [
|
|
4023
4027
|
r("a", {
|
|
4024
4028
|
href: "#",
|
|
4025
4029
|
onClick: t[4] || (t[4] = (...l) => a.previousPage && a.previousPage(...l)),
|
|
4026
4030
|
disabled: o.currentPage === 1,
|
|
4027
4031
|
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"
|
|
4028
|
-
},
|
|
4032
|
+
}, $l, 8, xl)
|
|
4029
4033
|
]),
|
|
4030
4034
|
(d(!0), u(k, null, O(a.displayedPageNumbers, (l) => (d(), u(k, { key: l }, [
|
|
4031
4035
|
r("li", null, [
|
|
@@ -4034,7 +4038,7 @@ function Al(e, t, s, n, o, a) {
|
|
|
4034
4038
|
href: "#",
|
|
4035
4039
|
onClick: (c) => a.goToPage(l),
|
|
4036
4040
|
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"
|
|
4037
|
-
}, g(l), 9,
|
|
4041
|
+
}, g(l), 9, Cl)) : f("", !0)
|
|
4038
4042
|
]),
|
|
4039
4043
|
r("li", null, [
|
|
4040
4044
|
o.currentPage === l ? (d(), u("a", {
|
|
@@ -4043,7 +4047,7 @@ function Al(e, t, s, n, o, a) {
|
|
|
4043
4047
|
onClick: (c) => a.goToPage(l),
|
|
4044
4048
|
"aria-current": "page",
|
|
4045
4049
|
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"
|
|
4046
|
-
}, g(l), 9,
|
|
4050
|
+
}, g(l), 9, Sl)) : f("", !0)
|
|
4047
4051
|
])
|
|
4048
4052
|
], 64))), 128)),
|
|
4049
4053
|
r("li", null, [
|
|
@@ -4052,7 +4056,7 @@ function Al(e, t, s, n, o, a) {
|
|
|
4052
4056
|
onClick: t[5] || (t[5] = (...l) => a.nextPage && a.nextPage(...l)),
|
|
4053
4057
|
disabled: o.currentPage === a.totalPages,
|
|
4054
4058
|
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"
|
|
4055
|
-
},
|
|
4059
|
+
}, Al, 8, Dl)
|
|
4056
4060
|
])
|
|
4057
4061
|
])
|
|
4058
4062
|
])
|
|
@@ -4061,13 +4065,13 @@ function Al(e, t, s, n, o, a) {
|
|
|
4061
4065
|
])) : f("", !0)
|
|
4062
4066
|
]);
|
|
4063
4067
|
}
|
|
4064
|
-
const
|
|
4068
|
+
const Ku = /* @__PURE__ */ D(Ho, [["render", El]]), jl = {
|
|
4065
4069
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
4066
4070
|
role: "alert"
|
|
4067
|
-
},
|
|
4071
|
+
}, Tl = {
|
|
4068
4072
|
key: 0,
|
|
4069
4073
|
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"
|
|
4070
|
-
},
|
|
4074
|
+
}, Ml = /* @__PURE__ */ r("svg", {
|
|
4071
4075
|
class: "w-5 h-5",
|
|
4072
4076
|
"aria-hidden": "true",
|
|
4073
4077
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4075,13 +4079,13 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4075
4079
|
viewBox: "0 0 20 20"
|
|
4076
4080
|
}, [
|
|
4077
4081
|
/* @__PURE__ */ r("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" })
|
|
4078
|
-
], -1),
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
],
|
|
4082
|
+
], -1), Ll = /* @__PURE__ */ r("span", { class: "sr-only" }, "Check icon", -1), Nl = [
|
|
4083
|
+
Ml,
|
|
4084
|
+
Ll
|
|
4085
|
+
], Il = {
|
|
4082
4086
|
key: 1,
|
|
4083
4087
|
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"
|
|
4084
|
-
},
|
|
4088
|
+
}, Vl = /* @__PURE__ */ r("svg", {
|
|
4085
4089
|
class: "w-5 h-5",
|
|
4086
4090
|
"aria-hidden": "true",
|
|
4087
4091
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4089,13 +4093,13 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4089
4093
|
viewBox: "0 0 20 20"
|
|
4090
4094
|
}, [
|
|
4091
4095
|
/* @__PURE__ */ r("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" })
|
|
4092
|
-
], -1),
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
],
|
|
4096
|
+
], -1), Bl = /* @__PURE__ */ r("span", { class: "sr-only" }, "Error icon", -1), Gl = [
|
|
4097
|
+
Vl,
|
|
4098
|
+
Bl
|
|
4099
|
+
], Ul = {
|
|
4096
4100
|
key: 2,
|
|
4097
4101
|
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"
|
|
4098
|
-
},
|
|
4102
|
+
}, Rl = /* @__PURE__ */ r("svg", {
|
|
4099
4103
|
class: "w-5 h-5",
|
|
4100
4104
|
"aria-hidden": "true",
|
|
4101
4105
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4103,10 +4107,10 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4103
4107
|
viewBox: "0 0 20 20"
|
|
4104
4108
|
}, [
|
|
4105
4109
|
/* @__PURE__ */ r("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" })
|
|
4106
|
-
], -1),
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
],
|
|
4110
|
+
], -1), Fl = /* @__PURE__ */ r("span", { class: "sr-only" }, "Warning icon", -1), ql = [
|
|
4111
|
+
Rl,
|
|
4112
|
+
Fl
|
|
4113
|
+
], Hl = { class: "ml-3 text-sm font-normal" }, zl = /* @__PURE__ */ r("span", { class: "sr-only" }, "Close", -1), Zl = /* @__PURE__ */ r("svg", {
|
|
4110
4114
|
"aria-hidden": "true",
|
|
4111
4115
|
class: "w-5 h-5",
|
|
4112
4116
|
fill: "currentColor",
|
|
@@ -4118,10 +4122,10 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4118
4122
|
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",
|
|
4119
4123
|
"clip-rule": "evenodd"
|
|
4120
4124
|
})
|
|
4121
|
-
], -1),
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
],
|
|
4125
|
+
], -1), Kl = [
|
|
4126
|
+
zl,
|
|
4127
|
+
Zl
|
|
4128
|
+
], Wl = {
|
|
4125
4129
|
__name: "ToastListItem",
|
|
4126
4130
|
props: {
|
|
4127
4131
|
message: String,
|
|
@@ -4141,23 +4145,23 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4141
4145
|
setTimeout(() => n("remove"), s.duration);
|
|
4142
4146
|
});
|
|
4143
4147
|
const n = t;
|
|
4144
|
-
return (o, a) => (d(), u("div",
|
|
4145
|
-
s.type === "success" ? (d(), u("div",
|
|
4146
|
-
s.type === "error" ? (d(), u("div",
|
|
4147
|
-
s.type === "warning" ? (d(), u("div",
|
|
4148
|
-
r("div",
|
|
4148
|
+
return (o, a) => (d(), u("div", jl, [
|
|
4149
|
+
s.type === "success" ? (d(), u("div", Tl, Nl)) : f("", !0),
|
|
4150
|
+
s.type === "error" ? (d(), u("div", Il, Gl)) : f("", !0),
|
|
4151
|
+
s.type === "warning" ? (d(), u("div", Ul, ql)) : f("", !0),
|
|
4152
|
+
r("div", Hl, g(s.message), 1),
|
|
4149
4153
|
r("button", {
|
|
4150
4154
|
onClick: a[0] || (a[0] = (i) => n("remove")),
|
|
4151
4155
|
type: "button",
|
|
4152
4156
|
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",
|
|
4153
4157
|
"data-dismiss-target": "#toast-default",
|
|
4154
4158
|
"aria-label": "Close"
|
|
4155
|
-
},
|
|
4159
|
+
}, Kl)
|
|
4156
4160
|
]));
|
|
4157
4161
|
}
|
|
4158
|
-
}, ve =
|
|
4162
|
+
}, ve = Te({
|
|
4159
4163
|
items: []
|
|
4160
|
-
}),
|
|
4164
|
+
}), Yl = {
|
|
4161
4165
|
add(e) {
|
|
4162
4166
|
ve.items.unshift({
|
|
4163
4167
|
key: Symbol(),
|
|
@@ -4169,16 +4173,16 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4169
4173
|
remove(e) {
|
|
4170
4174
|
ve.items.splice(e, 1);
|
|
4171
4175
|
}
|
|
4172
|
-
},
|
|
4176
|
+
}, Ee = {
|
|
4173
4177
|
state: ve,
|
|
4174
|
-
methods:
|
|
4175
|
-
},
|
|
4178
|
+
methods: Yl
|
|
4179
|
+
}, Wu = {
|
|
4176
4180
|
__name: "GlToastList",
|
|
4177
4181
|
setup(e) {
|
|
4178
4182
|
function t(s) {
|
|
4179
|
-
|
|
4183
|
+
Ee.methods.remove(s);
|
|
4180
4184
|
}
|
|
4181
|
-
return (s, n) => (d(),
|
|
4185
|
+
return (s, n) => (d(), J(lt, {
|
|
4182
4186
|
tag: "div",
|
|
4183
4187
|
"enter-from-class": "translate-x-full opacity-0",
|
|
4184
4188
|
"enter-active-class": "duration-500",
|
|
@@ -4187,7 +4191,7 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4187
4191
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
4188
4192
|
}, {
|
|
4189
4193
|
default: le(() => [
|
|
4190
|
-
(d(!0), u(k, null, O(
|
|
4194
|
+
(d(!0), u(k, null, O(it(Ee).state.items, (o, a) => (d(), J(Wl, {
|
|
4191
4195
|
key: o.key,
|
|
4192
4196
|
message: o.message,
|
|
4193
4197
|
type: o.type,
|
|
@@ -4198,10 +4202,10 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4198
4202
|
_: 1
|
|
4199
4203
|
}));
|
|
4200
4204
|
}
|
|
4201
|
-
},
|
|
4205
|
+
}, Xl = {
|
|
4202
4206
|
key: 0,
|
|
4203
4207
|
class: "flex justify-center"
|
|
4204
|
-
},
|
|
4208
|
+
}, Jl = /* @__PURE__ */ r("svg", {
|
|
4205
4209
|
class: "w-5 h-5",
|
|
4206
4210
|
"aria-hidden": "true",
|
|
4207
4211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4209,12 +4213,12 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4209
4213
|
viewBox: "0 0 4 15"
|
|
4210
4214
|
}, [
|
|
4211
4215
|
/* @__PURE__ */ r("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" })
|
|
4212
|
-
], -1),
|
|
4213
|
-
|
|
4214
|
-
],
|
|
4216
|
+
], -1), Ql = [
|
|
4217
|
+
Jl
|
|
4218
|
+
], ei = { 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" }, ti = {
|
|
4215
4219
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4216
4220
|
"aria-labelledby": "dropdownDividerButton"
|
|
4217
|
-
},
|
|
4221
|
+
}, ri = { key: 0 }, si = ["href"], ai = /* @__PURE__ */ r("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), ni = { key: 1 }, oi = /* @__PURE__ */ r("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Yu = {
|
|
4218
4222
|
__name: "DatatableAction",
|
|
4219
4223
|
props: {
|
|
4220
4224
|
field: {
|
|
@@ -4240,7 +4244,7 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4240
4244
|
},
|
|
4241
4245
|
emits: ["deleteAction"],
|
|
4242
4246
|
setup(e, { emit: t }) {
|
|
4243
|
-
const s =
|
|
4247
|
+
const s = Ve(), n = e, o = C(!1), a = C(!1), i = () => {
|
|
4244
4248
|
o.value = !1;
|
|
4245
4249
|
}, l = () => {
|
|
4246
4250
|
o.value = !0;
|
|
@@ -4248,9 +4252,9 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4248
4252
|
a.value = !1;
|
|
4249
4253
|
}, h = () => {
|
|
4250
4254
|
a.value = !0;
|
|
4251
|
-
},
|
|
4255
|
+
}, b = t, _ = () => {
|
|
4252
4256
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
4253
|
-
c(),
|
|
4257
|
+
c(), b("deleteAction"), s.commit("notification/SHOW_NOTIFICATION", {
|
|
4254
4258
|
message: "Item deleted successfully.",
|
|
4255
4259
|
type: "success",
|
|
4256
4260
|
duration: 5e3
|
|
@@ -4260,54 +4264,54 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4260
4264
|
});
|
|
4261
4265
|
};
|
|
4262
4266
|
return ($, S) => {
|
|
4263
|
-
const
|
|
4267
|
+
const B = Le("click-outside");
|
|
4264
4268
|
return d(), u(k, null, [
|
|
4265
|
-
|
|
4269
|
+
Y(xe, {
|
|
4266
4270
|
isOpen: a.value,
|
|
4267
4271
|
onConfirmDelete: _,
|
|
4268
4272
|
onCancelDelete: c
|
|
4269
4273
|
}, null, 8, ["isOpen"]),
|
|
4270
|
-
e.row && $.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? A((d(), u("div",
|
|
4274
|
+
e.row && $.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? A((d(), u("div", Xl, [
|
|
4271
4275
|
r("button", {
|
|
4272
4276
|
onClick: l,
|
|
4273
4277
|
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",
|
|
4274
4278
|
type: "button"
|
|
4275
|
-
},
|
|
4276
|
-
A(r("div",
|
|
4277
|
-
r("ul",
|
|
4278
|
-
$.can(`edit_${e.xprops.permission}`) ? (d(), u("li",
|
|
4279
|
+
}, Ql),
|
|
4280
|
+
A(r("div", ei, [
|
|
4281
|
+
r("ul", ti, [
|
|
4282
|
+
$.can(`edit_${e.xprops.permission}`) ? (d(), u("li", ri, [
|
|
4279
4283
|
r("a", {
|
|
4280
4284
|
href: e.xprops.route + "/" + e.row.id + "/edit",
|
|
4281
4285
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4282
4286
|
}, [
|
|
4283
|
-
|
|
4287
|
+
ai,
|
|
4284
4288
|
w(" Edit")
|
|
4285
|
-
], 8,
|
|
4289
|
+
], 8, si)
|
|
4286
4290
|
])) : f("", !0),
|
|
4287
|
-
$.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4291
|
+
$.can(`delete_${e.xprops.permission}`) ? (d(), u("li", ni, [
|
|
4288
4292
|
r("a", {
|
|
4289
4293
|
href: "#",
|
|
4290
4294
|
onClick: U(h, ["prevent"]),
|
|
4291
4295
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4292
4296
|
}, [
|
|
4293
|
-
|
|
4297
|
+
oi,
|
|
4294
4298
|
w(" Remove")
|
|
4295
4299
|
])
|
|
4296
4300
|
])) : f("", !0)
|
|
4297
4301
|
])
|
|
4298
4302
|
], 512), [
|
|
4299
|
-
[
|
|
4303
|
+
[X, o.value]
|
|
4300
4304
|
])
|
|
4301
4305
|
])), [
|
|
4302
|
-
[
|
|
4306
|
+
[B, i]
|
|
4303
4307
|
]) : f("", !0)
|
|
4304
4308
|
], 64);
|
|
4305
4309
|
};
|
|
4306
4310
|
}
|
|
4307
|
-
},
|
|
4311
|
+
}, li = {
|
|
4308
4312
|
key: 0,
|
|
4309
4313
|
class: "flex justify-center"
|
|
4310
|
-
},
|
|
4314
|
+
}, ii = /* @__PURE__ */ r("svg", {
|
|
4311
4315
|
class: "w-5 h-5",
|
|
4312
4316
|
"aria-hidden": "true",
|
|
4313
4317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4315,12 +4319,12 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4315
4319
|
viewBox: "0 0 4 15"
|
|
4316
4320
|
}, [
|
|
4317
4321
|
/* @__PURE__ */ r("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" })
|
|
4318
|
-
], -1),
|
|
4319
|
-
|
|
4320
|
-
],
|
|
4322
|
+
], -1), di = [
|
|
4323
|
+
ii
|
|
4324
|
+
], ui = { 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" }, ci = {
|
|
4321
4325
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4322
4326
|
"aria-labelledby": "dropdownDividerButton"
|
|
4323
|
-
},
|
|
4327
|
+
}, fi = { key: 0 }, gi = /* @__PURE__ */ r("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Xu = {
|
|
4324
4328
|
__name: "DatatableDeleteAction",
|
|
4325
4329
|
props: {
|
|
4326
4330
|
field: {
|
|
@@ -4346,7 +4350,7 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4346
4350
|
},
|
|
4347
4351
|
emits: ["deleteAction"],
|
|
4348
4352
|
setup(e, { emit: t }) {
|
|
4349
|
-
const s =
|
|
4353
|
+
const s = Ve(), n = e, o = C(!1), a = C(!1), i = () => {
|
|
4350
4354
|
o.value = !1;
|
|
4351
4355
|
}, l = () => {
|
|
4352
4356
|
o.value = !0;
|
|
@@ -4354,9 +4358,9 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4354
4358
|
a.value = !1;
|
|
4355
4359
|
}, h = () => {
|
|
4356
4360
|
a.value = !0;
|
|
4357
|
-
},
|
|
4361
|
+
}, b = t, _ = () => {
|
|
4358
4362
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
4359
|
-
c(),
|
|
4363
|
+
c(), b("deleteAction"), s.commit("notification/SHOW_NOTIFICATION", {
|
|
4360
4364
|
message: "Item deleted successfully.",
|
|
4361
4365
|
type: "success",
|
|
4362
4366
|
duration: 5e3
|
|
@@ -4366,42 +4370,42 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4366
4370
|
});
|
|
4367
4371
|
};
|
|
4368
4372
|
return ($, S) => {
|
|
4369
|
-
const
|
|
4373
|
+
const B = Le("click-outside");
|
|
4370
4374
|
return d(), u(k, null, [
|
|
4371
|
-
|
|
4375
|
+
Y(xe, {
|
|
4372
4376
|
isOpen: a.value,
|
|
4373
4377
|
onConfirmDelete: _,
|
|
4374
4378
|
onCancelDelete: c
|
|
4375
4379
|
}, null, 8, ["isOpen"]),
|
|
4376
|
-
e.row && $.can(`delete_${e.xprops.permission}`) ? A((d(), u("div",
|
|
4380
|
+
e.row && $.can(`delete_${e.xprops.permission}`) ? A((d(), u("div", li, [
|
|
4377
4381
|
r("button", {
|
|
4378
4382
|
onClick: l,
|
|
4379
4383
|
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",
|
|
4380
4384
|
type: "button"
|
|
4381
|
-
},
|
|
4382
|
-
A(r("div",
|
|
4383
|
-
r("ul",
|
|
4384
|
-
$.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4385
|
+
}, di),
|
|
4386
|
+
A(r("div", ui, [
|
|
4387
|
+
r("ul", ci, [
|
|
4388
|
+
$.can(`delete_${e.xprops.permission}`) ? (d(), u("li", fi, [
|
|
4385
4389
|
r("a", {
|
|
4386
4390
|
href: "#",
|
|
4387
4391
|
onClick: U(h, ["prevent"]),
|
|
4388
4392
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4389
4393
|
}, [
|
|
4390
|
-
|
|
4394
|
+
gi,
|
|
4391
4395
|
w(" Remove")
|
|
4392
4396
|
])
|
|
4393
4397
|
])) : f("", !0)
|
|
4394
4398
|
])
|
|
4395
4399
|
], 512), [
|
|
4396
|
-
[
|
|
4400
|
+
[X, o.value]
|
|
4397
4401
|
])
|
|
4398
4402
|
])), [
|
|
4399
|
-
[
|
|
4403
|
+
[B, i]
|
|
4400
4404
|
]) : f("", !0)
|
|
4401
4405
|
], 64);
|
|
4402
4406
|
};
|
|
4403
4407
|
}
|
|
4404
|
-
},
|
|
4408
|
+
}, hi = {
|
|
4405
4409
|
props: ["field", "row"],
|
|
4406
4410
|
computed: {
|
|
4407
4411
|
isArray() {
|
|
@@ -4416,7 +4420,7 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4416
4420
|
},
|
|
4417
4421
|
mounted() {
|
|
4418
4422
|
}
|
|
4419
|
-
},
|
|
4423
|
+
}, mi = ["href", "title"], bi = /* @__PURE__ */ r("svg", {
|
|
4420
4424
|
class: "w-3 h-3 text-white me-2",
|
|
4421
4425
|
"aria-hidden": "true",
|
|
4422
4426
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4433,10 +4437,10 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4433
4437
|
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",
|
|
4434
4438
|
"clip-rule": "evenodd"
|
|
4435
4439
|
})
|
|
4436
|
-
], -1),
|
|
4440
|
+
], -1), pi = {
|
|
4437
4441
|
key: 1,
|
|
4438
4442
|
class: "m-1 d-inline-block"
|
|
4439
|
-
},
|
|
4443
|
+
}, yi = ["href", "title"], _i = /* @__PURE__ */ r("svg", {
|
|
4440
4444
|
class: "w-3 h-3 text-white me-2",
|
|
4441
4445
|
"aria-hidden": "true",
|
|
4442
4446
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4454,7 +4458,7 @@ const Zu = /* @__PURE__ */ D(qo, [["render", Al]]), El = {
|
|
|
4454
4458
|
"clip-rule": "evenodd"
|
|
4455
4459
|
})
|
|
4456
4460
|
], -1);
|
|
4457
|
-
function
|
|
4461
|
+
function vi(e, t, s, n, o, a) {
|
|
4458
4462
|
return d(), u("div", null, [
|
|
4459
4463
|
a.isArray ? (d(!0), u(k, { key: 0 }, O(s.row, (i, l) => (d(), u("div", {
|
|
4460
4464
|
key: l,
|
|
@@ -4466,23 +4470,23 @@ function _i(e, t, s, n, o, a) {
|
|
|
4466
4470
|
target: "_blank",
|
|
4467
4471
|
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"
|
|
4468
4472
|
}, [
|
|
4469
|
-
|
|
4473
|
+
bi,
|
|
4470
4474
|
w(" Download ")
|
|
4471
|
-
], 8,
|
|
4472
|
-
]))), 128)) : a.isString ? (d(), u("div",
|
|
4475
|
+
], 8, mi)
|
|
4476
|
+
]))), 128)) : a.isString ? (d(), u("div", pi, [
|
|
4473
4477
|
r("a", {
|
|
4474
4478
|
href: s.row,
|
|
4475
4479
|
title: s.row,
|
|
4476
4480
|
target: "_blank",
|
|
4477
4481
|
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"
|
|
4478
4482
|
}, [
|
|
4479
|
-
|
|
4483
|
+
_i,
|
|
4480
4484
|
w(" Download ")
|
|
4481
|
-
], 8,
|
|
4485
|
+
], 8, yi)
|
|
4482
4486
|
])) : f("", !0)
|
|
4483
4487
|
]);
|
|
4484
4488
|
}
|
|
4485
|
-
const
|
|
4489
|
+
const Ju = /* @__PURE__ */ D(hi, [["render", vi]]), xi = {
|
|
4486
4490
|
props: ["field", "row"],
|
|
4487
4491
|
computed: {
|
|
4488
4492
|
isArray() {
|
|
@@ -4492,7 +4496,7 @@ const Xu = /* @__PURE__ */ D(gi, [["render", _i]]), vi = {
|
|
|
4492
4496
|
return typeof this.row[this.field] == "object";
|
|
4493
4497
|
}
|
|
4494
4498
|
}
|
|
4495
|
-
},
|
|
4499
|
+
}, wi = ["href", "title"], ki = /* @__PURE__ */ r("svg", {
|
|
4496
4500
|
class: "w-3 h-3 text-white me-2",
|
|
4497
4501
|
"aria-hidden": "true",
|
|
4498
4502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4509,10 +4513,10 @@ const Xu = /* @__PURE__ */ D(gi, [["render", _i]]), vi = {
|
|
|
4509
4513
|
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",
|
|
4510
4514
|
"clip-rule": "evenodd"
|
|
4511
4515
|
})
|
|
4512
|
-
], -1),
|
|
4516
|
+
], -1), $i = {
|
|
4513
4517
|
key: 1,
|
|
4514
4518
|
class: "m-1 d-inline-block"
|
|
4515
|
-
},
|
|
4519
|
+
}, Ci = ["href", "title"], Si = /* @__PURE__ */ r("svg", {
|
|
4516
4520
|
class: "w-3 h-3 text-white me-2",
|
|
4517
4521
|
"aria-hidden": "true",
|
|
4518
4522
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4530,7 +4534,7 @@ const Xu = /* @__PURE__ */ D(gi, [["render", _i]]), vi = {
|
|
|
4530
4534
|
"clip-rule": "evenodd"
|
|
4531
4535
|
})
|
|
4532
4536
|
], -1);
|
|
4533
|
-
function
|
|
4537
|
+
function Di(e, t, s, n, o, a) {
|
|
4534
4538
|
return d(), u("div", null, [
|
|
4535
4539
|
a.isArray ? (d(!0), u(k, { key: 0 }, O(s.row[s.field], (i) => (d(), u("div", {
|
|
4536
4540
|
key: i.id,
|
|
@@ -4542,39 +4546,39 @@ function Si(e, t, s, n, o, a) {
|
|
|
4542
4546
|
target: "_blank",
|
|
4543
4547
|
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"
|
|
4544
4548
|
}, [
|
|
4545
|
-
|
|
4549
|
+
ki,
|
|
4546
4550
|
w(" Download ")
|
|
4547
|
-
], 8,
|
|
4548
|
-
]))), 128)) : a.isObject ? (d(), u("div",
|
|
4551
|
+
], 8, wi)
|
|
4552
|
+
]))), 128)) : a.isObject ? (d(), u("div", $i, [
|
|
4549
4553
|
r("a", {
|
|
4550
4554
|
href: s.row[s.field].url,
|
|
4551
4555
|
title: s.row[s.field].name,
|
|
4552
4556
|
target: "_blank",
|
|
4553
4557
|
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"
|
|
4554
4558
|
}, [
|
|
4555
|
-
|
|
4559
|
+
Si,
|
|
4556
4560
|
w(" Download ")
|
|
4557
|
-
], 8,
|
|
4561
|
+
], 8, Ci)
|
|
4558
4562
|
])) : f("", !0)
|
|
4559
4563
|
]);
|
|
4560
4564
|
}
|
|
4561
|
-
const
|
|
4565
|
+
const Qu = /* @__PURE__ */ D(xi, [["render", Di]]), Oi = {
|
|
4562
4566
|
props: ["field", "row", "tdProps"]
|
|
4563
|
-
},
|
|
4564
|
-
function
|
|
4565
|
-
return s.row[s.field] ? (d(), u("div",
|
|
4567
|
+
}, Pi = { key: 0 }, Ai = ["innerHTML"];
|
|
4568
|
+
function Ei(e, t, s, n, o, a) {
|
|
4569
|
+
return s.row[s.field] ? (d(), u("div", Pi, [
|
|
4566
4570
|
r("div", {
|
|
4567
4571
|
class: "w-full",
|
|
4568
4572
|
innerHTML: s.row[s.field]
|
|
4569
|
-
}, null, 8,
|
|
4573
|
+
}, null, 8, Ai)
|
|
4570
4574
|
])) : f("", !0);
|
|
4571
4575
|
}
|
|
4572
|
-
const
|
|
4576
|
+
const ec = /* @__PURE__ */ D(Oi, [["render", Ei]]), ji = {
|
|
4573
4577
|
props: ["field", "row", "tdProps"],
|
|
4574
4578
|
computed: {
|
|
4575
4579
|
entry() {
|
|
4576
4580
|
const [e, t] = this.field.split(".");
|
|
4577
|
-
return
|
|
4581
|
+
return dt({ key: e, field: t });
|
|
4578
4582
|
},
|
|
4579
4583
|
isArray() {
|
|
4580
4584
|
return Array.isArray(this.row[this.entry.key]);
|
|
@@ -4583,24 +4587,24 @@ const Qu = /* @__PURE__ */ D(Di, [["render", Ai]]), Ei = {
|
|
|
4583
4587
|
return typeof this.row[this.entry.key] == "object";
|
|
4584
4588
|
}
|
|
4585
4589
|
}
|
|
4586
|
-
},
|
|
4590
|
+
}, Ti = { class: "flex flex-wrap gap-2" }, Mi = {
|
|
4587
4591
|
key: 1,
|
|
4588
4592
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4589
4593
|
};
|
|
4590
|
-
function
|
|
4591
|
-
return d(), u("div",
|
|
4594
|
+
function Li(e, t, s, n, o, a) {
|
|
4595
|
+
return d(), u("div", Ti, [
|
|
4592
4596
|
a.isArray ? (d(!0), u(k, { key: 0 }, O(s.row[a.entry.key], (i, l) => (d(), u("span", {
|
|
4593
4597
|
key: l,
|
|
4594
4598
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4595
|
-
}, g(i[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span",
|
|
4599
|
+
}, g(i[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", Mi, g(s.row[a.entry.key][a.entry.field]), 1)) : f("", !0)
|
|
4596
4600
|
]);
|
|
4597
4601
|
}
|
|
4598
|
-
const
|
|
4602
|
+
const tc = /* @__PURE__ */ D(ji, [["render", Li]]), Ni = {
|
|
4599
4603
|
props: ["field", "row", "tdProps"]
|
|
4600
|
-
},
|
|
4601
|
-
function
|
|
4602
|
-
return s.row[s.field] ? (d(), u("div",
|
|
4603
|
-
r("div",
|
|
4604
|
+
}, Ii = { key: 0 }, Vi = { class: "m-1 d-inline-block" }, Bi = ["href", "title"], Gi = ["src", "alt", "title"];
|
|
4605
|
+
function Ui(e, t, s, n, o, a) {
|
|
4606
|
+
return s.row[s.field] ? (d(), u("div", Ii, [
|
|
4607
|
+
r("div", Vi, [
|
|
4604
4608
|
r("a", {
|
|
4605
4609
|
href: s.row[s.field].url,
|
|
4606
4610
|
title: s.row[s.field].name,
|
|
@@ -4610,37 +4614,37 @@ function Gi(e, t, s, n, o, a) {
|
|
|
4610
4614
|
src: s.row[s.field].thumbnail,
|
|
4611
4615
|
alt: s.row[s.field].name,
|
|
4612
4616
|
title: s.row[s.field].name
|
|
4613
|
-
}, null, 8,
|
|
4614
|
-
], 8,
|
|
4617
|
+
}, null, 8, Gi)
|
|
4618
|
+
], 8, Bi)
|
|
4615
4619
|
])
|
|
4616
4620
|
])) : f("", !0);
|
|
4617
4621
|
}
|
|
4618
|
-
const
|
|
4622
|
+
const rc = /* @__PURE__ */ D(Ni, [["render", Ui], ["__scopeId", "data-v-3a28c02c"]]), Ri = {
|
|
4619
4623
|
props: ["field", "row", "tdProps"],
|
|
4620
4624
|
computed: {
|
|
4621
4625
|
isActive() {
|
|
4622
4626
|
return this.row[this.field] === 1;
|
|
4623
4627
|
}
|
|
4624
4628
|
}
|
|
4625
|
-
},
|
|
4629
|
+
}, Fi = { class: "flex flex-wrap gap-2 text-nowrap" }, qi = {
|
|
4626
4630
|
key: 0,
|
|
4627
4631
|
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"
|
|
4628
|
-
},
|
|
4632
|
+
}, Hi = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), zi = {
|
|
4629
4633
|
key: 1,
|
|
4630
4634
|
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"
|
|
4631
|
-
},
|
|
4632
|
-
function
|
|
4633
|
-
return d(), u("div",
|
|
4634
|
-
a.isActive ? (d(), u("span",
|
|
4635
|
-
|
|
4635
|
+
}, Zi = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
4636
|
+
function Ki(e, t, s, n, o, a) {
|
|
4637
|
+
return d(), u("div", Fi, [
|
|
4638
|
+
a.isActive ? (d(), u("span", qi, [
|
|
4639
|
+
Hi,
|
|
4636
4640
|
w(" Active ")
|
|
4637
|
-
])) : a.isActive ? f("", !0) : (d(), u("span",
|
|
4638
|
-
|
|
4641
|
+
])) : a.isActive ? f("", !0) : (d(), u("span", zi, [
|
|
4642
|
+
Zi,
|
|
4639
4643
|
w(" Inactive ")
|
|
4640
4644
|
]))
|
|
4641
4645
|
]);
|
|
4642
4646
|
}
|
|
4643
|
-
const
|
|
4647
|
+
const sc = /* @__PURE__ */ D(Ri, [["render", Ki]]), Wi = {
|
|
4644
4648
|
props: ["field", "row", "tdProps"],
|
|
4645
4649
|
computed: {
|
|
4646
4650
|
hasLabelColor(e) {
|
|
@@ -4650,50 +4654,50 @@ const rc = /* @__PURE__ */ D(Ui, [["render", Zi]]), Ki = {
|
|
|
4650
4654
|
return t ? t.class : "";
|
|
4651
4655
|
}
|
|
4652
4656
|
}
|
|
4653
|
-
},
|
|
4657
|
+
}, Yi = { class: "flex flex-wrap gap-2 text-nowrap" }, Xi = {
|
|
4654
4658
|
key: 0,
|
|
4655
4659
|
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"
|
|
4656
|
-
},
|
|
4660
|
+
}, Ji = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Qi = {
|
|
4657
4661
|
key: 1,
|
|
4658
4662
|
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"
|
|
4659
|
-
},
|
|
4663
|
+
}, ed = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), td = {
|
|
4660
4664
|
key: 2,
|
|
4661
4665
|
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"
|
|
4662
|
-
},
|
|
4666
|
+
}, rd = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), sd = {
|
|
4663
4667
|
key: 3,
|
|
4664
4668
|
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"
|
|
4665
|
-
},
|
|
4669
|
+
}, ad = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1), nd = {
|
|
4666
4670
|
key: 4,
|
|
4667
4671
|
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"
|
|
4668
|
-
},
|
|
4672
|
+
}, od = /* @__PURE__ */ r("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
4669
4673
|
/* @__PURE__ */ r("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
4670
4674
|
/* @__PURE__ */ r("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
4671
4675
|
], -1);
|
|
4672
|
-
function
|
|
4673
|
-
return d(), u("div",
|
|
4674
|
-
a.hasLabelColor == "green" ? (d(), u("span",
|
|
4675
|
-
|
|
4676
|
+
function ld(e, t, s, n, o, a) {
|
|
4677
|
+
return d(), u("div", Yi, [
|
|
4678
|
+
a.hasLabelColor == "green" ? (d(), u("span", Xi, [
|
|
4679
|
+
Ji,
|
|
4676
4680
|
w(" " + g(this.row[this.field]), 1)
|
|
4677
4681
|
])) : f("", !0),
|
|
4678
|
-
a.hasLabelColor == "red" ? (d(), u("span",
|
|
4679
|
-
|
|
4682
|
+
a.hasLabelColor == "red" ? (d(), u("span", Qi, [
|
|
4683
|
+
ed,
|
|
4680
4684
|
w(" " + g(this.row[this.field]), 1)
|
|
4681
4685
|
])) : f("", !0),
|
|
4682
|
-
a.hasLabelColor == "yellow" ? (d(), u("span",
|
|
4683
|
-
|
|
4686
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", td, [
|
|
4687
|
+
rd,
|
|
4684
4688
|
w(" " + g(this.row[this.field]), 1)
|
|
4685
4689
|
])) : f("", !0),
|
|
4686
|
-
a.hasLabelColor == "default" ? (d(), u("span",
|
|
4687
|
-
|
|
4690
|
+
a.hasLabelColor == "default" ? (d(), u("span", sd, [
|
|
4691
|
+
ad,
|
|
4688
4692
|
w(" " + g(this.row[this.field]), 1)
|
|
4689
4693
|
])) : f("", !0),
|
|
4690
|
-
a.hasLabelColor == "animate" ? (d(), u("span",
|
|
4691
|
-
|
|
4694
|
+
a.hasLabelColor == "animate" ? (d(), u("span", nd, [
|
|
4695
|
+
od,
|
|
4692
4696
|
w(" " + g(this.row[this.field]), 1)
|
|
4693
4697
|
])) : f("", !0)
|
|
4694
4698
|
]);
|
|
4695
4699
|
}
|
|
4696
|
-
const
|
|
4700
|
+
const ac = /* @__PURE__ */ D(Wi, [["render", ld]]), id = {
|
|
4697
4701
|
props: ["field", "row", "tdProps"],
|
|
4698
4702
|
computed: {
|
|
4699
4703
|
hasLabelColor() {
|
|
@@ -4714,9 +4718,9 @@ const sc = /* @__PURE__ */ D(Ki, [["render", od]]), ld = {
|
|
|
4714
4718
|
}
|
|
4715
4719
|
}
|
|
4716
4720
|
}
|
|
4717
|
-
},
|
|
4718
|
-
function
|
|
4719
|
-
return d(), u("div",
|
|
4721
|
+
}, dd = { class: "flex flex-wrap gap-2 text-nowrap justify-center" };
|
|
4722
|
+
function ud(e, t, s, n, o, a) {
|
|
4723
|
+
return d(), u("div", dd, [
|
|
4720
4724
|
a.hasLabelColor == "Default" ? (d(), u("span", {
|
|
4721
4725
|
key: 0,
|
|
4722
4726
|
class: p(["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])
|
|
@@ -4751,7 +4755,7 @@ function dd(e, t, s, n, o, a) {
|
|
|
4751
4755
|
}, g(this.row[this.field]), 3)) : f("", !0)
|
|
4752
4756
|
]);
|
|
4753
4757
|
}
|
|
4754
|
-
const
|
|
4758
|
+
const nc = /* @__PURE__ */ D(id, [["render", ud]]), cd = {
|
|
4755
4759
|
props: ["field", "row", "tdProps"],
|
|
4756
4760
|
computed: {
|
|
4757
4761
|
hasLabelColor(e) {
|
|
@@ -4767,50 +4771,50 @@ const ac = /* @__PURE__ */ D(ld, [["render", dd]]), ud = {
|
|
|
4767
4771
|
return e ? e.label : "";
|
|
4768
4772
|
}
|
|
4769
4773
|
}
|
|
4770
|
-
},
|
|
4774
|
+
}, fd = { class: "flex flex-wrap gap-2 text-nowrap" }, gd = {
|
|
4771
4775
|
key: 0,
|
|
4772
4776
|
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"
|
|
4773
|
-
},
|
|
4777
|
+
}, hd = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), md = {
|
|
4774
4778
|
key: 1,
|
|
4775
4779
|
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"
|
|
4776
|
-
},
|
|
4780
|
+
}, bd = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), pd = {
|
|
4777
4781
|
key: 2,
|
|
4778
4782
|
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"
|
|
4779
|
-
},
|
|
4783
|
+
}, yd = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), _d = {
|
|
4780
4784
|
key: 3,
|
|
4781
4785
|
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"
|
|
4782
|
-
},
|
|
4786
|
+
}, vd = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1), xd = {
|
|
4783
4787
|
key: 4,
|
|
4784
4788
|
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"
|
|
4785
|
-
},
|
|
4789
|
+
}, wd = /* @__PURE__ */ r("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
4786
4790
|
/* @__PURE__ */ r("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
4787
4791
|
/* @__PURE__ */ r("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
4788
4792
|
], -1);
|
|
4789
|
-
function
|
|
4790
|
-
return d(), u("div",
|
|
4791
|
-
a.hasLabelColor == "green" ? (d(), u("span",
|
|
4792
|
-
|
|
4793
|
+
function kd(e, t, s, n, o, a) {
|
|
4794
|
+
return d(), u("div", fd, [
|
|
4795
|
+
a.hasLabelColor == "green" ? (d(), u("span", gd, [
|
|
4796
|
+
hd,
|
|
4793
4797
|
w(" " + g(a.getLabel), 1)
|
|
4794
4798
|
])) : f("", !0),
|
|
4795
|
-
a.hasLabelColor == "red" ? (d(), u("span",
|
|
4796
|
-
|
|
4799
|
+
a.hasLabelColor == "red" ? (d(), u("span", md, [
|
|
4800
|
+
bd,
|
|
4797
4801
|
w(" " + g(a.getLabel), 1)
|
|
4798
4802
|
])) : f("", !0),
|
|
4799
|
-
a.hasLabelColor == "yellow" ? (d(), u("span",
|
|
4800
|
-
|
|
4803
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", pd, [
|
|
4804
|
+
yd,
|
|
4801
4805
|
w(" " + g(a.getLabel), 1)
|
|
4802
4806
|
])) : f("", !0),
|
|
4803
|
-
a.hasLabelColor == "default" ? (d(), u("span",
|
|
4804
|
-
|
|
4807
|
+
a.hasLabelColor == "default" ? (d(), u("span", _d, [
|
|
4808
|
+
vd,
|
|
4805
4809
|
w(" " + g(a.getLabel), 1)
|
|
4806
4810
|
])) : f("", !0),
|
|
4807
|
-
a.hasLabelColor == "animate" ? (d(), u("span",
|
|
4808
|
-
|
|
4811
|
+
a.hasLabelColor == "animate" ? (d(), u("span", xd, [
|
|
4812
|
+
wd,
|
|
4809
4813
|
w(" " + g(a.getLabel), 1)
|
|
4810
4814
|
])) : f("", !0)
|
|
4811
4815
|
]);
|
|
4812
4816
|
}
|
|
4813
|
-
const
|
|
4817
|
+
const oc = /* @__PURE__ */ D(cd, [["render", kd]]), $d = {
|
|
4814
4818
|
props: ["field", "row", "tdProps"],
|
|
4815
4819
|
computed: {
|
|
4816
4820
|
formattedDate() {
|
|
@@ -4825,54 +4829,54 @@ const nc = /* @__PURE__ */ D(ud, [["render", wd]]), kd = {
|
|
|
4825
4829
|
return this.row[this.field] === 1;
|
|
4826
4830
|
}
|
|
4827
4831
|
}
|
|
4828
|
-
},
|
|
4829
|
-
function
|
|
4830
|
-
return d(), u("div",
|
|
4832
|
+
}, Cd = { class: "w-full" };
|
|
4833
|
+
function Sd(e, t, s, n, o, a) {
|
|
4834
|
+
return d(), u("div", Cd, g(a.formattedDate), 1);
|
|
4831
4835
|
}
|
|
4832
|
-
const
|
|
4836
|
+
const lc = /* @__PURE__ */ D($d, [["render", Sd]]), Dd = {
|
|
4833
4837
|
props: ["field", "row", "tdProps"]
|
|
4834
|
-
},
|
|
4838
|
+
}, Od = { class: "flex flex-wrap gap-2 text-nowrap" }, Pd = {
|
|
4835
4839
|
key: 0,
|
|
4836
4840
|
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"
|
|
4837
|
-
},
|
|
4841
|
+
}, Ad = /* @__PURE__ */ r("span", { class: "relative flex w-2 h-2 mr-1" }, [
|
|
4838
4842
|
/* @__PURE__ */ r("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
4839
4843
|
/* @__PURE__ */ r("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
4840
|
-
], -1),
|
|
4844
|
+
], -1), Ed = {
|
|
4841
4845
|
key: 1,
|
|
4842
4846
|
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"
|
|
4843
|
-
},
|
|
4847
|
+
}, jd = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), Td = {
|
|
4844
4848
|
key: 2,
|
|
4845
4849
|
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"
|
|
4846
|
-
},
|
|
4847
|
-
function
|
|
4848
|
-
return d(), u("div",
|
|
4849
|
-
s.row[s.field] === 0 ? (d(), u("span",
|
|
4850
|
-
|
|
4850
|
+
}, Md = /* @__PURE__ */ r("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1);
|
|
4851
|
+
function Ld(e, t, s, n, o, a) {
|
|
4852
|
+
return d(), u("div", Od, [
|
|
4853
|
+
s.row[s.field] === 0 ? (d(), u("span", Pd, [
|
|
4854
|
+
Ad,
|
|
4851
4855
|
w(" Provisioning")
|
|
4852
4856
|
])) : f("", !0),
|
|
4853
|
-
s.row[s.field] === 2 ? (d(), u("span",
|
|
4854
|
-
|
|
4857
|
+
s.row[s.field] === 2 ? (d(), u("span", Ed, [
|
|
4858
|
+
jd,
|
|
4855
4859
|
w(" Paused ")
|
|
4856
4860
|
])) : f("", !0),
|
|
4857
|
-
s.row[s.field] === 1 ? (d(), u("span",
|
|
4858
|
-
|
|
4861
|
+
s.row[s.field] === 1 ? (d(), u("span", Td, [
|
|
4862
|
+
Md,
|
|
4859
4863
|
w(" Active ")
|
|
4860
4864
|
])) : f("", !0)
|
|
4861
4865
|
]);
|
|
4862
4866
|
}
|
|
4863
|
-
const
|
|
4867
|
+
const ic = /* @__PURE__ */ D(Dd, [["render", Ld]]), Nd = {
|
|
4864
4868
|
props: ["field", "row", "tdProps"]
|
|
4865
|
-
},
|
|
4869
|
+
}, Id = {
|
|
4866
4870
|
key: 0,
|
|
4867
4871
|
class: "text-nowrap"
|
|
4868
|
-
},
|
|
4869
|
-
function
|
|
4870
|
-
return s.row[s.field] ? (d(), u("div",
|
|
4871
|
-
r("pre",
|
|
4872
|
+
}, Vd = { class: "w-full h-full p-3 mx-0 mt-0 overflow-auto font-mono text-left break-words rounded cursor-default whitespace-nowrap console_styles" };
|
|
4873
|
+
function Bd(e, t, s, n, o, a) {
|
|
4874
|
+
return s.row[s.field] ? (d(), u("div", Id, [
|
|
4875
|
+
r("pre", Vd, " " + g(s.row[s.field]) + `
|
|
4872
4876
|
`, 1)
|
|
4873
4877
|
])) : f("", !0);
|
|
4874
4878
|
}
|
|
4875
|
-
const
|
|
4879
|
+
const dc = /* @__PURE__ */ D(Nd, [["render", Bd]]), Gd = {
|
|
4876
4880
|
props: ["isOpen", "title", "button_text"],
|
|
4877
4881
|
methods: {
|
|
4878
4882
|
confirmAction() {
|
|
@@ -4882,35 +4886,35 @@ const ic = /* @__PURE__ */ D(Ld, [["render", Vd]]), Bd = {
|
|
|
4882
4886
|
this.$emit("cancel-action");
|
|
4883
4887
|
}
|
|
4884
4888
|
}
|
|
4885
|
-
},
|
|
4889
|
+
}, Ud = {
|
|
4886
4890
|
key: 0,
|
|
4887
4891
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
4888
4892
|
role: "dialog",
|
|
4889
4893
|
"aria-modal": "true"
|
|
4890
|
-
},
|
|
4894
|
+
}, Rd = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, Fd = /* @__PURE__ */ r("div", {
|
|
4891
4895
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
4892
4896
|
"aria-hidden": "true"
|
|
4893
|
-
}, null, -1),
|
|
4897
|
+
}, null, -1), qd = /* @__PURE__ */ r("span", {
|
|
4894
4898
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4895
4899
|
"aria-hidden": "true"
|
|
4896
|
-
}, "", -1),
|
|
4897
|
-
function
|
|
4898
|
-
return s.isOpen ? (d(), u("div",
|
|
4899
|
-
r("div",
|
|
4900
|
-
Rd,
|
|
4900
|
+
}, "", -1), Hd = { 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" }, zd = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, Zd = { class: "sm:flex sm:items-start" }, Kd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, Wd = { class: "text-lg font-medium leading-6 text-gray-900" }, Yd = { class: "mt-2" }, Xd = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
4901
|
+
function Jd(e, t, s, n, o, a) {
|
|
4902
|
+
return s.isOpen ? (d(), u("div", Ud, [
|
|
4903
|
+
r("div", Rd, [
|
|
4901
4904
|
Fd,
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
r("
|
|
4905
|
+
qd,
|
|
4906
|
+
r("div", Hd, [
|
|
4907
|
+
r("div", zd, [
|
|
4908
|
+
r("div", Zd, [
|
|
4909
|
+
r("div", Kd, [
|
|
4910
|
+
r("h3", Wd, g(s.title), 1),
|
|
4911
|
+
r("div", Yd, [
|
|
4908
4912
|
N(e.$slots, "default")
|
|
4909
4913
|
])
|
|
4910
4914
|
])
|
|
4911
4915
|
])
|
|
4912
4916
|
]),
|
|
4913
|
-
r("div",
|
|
4917
|
+
r("div", Xd, [
|
|
4914
4918
|
r("button", {
|
|
4915
4919
|
onClick: t[0] || (t[0] = (...i) => a.confirmAction && a.confirmAction(...i)),
|
|
4916
4920
|
type: "button",
|
|
@@ -4926,10 +4930,10 @@ function Xd(e, t, s, n, o, a) {
|
|
|
4926
4930
|
])
|
|
4927
4931
|
])) : f("", !0);
|
|
4928
4932
|
}
|
|
4929
|
-
const
|
|
4933
|
+
const uc = /* @__PURE__ */ D(Gd, [["render", Jd]]), Qd = { class: "w-full" }, eu = { class: "mb-2 flex justify-between items-center" }, tu = { class: "text-sm font-medium text-gray-900 dark:text-white" }, ru = { class: "relative bg-gray-50 rounded-lg dark:bg-gray-700 p-4 h-auto" }, su = { class: "overflow-auto max-h-32" }, au = { class: "text-sm text-gray-500 dark:text-gray-400" }, nu = { class: "absolute top-2 end-2 bg-gray-50 dark:bg-gray-700" }, ou = {
|
|
4930
4934
|
key: 0,
|
|
4931
4935
|
class: "inline-flex items-center"
|
|
4932
|
-
},
|
|
4936
|
+
}, lu = /* @__PURE__ */ r("svg", {
|
|
4933
4937
|
class: "w-3 h-3 me-2",
|
|
4934
4938
|
"aria-hidden": "true",
|
|
4935
4939
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4937,13 +4941,13 @@ const dc = /* @__PURE__ */ D(Bd, [["render", Xd]]), Jd = { class: "w-full" }, Qd
|
|
|
4937
4941
|
viewBox: "0 0 18 20"
|
|
4938
4942
|
}, [
|
|
4939
4943
|
/* @__PURE__ */ r("path", { d: "M16 1h-3.278A1.992 1.992 0 0 0 11 0H7a1.993 1.993 0 0 0-1.722 1H2a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2Zm-3 14H5a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2Zm0-4H5a1 1 0 0 1 0-2h8a1 1 0 1 1 0 2Zm0-5H5a1 1 0 0 1 0-2h2V2h4v2h2a1 1 0 1 1 0 2Z" })
|
|
4940
|
-
], -1),
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
],
|
|
4944
|
+
], -1), iu = /* @__PURE__ */ r("span", { class: "text-xs font-semibold" }, "Copy", -1), du = [
|
|
4945
|
+
lu,
|
|
4946
|
+
iu
|
|
4947
|
+
], uu = {
|
|
4944
4948
|
key: 1,
|
|
4945
4949
|
class: "inline-flex items-center"
|
|
4946
|
-
},
|
|
4950
|
+
}, cu = /* @__PURE__ */ r("svg", {
|
|
4947
4951
|
class: "w-3 h-3 text-blue-700 dark:text-blue-500 me-2",
|
|
4948
4952
|
"aria-hidden": "true",
|
|
4949
4953
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4957,10 +4961,10 @@ const dc = /* @__PURE__ */ D(Bd, [["render", Xd]]), Jd = { class: "w-full" }, Qd
|
|
|
4957
4961
|
"stroke-width": "2",
|
|
4958
4962
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
4959
4963
|
})
|
|
4960
|
-
], -1),
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
],
|
|
4964
|
+
], -1), fu = /* @__PURE__ */ r("span", { class: "text-xs font-semibold text-blue-700 dark:text-blue-500" }, "Copied", -1), gu = [
|
|
4965
|
+
cu,
|
|
4966
|
+
fu
|
|
4967
|
+
], hu = { class: "mt-2 text-sm text-gray-500 dark:text-gray-400" }, cc = {
|
|
4964
4968
|
__name: "GlCodeCopy",
|
|
4965
4969
|
props: {
|
|
4966
4970
|
label_name: {
|
|
@@ -4986,28 +4990,28 @@ const dc = /* @__PURE__ */ D(Bd, [["render", Xd]]), Jd = { class: "w-full" }, Qd
|
|
|
4986
4990
|
console.error("Error copying to clipboard: ", i);
|
|
4987
4991
|
});
|
|
4988
4992
|
}, o = M(() => t.code);
|
|
4989
|
-
return (a, i) => (d(), u("div",
|
|
4990
|
-
r("div",
|
|
4991
|
-
r("p",
|
|
4993
|
+
return (a, i) => (d(), u("div", Qd, [
|
|
4994
|
+
r("div", eu, [
|
|
4995
|
+
r("p", tu, g(e.label_name), 1)
|
|
4992
4996
|
]),
|
|
4993
|
-
r("div",
|
|
4994
|
-
r("div",
|
|
4995
|
-
r("code",
|
|
4997
|
+
r("div", ru, [
|
|
4998
|
+
r("div", su, [
|
|
4999
|
+
r("code", au, g(o.value), 1)
|
|
4996
5000
|
]),
|
|
4997
|
-
r("div",
|
|
5001
|
+
r("div", nu, [
|
|
4998
5002
|
r("button", {
|
|
4999
5003
|
onClick: i[0] || (i[0] = (l) => n(o.value)),
|
|
5000
5004
|
class: "text-gray-900 dark:text-gray-400 m-1 hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-3 inline-flex items-center justify-center bg-white border-gray-200 border"
|
|
5001
5005
|
}, [
|
|
5002
|
-
s.value ? f("", !0) : (d(), u("span",
|
|
5003
|
-
s.value ? (d(), u("span",
|
|
5006
|
+
s.value ? f("", !0) : (d(), u("span", ou, du)),
|
|
5007
|
+
s.value ? (d(), u("span", uu, gu)) : f("", !0)
|
|
5004
5008
|
])
|
|
5005
5009
|
])
|
|
5006
5010
|
]),
|
|
5007
|
-
r("p",
|
|
5011
|
+
r("p", hu, g(e.description), 1)
|
|
5008
5012
|
]));
|
|
5009
5013
|
}
|
|
5010
|
-
},
|
|
5014
|
+
}, mu = { class: "w-full" }, bu = { class: "flex justify-between items-center" }, pu = { class: "gl-label-form" }, yu = { class: "flex items-center" }, _u = { class: "flex-shrink-0 z-10 inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-gray-100 border border-gray-300 rounded-s-lg dark:bg-gray-600 dark:text-white dark:border-gray-600" }, vu = { class: "relative w-full" }, xu = ["value"], wu = { key: 0 }, ku = /* @__PURE__ */ r("svg", {
|
|
5011
5015
|
class: "w-4 h-4",
|
|
5012
5016
|
"aria-hidden": "true",
|
|
5013
5017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5015,12 +5019,12 @@ const dc = /* @__PURE__ */ D(Bd, [["render", Xd]]), Jd = { class: "w-full" }, Qd
|
|
|
5015
5019
|
viewBox: "0 0 18 20"
|
|
5016
5020
|
}, [
|
|
5017
5021
|
/* @__PURE__ */ r("path", { d: "M16 1h-3.278A1.992 1.992 0 0 0 11 0H7a1.993 1.993 0 0 0-1.722 1H2a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2Zm-3 14H5a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2Zm0-4H5a1 1 0 0 1 0-2h8a1 1 0 1 1 0 2Zm0-5H5a1 1 0 0 1 0-2h2V2h4v2h2a1 1 0 1 1 0 2Z" })
|
|
5018
|
-
], -1),
|
|
5019
|
-
|
|
5020
|
-
],
|
|
5022
|
+
], -1), $u = [
|
|
5023
|
+
ku
|
|
5024
|
+
], Cu = {
|
|
5021
5025
|
key: 1,
|
|
5022
5026
|
class: "inline-flex items-center"
|
|
5023
|
-
},
|
|
5027
|
+
}, Su = /* @__PURE__ */ r("svg", {
|
|
5024
5028
|
class: "w-4 h-4",
|
|
5025
5029
|
"aria-hidden": "true",
|
|
5026
5030
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5034,9 +5038,9 @@ const dc = /* @__PURE__ */ D(Bd, [["render", Xd]]), Jd = { class: "w-full" }, Qd
|
|
|
5034
5038
|
"stroke-width": "2",
|
|
5035
5039
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
5036
5040
|
})
|
|
5037
|
-
], -1),
|
|
5038
|
-
|
|
5039
|
-
],
|
|
5041
|
+
], -1), Du = [
|
|
5042
|
+
Su
|
|
5043
|
+
], Ou = { class: "mt-2 text-sm text-gray-500 dark:text-gray-400" }, fc = {
|
|
5040
5044
|
__name: "GlTextCopy",
|
|
5041
5045
|
props: {
|
|
5042
5046
|
label_name: {
|
|
@@ -5066,13 +5070,13 @@ const dc = /* @__PURE__ */ D(Bd, [["render", Xd]]), Jd = { class: "w-full" }, Qd
|
|
|
5066
5070
|
console.error("Error copying to clipboard: ", i);
|
|
5067
5071
|
});
|
|
5068
5072
|
}, o = M(() => t.code);
|
|
5069
|
-
return (a, i) => (d(), u("div",
|
|
5070
|
-
r("div",
|
|
5071
|
-
r("label",
|
|
5073
|
+
return (a, i) => (d(), u("div", mu, [
|
|
5074
|
+
r("div", bu, [
|
|
5075
|
+
r("label", pu, g(e.label_name), 1)
|
|
5072
5076
|
]),
|
|
5073
|
-
r("div",
|
|
5074
|
-
r("span",
|
|
5075
|
-
r("div",
|
|
5077
|
+
r("div", yu, [
|
|
5078
|
+
r("span", _u, g(e.text_name), 1),
|
|
5079
|
+
r("div", vu, [
|
|
5076
5080
|
r("input", {
|
|
5077
5081
|
type: "text",
|
|
5078
5082
|
"aria-describedby": "helper-text-explanation",
|
|
@@ -5080,7 +5084,7 @@ const dc = /* @__PURE__ */ D(Bd, [["render", Xd]]), Jd = { class: "w-full" }, Qd
|
|
|
5080
5084
|
value: o.value,
|
|
5081
5085
|
readonly: "",
|
|
5082
5086
|
disabled: ""
|
|
5083
|
-
}, null, 8,
|
|
5087
|
+
}, null, 8, xu)
|
|
5084
5088
|
]),
|
|
5085
5089
|
r("button", {
|
|
5086
5090
|
style: { padding: ".61rem" },
|
|
@@ -5088,53 +5092,53 @@ const dc = /* @__PURE__ */ D(Bd, [["render", Xd]]), Jd = { class: "w-full" }, Qd
|
|
|
5088
5092
|
class: "flex-shrink-0 z-10 inline-flex items-center px-4 text-sm font-medium text-center text-white bg-blue-700 rounded-e-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 border border-blue-700 dark:border-blue-600 hover:border-blue-800 dark:hover:border-blue-700",
|
|
5089
5093
|
type: "button"
|
|
5090
5094
|
}, [
|
|
5091
|
-
s.value ? f("", !0) : (d(), u("span",
|
|
5092
|
-
s.value ? (d(), u("span",
|
|
5095
|
+
s.value ? f("", !0) : (d(), u("span", wu, $u)),
|
|
5096
|
+
s.value ? (d(), u("span", Cu, Du)) : f("", !0)
|
|
5093
5097
|
])
|
|
5094
5098
|
]),
|
|
5095
|
-
r("p",
|
|
5099
|
+
r("p", Ou, g(e.description), 1)
|
|
5096
5100
|
]));
|
|
5097
5101
|
}
|
|
5098
5102
|
};
|
|
5099
5103
|
export {
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5104
|
+
oc as DatatableStatusTextLabelGeneral,
|
|
5105
|
+
dc as GLDatatableCommand,
|
|
5106
|
+
lc as GLDatatableDateTime,
|
|
5107
|
+
ic as GLDatatableStatusServer,
|
|
5108
|
+
Lu as GlButton,
|
|
5109
|
+
Tu as GlCard,
|
|
5110
|
+
cc as GlCodeCopy,
|
|
5111
|
+
uc as GlConfirmationModal,
|
|
5112
|
+
Ku as GlDataTable,
|
|
5113
|
+
Zu as GlDataTableServerSide,
|
|
5114
|
+
Yu as GlDatatableAction,
|
|
5115
|
+
Xu as GlDatatableDeleteAction,
|
|
5116
|
+
Ju as GlDatatableFileDownload,
|
|
5117
|
+
Qu as GlDatatableFiles,
|
|
5118
|
+
ec as GlDatatableHtml,
|
|
5119
|
+
tc as GlDatatableList,
|
|
5120
|
+
rc as GlDatatablePicture,
|
|
5121
|
+
sc as GlDatatableStatus,
|
|
5122
|
+
ac as GlDatatableStatusGeneral,
|
|
5123
|
+
nc as GlDatatableStatusSpecficColor,
|
|
5120
5124
|
xe as GlDeleteConfirmationModal,
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5125
|
+
Hu as GlDropdown,
|
|
5126
|
+
Au as GlFilesUpload,
|
|
5127
|
+
ju as GlLanguageSelector,
|
|
5128
|
+
Fu as GlModal,
|
|
5129
|
+
Ru as GlMultiItemSlide,
|
|
5130
|
+
Mu as GlMultiSelectDropdown,
|
|
5131
|
+
Eu as GlNotify,
|
|
5132
|
+
Uu as GlTab,
|
|
5133
|
+
Gu as GlTabsWrapper,
|
|
5134
|
+
_o as GlTailwindPagination,
|
|
5135
|
+
fc as GlTextCopy,
|
|
5136
|
+
Bu as GlTextInput,
|
|
5137
|
+
Vu as GlTextTranslate,
|
|
5138
|
+
zu as GlTextarea,
|
|
5139
|
+
Nu as GlTextareaTranslate,
|
|
5140
|
+
Iu as GlTinymceTranslate,
|
|
5141
|
+
Ee as GlToast,
|
|
5142
|
+
Wu as GlToastList,
|
|
5143
|
+
qu as GlToggleBox
|
|
5140
5144
|
};
|