golden-logic-ui 1.0.41 → 1.0.43
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 +1027 -1027
- package/dist/golden-logic-ui.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as He, inject as ve, watch as W, effectScope as Ze, computed as z, reactive as xe, resolveComponent as X, Fragment as v, createVNode as H, normalizeClass as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as He, inject as ve, watch as W, effectScope as Ze, computed as z, reactive as xe, resolveComponent as X, Fragment as v, createVNode as H, normalizeClass as p, toDisplayString as h, withModifiers as M, withDirectives as P, vModelText as V, renderList as $, normalizeStyle as Ke, renderSlot as A, createTextVNode as w, vShow as B, createBlock as Z, resolveDynamicComponent as se, mergeProps as K, withCtx as Y, ref as O, onMounted as G, vModelDynamic as We, provide as Xe, pushScopeId as Ye, popScopeId as Je, vModelCheckbox as Qe, nextTick as et, refs as tt, toHandlers as te, TransitionGroup as rt, unref as st, resolveDirective as we, markRaw as nt } from "vue";
|
|
2
2
|
const D = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
|
-
for (const [n,
|
|
5
|
-
r[n] =
|
|
4
|
+
for (const [n, o] of t)
|
|
5
|
+
r[n] = o;
|
|
6
6
|
return r;
|
|
7
|
-
},
|
|
7
|
+
}, at = {
|
|
8
8
|
props: ["isOpen"],
|
|
9
9
|
methods: {
|
|
10
10
|
confirmDeletion() {
|
|
@@ -14,34 +14,34 @@ const D = (e, t) => {
|
|
|
14
14
|
this.$emit("cancel-delete");
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
},
|
|
17
|
+
}, ot = {
|
|
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
|
+
}, it = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, lt = /* @__PURE__ */ s("div", {
|
|
24
24
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
25
25
|
"aria-hidden": "true"
|
|
26
|
-
}, null, -1),
|
|
26
|
+
}, null, -1), dt = /* @__PURE__ */ s("span", {
|
|
27
27
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
|
-
}, "", -1),
|
|
30
|
-
function
|
|
31
|
-
return r.isOpen ? (d(), u("div",
|
|
32
|
-
s("div",
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
s("div",
|
|
36
|
-
|
|
37
|
-
s("div",
|
|
29
|
+
}, "", -1), ut = { 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" }, ct = /* @__PURE__ */ He('<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), ft = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
30
|
+
function ht(e, t, r, n, o, a) {
|
|
31
|
+
return r.isOpen ? (d(), u("div", ot, [
|
|
32
|
+
s("div", it, [
|
|
33
|
+
lt,
|
|
34
|
+
dt,
|
|
35
|
+
s("div", ut, [
|
|
36
|
+
ct,
|
|
37
|
+
s("div", ft, [
|
|
38
38
|
s("button", {
|
|
39
|
-
onClick: t[0] || (t[0] = (...l) =>
|
|
39
|
+
onClick: t[0] || (t[0] = (...l) => a.confirmDeletion && a.confirmDeletion(...l)),
|
|
40
40
|
type: "button",
|
|
41
41
|
class: "inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
42
42
|
}, " Delete "),
|
|
43
43
|
s("button", {
|
|
44
|
-
onClick: t[1] || (t[1] = (...l) =>
|
|
44
|
+
onClick: t[1] || (t[1] = (...l) => a.cancelDeletion && a.cancelDeletion(...l)),
|
|
45
45
|
type: "button",
|
|
46
46
|
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
47
47
|
}, " Cancel ")
|
|
@@ -50,23 +50,23 @@ function ct(e, t, r, n, a, o) {
|
|
|
50
50
|
])
|
|
51
51
|
])) : g("", !0);
|
|
52
52
|
}
|
|
53
|
-
const ie = /* @__PURE__ */ D(
|
|
54
|
-
function
|
|
53
|
+
const ie = /* @__PURE__ */ D(at, [["render", ht]]);
|
|
54
|
+
function gt() {
|
|
55
55
|
return ke().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
56
56
|
}
|
|
57
57
|
function ke() {
|
|
58
58
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const mt = typeof Proxy == "function", pt = "devtools-plugin:setup", _t = "plugin:settings:set";
|
|
61
61
|
let U, ne;
|
|
62
|
-
function
|
|
62
|
+
function bt() {
|
|
63
63
|
var e;
|
|
64
64
|
return U !== void 0 || (typeof window < "u" && window.performance ? (U = !0, ne = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (U = !0, ne = globalThis.perf_hooks.performance) : U = !1), U;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function yt() {
|
|
67
|
+
return bt() ? ne.now() : Date.now();
|
|
68
68
|
}
|
|
69
|
-
class
|
|
69
|
+
class vt {
|
|
70
70
|
constructor(t, r) {
|
|
71
71
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = r;
|
|
72
72
|
const n = {};
|
|
@@ -75,28 +75,28 @@ class bt {
|
|
|
75
75
|
const i = t.settings[l];
|
|
76
76
|
n[l] = i.defaultValue;
|
|
77
77
|
}
|
|
78
|
-
const
|
|
79
|
-
let
|
|
78
|
+
const o = `__vue-devtools-plugin-settings__${t.id}`;
|
|
79
|
+
let a = Object.assign({}, n);
|
|
80
80
|
try {
|
|
81
|
-
const l = localStorage.getItem(
|
|
82
|
-
Object.assign(
|
|
81
|
+
const l = localStorage.getItem(o), i = JSON.parse(l);
|
|
82
|
+
Object.assign(a, i);
|
|
83
83
|
} catch {
|
|
84
84
|
}
|
|
85
85
|
this.fallbacks = {
|
|
86
86
|
getSettings() {
|
|
87
|
-
return
|
|
87
|
+
return a;
|
|
88
88
|
},
|
|
89
89
|
setSettings(l) {
|
|
90
90
|
try {
|
|
91
|
-
localStorage.setItem(
|
|
91
|
+
localStorage.setItem(o, JSON.stringify(l));
|
|
92
92
|
} catch {
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
a = l;
|
|
95
95
|
},
|
|
96
96
|
now() {
|
|
97
|
-
return
|
|
97
|
+
return yt();
|
|
98
98
|
}
|
|
99
|
-
}, r && r.on(
|
|
99
|
+
}, r && r.on(_t, (l, i) => {
|
|
100
100
|
l === this.plugin.id && this.fallbacks.setSettings(i);
|
|
101
101
|
}), this.proxiedOn = new Proxy({}, {
|
|
102
102
|
get: (l, i) => this.target ? this.target.on[i] : (...c) => {
|
|
@@ -128,12 +128,12 @@ class bt {
|
|
|
128
128
|
r.resolve(await this.target[r.method](...r.args));
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
const r = e, n = ke(),
|
|
133
|
-
if (
|
|
134
|
-
|
|
131
|
+
function xt(e, t) {
|
|
132
|
+
const r = e, n = ke(), o = gt(), a = mt && r.enableEarlyProxy;
|
|
133
|
+
if (o && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
134
|
+
o.emit(pt, e, t);
|
|
135
135
|
else {
|
|
136
|
-
const l =
|
|
136
|
+
const l = a ? new vt(r, o) : null;
|
|
137
137
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
138
138
|
pluginDescriptor: r,
|
|
139
139
|
setupFn: t,
|
|
@@ -158,14 +158,14 @@ function F(e, t) {
|
|
|
158
158
|
function Se(e) {
|
|
159
159
|
return e !== null && typeof e == "object";
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function wt(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 kt(e, t) {
|
|
169
169
|
return function() {
|
|
170
170
|
return e(t);
|
|
171
171
|
};
|
|
@@ -182,12 +182,12 @@ function De(e, t) {
|
|
|
182
182
|
Q(e, r, [], e._modules.root, !0), le(e, r, t);
|
|
183
183
|
}
|
|
184
184
|
function le(e, t, r) {
|
|
185
|
-
var n = e._state,
|
|
185
|
+
var n = e._state, o = e._scope;
|
|
186
186
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
187
|
-
var
|
|
187
|
+
var a = e._wrappedGetters, l = {}, i = {}, c = Ze(!0);
|
|
188
188
|
c.run(function() {
|
|
189
|
-
F(
|
|
190
|
-
l[m] =
|
|
189
|
+
F(a, function(f, m) {
|
|
190
|
+
l[m] = kt(f, e), i[m] = z(function() {
|
|
191
191
|
return l[m]();
|
|
192
192
|
}), Object.defineProperty(e.getters, m, {
|
|
193
193
|
get: function() {
|
|
@@ -199,13 +199,13 @@ function le(e, t, r) {
|
|
|
199
199
|
});
|
|
200
200
|
}), e._state = xe({
|
|
201
201
|
data: t
|
|
202
|
-
}), e._scope = c, e.strict &&
|
|
202
|
+
}), e._scope = c, e.strict && Dt(e), n && r && e._withCommit(function() {
|
|
203
203
|
n.data = null;
|
|
204
|
-
}),
|
|
204
|
+
}), o && o.stop();
|
|
205
205
|
}
|
|
206
|
-
function Q(e, t, r, n,
|
|
207
|
-
var
|
|
208
|
-
if (n.namespaced && (e._modulesNamespaceMap[l] && process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + l + " for the namespaced module " + r.join("/")), e._modulesNamespaceMap[l] = n), !
|
|
206
|
+
function Q(e, t, r, n, o) {
|
|
207
|
+
var a = !r.length, l = e._modules.getNamespace(r);
|
|
208
|
+
if (n.namespaced && (e._modulesNamespaceMap[l] && process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + l + " for the namespaced module " + r.join("/")), e._modulesNamespaceMap[l] = n), !a && !o) {
|
|
209
209
|
var i = de(t, r.slice(0, -1)), c = r[r.length - 1];
|
|
210
210
|
e._withCommit(function() {
|
|
211
211
|
process.env.NODE_ENV !== "production" && c in i && console.warn(
|
|
@@ -213,32 +213,32 @@ function Q(e, t, r, n, a) {
|
|
|
213
213
|
), i[c] = n.state;
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
var f = n.context =
|
|
216
|
+
var f = n.context = $t(e, l, r);
|
|
217
217
|
n.forEachMutation(function(m, y) {
|
|
218
218
|
var x = l + y;
|
|
219
|
-
|
|
219
|
+
Ct(e, x, m, f);
|
|
220
220
|
}), n.forEachAction(function(m, y) {
|
|
221
221
|
var x = m.root ? y : l + y, C = m.handler || m;
|
|
222
|
-
|
|
222
|
+
St(e, x, C, f);
|
|
223
223
|
}), n.forEachGetter(function(m, y) {
|
|
224
224
|
var x = l + y;
|
|
225
|
-
|
|
225
|
+
Ot(e, x, m, f);
|
|
226
226
|
}), n.forEachChild(function(m, y) {
|
|
227
|
-
Q(e, t, r.concat(y), m,
|
|
227
|
+
Q(e, t, r.concat(y), m, o);
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
var n = t === "",
|
|
232
|
-
dispatch: n ? e.dispatch : function(
|
|
233
|
-
var c = J(
|
|
230
|
+
function $t(e, t, r) {
|
|
231
|
+
var n = t === "", o = {
|
|
232
|
+
dispatch: n ? e.dispatch : function(a, l, i) {
|
|
233
|
+
var c = J(a, l, i), f = c.payload, m = c.options, y = c.type;
|
|
234
234
|
if ((!m || !m.root) && (y = t + y, process.env.NODE_ENV !== "production" && !e._actions[y])) {
|
|
235
235
|
console.error("[vuex] unknown local action type: " + c.type + ", global type: " + y);
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
238
|
return e.dispatch(y, f);
|
|
239
239
|
},
|
|
240
|
-
commit: n ? e.commit : function(
|
|
241
|
-
var c = J(
|
|
240
|
+
commit: n ? e.commit : function(a, l, i) {
|
|
241
|
+
var c = J(a, l, i), f = c.payload, m = c.options, y = c.type;
|
|
242
242
|
if ((!m || !m.root) && (y = t + y, process.env.NODE_ENV !== "production" && !e._mutations[y])) {
|
|
243
243
|
console.error("[vuex] unknown local mutation type: " + c.type + ", global type: " + y);
|
|
244
244
|
return;
|
|
@@ -246,7 +246,7 @@ function wt(e, t, r) {
|
|
|
246
246
|
e.commit(y, f, m);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
return Object.defineProperties(
|
|
249
|
+
return Object.defineProperties(o, {
|
|
250
250
|
getters: {
|
|
251
251
|
get: n ? function() {
|
|
252
252
|
return e.getters;
|
|
@@ -259,17 +259,17 @@ function wt(e, t, r) {
|
|
|
259
259
|
return de(e.state, r);
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
}),
|
|
262
|
+
}), o;
|
|
263
263
|
}
|
|
264
264
|
function Pe(e, t) {
|
|
265
265
|
if (!e._makeLocalGettersCache[t]) {
|
|
266
266
|
var r = {}, n = t.length;
|
|
267
|
-
Object.keys(e.getters).forEach(function(
|
|
268
|
-
if (
|
|
269
|
-
var
|
|
270
|
-
Object.defineProperty(r,
|
|
267
|
+
Object.keys(e.getters).forEach(function(o) {
|
|
268
|
+
if (o.slice(0, n) === t) {
|
|
269
|
+
var a = o.slice(n);
|
|
270
|
+
Object.defineProperty(r, a, {
|
|
271
271
|
get: function() {
|
|
272
|
-
return e.getters[
|
|
272
|
+
return e.getters[o];
|
|
273
273
|
},
|
|
274
274
|
enumerable: !0
|
|
275
275
|
});
|
|
@@ -278,15 +278,15 @@ function Pe(e, t) {
|
|
|
278
278
|
}
|
|
279
279
|
return e._makeLocalGettersCache[t];
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
var
|
|
283
|
-
|
|
281
|
+
function Ct(e, t, r, n) {
|
|
282
|
+
var o = e._mutations[t] || (e._mutations[t] = []);
|
|
283
|
+
o.push(function(l) {
|
|
284
284
|
r.call(e, n.state, l);
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
var
|
|
289
|
-
|
|
287
|
+
function St(e, t, r, n) {
|
|
288
|
+
var o = e._actions[t] || (e._actions[t] = []);
|
|
289
|
+
o.push(function(l) {
|
|
290
290
|
var i = r.call(e, {
|
|
291
291
|
dispatch: n.dispatch,
|
|
292
292
|
commit: n.commit,
|
|
@@ -295,30 +295,30 @@ function $t(e, t, r, n) {
|
|
|
295
295
|
rootGetters: e.getters,
|
|
296
296
|
rootState: e.state
|
|
297
297
|
}, l);
|
|
298
|
-
return
|
|
298
|
+
return wt(i) || (i = Promise.resolve(i)), e._devtoolHook ? i.catch(function(c) {
|
|
299
299
|
throw e._devtoolHook.emit("vuex:error", c), c;
|
|
300
300
|
}) : i;
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Ot(e, t, r, n) {
|
|
304
304
|
if (e._wrappedGetters[t]) {
|
|
305
305
|
process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + t);
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
|
-
e._wrappedGetters[t] = function(
|
|
308
|
+
e._wrappedGetters[t] = function(a) {
|
|
309
309
|
return r(
|
|
310
310
|
n.state,
|
|
311
311
|
// local state
|
|
312
312
|
n.getters,
|
|
313
313
|
// local getters
|
|
314
|
-
|
|
314
|
+
a.state,
|
|
315
315
|
// root state
|
|
316
|
-
|
|
316
|
+
a.getters
|
|
317
317
|
// root getters
|
|
318
318
|
);
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Dt(e) {
|
|
322
322
|
W(function() {
|
|
323
323
|
return e._state.data;
|
|
324
324
|
}, function() {
|
|
@@ -333,9 +333,9 @@ function de(e, t) {
|
|
|
333
333
|
function J(e, t, r) {
|
|
334
334
|
return Se(e) && e.type && (r = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && I(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: t, options: r };
|
|
335
335
|
}
|
|
336
|
-
var
|
|
337
|
-
function
|
|
338
|
-
|
|
336
|
+
var Pt = "vuex bindings", me = "vuex:mutations", re = "vuex:actions", q = "vuex", Et = 0;
|
|
337
|
+
function jt(e, t) {
|
|
338
|
+
xt(
|
|
339
339
|
{
|
|
340
340
|
id: "org.vuejs.vuex",
|
|
341
341
|
app: e,
|
|
@@ -343,7 +343,7 @@ function Pt(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: [Pt]
|
|
347
347
|
},
|
|
348
348
|
function(r) {
|
|
349
349
|
r.addTimelineLayer({
|
|
@@ -362,69 +362,69 @@ function Pt(e, t) {
|
|
|
362
362
|
}), r.on.getInspectorTree(function(n) {
|
|
363
363
|
if (n.app === e && n.inspectorId === q)
|
|
364
364
|
if (n.filter) {
|
|
365
|
-
var
|
|
366
|
-
Ie(
|
|
365
|
+
var o = [];
|
|
366
|
+
Ie(o, t._modules.root, n.filter, ""), n.rootNodes = o;
|
|
367
367
|
} else
|
|
368
368
|
n.rootNodes = [
|
|
369
369
|
Ae(t._modules.root, "")
|
|
370
370
|
];
|
|
371
371
|
}), r.on.getInspectorState(function(n) {
|
|
372
372
|
if (n.app === e && n.inspectorId === q) {
|
|
373
|
-
var
|
|
374
|
-
Pe(t,
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
373
|
+
var o = n.nodeId;
|
|
374
|
+
Pe(t, o), n.state = Tt(
|
|
375
|
+
Nt(t._modules, o),
|
|
376
|
+
o === "root" ? t.getters : t._makeLocalGettersCache,
|
|
377
|
+
o
|
|
378
378
|
);
|
|
379
379
|
}
|
|
380
380
|
}), r.on.editInspectorState(function(n) {
|
|
381
381
|
if (n.app === e && n.inspectorId === q) {
|
|
382
|
-
var
|
|
383
|
-
|
|
384
|
-
n.set(t._state.data,
|
|
382
|
+
var o = n.nodeId, a = n.path;
|
|
383
|
+
o !== "root" && (a = o.split("/").filter(Boolean).concat(a)), t._withCommit(function() {
|
|
384
|
+
n.set(t._state.data, a, n.state.value);
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
}), t.subscribe(function(n,
|
|
388
|
-
var
|
|
389
|
-
n.payload && (
|
|
387
|
+
}), t.subscribe(function(n, o) {
|
|
388
|
+
var a = {};
|
|
389
|
+
n.payload && (a.payload = n.payload), a.state = o, r.notifyComponentUpdate(), r.sendInspectorTree(q), r.sendInspectorState(q), r.addTimelineEvent({
|
|
390
390
|
layerId: me,
|
|
391
391
|
event: {
|
|
392
392
|
time: Date.now(),
|
|
393
393
|
title: n.type,
|
|
394
|
-
data:
|
|
394
|
+
data: a
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}), t.subscribeAction({
|
|
398
|
-
before: function(n,
|
|
399
|
-
var
|
|
400
|
-
n.payload && (
|
|
398
|
+
before: function(n, o) {
|
|
399
|
+
var a = {};
|
|
400
|
+
n.payload && (a.payload = n.payload), n._id = Et++, n._time = Date.now(), a.state = o, r.addTimelineEvent({
|
|
401
401
|
layerId: re,
|
|
402
402
|
event: {
|
|
403
403
|
time: n._time,
|
|
404
404
|
title: n.type,
|
|
405
405
|
groupId: n._id,
|
|
406
406
|
subtitle: "start",
|
|
407
|
-
data:
|
|
407
|
+
data: a
|
|
408
408
|
}
|
|
409
409
|
});
|
|
410
410
|
},
|
|
411
|
-
after: function(n,
|
|
412
|
-
var
|
|
413
|
-
|
|
411
|
+
after: function(n, o) {
|
|
412
|
+
var a = {}, l = Date.now() - n._time;
|
|
413
|
+
a.duration = {
|
|
414
414
|
_custom: {
|
|
415
415
|
type: "duration",
|
|
416
416
|
display: l + "ms",
|
|
417
417
|
tooltip: "Action duration",
|
|
418
418
|
value: l
|
|
419
419
|
}
|
|
420
|
-
}, n.payload && (
|
|
420
|
+
}, n.payload && (a.payload = n.payload), a.state = o, r.addTimelineEvent({
|
|
421
421
|
layerId: re,
|
|
422
422
|
event: {
|
|
423
423
|
time: Date.now(),
|
|
424
424
|
title: n.type,
|
|
425
425
|
groupId: n._id,
|
|
426
426
|
subtitle: "end",
|
|
427
|
-
data:
|
|
427
|
+
data: a
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
}
|
|
@@ -432,10 +432,10 @@ function Pt(e, t) {
|
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
var pe = 8702998,
|
|
435
|
+
var pe = 8702998, At = 6710886, It = 16777215, Ee = {
|
|
436
436
|
label: "namespaced",
|
|
437
|
-
textColor:
|
|
438
|
-
backgroundColor:
|
|
437
|
+
textColor: It,
|
|
438
|
+
backgroundColor: At
|
|
439
439
|
};
|
|
440
440
|
function je(e) {
|
|
441
441
|
return e && e !== "root" ? e.split("/").slice(-2, -1)[0] : "Root";
|
|
@@ -463,13 +463,13 @@ function Ie(e, t, r, n) {
|
|
|
463
463
|
id: n || "root",
|
|
464
464
|
label: n.endsWith("/") ? n.slice(0, n.length - 1) : n || "Root",
|
|
465
465
|
tags: t.namespaced ? [Ee] : []
|
|
466
|
-
}), Object.keys(t._children).forEach(function(
|
|
467
|
-
Ie(e, t._children[
|
|
466
|
+
}), Object.keys(t._children).forEach(function(o) {
|
|
467
|
+
Ie(e, t._children[o], r, n + o + "/");
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Tt(e, t, r) {
|
|
471
471
|
t = r === "root" ? t : t[r];
|
|
472
|
-
var n = Object.keys(t),
|
|
472
|
+
var n = Object.keys(t), o = {
|
|
473
473
|
state: Object.keys(e.state).map(function(l) {
|
|
474
474
|
return {
|
|
475
475
|
key: l,
|
|
@@ -479,58 +479,58 @@ function At(e, t, r) {
|
|
|
479
479
|
})
|
|
480
480
|
};
|
|
481
481
|
if (n.length) {
|
|
482
|
-
var
|
|
483
|
-
|
|
482
|
+
var a = Mt(t);
|
|
483
|
+
o.getters = Object.keys(a).map(function(l) {
|
|
484
484
|
return {
|
|
485
485
|
key: l.endsWith("/") ? je(l) : l,
|
|
486
486
|
editable: !1,
|
|
487
|
-
value:
|
|
488
|
-
return
|
|
487
|
+
value: ae(function() {
|
|
488
|
+
return a[l];
|
|
489
489
|
})
|
|
490
490
|
};
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
|
-
return
|
|
493
|
+
return o;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Mt(e) {
|
|
496
496
|
var t = {};
|
|
497
497
|
return Object.keys(e).forEach(function(r) {
|
|
498
498
|
var n = r.split("/");
|
|
499
499
|
if (n.length > 1) {
|
|
500
|
-
var
|
|
500
|
+
var o = t, a = n.pop();
|
|
501
501
|
n.forEach(function(l) {
|
|
502
|
-
|
|
502
|
+
o[l] || (o[l] = {
|
|
503
503
|
_custom: {
|
|
504
504
|
value: {},
|
|
505
505
|
display: l,
|
|
506
506
|
tooltip: "Module",
|
|
507
507
|
abstract: !0
|
|
508
508
|
}
|
|
509
|
-
}),
|
|
510
|
-
}), a
|
|
509
|
+
}), o = o[l]._custom.value;
|
|
510
|
+
}), o[a] = ae(function() {
|
|
511
511
|
return e[r];
|
|
512
512
|
});
|
|
513
513
|
} else
|
|
514
|
-
t[r] =
|
|
514
|
+
t[r] = ae(function() {
|
|
515
515
|
return e[r];
|
|
516
516
|
});
|
|
517
517
|
}), t;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Nt(e, t) {
|
|
520
520
|
var r = t.split("/").filter(function(n) {
|
|
521
521
|
return n;
|
|
522
522
|
});
|
|
523
523
|
return r.reduce(
|
|
524
|
-
function(n,
|
|
525
|
-
var l = n[
|
|
524
|
+
function(n, o, a) {
|
|
525
|
+
var l = n[o];
|
|
526
526
|
if (!l)
|
|
527
|
-
throw new Error('Missing module "' +
|
|
528
|
-
return
|
|
527
|
+
throw new Error('Missing module "' + o + '" for path "' + t + '".');
|
|
528
|
+
return a === r.length - 1 ? l : l._children;
|
|
529
529
|
},
|
|
530
530
|
t === "root" ? e : e.root._children
|
|
531
531
|
);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function ae(e) {
|
|
534
534
|
try {
|
|
535
535
|
return e();
|
|
536
536
|
} catch (t) {
|
|
@@ -583,43 +583,43 @@ R.prototype.get = function(t) {
|
|
|
583
583
|
};
|
|
584
584
|
R.prototype.getNamespace = function(t) {
|
|
585
585
|
var r = this.root;
|
|
586
|
-
return t.reduce(function(n,
|
|
587
|
-
return r = r.getChild(
|
|
586
|
+
return t.reduce(function(n, o) {
|
|
587
|
+
return r = r.getChild(o), n + (r.namespaced ? o + "/" : "");
|
|
588
588
|
}, "");
|
|
589
589
|
};
|
|
590
590
|
R.prototype.update = function(t) {
|
|
591
|
-
|
|
591
|
+
Me([], this.root, t);
|
|
592
592
|
};
|
|
593
593
|
R.prototype.register = function(t, r, n) {
|
|
594
|
-
var
|
|
595
|
-
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" &&
|
|
596
|
-
var
|
|
594
|
+
var o = this;
|
|
595
|
+
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" && Ne(t, r);
|
|
596
|
+
var a = new T(r, n);
|
|
597
597
|
if (t.length === 0)
|
|
598
|
-
this.root =
|
|
598
|
+
this.root = a;
|
|
599
599
|
else {
|
|
600
600
|
var l = this.get(t.slice(0, -1));
|
|
601
|
-
l.addChild(t[t.length - 1],
|
|
601
|
+
l.addChild(t[t.length - 1], a);
|
|
602
602
|
}
|
|
603
603
|
r.modules && F(r.modules, function(i, c) {
|
|
604
|
-
|
|
604
|
+
o.register(t.concat(c), i, n);
|
|
605
605
|
});
|
|
606
606
|
};
|
|
607
607
|
R.prototype.unregister = function(t) {
|
|
608
|
-
var r = this.get(t.slice(0, -1)), n = t[t.length - 1],
|
|
609
|
-
if (!
|
|
608
|
+
var r = this.get(t.slice(0, -1)), n = t[t.length - 1], o = r.getChild(n);
|
|
609
|
+
if (!o) {
|
|
610
610
|
process.env.NODE_ENV !== "production" && console.warn(
|
|
611
611
|
"[vuex] trying to unregister module '" + n + "', which is not registered"
|
|
612
612
|
);
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
615
|
-
|
|
615
|
+
o.runtime && r.removeChild(n);
|
|
616
616
|
};
|
|
617
617
|
R.prototype.isRegistered = function(t) {
|
|
618
618
|
var r = this.get(t.slice(0, -1)), n = t[t.length - 1];
|
|
619
619
|
return r ? r.hasChild(n) : !1;
|
|
620
620
|
};
|
|
621
|
-
function
|
|
622
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
621
|
+
function Me(e, t, r) {
|
|
622
|
+
if (process.env.NODE_ENV !== "production" && Ne(e, r), t.update(r), r.modules)
|
|
623
623
|
for (var n in r.modules) {
|
|
624
624
|
if (!t.getChild(n)) {
|
|
625
625
|
process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -627,7 +627,7 @@ function Ne(e, t, r) {
|
|
|
627
627
|
);
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
630
|
-
|
|
630
|
+
Me(
|
|
631
631
|
e.concat(n),
|
|
632
632
|
t.getChild(n),
|
|
633
633
|
r.modules[n]
|
|
@@ -639,7 +639,7 @@ var _e = {
|
|
|
639
639
|
return typeof e == "function";
|
|
640
640
|
},
|
|
641
641
|
expected: "function"
|
|
642
|
-
},
|
|
642
|
+
}, Vt = {
|
|
643
643
|
assert: function(e) {
|
|
644
644
|
return typeof e == "function" || typeof e == "object" && typeof e.handler == "function";
|
|
645
645
|
},
|
|
@@ -647,40 +647,40 @@ var _e = {
|
|
|
647
647
|
}, be = {
|
|
648
648
|
getters: _e,
|
|
649
649
|
mutations: _e,
|
|
650
|
-
actions:
|
|
650
|
+
actions: Vt
|
|
651
651
|
};
|
|
652
|
-
function
|
|
652
|
+
function Ne(e, t) {
|
|
653
653
|
Object.keys(be).forEach(function(r) {
|
|
654
654
|
if (t[r]) {
|
|
655
655
|
var n = be[r];
|
|
656
|
-
F(t[r], function(
|
|
656
|
+
F(t[r], function(o, a) {
|
|
657
657
|
I(
|
|
658
|
-
n.assert(
|
|
659
|
-
|
|
658
|
+
n.assert(o),
|
|
659
|
+
Lt(e, r, a, o, n.expected)
|
|
660
660
|
);
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
var
|
|
667
|
-
return e.length > 0 && (
|
|
665
|
+
function Lt(e, t, r, n, o) {
|
|
666
|
+
var a = t + " should be " + o + ' but "' + t + "." + r + '"';
|
|
667
|
+
return e.length > 0 && (a += ' in module "' + e.join(".") + '"'), a += " is " + JSON.stringify(n) + ".", a;
|
|
668
668
|
}
|
|
669
669
|
var j = function e(t) {
|
|
670
670
|
var r = this;
|
|
671
671
|
t === void 0 && (t = {}), process.env.NODE_ENV !== "production" && (I(typeof Promise < "u", "vuex requires a Promise polyfill in this browser."), I(this instanceof e, "store must be called with the new operator."));
|
|
672
672
|
var n = t.plugins;
|
|
673
673
|
n === void 0 && (n = []);
|
|
674
|
-
var
|
|
675
|
-
|
|
676
|
-
var
|
|
677
|
-
this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new R(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools =
|
|
674
|
+
var o = t.strict;
|
|
675
|
+
o === void 0 && (o = !1);
|
|
676
|
+
var a = t.devtools;
|
|
677
|
+
this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new R(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
|
|
678
678
|
var l = this, i = this, c = i.dispatch, f = i.commit;
|
|
679
679
|
this.dispatch = function(x, C) {
|
|
680
680
|
return c.call(l, x, C);
|
|
681
681
|
}, this.commit = function(x, C, L) {
|
|
682
682
|
return f.call(l, x, C, L);
|
|
683
|
-
}, this.strict =
|
|
683
|
+
}, this.strict = o;
|
|
684
684
|
var m = this._modules.root.state;
|
|
685
685
|
Q(this, m, [], this._modules.root), le(this, m), n.forEach(function(y) {
|
|
686
686
|
return y(r);
|
|
@@ -689,7 +689,7 @@ var j = function e(t) {
|
|
|
689
689
|
j.prototype.install = function(t, r) {
|
|
690
690
|
t.provide(r || $e, 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 && jt(t, this);
|
|
693
693
|
};
|
|
694
694
|
ue.state.get = function() {
|
|
695
695
|
return this._state.data;
|
|
@@ -698,7 +698,7 @@ ue.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
|
j.prototype.commit = function(t, r, n) {
|
|
701
|
-
var
|
|
701
|
+
var o = this, a = J(t, r, n), l = a.type, i = a.payload, c = a.options, f = { type: l, payload: i }, m = this._mutations[l];
|
|
702
702
|
if (!m) {
|
|
703
703
|
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + l);
|
|
704
704
|
return;
|
|
@@ -708,15 +708,15 @@ j.prototype.commit = function(t, r, n) {
|
|
|
708
708
|
x(i);
|
|
709
709
|
});
|
|
710
710
|
}), this._subscribers.slice().forEach(function(y) {
|
|
711
|
-
return y(f,
|
|
711
|
+
return y(f, o.state);
|
|
712
712
|
}), process.env.NODE_ENV !== "production" && c && c.silent && console.warn(
|
|
713
713
|
"[vuex] mutation type: " + l + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
|
|
714
714
|
);
|
|
715
715
|
};
|
|
716
716
|
j.prototype.dispatch = function(t, r) {
|
|
717
|
-
var n = this,
|
|
717
|
+
var n = this, o = J(t, r), a = o.type, l = o.payload, i = { type: a, payload: l }, c = this._actions[a];
|
|
718
718
|
if (!c) {
|
|
719
|
-
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " +
|
|
719
|
+
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " + a);
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
722
|
try {
|
|
@@ -765,9 +765,9 @@ j.prototype.subscribeAction = function(t, r) {
|
|
|
765
765
|
return Oe(n, this._actionSubscribers, r);
|
|
766
766
|
};
|
|
767
767
|
j.prototype.watch = function(t, r, n) {
|
|
768
|
-
var
|
|
768
|
+
var o = this;
|
|
769
769
|
return process.env.NODE_ENV !== "production" && I(typeof t == "function", "store.watch only accepts a function."), W(function() {
|
|
770
|
-
return t(
|
|
770
|
+
return t(o.state, o.getters);
|
|
771
771
|
}, r, Object.assign({}, n));
|
|
772
772
|
};
|
|
773
773
|
j.prototype.replaceState = function(t) {
|
|
@@ -797,11 +797,11 @@ j.prototype._withCommit = function(t) {
|
|
|
797
797
|
this._committing = !0, t(), this._committing = r;
|
|
798
798
|
};
|
|
799
799
|
Object.defineProperties(j.prototype, ue);
|
|
800
|
-
var
|
|
800
|
+
var Bt = Le(function(e, t) {
|
|
801
801
|
var r = {};
|
|
802
802
|
return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), Ve(t).forEach(function(n) {
|
|
803
|
-
var
|
|
804
|
-
r[
|
|
803
|
+
var o = n.key, a = n.val;
|
|
804
|
+
r[o] = function() {
|
|
805
805
|
var i = this.$store.state, c = this.$store.getters;
|
|
806
806
|
if (e) {
|
|
807
807
|
var f = Be(this.$store, "mapState", e);
|
|
@@ -809,14 +809,14 @@ var Vt = Le(function(e, t) {
|
|
|
809
809
|
return;
|
|
810
810
|
i = f.context.state, c = f.context.getters;
|
|
811
811
|
}
|
|
812
|
-
return typeof
|
|
813
|
-
}, r[
|
|
812
|
+
return typeof a == "function" ? a.call(this, i, c) : i[a];
|
|
813
|
+
}, r[o].vuex = !0;
|
|
814
814
|
}), r;
|
|
815
|
-
}),
|
|
815
|
+
}), Gt = Le(function(e, t) {
|
|
816
816
|
var r = {};
|
|
817
817
|
return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), Ve(t).forEach(function(n) {
|
|
818
|
-
var
|
|
819
|
-
r[
|
|
818
|
+
var o = n.key, a = n.val;
|
|
819
|
+
r[o] = function() {
|
|
820
820
|
for (var i = [], c = arguments.length; c--; )
|
|
821
821
|
i[c] = arguments[c];
|
|
822
822
|
var f = this.$store.commit;
|
|
@@ -826,7 +826,7 @@ var Vt = Le(function(e, t) {
|
|
|
826
826
|
return;
|
|
827
827
|
f = m.context.commit;
|
|
828
828
|
}
|
|
829
|
-
return typeof
|
|
829
|
+
return typeof a == "function" ? a.apply(this, [f].concat(i)) : f.apply(this.$store, [a].concat(i));
|
|
830
830
|
};
|
|
831
831
|
}), r;
|
|
832
832
|
});
|
|
@@ -849,7 +849,7 @@ function Be(e, t, r) {
|
|
|
849
849
|
var n = e._modulesNamespaceMap[r];
|
|
850
850
|
return process.env.NODE_ENV !== "production" && !n && console.error("[vuex] module namespace not found in " + t + "(): " + r), n;
|
|
851
851
|
}
|
|
852
|
-
const
|
|
852
|
+
const Ft = {
|
|
853
853
|
components: {
|
|
854
854
|
DeleteConfirmationModal: ie
|
|
855
855
|
},
|
|
@@ -959,33 +959,33 @@ const Bt = {
|
|
|
959
959
|
return new Promise((t, r) => {
|
|
960
960
|
e || t();
|
|
961
961
|
const n = new FormData();
|
|
962
|
-
n.append("file", e), Object.entries(this.file_config).forEach(([
|
|
963
|
-
n.append(
|
|
962
|
+
n.append("file", e), Object.entries(this.file_config).forEach(([o, a]) => {
|
|
963
|
+
n.append(o, a);
|
|
964
964
|
}), this.files.push({ file_name: e.name, loading: 0 }), axios.post(this.route_url + "/media", n, {
|
|
965
|
-
onUploadProgress: (
|
|
965
|
+
onUploadProgress: (o) => {
|
|
966
966
|
this.files[this.files.length - 1].loading = Math.floor(
|
|
967
|
-
|
|
967
|
+
o.loaded / o.total * 100
|
|
968
968
|
);
|
|
969
969
|
}
|
|
970
|
-
}).then((
|
|
971
|
-
let
|
|
970
|
+
}).then((o) => {
|
|
971
|
+
let a = this.files.findIndex(
|
|
972
972
|
(l) => l.file_name === e.name
|
|
973
973
|
);
|
|
974
|
-
|
|
975
|
-
file_name:
|
|
976
|
-
size:
|
|
977
|
-
id:
|
|
978
|
-
url:
|
|
974
|
+
a !== -1 && this.files.splice(a, 1), this.uploadFileList.push({
|
|
975
|
+
file_name: o.data.file_name,
|
|
976
|
+
size: o.data.size,
|
|
977
|
+
id: o.data.id,
|
|
978
|
+
url: o.data.url
|
|
979
979
|
}), this.error_message_data = "", t();
|
|
980
|
-
}).catch((
|
|
981
|
-
|
|
982
|
-
|
|
980
|
+
}).catch((o) => {
|
|
981
|
+
o.response.status === 422 ? this.error_message_data = this.getFirstError(
|
|
982
|
+
o.response.data.errors,
|
|
983
983
|
"file"
|
|
984
|
-
) : console.error("An error occurred:",
|
|
985
|
-
let
|
|
984
|
+
) : console.error("An error occurred:", o);
|
|
985
|
+
let a = this.files.findIndex(
|
|
986
986
|
(l) => l.file_name === e.name
|
|
987
987
|
);
|
|
988
|
-
|
|
988
|
+
a !== -1 && this.files.splice(a, 1), console.log(o), t();
|
|
989
989
|
});
|
|
990
990
|
});
|
|
991
991
|
}
|
|
@@ -999,7 +999,7 @@ const Bt = {
|
|
|
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
|
+
}, Rt = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, Ut = ["multiple"], qt = ["name"], zt = /* @__PURE__ */ s("svg", {
|
|
1003
1003
|
class: "w-8 h-8 mb-4 text-gray-500 dark:text-gray-400",
|
|
1004
1004
|
"aria-hidden": "true",
|
|
1005
1005
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1013,78 +1013,78 @@ const Bt = {
|
|
|
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), Ht = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, " Drag & drop files or browse ", -1), Zt = [
|
|
1017
|
+
zt,
|
|
1018
|
+
Ht
|
|
1019
|
+
], Kt = { key: 1 }, Wt = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, "Drop files here", -1), Xt = [
|
|
1020
|
+
Wt
|
|
1021
|
+
], Yt = { class: "mt-2 gl-span-form-error" }, Jt = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, Qt = {
|
|
1022
1022
|
key: 0,
|
|
1023
1023
|
class: ""
|
|
1024
|
-
},
|
|
1024
|
+
}, er = { 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" }, tr = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1), rr = { class: "w-full ml-3" }, sr = { class: "flex items-center justify-between mb-1" }, nr = { class: "text-xs text-black dark:text-white" }, ar = { class: "text-xs text-black dark:text-white" }, or = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, ir = { class: "overflow-x-scroll max-h-56" }, lr = { 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" }, dr = { class: "flex items-center" }, ur = /* @__PURE__ */ s("i", {
|
|
1025
1025
|
class: "text-3xl fas fa-file-alt",
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
|
-
}, null, -1),
|
|
1028
|
-
function
|
|
1027
|
+
}, null, -1), cr = { class: "flex flex-col ml-3" }, fr = { class: "text-xs" }, hr = { class: "text-xs" }, gr = { class: "flex gap-2" }, mr = ["href"], pr = ["onClick"];
|
|
1028
|
+
function _r(e, t, r, n, o, a) {
|
|
1029
1029
|
const l = X("DeleteConfirmationModal");
|
|
1030
1030
|
return d(), u(v, null, [
|
|
1031
1031
|
H(l, {
|
|
1032
|
-
isOpen:
|
|
1033
|
-
onConfirmDelete:
|
|
1034
|
-
onCancelDelete:
|
|
1032
|
+
isOpen: o.open_delete_modal,
|
|
1033
|
+
onConfirmDelete: a.deleteAction,
|
|
1034
|
+
onCancelDelete: a.closeDeleteModal
|
|
1035
1035
|
}, null, 8, ["isOpen", "onConfirmDelete", "onCancelDelete"]),
|
|
1036
1036
|
s("div", {
|
|
1037
|
-
class:
|
|
1038
|
-
"border-red-500 dark:border-red-500":
|
|
1039
|
-
"border-gray-200 dark:border-gray-700":
|
|
1037
|
+
class: p([{
|
|
1038
|
+
"border-red-500 dark:border-red-500": o.error_message_data !== "",
|
|
1039
|
+
"border-gray-200 dark:border-gray-700": o.error_message_data == ""
|
|
1040
1040
|
}, "w-full p-4 bg-white border rounded-lg shadow dark:bg-gray-800"])
|
|
1041
1041
|
}, [
|
|
1042
1042
|
s("label", {
|
|
1043
|
-
class:
|
|
1044
|
-
"gl-label-form":
|
|
1045
|
-
"gl-label-form-invalid":
|
|
1043
|
+
class: p({
|
|
1044
|
+
"gl-label-form": o.error_message_data == "",
|
|
1045
|
+
"gl-label-form-invalid": o.error_message_data !== "",
|
|
1046
1046
|
required: r.is_required
|
|
1047
1047
|
})
|
|
1048
1048
|
}, h(r.label_name), 3),
|
|
1049
1049
|
s("div", {
|
|
1050
|
-
onDragover: t[3] || (t[3] =
|
|
1051
|
-
onDragleave: t[4] || (t[4] =
|
|
1052
|
-
onDrop: t[5] || (t[5] =
|
|
1050
|
+
onDragover: t[3] || (t[3] = M((...i) => a.onDragOver && a.onDragOver(...i), ["prevent"])),
|
|
1051
|
+
onDragleave: t[4] || (t[4] = M((...i) => a.onDragLeave && a.onDragLeave(...i), ["prevent"])),
|
|
1052
|
+
onDrop: t[5] || (t[5] = M((...i) => a.onDrop && a.onDrop(...i), ["prevent"])),
|
|
1053
1053
|
class: "flex flex-col items-center justify-center w-full h-40 mt-3 mb-3 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"
|
|
1054
1054
|
}, [
|
|
1055
|
-
s("div",
|
|
1055
|
+
s("div", Rt, [
|
|
1056
1056
|
s("input", {
|
|
1057
1057
|
type: "file",
|
|
1058
1058
|
ref: "file_input" + r.field_name,
|
|
1059
1059
|
hidden: "",
|
|
1060
1060
|
multiple: r.has_multiple_file,
|
|
1061
|
-
onChange: t[0] || (t[0] = (...i) =>
|
|
1062
|
-
}, null, 40,
|
|
1061
|
+
onChange: t[0] || (t[0] = (...i) => a.uploadFiles && a.uploadFiles(...i))
|
|
1062
|
+
}, null, 40, Ut),
|
|
1063
1063
|
P(s("input", {
|
|
1064
1064
|
type: "hidden",
|
|
1065
1065
|
name: r.field_name,
|
|
1066
|
-
"onUpdate:modelValue": t[1] || (t[1] = (i) =>
|
|
1067
|
-
}, null, 8,
|
|
1068
|
-
[V,
|
|
1066
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => a.uploadedFileIds = i)
|
|
1067
|
+
}, null, 8, qt), [
|
|
1068
|
+
[V, a.uploadedFileIds]
|
|
1069
1069
|
]),
|
|
1070
|
-
|
|
1070
|
+
o.isDragging ? (d(), u("div", Kt, Xt)) : (d(), u("div", {
|
|
1071
1071
|
key: 0,
|
|
1072
1072
|
class: "flex flex-col items-center justify-center",
|
|
1073
1073
|
onClick: t[2] || (t[2] = (i) => e.$refs["file_input" + this.field_name].click())
|
|
1074
|
-
},
|
|
1074
|
+
}, Zt))
|
|
1075
1075
|
])
|
|
1076
1076
|
], 32),
|
|
1077
|
-
s("span",
|
|
1078
|
-
s("small",
|
|
1079
|
-
|
|
1080
|
-
(d(!0), u(v, null, $(
|
|
1081
|
-
|
|
1082
|
-
s("div",
|
|
1083
|
-
s("div",
|
|
1084
|
-
s("span",
|
|
1085
|
-
s("span",
|
|
1077
|
+
s("span", Yt, h(o.error_message_data), 1),
|
|
1078
|
+
s("small", Jt, h(r.description), 1),
|
|
1079
|
+
o.files.length > 0 ? (d(), u("section", Qt, [
|
|
1080
|
+
(d(!0), u(v, null, $(o.files, (i, c) => (d(), u("li", er, [
|
|
1081
|
+
tr,
|
|
1082
|
+
s("div", rr, [
|
|
1083
|
+
s("div", sr, [
|
|
1084
|
+
s("span", nr, h(a.getFileName(i.file_name)), 1),
|
|
1085
|
+
s("span", ar, h(i.loading), 1)
|
|
1086
1086
|
]),
|
|
1087
|
-
s("div",
|
|
1087
|
+
s("div", or, [
|
|
1088
1088
|
s("div", {
|
|
1089
1089
|
class: "h-full bg-gray-500 rounded-full dark:bg-gray-400",
|
|
1090
1090
|
style: Ke({ width: i.loading + "%" })
|
|
@@ -1093,37 +1093,37 @@ function mr(e, t, r, n, a, o) {
|
|
|
1093
1093
|
])
|
|
1094
1094
|
]))), 256))
|
|
1095
1095
|
])) : g("", !0),
|
|
1096
|
-
s("section",
|
|
1097
|
-
(d(!0), u(v, null, $(
|
|
1098
|
-
s("div",
|
|
1099
|
-
|
|
1100
|
-
s("div",
|
|
1101
|
-
s("span",
|
|
1102
|
-
s("span",
|
|
1096
|
+
s("section", ir, [
|
|
1097
|
+
(d(!0), u(v, null, $(o.uploadFileList, (i, c) => (d(), u("li", lr, [
|
|
1098
|
+
s("div", dr, [
|
|
1099
|
+
ur,
|
|
1100
|
+
s("div", cr, [
|
|
1101
|
+
s("span", fr, h(a.getFileName(i.file_name)), 1),
|
|
1102
|
+
s("span", hr, h(a.formatFileSize(i.size)), 1)
|
|
1103
1103
|
])
|
|
1104
1104
|
]),
|
|
1105
|
-
s("div",
|
|
1105
|
+
s("div", gr, [
|
|
1106
1106
|
s("a", {
|
|
1107
1107
|
href: i.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, mr),
|
|
1111
1111
|
r.is_enable_delete ? (d(), u("i", {
|
|
1112
1112
|
key: 0,
|
|
1113
1113
|
onClick: (f) => {
|
|
1114
|
-
|
|
1114
|
+
o.media_id = i.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, pr)) : g("", !0)
|
|
1118
1118
|
])
|
|
1119
1119
|
]))), 256))
|
|
1120
1120
|
])
|
|
1121
1121
|
], 2)
|
|
1122
1122
|
], 64);
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const fd = /* @__PURE__ */ D(Ft, [["render", _r]]), br = {
|
|
1125
1125
|
computed: {
|
|
1126
|
-
...
|
|
1126
|
+
...Bt("notification", ["notification"]),
|
|
1127
1127
|
alertClasses() {
|
|
1128
1128
|
switch (this.notification.type) {
|
|
1129
1129
|
case "info":
|
|
@@ -1158,7 +1158,7 @@ const ud = /* @__PURE__ */ D(Bt, [["render", mr]]), pr = {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
},
|
|
1160
1160
|
methods: {
|
|
1161
|
-
...
|
|
1161
|
+
...Gt("notification", ["HIDE_NOTIFICATION"]),
|
|
1162
1162
|
dismiss() {
|
|
1163
1163
|
this.HIDE_NOTIFICATION();
|
|
1164
1164
|
}
|
|
@@ -1170,7 +1170,7 @@ const ud = /* @__PURE__ */ D(Bt, [["render", mr]]), pr = {
|
|
|
1170
1170
|
}, this.notification.duration);
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
|
-
},
|
|
1173
|
+
}, yr = /* @__PURE__ */ s("svg", {
|
|
1174
1174
|
class: "flex-shrink-0 w-4 h-4",
|
|
1175
1175
|
"aria-hidden": "true",
|
|
1176
1176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1178,7 +1178,7 @@ const ud = /* @__PURE__ */ D(Bt, [["render", mr]]), pr = {
|
|
|
1178
1178
|
viewBox: "0 0 20 20"
|
|
1179
1179
|
}, [
|
|
1180
1180
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z" })
|
|
1181
|
-
], -1),
|
|
1181
|
+
], -1), vr = /* @__PURE__ */ s("span", { class: "sr-only" }, "Info", -1), xr = { class: "mr-3 text-sm font-medium ms-3" }, wr = /* @__PURE__ */ s("span", { class: "sr-only" }, "Close", -1), kr = /* @__PURE__ */ s("svg", {
|
|
1182
1182
|
class: "w-3 h-3",
|
|
1183
1183
|
"aria-hidden": "true",
|
|
1184
1184
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1192,28 +1192,28 @@ const ud = /* @__PURE__ */ D(Bt, [["render", mr]]), pr = {
|
|
|
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), $r = [
|
|
1196
|
+
wr,
|
|
1197
|
+
kr
|
|
1198
1198
|
];
|
|
1199
|
-
function
|
|
1199
|
+
function Cr(e, t, r, n, o, a) {
|
|
1200
1200
|
return e.notification.show ? (d(), u("div", {
|
|
1201
1201
|
key: 0,
|
|
1202
|
-
class:
|
|
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
|
-
|
|
1206
|
-
|
|
1207
|
-
s("div",
|
|
1205
|
+
yr,
|
|
1206
|
+
vr,
|
|
1207
|
+
s("div", xr, h(e.notification.message), 1),
|
|
1208
1208
|
s("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
|
-
onClick: t[0] || (t[0] = (...l) =>
|
|
1211
|
-
class:
|
|
1210
|
+
onClick: t[0] || (t[0] = (...l) => a.dismiss && a.dismiss(...l)),
|
|
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
|
+
}, $r, 2)
|
|
1214
1214
|
], 2)) : g("", !0);
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const hd = /* @__PURE__ */ D(br, [["render", Cr]]), Sr = {
|
|
1217
1217
|
components: {},
|
|
1218
1218
|
props: {
|
|
1219
1219
|
field_name: {
|
|
@@ -1248,10 +1248,10 @@ const cd = /* @__PURE__ */ D(pr, [["render", kr]]), $r = {
|
|
|
1248
1248
|
},
|
|
1249
1249
|
mounted() {
|
|
1250
1250
|
}
|
|
1251
|
-
},
|
|
1252
|
-
function
|
|
1253
|
-
return d(), u("ul",
|
|
1254
|
-
(d(!0), u(v, null, $(
|
|
1251
|
+
}, Or = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, Dr = ["name", "value", "id", "checked"], Pr = ["for"];
|
|
1252
|
+
function Er(e, t, r, n, o, a) {
|
|
1253
|
+
return d(), u("ul", Or, [
|
|
1254
|
+
(d(!0), u(v, null, $(o.locals, (l, i) => (d(), u("li", null, [
|
|
1255
1255
|
s("input", {
|
|
1256
1256
|
type: "radio",
|
|
1257
1257
|
name: r.trans_selector_name,
|
|
@@ -1259,23 +1259,23 @@ function Dr(e, t, r, n, a, o) {
|
|
|
1259
1259
|
class: "hidden peer",
|
|
1260
1260
|
id: l + "_" + r.field_name,
|
|
1261
1261
|
autocomplete: "off",
|
|
1262
|
-
checked: l ===
|
|
1263
|
-
}, null, 8,
|
|
1262
|
+
checked: l === o.default_language
|
|
1263
|
+
}, null, 8, Dr),
|
|
1264
1264
|
s("label", {
|
|
1265
1265
|
for: l + "_" + r.field_name,
|
|
1266
|
-
class:
|
|
1266
|
+
class: p([{
|
|
1267
1267
|
"border md:!rounded-s-lg": i === 0,
|
|
1268
|
-
"border md:!rounded-e-lg": i ===
|
|
1269
|
-
"border-t border-b": i !== 0 && i !==
|
|
1268
|
+
"border md:!rounded-e-lg": i === o.locals.length - 1,
|
|
1269
|
+
"border-t border-b": i !== 0 && i !== 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
|
-
}, h(l), 11,
|
|
1271
|
+
}, h(l), 11, Pr)
|
|
1272
1272
|
]))), 256))
|
|
1273
1273
|
]);
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const gd = /* @__PURE__ */ D(Sr, [["render", Er]]), jr = { class: "bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark" }, Ar = { class: "px-3 py-4 border-b border-stroke dark:border-strokedark" }, Ir = { class: "font-semibold text-black dark:text-white" }, Tr = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "p-6"
|
|
1278
|
-
},
|
|
1278
|
+
}, md = {
|
|
1279
1279
|
__name: "GlCard",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
class: {
|
|
@@ -1285,22 +1285,22 @@ const fd = /* @__PURE__ */ D($r, [["render", Dr]]), Pr = { class: "bg-white bord
|
|
|
1285
1285
|
},
|
|
1286
1286
|
setup(e) {
|
|
1287
1287
|
const t = e, r = z(() => t.class);
|
|
1288
|
-
return (n,
|
|
1289
|
-
class:
|
|
1288
|
+
return (n, o) => (d(), u("div", {
|
|
1289
|
+
class: p(["flex flex-col gap-9", r.value])
|
|
1290
1290
|
}, [
|
|
1291
|
-
s("div",
|
|
1292
|
-
s("div",
|
|
1293
|
-
s("h3",
|
|
1291
|
+
s("div", jr, [
|
|
1292
|
+
s("div", Ar, [
|
|
1293
|
+
s("h3", Ir, [
|
|
1294
1294
|
A(n.$slots, "header")
|
|
1295
1295
|
])
|
|
1296
1296
|
]),
|
|
1297
|
-
n.$slots.body ? (d(), u("div",
|
|
1297
|
+
n.$slots.body ? (d(), u("div", Tr, [
|
|
1298
1298
|
A(n.$slots, "body")
|
|
1299
1299
|
])) : g("", !0)
|
|
1300
1300
|
])
|
|
1301
1301
|
], 2));
|
|
1302
1302
|
}
|
|
1303
|
-
},
|
|
1303
|
+
}, Mr = {
|
|
1304
1304
|
name: "MultiSelectDropdown",
|
|
1305
1305
|
template: "MultiSelectDropdown",
|
|
1306
1306
|
props: {
|
|
@@ -1457,16 +1457,16 @@ const fd = /* @__PURE__ */ D($r, [["render", Dr]]), Pr = { class: "bg-white bord
|
|
|
1457
1457
|
this.selectedIds = e.map((t) => t.id), this.$emit("update:modelValue", this.selectedIds), this.$emit("selected", this.selectedIds), this.$emit("selectionChanged", this.selectedIds);
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
|
-
},
|
|
1460
|
+
}, Nr = { class: "font-bold ptext-lg dark:text-white" }, Vr = { class: "mt-3 mb-4" }, Lr = { 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" }, Br = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Gr = ["name", "value"], Fr = {
|
|
1461
1461
|
key: 0,
|
|
1462
1462
|
class: "dropdown"
|
|
1463
|
-
},
|
|
1463
|
+
}, Rr = {
|
|
1464
1464
|
class: "inline-flex ml-2 rounded-md shadow-sm",
|
|
1465
1465
|
role: "group"
|
|
1466
|
-
},
|
|
1466
|
+
}, Ur = { 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" }, qr = { class: "relative" }, zr = ["onClick"], Hr = { 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" }, Zr = { class: "p-1" }, Kr = /* @__PURE__ */ s("label", {
|
|
1467
1467
|
for: "default-search",
|
|
1468
1468
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
1469
|
-
}, "Search", -1),
|
|
1469
|
+
}, "Search", -1), Wr = { class: "relative" }, Xr = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
1470
1470
|
/* @__PURE__ */ s("svg", {
|
|
1471
1471
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
1472
1472
|
"aria-hidden": "true",
|
|
@@ -1482,111 +1482,111 @@ const fd = /* @__PURE__ */ D($r, [["render", Dr]]), Pr = { class: "bg-white bord
|
|
|
1482
1482
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
1483
1483
|
})
|
|
1484
1484
|
])
|
|
1485
|
-
], -1),
|
|
1486
|
-
function
|
|
1485
|
+
], -1), Yr = ["id"], Jr = { class: "overflow-y-auto max-h-64" }, Qr = ["onClick", "onMousedown", "id"];
|
|
1486
|
+
function es(e, t, r, n, o, a) {
|
|
1487
1487
|
return d(), u(v, null, [
|
|
1488
1488
|
r.show ? (d(), u("div", {
|
|
1489
1489
|
key: 0,
|
|
1490
|
-
class:
|
|
1490
|
+
class: p(r.field_name)
|
|
1491
1491
|
}, [
|
|
1492
|
-
s("h3",
|
|
1493
|
-
s("p",
|
|
1494
|
-
(d(!0), u(v, null, $(
|
|
1492
|
+
s("h3", Nr, h(r.label_name), 1),
|
|
1493
|
+
s("p", Vr, [
|
|
1494
|
+
(d(!0), u(v, null, $(o.selected, (l, i) => (d(), u("span", Lr, h(l.name), 1))), 256))
|
|
1495
1495
|
]),
|
|
1496
|
-
|
|
1496
|
+
Br
|
|
1497
1497
|
], 2)) : g("", !0),
|
|
1498
1498
|
r.show ? g("", !0) : (d(), u("div", {
|
|
1499
1499
|
key: 1,
|
|
1500
|
-
class:
|
|
1500
|
+
class: p(["mb-4", r.field_name])
|
|
1501
1501
|
}, [
|
|
1502
|
-
(d(!0), u(v, null, $(
|
|
1502
|
+
(d(!0), u(v, null, $(o.selectedIds, (l, i) => (d(), u("input", {
|
|
1503
1503
|
type: "hidden",
|
|
1504
1504
|
name: r.field_name + "[]",
|
|
1505
1505
|
key: i,
|
|
1506
1506
|
value: l
|
|
1507
|
-
}, null, 8,
|
|
1508
|
-
r.options ? (d(), u("div",
|
|
1507
|
+
}, null, 8, Gr))), 128)),
|
|
1508
|
+
r.options ? (d(), u("div", Fr, [
|
|
1509
1509
|
s("label", {
|
|
1510
|
-
class:
|
|
1510
|
+
class: p({
|
|
1511
1511
|
"gl-label-form": r.error_message == "",
|
|
1512
1512
|
"gl-label-form-invalid": r.error_message !== "",
|
|
1513
1513
|
required: r.is_required
|
|
1514
1514
|
})
|
|
1515
1515
|
}, h(r.label_name), 3),
|
|
1516
|
-
s("div",
|
|
1516
|
+
s("div", Rr, [
|
|
1517
1517
|
s("button", {
|
|
1518
|
-
onClick: t[0] || (t[0] = (...l) =>
|
|
1518
|
+
onClick: t[0] || (t[0] = (...l) => a.selectAll && a.selectAll(...l)),
|
|
1519
1519
|
type: "button",
|
|
1520
1520
|
class: "px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 rounded-s-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"
|
|
1521
1521
|
}, " Select all "),
|
|
1522
1522
|
s("button", {
|
|
1523
|
-
onClick: t[1] || (t[1] = (...l) =>
|
|
1523
|
+
onClick: t[1] || (t[1] = (...l) => a.deselectAll && a.deselectAll(...l)),
|
|
1524
1524
|
type: "button",
|
|
1525
1525
|
class: "px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 rounded-e-md hover:bg-gray-900 hover:text-white focus:z-10 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700"
|
|
1526
1526
|
}, " Deselect all ")
|
|
1527
1527
|
]),
|
|
1528
|
-
s("div",
|
|
1529
|
-
s("div",
|
|
1528
|
+
s("div", Ur, [
|
|
1529
|
+
s("div", qr, [
|
|
1530
1530
|
s("div", {
|
|
1531
1531
|
class: "flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",
|
|
1532
|
-
onClick: t[2] || (t[2] = (l) =>
|
|
1532
|
+
onClick: t[2] || (t[2] = (l) => a.showOptions())
|
|
1533
1533
|
}, [
|
|
1534
|
-
(d(!0), u(v, null, $(
|
|
1534
|
+
(d(!0), u(v, null, $(o.selected, (l, i) => (d(), u("span", {
|
|
1535
1535
|
key: i,
|
|
1536
1536
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded pointer-events-none dark:bg-blue-900 dark:text-blue-300"
|
|
1537
1537
|
}, [
|
|
1538
1538
|
w(h(l.name) + " ", 1),
|
|
1539
1539
|
s("i", {
|
|
1540
|
-
onClick:
|
|
1540
|
+
onClick: M((c) => a.clearOption(l), ["stop"]),
|
|
1541
1541
|
class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400 fas fa-times"
|
|
1542
|
-
}, null, 8,
|
|
1542
|
+
}, null, 8, zr)
|
|
1543
1543
|
]))), 128))
|
|
1544
1544
|
]),
|
|
1545
1545
|
s("i", {
|
|
1546
|
-
class:
|
|
1546
|
+
class: p([o.optionsShown ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700"]),
|
|
1547
1547
|
style: { top: "11px" }
|
|
1548
1548
|
}, null, 2)
|
|
1549
1549
|
]),
|
|
1550
|
-
P(s("div",
|
|
1551
|
-
s("div",
|
|
1552
|
-
|
|
1553
|
-
s("div",
|
|
1554
|
-
|
|
1550
|
+
P(s("div", Hr, [
|
|
1551
|
+
s("div", Zr, [
|
|
1552
|
+
Kr,
|
|
1553
|
+
s("div", Wr, [
|
|
1554
|
+
Xr,
|
|
1555
1555
|
P(s("input", {
|
|
1556
1556
|
type: "search",
|
|
1557
|
-
"onUpdate:modelValue": t[3] || (t[3] = (l) =>
|
|
1557
|
+
"onUpdate:modelValue": t[3] || (t[3] = (l) => o.searchFilter = l),
|
|
1558
1558
|
id: r.field_name + "search",
|
|
1559
1559
|
ref: r.field_name + "search",
|
|
1560
|
-
onBlur: t[4] || (t[4] = (l) =>
|
|
1560
|
+
onBlur: t[4] || (t[4] = (l) => a.exit()),
|
|
1561
1561
|
autocomplete: "off",
|
|
1562
1562
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
1563
1563
|
placeholder: "Search ..."
|
|
1564
|
-
}, null, 40,
|
|
1565
|
-
[V,
|
|
1564
|
+
}, null, 40, Yr), [
|
|
1565
|
+
[V, o.searchFilter]
|
|
1566
1566
|
])
|
|
1567
1567
|
])
|
|
1568
1568
|
]),
|
|
1569
|
-
s("div",
|
|
1570
|
-
(d(!0), u(v, null, $(
|
|
1571
|
-
class:
|
|
1569
|
+
s("div", Jr, [
|
|
1570
|
+
(d(!0), u(v, null, $(a.filteredOptions, (l, i) => (d(), u("div", {
|
|
1571
|
+
class: p([
|
|
1572
1572
|
"block px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
1573
|
-
i + 1 ==
|
|
1573
|
+
i + 1 == o.count || a.isOptionSelected(l.id) ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
1574
1574
|
]),
|
|
1575
|
-
onClick: (c) =>
|
|
1576
|
-
onMousedown: (c) =>
|
|
1575
|
+
onClick: (c) => a.selectOption(l),
|
|
1576
|
+
onMousedown: (c) => a.selectOption(l),
|
|
1577
1577
|
key: i,
|
|
1578
1578
|
id: i + 1
|
|
1579
|
-
}, h(l.name || l.id || "-"), 43,
|
|
1579
|
+
}, h(l.name || l.id || "-"), 43, Qr))), 128))
|
|
1580
1580
|
])
|
|
1581
1581
|
], 512), [
|
|
1582
|
-
[B,
|
|
1582
|
+
[B, o.optionsShown]
|
|
1583
1583
|
])
|
|
1584
1584
|
])
|
|
1585
1585
|
])) : g("", !0)
|
|
1586
1586
|
], 2))
|
|
1587
1587
|
], 64);
|
|
1588
1588
|
}
|
|
1589
|
-
const
|
|
1589
|
+
const pd = /* @__PURE__ */ D(Mr, [["render", es]]), ts = {
|
|
1590
1590
|
props: {
|
|
1591
1591
|
button_type: {
|
|
1592
1592
|
type: String,
|
|
@@ -1638,7 +1638,7 @@ const gd = /* @__PURE__ */ D(Ir, [["render", Jr]]), Qr = {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
},
|
|
1640
1640
|
methods: {}
|
|
1641
|
-
},
|
|
1641
|
+
}, rs = /* @__PURE__ */ s("svg", {
|
|
1642
1642
|
"aria-hidden": "true",
|
|
1643
1643
|
role: "status",
|
|
1644
1644
|
class: "inline w-4 h-4 me-3 animate-spin",
|
|
@@ -1655,14 +1655,14 @@ const gd = /* @__PURE__ */ D(Ir, [["render", Jr]]), Qr = {
|
|
|
1655
1655
|
fill: "#1C64F2"
|
|
1656
1656
|
})
|
|
1657
1657
|
], -1);
|
|
1658
|
-
function
|
|
1658
|
+
function ss(e, t, r, n, o, a) {
|
|
1659
1659
|
return r.is_loading ? (d(), Z(se("button"), {
|
|
1660
1660
|
key: 1,
|
|
1661
1661
|
disabled: "",
|
|
1662
|
-
class:
|
|
1662
|
+
class: p(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`)
|
|
1663
1663
|
}, {
|
|
1664
1664
|
default: Y(() => [
|
|
1665
|
-
|
|
1665
|
+
rs,
|
|
1666
1666
|
w(" Loading... ")
|
|
1667
1667
|
]),
|
|
1668
1668
|
_: 1
|
|
@@ -1671,19 +1671,19 @@ function ts(e, t, r, n, a, o) {
|
|
|
1671
1671
|
type: r.is_submit
|
|
1672
1672
|
}, { type: r.is_submit ? "submit" : void 0 }, {
|
|
1673
1673
|
href: r.tag === "a" ? r.href : void 0,
|
|
1674
|
-
class: `flex items-center gap-2 focus:outline-none text-sm px-5 py-2 me-2 font-medium rounded-lg ${
|
|
1674
|
+
class: `flex items-center gap-2 focus:outline-none text-sm px-5 py-2 me-2 font-medium rounded-lg ${a.buttonTypeClass}`
|
|
1675
1675
|
}), {
|
|
1676
1676
|
default: Y(() => [
|
|
1677
1677
|
r.icon ? (d(), u("i", {
|
|
1678
1678
|
key: 0,
|
|
1679
|
-
class:
|
|
1679
|
+
class: p([r.icon, "text-base"])
|
|
1680
1680
|
}, null, 2)) : g("", !0),
|
|
1681
1681
|
A(e.$slots, "default")
|
|
1682
1682
|
]),
|
|
1683
1683
|
_: 3
|
|
1684
1684
|
}, 16, ["type", "href", "class"]));
|
|
1685
1685
|
}
|
|
1686
|
-
const
|
|
1686
|
+
const _d = /* @__PURE__ */ D(ts, [["render", ss]]), ns = { class: "font-bold ptext-lg dark:text-white" }, as = ["name", "id"], os = ["id"], is = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ls = ["for"], ds = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), us = ["name", "id"], cs = ["required", "name", "id", "type"], fs = { class: "gl-span-form-error" }, hs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, bd = {
|
|
1687
1687
|
__name: "GlTextareaTranslate",
|
|
1688
1688
|
props: {
|
|
1689
1689
|
is_required: {
|
|
@@ -1741,23 +1741,23 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
1741
1741
|
},
|
|
1742
1742
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1743
1743
|
setup(e, { expose: t, emit: r }) {
|
|
1744
|
-
const n = e,
|
|
1744
|
+
const n = e, o = r, a = O(null), l = O(null);
|
|
1745
1745
|
return G(() => {
|
|
1746
|
-
|
|
1746
|
+
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus(), n.model_value && (o("update:modelValue", n.model_value), a.value.value = n.model_value), n.model_value_translate, n.translatable && axios.post("/admin/get_field_translations", {
|
|
1747
1747
|
model: n.translatable.model,
|
|
1748
1748
|
row_id: n.translatable.row_id,
|
|
1749
1749
|
field: n.translatable.field
|
|
1750
1750
|
}).then((i) => {
|
|
1751
|
-
l.value.value = JSON.stringify(i.data),
|
|
1751
|
+
l.value.value = JSON.stringify(i.data), o("update:modelValueTranslate", JSON.stringify(i.data)), console.log("input_translate", l.value.value);
|
|
1752
1752
|
}).catch((i) => {
|
|
1753
1753
|
console.log(i);
|
|
1754
1754
|
});
|
|
1755
|
-
}), t({ focus: () =>
|
|
1755
|
+
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
1756
1756
|
e.show ? (d(), u("div", {
|
|
1757
1757
|
key: 0,
|
|
1758
|
-
class:
|
|
1758
|
+
class: p(e.field_name)
|
|
1759
1759
|
}, [
|
|
1760
|
-
s("h3",
|
|
1760
|
+
s("h3", ns, h(e.label_name), 1),
|
|
1761
1761
|
P(s("input", {
|
|
1762
1762
|
type: "hidden",
|
|
1763
1763
|
"data-i18n": "true",
|
|
@@ -1766,28 +1766,28 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
1766
1766
|
ref_key: "input_translate",
|
|
1767
1767
|
ref: l,
|
|
1768
1768
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.inputTranslateValue = f)
|
|
1769
|
-
}, null, 8,
|
|
1769
|
+
}, null, 8, as), [
|
|
1770
1770
|
[V, i.inputTranslateValue]
|
|
1771
1771
|
]),
|
|
1772
1772
|
s("p", {
|
|
1773
1773
|
id: e.field_name,
|
|
1774
1774
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1775
|
-
}, h(e.model_value), 9,
|
|
1776
|
-
|
|
1775
|
+
}, h(e.model_value), 9, os),
|
|
1776
|
+
is
|
|
1777
1777
|
], 2)) : g("", !0),
|
|
1778
1778
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1779
1779
|
key: 1,
|
|
1780
|
-
class:
|
|
1780
|
+
class: p(["mb-4", e.field_name])
|
|
1781
1781
|
}, [
|
|
1782
1782
|
s("label", {
|
|
1783
|
-
class:
|
|
1783
|
+
class: p({
|
|
1784
1784
|
"gl-label-translation-form": e.error_message == "",
|
|
1785
1785
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
1786
1786
|
required: e.is_required
|
|
1787
1787
|
}),
|
|
1788
1788
|
for: e.field_name
|
|
1789
|
-
}, h(e.label_name), 11,
|
|
1790
|
-
|
|
1789
|
+
}, h(e.label_name), 11, ls),
|
|
1790
|
+
ds,
|
|
1791
1791
|
s("input", {
|
|
1792
1792
|
class: "mb-4",
|
|
1793
1793
|
type: "hidden",
|
|
@@ -1797,12 +1797,12 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
1797
1797
|
onInput: c[1] || (c[1] = (f) => i.$emit("update:modelValueTranslate", f.target.value)),
|
|
1798
1798
|
ref_key: "input_translate",
|
|
1799
1799
|
ref: l
|
|
1800
|
-
}, null, 40,
|
|
1800
|
+
}, null, 40, us),
|
|
1801
1801
|
s("textarea", {
|
|
1802
1802
|
required: e.is_required,
|
|
1803
1803
|
name: e.field_name,
|
|
1804
1804
|
id: e.field_name,
|
|
1805
|
-
class:
|
|
1805
|
+
class: p({
|
|
1806
1806
|
" gl-textarea-form form-input-translation mt-4 ": e.error_message == "",
|
|
1807
1807
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1808
1808
|
}),
|
|
@@ -1810,16 +1810,16 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
1810
1810
|
onInput: c[2] || (c[2] = (f) => i.$emit("update:modelValue", f.target.value)),
|
|
1811
1811
|
onKeydown: c[3] || (c[3] = (f) => i.$emit("keydown", f)),
|
|
1812
1812
|
ref_key: "input",
|
|
1813
|
-
ref:
|
|
1813
|
+
ref: a,
|
|
1814
1814
|
rows: "4"
|
|
1815
1815
|
}, `
|
|
1816
|
-
`, 42,
|
|
1817
|
-
s("span",
|
|
1818
|
-
s("small",
|
|
1816
|
+
`, 42, cs),
|
|
1817
|
+
s("span", fs, h(e.error_message), 1),
|
|
1818
|
+
s("small", hs, h(e.description), 1)
|
|
1819
1819
|
], 2))
|
|
1820
1820
|
], 64));
|
|
1821
1821
|
}
|
|
1822
|
-
},
|
|
1822
|
+
}, gs = { class: "font-bold ptext-lg dark:text-white" }, ms = ["name", "id"], ps = ["id"], _s = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), bs = ["for"], ys = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), vs = ["name", "id"], xs = ["name", "id", "type"], ws = { class: "gl-span-form-error" }, ks = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, yd = {
|
|
1823
1823
|
__name: "GlTinymceTranslate",
|
|
1824
1824
|
props: {
|
|
1825
1825
|
is_required: {
|
|
@@ -1877,27 +1877,27 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
1877
1877
|
},
|
|
1878
1878
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1879
1879
|
setup(e, { expose: t, emit: r }) {
|
|
1880
|
-
const n = e,
|
|
1880
|
+
const n = e, o = r, a = O(null), l = O(null);
|
|
1881
1881
|
return G(() => {
|
|
1882
1882
|
tinymce.init({
|
|
1883
1883
|
selector: "#" + n.field_name,
|
|
1884
1884
|
width: "100%",
|
|
1885
1885
|
height: 300
|
|
1886
|
-
}), console.log("tinymce ", n.model_value),
|
|
1886
|
+
}), console.log("tinymce ", n.model_value), a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus(), n.model_value && (o("update:modelValue", n.model_value), a.value.value = n.model_value), n.model_value_translate, n.translatable && axios.post("/admin/get_field_translations", {
|
|
1887
1887
|
model: n.translatable.model,
|
|
1888
1888
|
row_id: n.translatable.row_id,
|
|
1889
1889
|
field: n.translatable.field
|
|
1890
1890
|
}).then((i) => {
|
|
1891
|
-
l.value.value = JSON.stringify(i.data),
|
|
1891
|
+
l.value.value = JSON.stringify(i.data), o("update:modelValueTranslate", JSON.stringify(i.data));
|
|
1892
1892
|
}).catch((i) => {
|
|
1893
1893
|
console.log(i);
|
|
1894
1894
|
});
|
|
1895
|
-
}), t({ focus: () =>
|
|
1895
|
+
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
1896
1896
|
e.show ? (d(), u("div", {
|
|
1897
1897
|
key: 0,
|
|
1898
|
-
class:
|
|
1898
|
+
class: p(e.field_name)
|
|
1899
1899
|
}, [
|
|
1900
|
-
s("h3",
|
|
1900
|
+
s("h3", gs, h(e.label_name), 1),
|
|
1901
1901
|
P(s("input", {
|
|
1902
1902
|
type: "hidden",
|
|
1903
1903
|
"data-i18n": "true",
|
|
@@ -1906,28 +1906,28 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
1906
1906
|
ref_key: "input_translate",
|
|
1907
1907
|
ref: l,
|
|
1908
1908
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.inputTranslateValue = f)
|
|
1909
|
-
}, null, 8,
|
|
1909
|
+
}, null, 8, ms), [
|
|
1910
1910
|
[V, i.inputTranslateValue]
|
|
1911
1911
|
]),
|
|
1912
1912
|
s("p", {
|
|
1913
1913
|
id: e.field_name,
|
|
1914
1914
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
1915
|
-
}, h(e.model_value), 9,
|
|
1916
|
-
|
|
1915
|
+
}, h(e.model_value), 9, ps),
|
|
1916
|
+
_s
|
|
1917
1917
|
], 2)) : g("", !0),
|
|
1918
1918
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1919
1919
|
key: 1,
|
|
1920
|
-
class:
|
|
1920
|
+
class: p(["mb-4", e.field_name])
|
|
1921
1921
|
}, [
|
|
1922
1922
|
s("label", {
|
|
1923
|
-
class:
|
|
1923
|
+
class: p({
|
|
1924
1924
|
"gl-label-translation-form": e.error_message == "",
|
|
1925
1925
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
1926
1926
|
required: e.is_required
|
|
1927
1927
|
}),
|
|
1928
1928
|
for: e.field_name
|
|
1929
|
-
}, h(e.label_name), 11,
|
|
1930
|
-
|
|
1929
|
+
}, h(e.label_name), 11, bs),
|
|
1930
|
+
ys,
|
|
1931
1931
|
s("input", {
|
|
1932
1932
|
class: "mb-4",
|
|
1933
1933
|
type: "hidden",
|
|
@@ -1937,11 +1937,11 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
1937
1937
|
onInput: c[1] || (c[1] = (f) => i.$emit("update:modelValueTranslate", f.target.value)),
|
|
1938
1938
|
ref_key: "input_translate",
|
|
1939
1939
|
ref: l
|
|
1940
|
-
}, null, 40,
|
|
1940
|
+
}, null, 40, vs),
|
|
1941
1941
|
s("textarea", {
|
|
1942
1942
|
name: e.field_name,
|
|
1943
1943
|
id: e.field_name,
|
|
1944
|
-
class:
|
|
1944
|
+
class: p(["tiny", {
|
|
1945
1945
|
" gl-textarea-form form-input-translation mt-4 ": e.error_message == "",
|
|
1946
1946
|
" gl-textarea-form-invalid form-input-translation mt-4 ": e.error_message !== ""
|
|
1947
1947
|
}]),
|
|
@@ -1949,16 +1949,16 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
1949
1949
|
onInput: c[2] || (c[2] = (f) => i.$emit("update:modelValue", f.target.value)),
|
|
1950
1950
|
onKeydown: c[3] || (c[3] = (f) => i.$emit("keydown", f)),
|
|
1951
1951
|
ref_key: "input",
|
|
1952
|
-
ref:
|
|
1952
|
+
ref: a,
|
|
1953
1953
|
rows: "4"
|
|
1954
1954
|
}, `
|
|
1955
|
-
`, 42,
|
|
1956
|
-
s("span",
|
|
1957
|
-
s("small",
|
|
1955
|
+
`, 42, xs),
|
|
1956
|
+
s("span", ws, h(e.error_message), 1),
|
|
1957
|
+
s("small", ks, h(e.description), 1)
|
|
1958
1958
|
], 2))
|
|
1959
1959
|
], 64));
|
|
1960
1960
|
}
|
|
1961
|
-
},
|
|
1961
|
+
}, $s = { class: "font-bold ptext-lg dark:text-white" }, Cs = ["name", "id"], Ss = ["id"], Os = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Ds = ["for"], Ps = /* @__PURE__ */ s("span", { class: "language-label js-language-label bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, null, -1), Es = ["name", "id"], js = ["required", "name", "id", "type"], As = { class: "gl-span-form-error" }, Is = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, vd = {
|
|
1962
1962
|
__name: "GlTextTranslate",
|
|
1963
1963
|
props: {
|
|
1964
1964
|
is_required: {
|
|
@@ -2016,23 +2016,23 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
2016
2016
|
},
|
|
2017
2017
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
2018
2018
|
setup(e, { expose: t, emit: r }) {
|
|
2019
|
-
const n = e,
|
|
2019
|
+
const n = e, o = r, a = O(null), l = O(null);
|
|
2020
2020
|
return G(() => {
|
|
2021
|
-
|
|
2021
|
+
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus(), n.model_value && (o("update:modelValue", n.model_value), a.value.value = n.model_value), n.model_value_translate, n.translatable && axios.post("/admin/get_field_translations", {
|
|
2022
2022
|
model: n.translatable.model,
|
|
2023
2023
|
row_id: n.translatable.row_id,
|
|
2024
2024
|
field: n.translatable.field
|
|
2025
2025
|
}).then((i) => {
|
|
2026
|
-
l.value.value = JSON.stringify(i.data),
|
|
2026
|
+
l.value.value = JSON.stringify(i.data), o("update:modelValueTranslate", JSON.stringify(i.data));
|
|
2027
2027
|
}).catch((i) => {
|
|
2028
2028
|
console.log(i);
|
|
2029
2029
|
});
|
|
2030
|
-
}), t({ focus: () =>
|
|
2030
|
+
}), t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
2031
2031
|
e.show ? (d(), u("div", {
|
|
2032
2032
|
key: 0,
|
|
2033
|
-
class:
|
|
2033
|
+
class: p(e.field_name)
|
|
2034
2034
|
}, [
|
|
2035
|
-
s("h3",
|
|
2035
|
+
s("h3", $s, h(e.label_name), 1),
|
|
2036
2036
|
P(s("input", {
|
|
2037
2037
|
type: "hidden",
|
|
2038
2038
|
"data-i18n": "true",
|
|
@@ -2040,28 +2040,28 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
2040
2040
|
id: e.field_name + "_i18n",
|
|
2041
2041
|
ref: "input_translate_s",
|
|
2042
2042
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.inputTranslateValue = f)
|
|
2043
|
-
}, null, 8,
|
|
2043
|
+
}, null, 8, Cs), [
|
|
2044
2044
|
[V, i.inputTranslateValue]
|
|
2045
2045
|
]),
|
|
2046
2046
|
s("p", {
|
|
2047
2047
|
id: e.field_name,
|
|
2048
2048
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
2049
|
-
}, h(e.model_value), 9,
|
|
2050
|
-
|
|
2049
|
+
}, h(e.model_value), 9, Ss),
|
|
2050
|
+
Os
|
|
2051
2051
|
], 2)) : g("", !0),
|
|
2052
2052
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2053
2053
|
key: 1,
|
|
2054
|
-
class:
|
|
2054
|
+
class: p(["mb-4", e.field_name])
|
|
2055
2055
|
}, [
|
|
2056
2056
|
s("label", {
|
|
2057
|
-
class:
|
|
2057
|
+
class: p({
|
|
2058
2058
|
"gl-label-translation-form": e.error_message == "",
|
|
2059
2059
|
"gl-label-translation-form-invalid": e.error_message !== "",
|
|
2060
2060
|
required: e.is_required
|
|
2061
2061
|
}),
|
|
2062
2062
|
for: e.field_name
|
|
2063
|
-
}, h(e.label_name), 11,
|
|
2064
|
-
|
|
2063
|
+
}, h(e.label_name), 11, Ds),
|
|
2064
|
+
Ps,
|
|
2065
2065
|
s("input", {
|
|
2066
2066
|
class: "mb-4",
|
|
2067
2067
|
type: "hidden",
|
|
@@ -2071,12 +2071,12 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
2071
2071
|
onInput: c[1] || (c[1] = (f) => i.$emit("update:modelValueTranslate", f.target.value)),
|
|
2072
2072
|
ref_key: "input_translate",
|
|
2073
2073
|
ref: l
|
|
2074
|
-
}, null, 40,
|
|
2074
|
+
}, null, 40, Es),
|
|
2075
2075
|
s("input", {
|
|
2076
2076
|
required: e.is_required,
|
|
2077
2077
|
name: e.field_name,
|
|
2078
2078
|
id: e.field_name,
|
|
2079
|
-
class:
|
|
2079
|
+
class: p({
|
|
2080
2080
|
" gl-input-form form-input-translation mt-2 ": e.error_message == "",
|
|
2081
2081
|
" gl-input-form-invalid form-input-translation mt-2 ": e.error_message !== ""
|
|
2082
2082
|
}),
|
|
@@ -2084,14 +2084,14 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
2084
2084
|
onInput: c[2] || (c[2] = (f) => i.$emit("update:modelValue", f.target.value)),
|
|
2085
2085
|
onKeydown: c[3] || (c[3] = (f) => i.$emit("keydown", f)),
|
|
2086
2086
|
ref_key: "input",
|
|
2087
|
-
ref:
|
|
2088
|
-
}, null, 42,
|
|
2089
|
-
s("span",
|
|
2090
|
-
s("small",
|
|
2087
|
+
ref: a
|
|
2088
|
+
}, null, 42, js),
|
|
2089
|
+
s("span", As, h(e.error_message), 1),
|
|
2090
|
+
s("small", Is, h(e.description), 1)
|
|
2091
2091
|
], 2))
|
|
2092
2092
|
], 64));
|
|
2093
2093
|
}
|
|
2094
|
-
},
|
|
2094
|
+
}, Ts = { class: "font-bold ptext-lg dark:text-white" }, Ms = { class: "mb-4 text-base text-gray-900 dark:text-white" }, Ns = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Vs = ["for"], Ls = ["required", "name", "id", "type"], Bs = { class: "gl-span-form-error" }, Gs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, xd = {
|
|
2095
2095
|
__name: "GlTextInput",
|
|
2096
2096
|
props: {
|
|
2097
2097
|
is_required: {
|
|
@@ -2133,44 +2133,44 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
2133
2133
|
},
|
|
2134
2134
|
emits: ["update:modelValue", "keydown"],
|
|
2135
2135
|
setup(e, { expose: t, emit: r }) {
|
|
2136
|
-
const n = e,
|
|
2136
|
+
const n = e, o = r, a = O(null);
|
|
2137
2137
|
G(() => {
|
|
2138
|
-
|
|
2138
|
+
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus();
|
|
2139
2139
|
});
|
|
2140
2140
|
const l = z({
|
|
2141
2141
|
get() {
|
|
2142
2142
|
return n.modelValue;
|
|
2143
2143
|
},
|
|
2144
2144
|
set(i) {
|
|
2145
|
-
|
|
2145
|
+
o("update:modelValue", i);
|
|
2146
2146
|
}
|
|
2147
2147
|
});
|
|
2148
|
-
return t({ focus: () =>
|
|
2148
|
+
return t({ focus: () => a.value.focus() }), (i, c) => (d(), u(v, null, [
|
|
2149
2149
|
e.show ? (d(), u("div", {
|
|
2150
2150
|
key: 0,
|
|
2151
|
-
class:
|
|
2151
|
+
class: p(e.field_name)
|
|
2152
2152
|
}, [
|
|
2153
|
-
s("h3",
|
|
2154
|
-
s("p",
|
|
2155
|
-
|
|
2153
|
+
s("h3", Ts, h(e.label_name), 1),
|
|
2154
|
+
s("p", Ms, h(e.type == "password" ? e.modelValue.replace(/./g, "*") : e.modelValue), 1),
|
|
2155
|
+
Ns
|
|
2156
2156
|
], 2)) : g("", !0),
|
|
2157
2157
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2158
2158
|
key: 1,
|
|
2159
|
-
class:
|
|
2159
|
+
class: p(["mb-4", e.field_name])
|
|
2160
2160
|
}, [
|
|
2161
2161
|
s("label", {
|
|
2162
|
-
class:
|
|
2162
|
+
class: p({
|
|
2163
2163
|
"gl-label-form": e.error_message == "",
|
|
2164
2164
|
"gl-label-form-invalid": e.error_message !== "",
|
|
2165
2165
|
required: e.is_required
|
|
2166
2166
|
}),
|
|
2167
2167
|
for: e.field_name
|
|
2168
|
-
}, h(e.label_name), 11,
|
|
2168
|
+
}, h(e.label_name), 11, Vs),
|
|
2169
2169
|
P(s("input", {
|
|
2170
2170
|
required: e.is_required,
|
|
2171
2171
|
name: e.field_name,
|
|
2172
2172
|
id: e.field_name,
|
|
2173
|
-
class:
|
|
2173
|
+
class: p({
|
|
2174
2174
|
"gl-input-form": e.error_message == "",
|
|
2175
2175
|
"gl-input-form-invalid": e.error_message !== ""
|
|
2176
2176
|
}),
|
|
@@ -2178,71 +2178,71 @@ const md = /* @__PURE__ */ D(Qr, [["render", ts]]), rs = { class: "font-bold pte
|
|
|
2178
2178
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => l.value = f),
|
|
2179
2179
|
onKeydown: c[1] || (c[1] = (f) => i.$emit("keydown", f)),
|
|
2180
2180
|
ref_key: "input",
|
|
2181
|
-
ref:
|
|
2182
|
-
}, null, 42,
|
|
2181
|
+
ref: a
|
|
2182
|
+
}, null, 42, Ls), [
|
|
2183
2183
|
[We, l.value]
|
|
2184
2184
|
]),
|
|
2185
|
-
s("span",
|
|
2186
|
-
s("small",
|
|
2185
|
+
s("span", Bs, h(e.error_message), 1),
|
|
2186
|
+
s("small", Gs, h(e.description), 1)
|
|
2187
2187
|
], 2))
|
|
2188
2188
|
], 64));
|
|
2189
2189
|
}
|
|
2190
|
-
},
|
|
2190
|
+
}, Fs = {
|
|
2191
2191
|
setup(e, { slots: t }) {
|
|
2192
|
-
const r = O(t.default().map((
|
|
2192
|
+
const r = O(t.default().map((o) => o.props)), n = O(r.value[0].title);
|
|
2193
2193
|
return Xe("selectedTitle", n), {
|
|
2194
2194
|
tabs: r,
|
|
2195
2195
|
selectedTitle: n
|
|
2196
2196
|
};
|
|
2197
2197
|
}
|
|
2198
|
-
},
|
|
2199
|
-
function
|
|
2198
|
+
}, Rs = { class: "flex flex-wrap" }, Us = { class: "w-full" }, qs = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, zs = ["onClick"], Hs = { 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" }, Zs = { class: "flex-auto px-4 py-5" }, Ks = { class: "tab-content tab-space" };
|
|
2199
|
+
function Ws(e, t, r, n, o, a) {
|
|
2200
2200
|
return d(), u(v, null, [
|
|
2201
|
-
s("div",
|
|
2202
|
-
s("div",
|
|
2203
|
-
s("ul",
|
|
2201
|
+
s("div", Rs, [
|
|
2202
|
+
s("div", Us, [
|
|
2203
|
+
s("ul", qs, [
|
|
2204
2204
|
(d(!0), u(v, null, $(n.tabs, (l) => (d(), u("li", {
|
|
2205
2205
|
key: l.title,
|
|
2206
2206
|
onClick: (i) => n.selectedTitle = l.title,
|
|
2207
2207
|
class: "flex-auto -mb-px text-center"
|
|
2208
2208
|
}, [
|
|
2209
2209
|
s("a", {
|
|
2210
|
-
class:
|
|
2210
|
+
class: p([{ "text-slate-600 bg-white dark:bg-meta-4": n.selectedTitle != l.title, "text-white bg-slate-600 dark:bg-primary": n.selectedTitle === l.title }, "block px-5 py-3 text-xs font-bold leading-normal uppercase rounded shadow-lg hover:text-white tex hover:bg-slate-600 dark:hover:bg-primary dark:text-white tabs_buttons"])
|
|
2211
2211
|
}, [
|
|
2212
2212
|
s("i", {
|
|
2213
|
-
class:
|
|
2213
|
+
class: p([l.icon, "mr-1 text-base"])
|
|
2214
2214
|
}, null, 2),
|
|
2215
2215
|
w(" " + h(l.title), 1)
|
|
2216
2216
|
], 2)
|
|
2217
|
-
], 8,
|
|
2217
|
+
], 8, zs))), 128))
|
|
2218
2218
|
])
|
|
2219
2219
|
])
|
|
2220
2220
|
]),
|
|
2221
|
-
s("div",
|
|
2222
|
-
s("div",
|
|
2223
|
-
s("div",
|
|
2221
|
+
s("div", Hs, [
|
|
2222
|
+
s("div", Zs, [
|
|
2223
|
+
s("div", Ks, [
|
|
2224
2224
|
A(e.$slots, "default")
|
|
2225
2225
|
])
|
|
2226
2226
|
])
|
|
2227
2227
|
])
|
|
2228
2228
|
], 64);
|
|
2229
2229
|
}
|
|
2230
|
-
const
|
|
2230
|
+
const wd = /* @__PURE__ */ D(Fs, [["render", Ws]]), Xs = {
|
|
2231
2231
|
props: ["title"],
|
|
2232
2232
|
setup() {
|
|
2233
2233
|
return {
|
|
2234
2234
|
selectedTitle: ve("selectedTitle")
|
|
2235
2235
|
};
|
|
2236
2236
|
}
|
|
2237
|
-
},
|
|
2238
|
-
function
|
|
2239
|
-
return P((d(), u("div",
|
|
2237
|
+
}, Ys = { class: "block" };
|
|
2238
|
+
function Js(e, t, r, n, o, a) {
|
|
2239
|
+
return P((d(), u("div", Ys, [
|
|
2240
2240
|
A(e.$slots, "default")
|
|
2241
2241
|
], 512)), [
|
|
2242
2242
|
[B, r.title == n.selectedTitle]
|
|
2243
2243
|
]);
|
|
2244
2244
|
}
|
|
2245
|
-
const
|
|
2245
|
+
const kd = /* @__PURE__ */ D(Xs, [["render", Js]]), Qs = {
|
|
2246
2246
|
props: {
|
|
2247
2247
|
elements_to_show_prop: {
|
|
2248
2248
|
type: Number,
|
|
@@ -2295,23 +2295,23 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2295
2295
|
generateRandomString(e) {
|
|
2296
2296
|
let t = "";
|
|
2297
2297
|
const r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", n = r.length;
|
|
2298
|
-
for (let
|
|
2298
|
+
for (let o = 0; o < e; o++)
|
|
2299
2299
|
t += r.charAt(Math.floor(Math.random() * n));
|
|
2300
2300
|
return t;
|
|
2301
2301
|
},
|
|
2302
2302
|
movingActions() {
|
|
2303
2303
|
let e = this, t = document.getElementById("slider_" + this.Random_string);
|
|
2304
|
-
const r = (
|
|
2304
|
+
const r = (o) => {
|
|
2305
2305
|
t.style.cursor = "grabbing";
|
|
2306
|
-
const
|
|
2306
|
+
const a = (i) => {
|
|
2307
2307
|
const c = i.clientX || i.touches && i.touches[0] && i.touches[0].clientX, f = i.clientY || i.touches && i.touches[0] && i.touches[0].clientY, m = c - e.initialX, y = f - e.initialY;
|
|
2308
2308
|
Math.abs(m) > Math.abs(y) ? (i.preventDefault(), Math.abs(m) >= 70 && (m < 0 ? e.next() : e.prev(), e.initialX = c)) : t.style.cursor = "grab", Math.abs(y) > Math.abs(m) && (t.style.cursor = "grab");
|
|
2309
2309
|
}, l = () => {
|
|
2310
|
-
document.removeEventListener("mousemove",
|
|
2310
|
+
document.removeEventListener("mousemove", a), document.removeEventListener("touchmove", a), document.removeEventListener("mouseup", l), document.removeEventListener("touchend", l), t.style.cursor = "grab";
|
|
2311
2311
|
};
|
|
2312
|
-
document.addEventListener("mousemove",
|
|
2313
|
-
}, n = (
|
|
2314
|
-
|
|
2312
|
+
document.addEventListener("mousemove", a), document.addEventListener("touchmove", a, { passive: !1 }), document.addEventListener("mouseup", l), document.addEventListener("touchend", l), e.initialX = o.clientX || o.touches && o.touches[0] && o.touches[0].clientX, e.initialY = o.clientY || o.touches && o.touches[0] && o.touches[0].clientY;
|
|
2313
|
+
}, n = (o) => {
|
|
2314
|
+
o.key === "ArrowLeft" ? e.prev() : o.key === "ArrowRight" && e.next();
|
|
2315
2315
|
};
|
|
2316
2316
|
t.addEventListener("mousedown", r), t.addEventListener("touchstart", r), document.addEventListener("keydown", n);
|
|
2317
2317
|
},
|
|
@@ -2322,17 +2322,17 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2322
2322
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
2323
2323
|
},
|
|
2324
2324
|
initSlider() {
|
|
2325
|
-
let e = document.getElementById("sliderContainer_" + this.Random_string), t = document.getElementById("mainSliderContainer_" + this.Random_string), r = document.getElementById("slider_" + this.Random_string), n = r.querySelectorAll("li"),
|
|
2326
|
-
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, l = this.hide_arrow ? t.clientWidth :
|
|
2327
|
-
this.dotsNum = this.elementsToShow == 1 ?
|
|
2328
|
-
let i = this.elementsToShow == 1 ? l *
|
|
2325
|
+
let e = document.getElementById("sliderContainer_" + this.Random_string), t = document.getElementById("mainSliderContainer_" + this.Random_string), r = document.getElementById("slider_" + this.Random_string), n = r.querySelectorAll("li"), o = Array.from(n).filter((i) => i.parentNode === r), a = e.clientWidth, l = a / this.elementsToShow;
|
|
2326
|
+
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, l = this.hide_arrow ? t.clientWidth : a) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, l = this.hide_arrow ? t.clientWidth : a), o.length > 1) {
|
|
2327
|
+
this.dotsNum = this.elementsToShow == 1 ? o.length : o.length - this.elementsToShow + 1;
|
|
2328
|
+
let i = this.elementsToShow == 1 ? l * o.length / this.dotsNum : l * (o.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
2329
2329
|
this.dotsNavigation = [];
|
|
2330
2330
|
for (let c = 0; c < this.dotsNum; c++)
|
|
2331
2331
|
this.dotsNavigation.push(i * c);
|
|
2332
2332
|
}
|
|
2333
|
-
r.style.width =
|
|
2334
|
-
for (let i = 0; i <
|
|
2335
|
-
const c =
|
|
2333
|
+
r.style.width = o.length * l + "px", r.style.transition = "margin", r.style.transitionDuration = "1s";
|
|
2334
|
+
for (let i = 0; i < o.length; i++) {
|
|
2335
|
+
const c = o[i];
|
|
2336
2336
|
c.style.width = l + "px";
|
|
2337
2337
|
}
|
|
2338
2338
|
},
|
|
@@ -2341,10 +2341,10 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2341
2341
|
this.direction_property == "rtl" ? t.style.marginRight = -this.dotsNavigation[e - 1] + "px" : t.style.marginLeft = -this.dotsNavigation[e - 1] + "px", this.currentDot = e;
|
|
2342
2342
|
}
|
|
2343
2343
|
}
|
|
2344
|
-
}, E = (e) => (Ye("data-v-a94f16a9"), e = e(), Je(), e),
|
|
2344
|
+
}, E = (e) => (Ye("data-v-a94f16a9"), e = e(), Je(), e), en = ["id"], tn = {
|
|
2345
2345
|
key: 0,
|
|
2346
2346
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2347
|
-
},
|
|
2347
|
+
}, rn = { class: "w-full" }, sn = {
|
|
2348
2348
|
key: 0,
|
|
2349
2349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2350
2350
|
class: "w-6 h-6",
|
|
@@ -2352,13 +2352,13 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2352
2352
|
viewBox: "0 0 24 24",
|
|
2353
2353
|
stroke: "currentColor",
|
|
2354
2354
|
"stroke-width": "2"
|
|
2355
|
-
},
|
|
2355
|
+
}, nn = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2356
2356
|
"stroke-linecap": "round",
|
|
2357
2357
|
"stroke-linejoin": "round",
|
|
2358
2358
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2359
|
-
}, null, -1)),
|
|
2360
|
-
|
|
2361
|
-
],
|
|
2359
|
+
}, null, -1)), an = [
|
|
2360
|
+
nn
|
|
2361
|
+
], on = {
|
|
2362
2362
|
key: 1,
|
|
2363
2363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2364
2364
|
class: "w-6 h-6",
|
|
@@ -2366,13 +2366,13 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2366
2366
|
viewBox: "0 0 24 24",
|
|
2367
2367
|
stroke: "currentColor",
|
|
2368
2368
|
"stroke-width": "2"
|
|
2369
|
-
},
|
|
2369
|
+
}, ln = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2370
2370
|
"stroke-linecap": "round",
|
|
2371
2371
|
"stroke-linejoin": "round",
|
|
2372
2372
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2373
|
-
}, null, -1)),
|
|
2374
|
-
|
|
2375
|
-
],
|
|
2373
|
+
}, null, -1)), dn = [
|
|
2374
|
+
ln
|
|
2375
|
+
], un = ["id"], cn = ["id"], fn = { class: "w-full" }, hn = {
|
|
2376
2376
|
key: 0,
|
|
2377
2377
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2378
2378
|
class: "w-6 h-6",
|
|
@@ -2380,13 +2380,13 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2380
2380
|
viewBox: "0 0 24 24",
|
|
2381
2381
|
stroke: "currentColor",
|
|
2382
2382
|
"stroke-width": "2"
|
|
2383
|
-
},
|
|
2383
|
+
}, gn = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2384
2384
|
"stroke-linecap": "round",
|
|
2385
2385
|
"stroke-linejoin": "round",
|
|
2386
2386
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2387
|
-
}, null, -1)),
|
|
2388
|
-
|
|
2389
|
-
],
|
|
2387
|
+
}, null, -1)), mn = [
|
|
2388
|
+
gn
|
|
2389
|
+
], pn = {
|
|
2390
2390
|
key: 1,
|
|
2391
2391
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2392
2392
|
class: "w-6 h-6",
|
|
@@ -2394,13 +2394,13 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2394
2394
|
viewBox: "0 0 24 24",
|
|
2395
2395
|
stroke: "currentColor",
|
|
2396
2396
|
"stroke-width": "2"
|
|
2397
|
-
},
|
|
2397
|
+
}, _n = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2398
2398
|
"stroke-linecap": "round",
|
|
2399
2399
|
"stroke-linejoin": "round",
|
|
2400
2400
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2401
|
-
}, null, -1)),
|
|
2402
|
-
|
|
2403
|
-
],
|
|
2401
|
+
}, null, -1)), bn = [
|
|
2402
|
+
_n
|
|
2403
|
+
], yn = { class: "w-full" }, vn = {
|
|
2404
2404
|
key: 0,
|
|
2405
2405
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2406
2406
|
class: "w-6 h-6",
|
|
@@ -2408,13 +2408,13 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2408
2408
|
viewBox: "0 0 24 24",
|
|
2409
2409
|
stroke: "currentColor",
|
|
2410
2410
|
"stroke-width": "2"
|
|
2411
|
-
},
|
|
2411
|
+
}, xn = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2412
2412
|
"stroke-linecap": "round",
|
|
2413
2413
|
"stroke-linejoin": "round",
|
|
2414
2414
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2415
|
-
}, null, -1)),
|
|
2416
|
-
|
|
2417
|
-
],
|
|
2415
|
+
}, null, -1)), wn = [
|
|
2416
|
+
xn
|
|
2417
|
+
], kn = {
|
|
2418
2418
|
key: 1,
|
|
2419
2419
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2420
2420
|
class: "w-6 h-6",
|
|
@@ -2422,23 +2422,23 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2422
2422
|
viewBox: "0 0 24 24",
|
|
2423
2423
|
stroke: "currentColor",
|
|
2424
2424
|
"stroke-width": "2"
|
|
2425
|
-
},
|
|
2425
|
+
}, $n = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2426
2426
|
"stroke-linecap": "round",
|
|
2427
2427
|
"stroke-linejoin": "round",
|
|
2428
2428
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2429
|
-
}, null, -1)),
|
|
2430
|
-
|
|
2431
|
-
],
|
|
2432
|
-
|
|
2433
|
-
],
|
|
2429
|
+
}, null, -1)), Cn = [
|
|
2430
|
+
$n
|
|
2431
|
+
], Sn = ["onClick"], On = /* @__PURE__ */ E(() => /* @__PURE__ */ s("span", null, null, -1)), Dn = [
|
|
2432
|
+
On
|
|
2433
|
+
], Pn = {
|
|
2434
2434
|
key: 1,
|
|
2435
2435
|
class: "flex justify-between pl-5 pr-5"
|
|
2436
|
-
},
|
|
2437
|
-
|
|
2438
|
-
],
|
|
2436
|
+
}, En = ["onClick"], jn = /* @__PURE__ */ E(() => /* @__PURE__ */ s("span", null, null, -1)), An = [
|
|
2437
|
+
jn
|
|
2438
|
+
], In = {
|
|
2439
2439
|
key: 0,
|
|
2440
2440
|
class: "flex"
|
|
2441
|
-
},
|
|
2441
|
+
}, Tn = { class: "flex items-center" }, Mn = { class: "w-full" }, Nn = {
|
|
2442
2442
|
key: 0,
|
|
2443
2443
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2444
2444
|
class: "w-6 h-6",
|
|
@@ -2446,13 +2446,13 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2446
2446
|
viewBox: "0 0 24 24",
|
|
2447
2447
|
stroke: "currentColor",
|
|
2448
2448
|
"stroke-width": "2"
|
|
2449
|
-
},
|
|
2449
|
+
}, Vn = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2450
2450
|
"stroke-linecap": "round",
|
|
2451
2451
|
"stroke-linejoin": "round",
|
|
2452
2452
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2453
|
-
}, null, -1)),
|
|
2454
|
-
|
|
2455
|
-
],
|
|
2453
|
+
}, null, -1)), Ln = [
|
|
2454
|
+
Vn
|
|
2455
|
+
], Bn = {
|
|
2456
2456
|
key: 1,
|
|
2457
2457
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2458
2458
|
class: "w-6 h-6",
|
|
@@ -2460,13 +2460,13 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2460
2460
|
viewBox: "0 0 24 24",
|
|
2461
2461
|
stroke: "currentColor",
|
|
2462
2462
|
"stroke-width": "2"
|
|
2463
|
-
},
|
|
2463
|
+
}, Gn = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2464
2464
|
"stroke-linecap": "round",
|
|
2465
2465
|
"stroke-linejoin": "round",
|
|
2466
2466
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2467
|
-
}, null, -1)),
|
|
2468
|
-
|
|
2469
|
-
],
|
|
2467
|
+
}, null, -1)), Fn = [
|
|
2468
|
+
Gn
|
|
2469
|
+
], Rn = { class: "flex items-center" }, Un = { class: "w-full" }, qn = {
|
|
2470
2470
|
key: 0,
|
|
2471
2471
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2472
2472
|
class: "w-6 h-6",
|
|
@@ -2474,13 +2474,13 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2474
2474
|
viewBox: "0 0 24 24",
|
|
2475
2475
|
stroke: "currentColor",
|
|
2476
2476
|
"stroke-width": "2"
|
|
2477
|
-
},
|
|
2477
|
+
}, zn = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2478
2478
|
"stroke-linecap": "round",
|
|
2479
2479
|
"stroke-linejoin": "round",
|
|
2480
2480
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2481
|
-
}, null, -1)),
|
|
2482
|
-
|
|
2483
|
-
],
|
|
2481
|
+
}, null, -1)), Hn = [
|
|
2482
|
+
zn
|
|
2483
|
+
], Zn = {
|
|
2484
2484
|
key: 1,
|
|
2485
2485
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2486
2486
|
class: "w-6 h-6",
|
|
@@ -2488,16 +2488,16 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2488
2488
|
viewBox: "0 0 24 24",
|
|
2489
2489
|
stroke: "currentColor",
|
|
2490
2490
|
"stroke-width": "2"
|
|
2491
|
-
},
|
|
2491
|
+
}, Kn = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2492
2492
|
"stroke-linecap": "round",
|
|
2493
2493
|
"stroke-linejoin": "round",
|
|
2494
2494
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2495
|
-
}, null, -1)),
|
|
2496
|
-
|
|
2497
|
-
],
|
|
2495
|
+
}, null, -1)), Wn = [
|
|
2496
|
+
Kn
|
|
2497
|
+
], Xn = {
|
|
2498
2498
|
key: 1,
|
|
2499
2499
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2500
|
-
},
|
|
2500
|
+
}, Yn = { class: "w-full" }, Jn = {
|
|
2501
2501
|
key: 0,
|
|
2502
2502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2503
2503
|
class: "w-6 h-6",
|
|
@@ -2505,13 +2505,13 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2505
2505
|
viewBox: "0 0 24 24",
|
|
2506
2506
|
stroke: "currentColor",
|
|
2507
2507
|
"stroke-width": "2"
|
|
2508
|
-
},
|
|
2508
|
+
}, Qn = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2509
2509
|
"stroke-linecap": "round",
|
|
2510
2510
|
"stroke-linejoin": "round",
|
|
2511
2511
|
d: "M13 7l5 5m0 0l-5 5m5-5H6"
|
|
2512
|
-
}, null, -1)),
|
|
2513
|
-
|
|
2514
|
-
],
|
|
2512
|
+
}, null, -1)), ea = [
|
|
2513
|
+
Qn
|
|
2514
|
+
], ta = {
|
|
2515
2515
|
key: 1,
|
|
2516
2516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2517
2517
|
class: "w-6 h-6",
|
|
@@ -2519,32 +2519,32 @@ const xd = /* @__PURE__ */ D(Ks, [["render", Xs]]), Ys = {
|
|
|
2519
2519
|
viewBox: "0 0 24 24",
|
|
2520
2520
|
stroke: "currentColor",
|
|
2521
2521
|
"stroke-width": "2"
|
|
2522
|
-
},
|
|
2522
|
+
}, ra = /* @__PURE__ */ E(() => /* @__PURE__ */ s("path", {
|
|
2523
2523
|
"stroke-linecap": "round",
|
|
2524
2524
|
"stroke-linejoin": "round",
|
|
2525
2525
|
d: "M11 17l-5-5m0 0l5-5m-5 5h12"
|
|
2526
|
-
}, null, -1)),
|
|
2527
|
-
|
|
2526
|
+
}, null, -1)), sa = [
|
|
2527
|
+
ra
|
|
2528
2528
|
];
|
|
2529
|
-
function
|
|
2529
|
+
function na(e, t, r, n, o, a) {
|
|
2530
2530
|
return d(), u("div", null, [
|
|
2531
2531
|
s("div", {
|
|
2532
|
-
class:
|
|
2532
|
+
class: p(["", !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
2533
2533
|
id: "mainSliderContainer_" + e.Random_string
|
|
2534
2534
|
}, [
|
|
2535
|
-
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div",
|
|
2536
|
-
s("div",
|
|
2535
|
+
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", tn, [
|
|
2536
|
+
s("div", rn, [
|
|
2537
2537
|
s("button", {
|
|
2538
2538
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2539
|
-
onClick: t[0] || (t[0] = (l) =>
|
|
2539
|
+
onClick: t[0] || (t[0] = (l) => a.prev())
|
|
2540
2540
|
}, [
|
|
2541
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2542
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2541
|
+
r.direction_property == "ltr" ? (d(), u("svg", sn, an)) : g("", !0),
|
|
2542
|
+
r.direction_property == "rtl" ? (d(), u("svg", on, dn)) : g("", !0)
|
|
2543
2543
|
])
|
|
2544
2544
|
])
|
|
2545
2545
|
])) : g("", !0),
|
|
2546
2546
|
s("div", {
|
|
2547
|
-
class:
|
|
2547
|
+
class: p(["overflow-hidden", a.sliderContainerAction()]),
|
|
2548
2548
|
id: "sliderContainer_" + e.Random_string
|
|
2549
2549
|
}, [
|
|
2550
2550
|
s("ul", {
|
|
@@ -2553,101 +2553,101 @@ function ro(e, t, r, n, a, o) {
|
|
|
2553
2553
|
}, [
|
|
2554
2554
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2555
2555
|
key: 0,
|
|
2556
|
-
class:
|
|
2556
|
+
class: p(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex", r.direction_property == "rtl" ? "arrow_button_next" : "arrow_button_prev"])
|
|
2557
2557
|
}, [
|
|
2558
|
-
s("div",
|
|
2558
|
+
s("div", fn, [
|
|
2559
2559
|
s("button", {
|
|
2560
2560
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2561
|
-
onClick: t[1] || (t[1] =
|
|
2561
|
+
onClick: t[1] || (t[1] = M((l) => a.prev(), ["stop"]))
|
|
2562
2562
|
}, [
|
|
2563
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2564
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2563
|
+
r.direction_property == "ltr" ? (d(), u("svg", hn, mn)) : g("", !0),
|
|
2564
|
+
r.direction_property == "rtl" ? (d(), u("svg", pn, bn)) : g("", !0)
|
|
2565
2565
|
])
|
|
2566
2566
|
])
|
|
2567
2567
|
], 2)) : g("", !0),
|
|
2568
2568
|
A(e.$slots, "default", {}, void 0, !0),
|
|
2569
2569
|
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (d(), u("div", {
|
|
2570
2570
|
key: 1,
|
|
2571
|
-
class:
|
|
2571
|
+
class: p(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button", r.direction_property == "rtl" ? "arrow_button_prev" : "arrow_button_next"])
|
|
2572
2572
|
}, [
|
|
2573
|
-
s("div",
|
|
2573
|
+
s("div", yn, [
|
|
2574
2574
|
s("button", {
|
|
2575
2575
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2576
|
-
onClick: t[2] || (t[2] =
|
|
2576
|
+
onClick: t[2] || (t[2] = M((l) => a.next(), ["stop"]))
|
|
2577
2577
|
}, [
|
|
2578
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2579
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2578
|
+
r.direction_property == "ltr" ? (d(), u("svg", vn, wn)) : g("", !0),
|
|
2579
|
+
r.direction_property == "rtl" ? (d(), u("svg", kn, Cn)) : g("", !0)
|
|
2580
2580
|
])
|
|
2581
2581
|
])
|
|
2582
2582
|
], 2)) : g("", !0)
|
|
2583
|
-
], 8,
|
|
2583
|
+
], 8, cn),
|
|
2584
2584
|
r.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (d(), u("div", {
|
|
2585
2585
|
key: 0,
|
|
2586
|
-
class:
|
|
2586
|
+
class: p(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2587
2587
|
}, [
|
|
2588
2588
|
(d(!0), u(v, null, $(e.dotsNum, (l) => (d(), u("button", {
|
|
2589
2589
|
role: "button",
|
|
2590
|
-
class:
|
|
2590
|
+
class: p(["gl-dot", { active: e.currentDot == l }]),
|
|
2591
2591
|
key: l,
|
|
2592
|
-
onClick: (i) =>
|
|
2593
|
-
},
|
|
2592
|
+
onClick: (i) => a.setDot(l)
|
|
2593
|
+
}, Dn, 10, Sn))), 128))
|
|
2594
2594
|
], 2)) : g("", !0),
|
|
2595
|
-
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div",
|
|
2595
|
+
r.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (d(), u("div", Pn, [
|
|
2596
2596
|
s("div", {
|
|
2597
|
-
class:
|
|
2597
|
+
class: p(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2598
2598
|
}, [
|
|
2599
2599
|
(d(!0), u(v, null, $(e.dotsNum, (l) => (d(), u("button", {
|
|
2600
2600
|
role: "button",
|
|
2601
|
-
class:
|
|
2601
|
+
class: p(["gl-dot", { active: e.currentDot == l }]),
|
|
2602
2602
|
key: l,
|
|
2603
|
-
onClick: (i) =>
|
|
2604
|
-
},
|
|
2603
|
+
onClick: (i) => a.setDot(l)
|
|
2604
|
+
}, An, 10, En))), 128))
|
|
2605
2605
|
], 2),
|
|
2606
|
-
e.dotsNum > 0 ? (d(), u("div",
|
|
2607
|
-
s("div",
|
|
2608
|
-
s("div",
|
|
2606
|
+
e.dotsNum > 0 ? (d(), u("div", In, [
|
|
2607
|
+
s("div", Tn, [
|
|
2608
|
+
s("div", Mn, [
|
|
2609
2609
|
s("button", {
|
|
2610
|
-
class:
|
|
2611
|
-
onClick: t[3] || (t[3] = (l) =>
|
|
2610
|
+
class: p(["p-3 rounded-full arrow_button_styles", r.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2611
|
+
onClick: t[3] || (t[3] = (l) => a.prev())
|
|
2612
2612
|
}, [
|
|
2613
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2614
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2613
|
+
r.direction_property == "ltr" ? (d(), u("svg", Nn, Ln)) : g("", !0),
|
|
2614
|
+
r.direction_property == "rtl" ? (d(), u("svg", Bn, Fn)) : g("", !0)
|
|
2615
2615
|
], 2)
|
|
2616
2616
|
])
|
|
2617
2617
|
]),
|
|
2618
|
-
s("div",
|
|
2619
|
-
s("div",
|
|
2618
|
+
s("div", Rn, [
|
|
2619
|
+
s("div", Un, [
|
|
2620
2620
|
s("button", {
|
|
2621
2621
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2622
|
-
onClick: t[4] || (t[4] = (l) =>
|
|
2622
|
+
onClick: t[4] || (t[4] = (l) => a.next())
|
|
2623
2623
|
}, [
|
|
2624
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2625
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2624
|
+
r.direction_property == "ltr" ? (d(), u("svg", qn, Hn)) : g("", !0),
|
|
2625
|
+
r.direction_property == "rtl" ? (d(), u("svg", Zn, Wn)) : g("", !0)
|
|
2626
2626
|
])
|
|
2627
2627
|
])
|
|
2628
2628
|
])
|
|
2629
2629
|
])) : g("", !0)
|
|
2630
2630
|
])) : g("", !0)
|
|
2631
|
-
], 10,
|
|
2632
|
-
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div",
|
|
2633
|
-
s("div",
|
|
2631
|
+
], 10, un),
|
|
2632
|
+
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", Xn, [
|
|
2633
|
+
s("div", Yn, [
|
|
2634
2634
|
s("button", {
|
|
2635
2635
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2636
|
-
onClick: t[5] || (t[5] = (l) =>
|
|
2636
|
+
onClick: t[5] || (t[5] = (l) => a.next())
|
|
2637
2637
|
}, [
|
|
2638
|
-
r.direction_property == "ltr" ? (d(), u("svg",
|
|
2639
|
-
r.direction_property == "rtl" ? (d(), u("svg",
|
|
2638
|
+
r.direction_property == "ltr" ? (d(), u("svg", Jn, ea)) : g("", !0),
|
|
2639
|
+
r.direction_property == "rtl" ? (d(), u("svg", ta, sa)) : g("", !0)
|
|
2640
2640
|
])
|
|
2641
2641
|
])
|
|
2642
2642
|
])) : g("", !0)
|
|
2643
|
-
], 10,
|
|
2643
|
+
], 10, en)
|
|
2644
2644
|
]);
|
|
2645
2645
|
}
|
|
2646
|
-
const
|
|
2646
|
+
const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9"]]), aa = {
|
|
2647
2647
|
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",
|
|
2648
2648
|
tabindex: "-1",
|
|
2649
2649
|
"aria-hidden": "true"
|
|
2650
|
-
},
|
|
2650
|
+
}, oa = { 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" }, ia = { class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, la = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, da = /* @__PURE__ */ s("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
|
|
2651
2651
|
/* @__PURE__ */ s("svg", {
|
|
2652
2652
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2653
2653
|
fill: "currentColor",
|
|
@@ -2661,9 +2661,9 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
2661
2661
|
d: "M6 18L18 6M6 6l12 12"
|
|
2662
2662
|
})
|
|
2663
2663
|
])
|
|
2664
|
-
], -1),
|
|
2665
|
-
|
|
2666
|
-
],
|
|
2664
|
+
], -1), ua = [
|
|
2665
|
+
da
|
|
2666
|
+
], ca = { class: "relative p-4 overflow-y-auto" }, fa = { 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" }, Cd = {
|
|
2667
2667
|
__name: "GlModal",
|
|
2668
2668
|
props: {
|
|
2669
2669
|
is_open: {
|
|
@@ -2681,37 +2681,37 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
2681
2681
|
},
|
|
2682
2682
|
emits: ["closeModal"],
|
|
2683
2683
|
setup(e, { emit: t }) {
|
|
2684
|
-
const r = e, n = t,
|
|
2684
|
+
const r = e, n = t, o = () => {
|
|
2685
2685
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2686
|
-
},
|
|
2686
|
+
}, a = () => {
|
|
2687
2687
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
2688
2688
|
}, l = () => {
|
|
2689
|
-
n("closeModal"),
|
|
2689
|
+
n("closeModal"), a();
|
|
2690
2690
|
};
|
|
2691
2691
|
return W(
|
|
2692
2692
|
() => r.is_open,
|
|
2693
2693
|
(i, c) => {
|
|
2694
|
-
i ?
|
|
2694
|
+
i ? o() : a();
|
|
2695
2695
|
},
|
|
2696
2696
|
{ immediate: !0, deep: !0 }
|
|
2697
|
-
), (i, c) => P((d(), u("div",
|
|
2697
|
+
), (i, c) => P((d(), u("div", aa, [
|
|
2698
2698
|
s("div", {
|
|
2699
|
-
class:
|
|
2699
|
+
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])
|
|
2700
2700
|
}, [
|
|
2701
|
-
s("div",
|
|
2702
|
-
s("div",
|
|
2703
|
-
s("h5",
|
|
2701
|
+
s("div", oa, [
|
|
2702
|
+
s("div", ia, [
|
|
2703
|
+
s("h5", la, h(e.title), 1),
|
|
2704
2704
|
s("button", {
|
|
2705
2705
|
type: "button",
|
|
2706
2706
|
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",
|
|
2707
2707
|
onClick: l,
|
|
2708
2708
|
"aria-label": "Close"
|
|
2709
|
-
},
|
|
2709
|
+
}, ua)
|
|
2710
2710
|
]),
|
|
2711
|
-
s("div",
|
|
2711
|
+
s("div", ca, [
|
|
2712
2712
|
A(i.$slots, "body")
|
|
2713
2713
|
]),
|
|
2714
|
-
s("div",
|
|
2714
|
+
s("div", fa, [
|
|
2715
2715
|
A(i.$slots, "buttons"),
|
|
2716
2716
|
s("button", {
|
|
2717
2717
|
onClick: l,
|
|
@@ -2725,7 +2725,7 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
2725
2725
|
[B, e.is_open]
|
|
2726
2726
|
]);
|
|
2727
2727
|
}
|
|
2728
|
-
},
|
|
2728
|
+
}, ha = { class: "mb-4" }, ga = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, ma = { class: "relative inline-flex items-center cursor-pointer" }, pa = ["name", "id", "checked"], _a = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), ba = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ya = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-200 rounded-lg no-underlin dark:border-gray-600 dark:focus:border-frontenddark" }, va = { class: "relative inline-flex items-center cursor-pointer" }, xa = ["name", "id"], wa = /* @__PURE__ */ s("div", { class: "w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" }, null, -1), ka = { class: "gl-span-form-error" }, $a = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Sd = {
|
|
2729
2729
|
__name: "GlToggleBox",
|
|
2730
2730
|
props: {
|
|
2731
2731
|
is_required: {
|
|
@@ -2767,7 +2767,7 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
2767
2767
|
},
|
|
2768
2768
|
emits: ["update:modelValue"],
|
|
2769
2769
|
setup(e, { emit: t }) {
|
|
2770
|
-
const r = e, n = t,
|
|
2770
|
+
const r = e, n = t, o = O(null), a = z({
|
|
2771
2771
|
get() {
|
|
2772
2772
|
return r.modelValue;
|
|
2773
2773
|
},
|
|
@@ -2778,12 +2778,12 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
2778
2778
|
return (l, i) => (d(), u(v, null, [
|
|
2779
2779
|
e.show ? (d(), u("div", {
|
|
2780
2780
|
key: 0,
|
|
2781
|
-
class:
|
|
2781
|
+
class: p(e.field_name)
|
|
2782
2782
|
}, [
|
|
2783
|
-
s("div",
|
|
2784
|
-
s("li",
|
|
2783
|
+
s("div", ha, [
|
|
2784
|
+
s("li", ga, [
|
|
2785
2785
|
w(h(e.label_name) + " ", 1),
|
|
2786
|
-
s("label",
|
|
2786
|
+
s("label", ma, [
|
|
2787
2787
|
s("input", {
|
|
2788
2788
|
type: "checkbox",
|
|
2789
2789
|
class: "sr-only peer",
|
|
@@ -2793,22 +2793,22 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
2793
2793
|
"true-value": 1,
|
|
2794
2794
|
"false-value": 0,
|
|
2795
2795
|
ref_key: "input",
|
|
2796
|
-
ref:
|
|
2796
|
+
ref: o,
|
|
2797
2797
|
disabled: ""
|
|
2798
|
-
}, null, 8,
|
|
2799
|
-
|
|
2798
|
+
}, null, 8, pa),
|
|
2799
|
+
_a
|
|
2800
2800
|
])
|
|
2801
2801
|
])
|
|
2802
2802
|
]),
|
|
2803
|
-
|
|
2803
|
+
ba
|
|
2804
2804
|
], 2)) : g("", !0),
|
|
2805
2805
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2806
2806
|
key: 1,
|
|
2807
|
-
class:
|
|
2807
|
+
class: p(["mb-4", e.field_name])
|
|
2808
2808
|
}, [
|
|
2809
|
-
s("li",
|
|
2809
|
+
s("li", ya, [
|
|
2810
2810
|
w(h(e.label_name) + " ", 1),
|
|
2811
|
-
s("label",
|
|
2811
|
+
s("label", va, [
|
|
2812
2812
|
P(s("input", {
|
|
2813
2813
|
type: "checkbox",
|
|
2814
2814
|
class: "sr-only peer",
|
|
@@ -2817,26 +2817,26 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
2817
2817
|
"true-value": 1,
|
|
2818
2818
|
"false-value": 0,
|
|
2819
2819
|
ref_key: "input",
|
|
2820
|
-
ref:
|
|
2821
|
-
"onUpdate:modelValue": i[0] || (i[0] = (c) =>
|
|
2822
|
-
}, null, 8,
|
|
2823
|
-
[Qe,
|
|
2820
|
+
ref: o,
|
|
2821
|
+
"onUpdate:modelValue": i[0] || (i[0] = (c) => a.value = c)
|
|
2822
|
+
}, null, 8, xa), [
|
|
2823
|
+
[Qe, a.value]
|
|
2824
2824
|
]),
|
|
2825
|
-
|
|
2825
|
+
wa
|
|
2826
2826
|
])
|
|
2827
2827
|
]),
|
|
2828
|
-
s("span",
|
|
2829
|
-
s("small",
|
|
2828
|
+
s("span", ka, h(e.error_message), 1),
|
|
2829
|
+
s("small", $a, h(e.description), 1)
|
|
2830
2830
|
], 2))
|
|
2831
2831
|
], 64));
|
|
2832
2832
|
}
|
|
2833
|
-
},
|
|
2833
|
+
}, Ca = { class: "font-bold ptext-lg dark:text-white" }, Sa = { class: "mt-3 mb-4" }, Oa = { 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" }, Da = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Pa = ["name", "id", "value"], Ea = {
|
|
2834
2834
|
key: 0,
|
|
2835
2835
|
class: "dropdown"
|
|
2836
|
-
},
|
|
2836
|
+
}, ja = { 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" }, Aa = { class: "relative showOptions" }, Ia = ["value", "placeholder"], Ta = { 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]" }, Ma = { class: "p-1" }, Na = /* @__PURE__ */ s("label", {
|
|
2837
2837
|
for: "default-search",
|
|
2838
2838
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
2839
|
-
}, "Search", -1),
|
|
2839
|
+
}, "Search", -1), Va = { class: "relative" }, La = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
2840
2840
|
/* @__PURE__ */ s("svg", {
|
|
2841
2841
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
2842
2842
|
"aria-hidden": "true",
|
|
@@ -2852,22 +2852,22 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
2852
2852
|
d: "m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"
|
|
2853
2853
|
})
|
|
2854
2854
|
])
|
|
2855
|
-
], -1),
|
|
2855
|
+
], -1), Ba = ["id"], Ga = { class: "overflow-y-auto max-h-64" }, Fa = ["onClick", "onMousedown", "id"], Ra = { class: "flex items-center py-2 pl-10 pr-4" }, Ua = {
|
|
2856
2856
|
key: 0,
|
|
2857
2857
|
class: "absolute flex items-center flex-shrink-0 w-4 h-4 text-green-500 left-2 dark:text-green-400",
|
|
2858
2858
|
"aria-hidden": "true",
|
|
2859
2859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2860
2860
|
fill: "none",
|
|
2861
2861
|
viewBox: "0 0 16 12"
|
|
2862
|
-
},
|
|
2862
|
+
}, qa = /* @__PURE__ */ s("path", {
|
|
2863
2863
|
stroke: "currentColor",
|
|
2864
2864
|
"stroke-linecap": "round",
|
|
2865
2865
|
"stroke-linejoin": "round",
|
|
2866
2866
|
"stroke-width": "2",
|
|
2867
2867
|
d: "M1 5.917 5.724 10.5 15 1.5"
|
|
2868
|
-
}, null, -1),
|
|
2869
|
-
|
|
2870
|
-
],
|
|
2868
|
+
}, null, -1), za = [
|
|
2869
|
+
qa
|
|
2870
|
+
], Ha = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, Za = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Od = {
|
|
2871
2871
|
__name: "GlDropdown",
|
|
2872
2872
|
props: {
|
|
2873
2873
|
modelValue: {
|
|
@@ -2878,19 +2878,19 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
2878
2878
|
type: [String, Number],
|
|
2879
2879
|
default: ""
|
|
2880
2880
|
},
|
|
2881
|
-
|
|
2881
|
+
field_name: {
|
|
2882
2882
|
type: String,
|
|
2883
2883
|
default: ""
|
|
2884
2884
|
},
|
|
2885
|
-
|
|
2885
|
+
is_required: {
|
|
2886
2886
|
type: Boolean,
|
|
2887
2887
|
default: !1
|
|
2888
2888
|
},
|
|
2889
|
-
|
|
2889
|
+
has_cancel: {
|
|
2890
2890
|
type: Boolean,
|
|
2891
2891
|
default: !0
|
|
2892
2892
|
},
|
|
2893
|
-
|
|
2893
|
+
label_name: {
|
|
2894
2894
|
type: String,
|
|
2895
2895
|
default: ""
|
|
2896
2896
|
},
|
|
@@ -2916,7 +2916,7 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
2916
2916
|
type: Boolean,
|
|
2917
2917
|
default: !1
|
|
2918
2918
|
},
|
|
2919
|
-
|
|
2919
|
+
error_message: {
|
|
2920
2920
|
type: String,
|
|
2921
2921
|
default: ""
|
|
2922
2922
|
},
|
|
@@ -2927,182 +2927,182 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
2927
2927
|
},
|
|
2928
2928
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2929
2929
|
setup(e, { emit: t }) {
|
|
2930
|
-
const r = e, n = t,
|
|
2930
|
+
const r = e, n = t, o = O({}), a = O(0), l = O(!1), i = O(""), c = O("");
|
|
2931
2931
|
G(() => {
|
|
2932
|
-
n("selected",
|
|
2933
|
-
var
|
|
2934
|
-
|
|
2932
|
+
n("selected", o.value), c.value = x();
|
|
2933
|
+
var b = Ue();
|
|
2934
|
+
o.value = f.value.find((k) => String(k.id) === String(b)) || {}, r.show || (document.body.addEventListener("click", (k) => {
|
|
2935
2935
|
L(k);
|
|
2936
2936
|
}), document.addEventListener("keypress", (k) => {
|
|
2937
2937
|
k.key === "Enter" && k.target.form && k.preventDefault();
|
|
2938
2938
|
}));
|
|
2939
2939
|
});
|
|
2940
2940
|
const f = z(() => Re()), m = z(() => {
|
|
2941
|
-
const
|
|
2941
|
+
const b = [], k = new RegExp(i.value, "ig");
|
|
2942
2942
|
for (const S of f.value) {
|
|
2943
|
-
const
|
|
2944
|
-
(i.value.length < 1 ||
|
|
2943
|
+
const N = String(S.name);
|
|
2944
|
+
(i.value.length < 1 || N.match(k)) && b.length < r.maxItem && b.push(S);
|
|
2945
2945
|
}
|
|
2946
|
-
return
|
|
2946
|
+
return b;
|
|
2947
2947
|
});
|
|
2948
|
-
function y(
|
|
2949
|
-
if (["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "Enter"].includes(
|
|
2950
|
-
if (["ArrowUp", "ArrowDown"].includes(
|
|
2948
|
+
function y(b) {
|
|
2949
|
+
if (["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "Enter"].includes(b.key)) {
|
|
2950
|
+
if (["ArrowUp", "ArrowDown"].includes(b.key) && b.preventDefault(), b.key === "ArrowDown" && r.posts === "")
|
|
2951
2951
|
return;
|
|
2952
|
-
Fe(
|
|
2952
|
+
Fe(b.key);
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
2955
2955
|
function x() {
|
|
2956
|
-
let
|
|
2956
|
+
let b = (/* @__PURE__ */ new Date()).getTime();
|
|
2957
2957
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(S) {
|
|
2958
|
-
const
|
|
2959
|
-
return
|
|
2958
|
+
const N = (b + Math.random() * 16) % 16 | 0;
|
|
2959
|
+
return b = Math.floor(b / 16), (S === "x" ? N : N & 3 | 8).toString(16);
|
|
2960
2960
|
});
|
|
2961
2961
|
}
|
|
2962
|
-
function C(
|
|
2963
|
-
return Object.keys(
|
|
2962
|
+
function C(b) {
|
|
2963
|
+
return Object.keys(b).length > 0;
|
|
2964
2964
|
}
|
|
2965
|
-
function L(
|
|
2966
|
-
|
|
2965
|
+
function L(b) {
|
|
2966
|
+
b.target.id != r.fieldName + "search" + c.value && b.target.id != r.fieldName && !b.target.classList.contains("showOptions") && (ge(), a.value = 0);
|
|
2967
2967
|
}
|
|
2968
|
-
function fe(
|
|
2969
|
-
const k = `${
|
|
2968
|
+
function fe(b) {
|
|
2969
|
+
const k = `${b}${c.value}`, S = document.getElementById(k);
|
|
2970
2970
|
S && S.scrollIntoView();
|
|
2971
2971
|
}
|
|
2972
|
-
function Ge(
|
|
2973
|
-
const k = `${
|
|
2972
|
+
function Ge(b) {
|
|
2973
|
+
const k = `${b}${c.value}`, S = document.getElementById(k);
|
|
2974
2974
|
S && S.click();
|
|
2975
2975
|
}
|
|
2976
|
-
function Fe(
|
|
2977
|
-
|
|
2976
|
+
function Fe(b) {
|
|
2977
|
+
b === "ArrowDown" && a.value < m.value.length && (a.value++, fe(a.value)), b === "ArrowUp" && a.value > 1 && (a.value--, fe(a.value)), b === "Enter" && Ge(a.value);
|
|
2978
2978
|
}
|
|
2979
2979
|
function Re() {
|
|
2980
|
-
return r.options.map((
|
|
2980
|
+
return r.options.map((b, k) => typeof b == "object" ? b : { id: b, name: b });
|
|
2981
2981
|
}
|
|
2982
2982
|
function Ue() {
|
|
2983
|
-
var
|
|
2984
|
-
return
|
|
2983
|
+
var b = r.defaultValue || r.modelValue;
|
|
2984
|
+
return b ? typeof b == "object" ? b.id + "" : b + "" : "";
|
|
2985
2985
|
}
|
|
2986
|
-
function he(
|
|
2987
|
-
|
|
2986
|
+
function he(b) {
|
|
2987
|
+
o.value = b, l.value = !1, n("selected", o.value), n("selectionChanged", o.value);
|
|
2988
2988
|
}
|
|
2989
2989
|
function ee() {
|
|
2990
|
-
r.show || (i.value = "", l.value = !0,
|
|
2991
|
-
|
|
2990
|
+
r.show || (i.value = "", l.value = !0, et(() => {
|
|
2991
|
+
tt[r.fieldName + "search" + c.value].focus();
|
|
2992
2992
|
}));
|
|
2993
2993
|
}
|
|
2994
2994
|
function qe() {
|
|
2995
|
-
r.show || (
|
|
2995
|
+
r.show || (o.value = {}, i.value = "", n("update:modelValue", ""), ee());
|
|
2996
2996
|
}
|
|
2997
2997
|
function ge() {
|
|
2998
|
-
|
|
2998
|
+
o.value.id || (o.value = {}, i.value = ""), n("selected", o.value), l.value = !1;
|
|
2999
2999
|
}
|
|
3000
3000
|
return W(i, () => {
|
|
3001
|
-
m.value.length === 0 && (
|
|
3002
|
-
}), W(
|
|
3003
|
-
C(
|
|
3004
|
-
}), (
|
|
3001
|
+
m.value.length === 0 && (o.value = {});
|
|
3002
|
+
}), W(o, (b) => {
|
|
3003
|
+
C(b) && n("update:modelValue", b.id);
|
|
3004
|
+
}), (b, k) => (d(), u(v, null, [
|
|
3005
3005
|
e.show ? (d(), u("div", {
|
|
3006
3006
|
key: 0,
|
|
3007
|
-
class:
|
|
3007
|
+
class: p(e.field_name)
|
|
3008
3008
|
}, [
|
|
3009
|
-
s("h3",
|
|
3010
|
-
s("p",
|
|
3011
|
-
s("span",
|
|
3009
|
+
s("h3", Ca, h(e.label_name), 1),
|
|
3010
|
+
s("p", Sa, [
|
|
3011
|
+
s("span", Oa, h(b.selectedValue.name), 1)
|
|
3012
3012
|
]),
|
|
3013
|
-
|
|
3013
|
+
Da
|
|
3014
3014
|
], 2)) : g("", !0),
|
|
3015
3015
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3016
3016
|
key: 1,
|
|
3017
|
-
class:
|
|
3017
|
+
class: p(["mb-4", e.field_name])
|
|
3018
3018
|
}, [
|
|
3019
3019
|
s("input", {
|
|
3020
3020
|
type: "hidden",
|
|
3021
|
-
name:
|
|
3022
|
-
id:
|
|
3023
|
-
value:
|
|
3024
|
-
}, null, 8,
|
|
3025
|
-
e.options ? (d(), u("div",
|
|
3026
|
-
|
|
3021
|
+
name: e.field_name,
|
|
3022
|
+
id: e.field_name,
|
|
3023
|
+
value: o.value.id
|
|
3024
|
+
}, null, 8, Pa),
|
|
3025
|
+
e.options ? (d(), u("div", Ea, [
|
|
3026
|
+
e.label_name ? (d(), u("label", {
|
|
3027
3027
|
key: 0,
|
|
3028
|
-
class:
|
|
3029
|
-
"gl-label-form":
|
|
3030
|
-
"gl-label-form-invalid":
|
|
3031
|
-
required:
|
|
3028
|
+
class: p({
|
|
3029
|
+
"gl-label-form": e.error_message == "",
|
|
3030
|
+
"gl-label-form-invalid": e.error_message !== "",
|
|
3031
|
+
required: e.is_required
|
|
3032
3032
|
})
|
|
3033
|
-
}, h(
|
|
3034
|
-
s("div",
|
|
3035
|
-
s("div",
|
|
3033
|
+
}, h(e.label_name), 3)) : g("", !0),
|
|
3034
|
+
s("div", ja, [
|
|
3035
|
+
s("div", Aa, [
|
|
3036
3036
|
s("input", {
|
|
3037
|
-
class:
|
|
3038
|
-
"gl-input-form":
|
|
3039
|
-
"gl-input-form-invalid":
|
|
3037
|
+
class: p([{
|
|
3038
|
+
"gl-input-form": e.error_message == "",
|
|
3039
|
+
"gl-input-form-invalid": e.error_message !== ""
|
|
3040
3040
|
}, "pl-8 pr-2 showOptions"]),
|
|
3041
|
-
ref:
|
|
3041
|
+
ref: e.field_name,
|
|
3042
3042
|
onClick: k[0] || (k[0] = (S) => ee()),
|
|
3043
|
-
value:
|
|
3043
|
+
value: o.value.name,
|
|
3044
3044
|
placeholder: e.placeholder,
|
|
3045
3045
|
autocomplete: "off",
|
|
3046
3046
|
readonly: ""
|
|
3047
|
-
}, null, 10,
|
|
3047
|
+
}, null, 10, Ia),
|
|
3048
3048
|
P(s("i", {
|
|
3049
|
-
onClick: k[1] || (k[1] =
|
|
3049
|
+
onClick: k[1] || (k[1] = M((S) => qe(), ["stop"])),
|
|
3050
3050
|
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
|
|
3051
3051
|
style: { top: "13px" }
|
|
3052
3052
|
}, null, 512), [
|
|
3053
|
-
[B, C(
|
|
3053
|
+
[B, C(o.value) && e.has_cancel]
|
|
3054
3054
|
]),
|
|
3055
3055
|
s("i", {
|
|
3056
3056
|
onClick: k[2] || (k[2] = (S) => !l.value && ee()),
|
|
3057
|
-
class:
|
|
3057
|
+
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"]),
|
|
3058
3058
|
style: { top: "11px" }
|
|
3059
3059
|
}, null, 2)
|
|
3060
3060
|
]),
|
|
3061
|
-
P(s("div",
|
|
3062
|
-
s("div",
|
|
3063
|
-
|
|
3064
|
-
s("div",
|
|
3065
|
-
|
|
3061
|
+
P(s("div", Ta, [
|
|
3062
|
+
s("div", Ma, [
|
|
3063
|
+
Na,
|
|
3064
|
+
s("div", Va, [
|
|
3065
|
+
La,
|
|
3066
3066
|
P(s("input", {
|
|
3067
3067
|
type: "search",
|
|
3068
3068
|
"onUpdate:modelValue": k[3] || (k[3] = (S) => i.value = S),
|
|
3069
|
-
ref: `${
|
|
3070
|
-
id: `${
|
|
3069
|
+
ref: `${e.field_name}search${c.value}`,
|
|
3070
|
+
id: `${e.field_name}search${c.value}`,
|
|
3071
3071
|
onKeydown: y,
|
|
3072
3072
|
onBlur: k[4] || (k[4] = (S) => ge()),
|
|
3073
3073
|
autocomplete: "off",
|
|
3074
3074
|
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",
|
|
3075
3075
|
placeholder: "Search ..."
|
|
3076
|
-
}, null, 40,
|
|
3076
|
+
}, null, 40, Ba), [
|
|
3077
3077
|
[V, i.value]
|
|
3078
3078
|
])
|
|
3079
3079
|
])
|
|
3080
3080
|
]),
|
|
3081
|
-
s("div",
|
|
3082
|
-
(d(!0), u(v, null, $(m.value, (S,
|
|
3083
|
-
class:
|
|
3081
|
+
s("div", Ga, [
|
|
3082
|
+
(d(!0), u(v, null, $(m.value, (S, N) => (d(), u("div", {
|
|
3083
|
+
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", N + 1 == a.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
3084
3084
|
onClick: (ze) => he(S),
|
|
3085
3085
|
onMousedown: (ze) => he(S),
|
|
3086
|
-
key:
|
|
3087
|
-
id: `${
|
|
3086
|
+
key: N,
|
|
3087
|
+
id: `${N + 1}${c.value}`
|
|
3088
3088
|
}, [
|
|
3089
|
-
s("div",
|
|
3090
|
-
|
|
3089
|
+
s("div", Ra, [
|
|
3090
|
+
o.value.id === S.id ? (d(), u("svg", Ua, za)) : g("", !0),
|
|
3091
3091
|
s("span", null, h(S.name || S.id || "-"), 1)
|
|
3092
3092
|
])
|
|
3093
|
-
], 42,
|
|
3093
|
+
], 42, Fa))), 128))
|
|
3094
3094
|
])
|
|
3095
3095
|
], 512), [
|
|
3096
3096
|
[B, l.value]
|
|
3097
3097
|
])
|
|
3098
3098
|
])
|
|
3099
3099
|
])) : g("", !0),
|
|
3100
|
-
s("span",
|
|
3101
|
-
s("small",
|
|
3100
|
+
s("span", Ha, h(e.error_message), 1),
|
|
3101
|
+
s("small", Za, h(e.description), 1)
|
|
3102
3102
|
], 2))
|
|
3103
3103
|
], 64));
|
|
3104
3104
|
}
|
|
3105
|
-
},
|
|
3105
|
+
}, Ka = { class: "font-bold ptext-lg dark:text-white" }, Wa = ["id"], Xa = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Ya = ["for"], Ja = ["required", "name", "id", "type", "placeholder"], Qa = { class: "gl-span-form-error" }, eo = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Dd = {
|
|
3106
3106
|
__name: "GlTextarea",
|
|
3107
3107
|
props: {
|
|
3108
3108
|
is_required: {
|
|
@@ -3148,54 +3148,54 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
3148
3148
|
},
|
|
3149
3149
|
emits: ["update:modelValue", "keydown"],
|
|
3150
3150
|
setup(e, { expose: t, emit: r }) {
|
|
3151
|
-
const n = e,
|
|
3151
|
+
const n = e, o = r, a = O(null);
|
|
3152
3152
|
return G(() => {
|
|
3153
|
-
|
|
3154
|
-
}), t({ focus: () =>
|
|
3153
|
+
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus(), n.model_value && (o("update:modelValue", n.model_value), a.value.value = n.model_value), n.modelValue != "" && (o("update:modelValue", n.modelValue), a.value.value = n.modelValue);
|
|
3154
|
+
}), t({ focus: () => a.value.focus() }), (l, i) => (d(), u(v, null, [
|
|
3155
3155
|
e.show ? (d(), u("div", {
|
|
3156
3156
|
key: 0,
|
|
3157
|
-
class:
|
|
3157
|
+
class: p(e.field_name)
|
|
3158
3158
|
}, [
|
|
3159
|
-
s("h3",
|
|
3159
|
+
s("h3", Ka, h(e.label_name), 1),
|
|
3160
3160
|
s("p", {
|
|
3161
3161
|
id: e.field_name,
|
|
3162
3162
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
3163
|
-
}, h(e.model_value), 9,
|
|
3164
|
-
|
|
3163
|
+
}, h(e.model_value), 9, Wa),
|
|
3164
|
+
Xa
|
|
3165
3165
|
], 2)) : g("", !0),
|
|
3166
3166
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3167
3167
|
key: 1,
|
|
3168
|
-
class:
|
|
3168
|
+
class: p(["mb-4", e.field_name])
|
|
3169
3169
|
}, [
|
|
3170
3170
|
s("label", {
|
|
3171
|
-
class:
|
|
3171
|
+
class: p({
|
|
3172
3172
|
"gl-label-form": e.error_message == "",
|
|
3173
3173
|
"gl-label-form-invalid": e.error_message !== "",
|
|
3174
3174
|
required: e.is_required
|
|
3175
3175
|
}),
|
|
3176
3176
|
for: e.field_name
|
|
3177
|
-
}, h(e.label_name), 11,
|
|
3177
|
+
}, h(e.label_name), 11, Ya),
|
|
3178
3178
|
s("textarea", {
|
|
3179
3179
|
required: e.is_required,
|
|
3180
3180
|
name: e.field_name,
|
|
3181
3181
|
id: e.field_name,
|
|
3182
|
-
class:
|
|
3182
|
+
class: p({
|
|
3183
3183
|
" gl-textarea-form mt-4 ": e.error_message == "",
|
|
3184
3184
|
" gl-textarea-form-invalid mt-4 ": e.error_message !== ""
|
|
3185
3185
|
}),
|
|
3186
3186
|
type: e.type,
|
|
3187
3187
|
onInput: i[0] || (i[0] = (c) => l.$emit("update:modelValue", c.target.value)),
|
|
3188
3188
|
ref_key: "input",
|
|
3189
|
-
ref:
|
|
3189
|
+
ref: a,
|
|
3190
3190
|
rows: "4",
|
|
3191
3191
|
placeholder: e.place_holder
|
|
3192
|
-
}, null, 42,
|
|
3193
|
-
s("span",
|
|
3194
|
-
s("small",
|
|
3192
|
+
}, null, 42, Ja),
|
|
3193
|
+
s("span", Qa, h(e.error_message), 1),
|
|
3194
|
+
s("small", eo, h(e.description), 1)
|
|
3195
3195
|
], 2))
|
|
3196
3196
|
], 64));
|
|
3197
3197
|
}
|
|
3198
|
-
},
|
|
3198
|
+
}, to = {
|
|
3199
3199
|
emits: ["pagination-change-page"],
|
|
3200
3200
|
props: {
|
|
3201
3201
|
data: {
|
|
@@ -3247,9 +3247,9 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
3247
3247
|
return 0;
|
|
3248
3248
|
if (this.limit === 0)
|
|
3249
3249
|
return this.lastPage;
|
|
3250
|
-
for (var e = this.currentPage, t = this.lastPage, r = this.limit, n = e - r,
|
|
3251
|
-
(c === 1 || c === t || c >= n && c <
|
|
3252
|
-
return
|
|
3250
|
+
for (var e = this.currentPage, t = this.lastPage, r = this.limit, n = e - r, o = e + r + 1, a = [], l = [], i, c = 1; c <= t; c++)
|
|
3251
|
+
(c === 1 || c === t || c >= n && c < o) && a.push(c);
|
|
3252
|
+
return a.forEach(function(f) {
|
|
3253
3253
|
i && (f - i === 2 ? l.push(i + 1) : f - i !== 1 && l.push("...")), l.push(f), i = f;
|
|
3254
3254
|
}), l;
|
|
3255
3255
|
}
|
|
@@ -3300,14 +3300,14 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
3300
3300
|
})
|
|
3301
3301
|
});
|
|
3302
3302
|
}
|
|
3303
|
-
},
|
|
3303
|
+
}, ro = {
|
|
3304
3304
|
compatConfig: {
|
|
3305
3305
|
MODE: 3
|
|
3306
3306
|
},
|
|
3307
3307
|
inheritAttrs: !1,
|
|
3308
3308
|
emits: ["pagination-change-page"],
|
|
3309
3309
|
components: {
|
|
3310
|
-
RenderlessPagination:
|
|
3310
|
+
RenderlessPagination: to
|
|
3311
3311
|
},
|
|
3312
3312
|
props: {
|
|
3313
3313
|
data: {
|
|
@@ -3341,10 +3341,10 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
3341
3341
|
},
|
|
3342
3342
|
mounted() {
|
|
3343
3343
|
}
|
|
3344
|
-
},
|
|
3344
|
+
}, so = { class: "flex flex-col items-center" }, no = {
|
|
3345
3345
|
key: 0,
|
|
3346
3346
|
class: "text-sm text-gray-700 dark:text-gray-400"
|
|
3347
|
-
},
|
|
3347
|
+
}, ao = { class: "font-semibold text-gray-900 dark:text-white" }, oo = { class: "font-semibold text-gray-900 dark:text-white" }, io = { class: "font-semibold text-gray-900 dark:text-white" }, lo = ["tabindex"], uo = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), co = /* @__PURE__ */ s("svg", {
|
|
3348
3348
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3349
3349
|
"aria-hidden": "true",
|
|
3350
3350
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3358,7 +3358,7 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
3358
3358
|
"stroke-width": "2",
|
|
3359
3359
|
d: "M5 1 1 5l4 4"
|
|
3360
3360
|
})
|
|
3361
|
-
], -1),
|
|
3361
|
+
], -1), fo = ["aria-current"], ho = ["tabindex"], go = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), mo = /* @__PURE__ */ s("svg", {
|
|
3362
3362
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3363
3363
|
"aria-hidden": "true",
|
|
3364
3364
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3373,22 +3373,22 @@ const wd = /* @__PURE__ */ D(Ys, [["render", ro], ["__scopeId", "data-v-a94f16a9
|
|
|
3373
3373
|
d: "m1 9 4-4-4-4"
|
|
3374
3374
|
})
|
|
3375
3375
|
], -1);
|
|
3376
|
-
function
|
|
3376
|
+
function po(e, t, r, n, o, a) {
|
|
3377
3377
|
const l = X("RenderlessPagination");
|
|
3378
3378
|
return d(), Z(l, {
|
|
3379
3379
|
data: r.data,
|
|
3380
3380
|
limit: r.limit,
|
|
3381
|
-
onPaginationChangePage:
|
|
3381
|
+
onPaginationChangePage: a.onPaginationChangePage
|
|
3382
3382
|
}, {
|
|
3383
3383
|
default: Y((i) => [
|
|
3384
|
-
s("div",
|
|
3385
|
-
i.computed.total > i.computed.perPage ? (d(), u("span",
|
|
3384
|
+
s("div", so, [
|
|
3385
|
+
i.computed.total > i.computed.perPage ? (d(), u("span", no, [
|
|
3386
3386
|
w(" Showing "),
|
|
3387
|
-
s("span",
|
|
3387
|
+
s("span", ao, h(i.computed.from), 1),
|
|
3388
3388
|
w(" to "),
|
|
3389
|
-
s("span",
|
|
3389
|
+
s("span", oo, h(i.computed.to), 1),
|
|
3390
3390
|
w(" of "),
|
|
3391
|
-
s("span",
|
|
3391
|
+
s("span", io, h(i.computed.total), 1),
|
|
3392
3392
|
w(" Entries ")
|
|
3393
3393
|
])) : g("", !0),
|
|
3394
3394
|
i.computed.total > i.computed.perPage ? (d(), u("ul", K({ key: 1 }, e.$attrs, {
|
|
@@ -3401,7 +3401,7 @@ function ga(e, t, r, n, a, o) {
|
|
|
3401
3401
|
}), [
|
|
3402
3402
|
i.computed.prevPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3403
3403
|
key: 0,
|
|
3404
|
-
class:
|
|
3404
|
+
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: !i.computed.prevPageUrl }])
|
|
3405
3405
|
}, [
|
|
3406
3406
|
s("a", K({
|
|
3407
3407
|
class: "page-link",
|
|
@@ -3410,13 +3410,13 @@ function ga(e, t, r, n, a, o) {
|
|
|
3410
3410
|
tabindex: !i.computed.prevPageUrl && -1
|
|
3411
3411
|
}, te(i.prevButtonEvents, !0)), [
|
|
3412
3412
|
A(e.$slots, "prev-nav", {}, () => [
|
|
3413
|
-
|
|
3414
|
-
|
|
3413
|
+
uo,
|
|
3414
|
+
co
|
|
3415
3415
|
])
|
|
3416
|
-
], 16,
|
|
3416
|
+
], 16, lo)
|
|
3417
3417
|
], 2)) : g("", !0),
|
|
3418
3418
|
(d(!0), u(v, null, $(i.computed.pageRange, (c, f) => (d(), u("li", {
|
|
3419
|
-
class:
|
|
3419
|
+
class: p(["", { active: c == i.computed.currentPage }]),
|
|
3420
3420
|
key: f
|
|
3421
3421
|
}, [
|
|
3422
3422
|
s("a", K({
|
|
@@ -3425,11 +3425,11 @@ function ga(e, t, r, n, a, o) {
|
|
|
3425
3425
|
}, te(i.pageButtonEvents(c), !0), {
|
|
3426
3426
|
"aria-current": c == i.computed.currentPage ? "page" : null,
|
|
3427
3427
|
class: c == i.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"
|
|
3428
|
-
}), h(c), 17,
|
|
3428
|
+
}), h(c), 17, fo)
|
|
3429
3429
|
], 2))), 128)),
|
|
3430
3430
|
i.computed.nextPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3431
3431
|
key: 1,
|
|
3432
|
-
class:
|
|
3432
|
+
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: !i.computed.nextPageUrl }])
|
|
3433
3433
|
}, [
|
|
3434
3434
|
s("a", K({
|
|
3435
3435
|
class: "",
|
|
@@ -3438,10 +3438,10 @@ function ga(e, t, r, n, a, o) {
|
|
|
3438
3438
|
tabindex: !i.computed.nextPageUrl && -1
|
|
3439
3439
|
}, te(i.nextButtonEvents, !0)), [
|
|
3440
3440
|
A(e.$slots, "next-nav", {}, () => [
|
|
3441
|
-
|
|
3442
|
-
|
|
3441
|
+
go,
|
|
3442
|
+
mo
|
|
3443
3443
|
])
|
|
3444
|
-
], 16,
|
|
3444
|
+
], 16, ho)
|
|
3445
3445
|
], 2)) : g("", !0)
|
|
3446
3446
|
], 16)) : g("", !0)
|
|
3447
3447
|
])
|
|
@@ -3449,8 +3449,8 @@ function ga(e, t, r, n, a, o) {
|
|
|
3449
3449
|
_: 3
|
|
3450
3450
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
3451
3451
|
}
|
|
3452
|
-
const
|
|
3453
|
-
components: { TailwindPagination:
|
|
3452
|
+
const _o = /* @__PURE__ */ D(ro, [["render", po]]), bo = {
|
|
3453
|
+
components: { TailwindPagination: _o },
|
|
3454
3454
|
props: {
|
|
3455
3455
|
data: Array,
|
|
3456
3456
|
columns: Array,
|
|
@@ -3526,10 +3526,10 @@ const ma = /* @__PURE__ */ D(ta, [["render", ga]]), pa = {
|
|
|
3526
3526
|
this.isMounted && e !== t && this.GetItemLists();
|
|
3527
3527
|
}
|
|
3528
3528
|
}
|
|
3529
|
-
},
|
|
3529
|
+
}, yo = { class: "p-2" }, vo = { 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" }, xo = { class: "flex items-center gap-2" }, wo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), ko = { style: { "margin-top": "9px" } }, $o = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), Co = /* @__PURE__ */ s("label", {
|
|
3530
3530
|
for: "table-search",
|
|
3531
3531
|
class: "sr-only"
|
|
3532
|
-
}, "Search", -1),
|
|
3532
|
+
}, "Search", -1), So = { class: "relative" }, Oo = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
|
|
3533
3533
|
/* @__PURE__ */ s("svg", {
|
|
3534
3534
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3535
3535
|
"aria-hidden": "true",
|
|
@@ -3543,28 +3543,28 @@ const ma = /* @__PURE__ */ D(ta, [["render", ga]]), pa = {
|
|
|
3543
3543
|
"clip-rule": "evenodd"
|
|
3544
3544
|
})
|
|
3545
3545
|
])
|
|
3546
|
-
], -1),
|
|
3546
|
+
], -1), Do = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Po = { 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" }, Eo = { class: "hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, jo = ["onClick"], Ao = {
|
|
3547
3547
|
key: 0,
|
|
3548
3548
|
class: "ml-2"
|
|
3549
|
-
},
|
|
3549
|
+
}, Io = {
|
|
3550
3550
|
key: 0,
|
|
3551
3551
|
class: "fa fa-arrow-up"
|
|
3552
|
-
},
|
|
3552
|
+
}, To = {
|
|
3553
3553
|
key: 1,
|
|
3554
3554
|
class: "fa fa-arrow-down"
|
|
3555
|
-
},
|
|
3556
|
-
function
|
|
3555
|
+
}, Mo = ["data-label"], No = { class: "overflow-auto max-h-40" }, Vo = { 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" };
|
|
3556
|
+
function Lo(e, t, r, n, o, a) {
|
|
3557
3557
|
const l = X("dropdown"), i = X("TailwindPagination");
|
|
3558
|
-
return d(), u("div",
|
|
3559
|
-
s("div",
|
|
3560
|
-
s("div",
|
|
3561
|
-
|
|
3562
|
-
s("div",
|
|
3558
|
+
return d(), u("div", yo, [
|
|
3559
|
+
s("div", vo, [
|
|
3560
|
+
s("div", xo, [
|
|
3561
|
+
wo,
|
|
3562
|
+
s("div", ko, [
|
|
3563
3563
|
H(l, {
|
|
3564
3564
|
has_cancel: !1,
|
|
3565
|
-
options:
|
|
3566
|
-
modelValue:
|
|
3567
|
-
"onUpdate:modelValue": t[0] || (t[0] = (c) =>
|
|
3565
|
+
options: o.pageOptions,
|
|
3566
|
+
modelValue: o.perPage,
|
|
3567
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => o.perPage = c),
|
|
3568
3568
|
is_required: !1,
|
|
3569
3569
|
field_name: "perPage",
|
|
3570
3570
|
label_name: "",
|
|
@@ -3573,40 +3573,40 @@ function Ma(e, t, r, n, a, o) {
|
|
|
3573
3573
|
placeholder: "Please select an option"
|
|
3574
3574
|
}, null, 8, ["options", "modelValue"])
|
|
3575
3575
|
]),
|
|
3576
|
-
|
|
3576
|
+
$o
|
|
3577
3577
|
]),
|
|
3578
|
-
|
|
3579
|
-
s("div",
|
|
3580
|
-
|
|
3578
|
+
Co,
|
|
3579
|
+
s("div", So, [
|
|
3580
|
+
Oo,
|
|
3581
3581
|
P(s("input", {
|
|
3582
3582
|
type: "text",
|
|
3583
|
-
"onUpdate:modelValue": t[1] || (t[1] = (c) =>
|
|
3584
|
-
onInput: t[2] || (t[2] = (c) =>
|
|
3583
|
+
"onUpdate:modelValue": t[1] || (t[1] = (c) => o.search = c),
|
|
3584
|
+
onInput: t[2] || (t[2] = (c) => a.handleSearch()),
|
|
3585
3585
|
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",
|
|
3586
3586
|
placeholder: "Search ..."
|
|
3587
3587
|
}, null, 544), [
|
|
3588
|
-
[V,
|
|
3588
|
+
[V, o.search]
|
|
3589
3589
|
])
|
|
3590
3590
|
])
|
|
3591
3591
|
]),
|
|
3592
|
-
s("div",
|
|
3593
|
-
s("table",
|
|
3594
|
-
s("thead",
|
|
3592
|
+
s("div", Do, [
|
|
3593
|
+
s("table", Po, [
|
|
3594
|
+
s("thead", Eo, [
|
|
3595
3595
|
s("tr", null, [
|
|
3596
3596
|
(d(!0), u(v, null, $(r.columns, (c, f) => (d(), u("th", {
|
|
3597
3597
|
key: f,
|
|
3598
|
-
onClick: (m) =>
|
|
3598
|
+
onClick: (m) => a.updateSortColumn(c.field_name, c.sortable),
|
|
3599
3599
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3600
3600
|
}, [
|
|
3601
3601
|
w(h(c.field_label) + " ", 1),
|
|
3602
|
-
|
|
3603
|
-
|
|
3602
|
+
o.sortField === c.field_name ? (d(), u("span", Ao, [
|
|
3603
|
+
o.sortOrder === "asc" ? (d(), u("i", Io)) : (d(), u("i", To))
|
|
3604
3604
|
])) : g("", !0)
|
|
3605
|
-
], 8,
|
|
3605
|
+
], 8, jo))), 128))
|
|
3606
3606
|
])
|
|
3607
3607
|
]),
|
|
3608
3608
|
s("tbody", null, [
|
|
3609
|
-
(d(!0), u(v, null, $(
|
|
3609
|
+
(d(!0), u(v, null, $(o.itemLists.data, (c, f) => (d(), u("tr", {
|
|
3610
3610
|
key: f,
|
|
3611
3611
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
|
|
3612
3612
|
}, [
|
|
@@ -3615,36 +3615,36 @@ function Ma(e, t, r, n, a, o) {
|
|
|
3615
3615
|
"data-label": m.field_label,
|
|
3616
3616
|
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"
|
|
3617
3617
|
}, [
|
|
3618
|
-
s("div",
|
|
3619
|
-
m.tdComp ? (d(), Z(se(
|
|
3618
|
+
s("div", No, [
|
|
3619
|
+
m.tdComp ? (d(), Z(se(a.forDynCompIs(m.tdComp)), {
|
|
3620
3620
|
key: 0,
|
|
3621
3621
|
row: c,
|
|
3622
3622
|
field: m.field_name,
|
|
3623
3623
|
xprops: r.xprops,
|
|
3624
3624
|
tdProps: m.tdProps,
|
|
3625
|
-
onDeleteAction: t[3] || (t[3] = (x) =>
|
|
3625
|
+
onDeleteAction: t[3] || (t[3] = (x) => a.GetItemLists())
|
|
3626
3626
|
}, null, 40, ["row", "field", "xprops", "tdProps"])) : (d(), u(v, { key: 1 }, [
|
|
3627
3627
|
w(h(c[m.field_name]), 1)
|
|
3628
3628
|
], 64))
|
|
3629
3629
|
])
|
|
3630
|
-
], 8,
|
|
3630
|
+
], 8, Mo))), 128))
|
|
3631
3631
|
]))), 128))
|
|
3632
3632
|
])
|
|
3633
3633
|
])
|
|
3634
3634
|
]),
|
|
3635
|
-
s("div",
|
|
3635
|
+
s("div", Vo, [
|
|
3636
3636
|
H(i, {
|
|
3637
3637
|
class: "mt-3 mb-0",
|
|
3638
|
-
data:
|
|
3639
|
-
limit:
|
|
3640
|
-
size:
|
|
3641
|
-
align:
|
|
3642
|
-
onPaginationChangePage:
|
|
3638
|
+
data: o.itemLists,
|
|
3639
|
+
limit: o.limit,
|
|
3640
|
+
size: o.size,
|
|
3641
|
+
align: o.align,
|
|
3642
|
+
onPaginationChangePage: a.GetItemLists
|
|
3643
3643
|
}, null, 8, ["data", "limit", "size", "align", "onPaginationChangePage"])
|
|
3644
3644
|
])
|
|
3645
3645
|
]);
|
|
3646
3646
|
}
|
|
3647
|
-
const
|
|
3647
|
+
const Pd = /* @__PURE__ */ D(bo, [["render", Lo]]), Bo = {
|
|
3648
3648
|
components: {},
|
|
3649
3649
|
props: {
|
|
3650
3650
|
data: Array,
|
|
@@ -3741,10 +3741,10 @@ const Od = /* @__PURE__ */ D(pa, [["render", Ma]]), Va = {
|
|
|
3741
3741
|
mounted() {
|
|
3742
3742
|
document.body.addEventListener("click", this.closeBoxOnbodyClick);
|
|
3743
3743
|
}
|
|
3744
|
-
},
|
|
3744
|
+
}, Go = { class: "p-2" }, Fo = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, Ro = { class: "flex items-center gap-2" }, Uo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), qo = { style: { "margin-top": "9px" } }, zo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), Ho = /* @__PURE__ */ s("label", {
|
|
3745
3745
|
for: "table-search",
|
|
3746
3746
|
class: "sr-only"
|
|
3747
|
-
}, "Search", -1),
|
|
3747
|
+
}, "Search", -1), Zo = { class: "relative" }, Ko = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3" }, [
|
|
3748
3748
|
/* @__PURE__ */ s("svg", {
|
|
3749
3749
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3750
3750
|
"aria-hidden": "true",
|
|
@@ -3758,10 +3758,10 @@ const Od = /* @__PURE__ */ D(pa, [["render", Ma]]), Va = {
|
|
|
3758
3758
|
"clip-rule": "evenodd"
|
|
3759
3759
|
})
|
|
3760
3760
|
])
|
|
3761
|
-
], -1),
|
|
3761
|
+
], -1), Wo = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, Xo = { 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" }, Yo = { class: "hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, Jo = ["onClick"], Qo = {
|
|
3762
3762
|
key: 0,
|
|
3763
3763
|
class: "ml-2"
|
|
3764
|
-
},
|
|
3764
|
+
}, ei = ["data-label"], ti = ["innerHTML"], ri = { 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" }, si = { class: "flex justify-between flex-1 sm:hidden" }, ni = ["disabled"], ai = ["disabled"], oi = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, ii = { class: "text-sm text-gray-700 dark:text-gray-400" }, li = { class: "font-medium" }, di = { class: "font-medium" }, ui = { class: "font-medium" }, ci = { "aria-label": "Page navigation" }, fi = { class: "flex items-center h-8 -space-x-px text-sm" }, hi = ["disabled"], gi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), mi = /* @__PURE__ */ s("svg", {
|
|
3765
3765
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3766
3766
|
"aria-hidden": "true",
|
|
3767
3767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3775,10 +3775,10 @@ const Od = /* @__PURE__ */ D(pa, [["render", Ma]]), Va = {
|
|
|
3775
3775
|
"stroke-width": "2",
|
|
3776
3776
|
d: "M5 1 1 5l4 4"
|
|
3777
3777
|
})
|
|
3778
|
-
], -1),
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
],
|
|
3778
|
+
], -1), pi = [
|
|
3779
|
+
gi,
|
|
3780
|
+
mi
|
|
3781
|
+
], _i = ["onClick"], bi = ["onClick"], yi = ["disabled"], vi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), xi = /* @__PURE__ */ s("svg", {
|
|
3782
3782
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3783
3783
|
"aria-hidden": "true",
|
|
3784
3784
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3792,22 +3792,22 @@ const Od = /* @__PURE__ */ D(pa, [["render", Ma]]), Va = {
|
|
|
3792
3792
|
"stroke-width": "2",
|
|
3793
3793
|
d: "m1 9 4-4-4-4"
|
|
3794
3794
|
})
|
|
3795
|
-
], -1),
|
|
3796
|
-
|
|
3797
|
-
|
|
3795
|
+
], -1), wi = [
|
|
3796
|
+
vi,
|
|
3797
|
+
xi
|
|
3798
3798
|
];
|
|
3799
|
-
function
|
|
3799
|
+
function ki(e, t, r, n, o, a) {
|
|
3800
3800
|
const l = X("dropdown");
|
|
3801
|
-
return d(), u("div",
|
|
3802
|
-
s("div",
|
|
3803
|
-
s("div",
|
|
3804
|
-
|
|
3805
|
-
s("div",
|
|
3801
|
+
return d(), u("div", Go, [
|
|
3802
|
+
s("div", Fo, [
|
|
3803
|
+
s("div", Ro, [
|
|
3804
|
+
Uo,
|
|
3805
|
+
s("div", qo, [
|
|
3806
3806
|
H(l, {
|
|
3807
3807
|
has_cancel: !1,
|
|
3808
|
-
options:
|
|
3809
|
-
modelValue:
|
|
3810
|
-
"onUpdate:modelValue": t[0] || (t[0] = (i) =>
|
|
3808
|
+
options: o.showNoOfEntries,
|
|
3809
|
+
modelValue: o.itemsPerPage,
|
|
3810
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => o.itemsPerPage = i),
|
|
3811
3811
|
is_required: !1,
|
|
3812
3812
|
field_name: "NoOfEntries",
|
|
3813
3813
|
label_name: "",
|
|
@@ -3816,37 +3816,37 @@ function xi(e, t, r, n, a, o) {
|
|
|
3816
3816
|
placeholder: "Please select an option"
|
|
3817
3817
|
}, null, 8, ["options", "modelValue"])
|
|
3818
3818
|
]),
|
|
3819
|
-
|
|
3819
|
+
zo
|
|
3820
3820
|
]),
|
|
3821
|
-
|
|
3822
|
-
s("div",
|
|
3823
|
-
|
|
3821
|
+
Ho,
|
|
3822
|
+
s("div", Zo, [
|
|
3823
|
+
Ko,
|
|
3824
3824
|
P(s("input", {
|
|
3825
3825
|
type: "text",
|
|
3826
|
-
"onUpdate:modelValue": t[1] || (t[1] = (i) =>
|
|
3826
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => o.search = i),
|
|
3827
3827
|
class: "block p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
3828
3828
|
placeholder: "Search ..."
|
|
3829
3829
|
}, null, 512), [
|
|
3830
|
-
[V,
|
|
3830
|
+
[V, o.search]
|
|
3831
3831
|
])
|
|
3832
3832
|
])
|
|
3833
3833
|
]),
|
|
3834
|
-
s("div",
|
|
3835
|
-
s("table",
|
|
3836
|
-
s("thead",
|
|
3834
|
+
s("div", Wo, [
|
|
3835
|
+
s("table", Xo, [
|
|
3836
|
+
s("thead", Yo, [
|
|
3837
3837
|
s("tr", null, [
|
|
3838
3838
|
(d(!0), u(v, null, $(r.columns, (i, c) => (d(), u("th", {
|
|
3839
3839
|
key: c,
|
|
3840
|
-
onClick: (f) =>
|
|
3840
|
+
onClick: (f) => a.sort(i),
|
|
3841
3841
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3842
3842
|
}, [
|
|
3843
3843
|
w(h(i) + " ", 1),
|
|
3844
|
-
|
|
3845
|
-
], 8,
|
|
3844
|
+
o.sortKey === i ? (d(), u("span", Qo, h(o.sortOrder === 1 ? "▲" : "▼"), 1)) : g("", !0)
|
|
3845
|
+
], 8, Jo))), 128))
|
|
3846
3846
|
])
|
|
3847
3847
|
]),
|
|
3848
3848
|
s("tbody", null, [
|
|
3849
|
-
(d(!0), u(v, null, $(
|
|
3849
|
+
(d(!0), u(v, null, $(a.paginatedData, (i, c) => (d(), u("tr", {
|
|
3850
3850
|
key: c,
|
|
3851
3851
|
class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600"
|
|
3852
3852
|
}, [
|
|
@@ -3858,76 +3858,76 @@ function xi(e, t, r, n, a, o) {
|
|
|
3858
3858
|
s("p", {
|
|
3859
3859
|
class: "text-pretty",
|
|
3860
3860
|
innerHTML: i[m]
|
|
3861
|
-
}, null, 8,
|
|
3862
|
-
], 8,
|
|
3861
|
+
}, null, 8, ti)
|
|
3862
|
+
], 8, ei))), 128))
|
|
3863
3863
|
]))), 128))
|
|
3864
3864
|
])
|
|
3865
3865
|
])
|
|
3866
3866
|
]),
|
|
3867
|
-
s("div",
|
|
3868
|
-
s("div",
|
|
3867
|
+
s("div", ri, [
|
|
3868
|
+
s("div", si, [
|
|
3869
3869
|
s("a", {
|
|
3870
3870
|
href: "#",
|
|
3871
|
-
onClick: t[2] || (t[2] = (...i) =>
|
|
3872
|
-
disabled:
|
|
3871
|
+
onClick: t[2] || (t[2] = (...i) => a.previousPage && a.previousPage(...i)),
|
|
3872
|
+
disabled: o.currentPage === 1,
|
|
3873
3873
|
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"
|
|
3874
|
-
}, "Previous", 8,
|
|
3874
|
+
}, "Previous", 8, ni),
|
|
3875
3875
|
s("a", {
|
|
3876
3876
|
href: "#",
|
|
3877
|
-
onClick: t[3] || (t[3] = (...i) =>
|
|
3878
|
-
disabled:
|
|
3877
|
+
onClick: t[3] || (t[3] = (...i) => a.nextPage && a.nextPage(...i)),
|
|
3878
|
+
disabled: o.currentPage === a.totalPages,
|
|
3879
3879
|
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"
|
|
3880
|
-
}, "Next", 8,
|
|
3880
|
+
}, "Next", 8, ai)
|
|
3881
3881
|
]),
|
|
3882
|
-
s("div",
|
|
3882
|
+
s("div", oi, [
|
|
3883
3883
|
s("div", null, [
|
|
3884
|
-
s("p",
|
|
3884
|
+
s("p", ii, [
|
|
3885
3885
|
w(" Showing "),
|
|
3886
|
-
s("span",
|
|
3886
|
+
s("span", li, h(a.firstItemIndex), 1),
|
|
3887
3887
|
w(" to "),
|
|
3888
|
-
s("span",
|
|
3888
|
+
s("span", di, h(a.lastItemIndex), 1),
|
|
3889
3889
|
w(" of "),
|
|
3890
|
-
s("span",
|
|
3890
|
+
s("span", ui, h(a.filteredData.length), 1),
|
|
3891
3891
|
w(" entries ")
|
|
3892
3892
|
])
|
|
3893
3893
|
]),
|
|
3894
3894
|
s("div", null, [
|
|
3895
|
-
s("nav",
|
|
3896
|
-
s("ul",
|
|
3895
|
+
s("nav", ci, [
|
|
3896
|
+
s("ul", fi, [
|
|
3897
3897
|
s("li", null, [
|
|
3898
3898
|
s("a", {
|
|
3899
3899
|
href: "#",
|
|
3900
|
-
onClick: t[4] || (t[4] = (...i) =>
|
|
3901
|
-
disabled:
|
|
3900
|
+
onClick: t[4] || (t[4] = (...i) => a.previousPage && a.previousPage(...i)),
|
|
3901
|
+
disabled: o.currentPage === 1,
|
|
3902
3902
|
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"
|
|
3903
|
-
},
|
|
3903
|
+
}, pi, 8, hi)
|
|
3904
3904
|
]),
|
|
3905
|
-
(d(!0), u(v, null, $(
|
|
3905
|
+
(d(!0), u(v, null, $(a.displayedPageNumbers, (i) => (d(), u(v, { key: i }, [
|
|
3906
3906
|
s("li", null, [
|
|
3907
|
-
|
|
3907
|
+
o.currentPage !== i ? (d(), u("a", {
|
|
3908
3908
|
key: 0,
|
|
3909
3909
|
href: "#",
|
|
3910
|
-
onClick: (c) =>
|
|
3910
|
+
onClick: (c) => a.goToPage(i),
|
|
3911
3911
|
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"
|
|
3912
|
-
}, h(i), 9,
|
|
3912
|
+
}, h(i), 9, _i)) : g("", !0)
|
|
3913
3913
|
]),
|
|
3914
3914
|
s("li", null, [
|
|
3915
|
-
|
|
3915
|
+
o.currentPage === i ? (d(), u("a", {
|
|
3916
3916
|
key: 0,
|
|
3917
3917
|
href: "#",
|
|
3918
|
-
onClick: (c) =>
|
|
3918
|
+
onClick: (c) => a.goToPage(i),
|
|
3919
3919
|
"aria-current": "page",
|
|
3920
3920
|
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"
|
|
3921
|
-
}, h(i), 9,
|
|
3921
|
+
}, h(i), 9, bi)) : g("", !0)
|
|
3922
3922
|
])
|
|
3923
3923
|
], 64))), 128)),
|
|
3924
3924
|
s("li", null, [
|
|
3925
3925
|
s("a", {
|
|
3926
3926
|
href: "#",
|
|
3927
|
-
onClick: t[5] || (t[5] = (...i) =>
|
|
3928
|
-
disabled:
|
|
3927
|
+
onClick: t[5] || (t[5] = (...i) => a.nextPage && a.nextPage(...i)),
|
|
3928
|
+
disabled: o.currentPage === a.totalPages,
|
|
3929
3929
|
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"
|
|
3930
|
-
},
|
|
3930
|
+
}, wi, 8, yi)
|
|
3931
3931
|
])
|
|
3932
3932
|
])
|
|
3933
3933
|
])
|
|
@@ -3936,13 +3936,13 @@ function xi(e, t, r, n, a, o) {
|
|
|
3936
3936
|
])
|
|
3937
3937
|
]);
|
|
3938
3938
|
}
|
|
3939
|
-
const
|
|
3939
|
+
const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
|
|
3940
3940
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
3941
3941
|
role: "alert"
|
|
3942
|
-
},
|
|
3942
|
+
}, Ci = {
|
|
3943
3943
|
key: 0,
|
|
3944
3944
|
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"
|
|
3945
|
-
},
|
|
3945
|
+
}, Si = /* @__PURE__ */ s("svg", {
|
|
3946
3946
|
class: "w-5 h-5",
|
|
3947
3947
|
"aria-hidden": "true",
|
|
3948
3948
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3950,13 +3950,13 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
3950
3950
|
viewBox: "0 0 20 20"
|
|
3951
3951
|
}, [
|
|
3952
3952
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z" })
|
|
3953
|
-
], -1),
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
],
|
|
3953
|
+
], -1), Oi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Check icon", -1), Di = [
|
|
3954
|
+
Si,
|
|
3955
|
+
Oi
|
|
3956
|
+
], Pi = {
|
|
3957
3957
|
key: 1,
|
|
3958
3958
|
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"
|
|
3959
|
-
},
|
|
3959
|
+
}, Ei = /* @__PURE__ */ s("svg", {
|
|
3960
3960
|
class: "w-5 h-5",
|
|
3961
3961
|
"aria-hidden": "true",
|
|
3962
3962
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3964,13 +3964,13 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
3964
3964
|
viewBox: "0 0 20 20"
|
|
3965
3965
|
}, [
|
|
3966
3966
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 11.793a1 1 0 1 1-1.414 1.414L10 11.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L8.586 10 6.293 7.707a1 1 0 0 1 1.414-1.414L10 8.586l2.293-2.293a1 1 0 0 1 1.414 1.414L11.414 10l2.293 2.293Z" })
|
|
3967
|
-
], -1),
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
],
|
|
3967
|
+
], -1), ji = /* @__PURE__ */ s("span", { class: "sr-only" }, "Error icon", -1), Ai = [
|
|
3968
|
+
Ei,
|
|
3969
|
+
ji
|
|
3970
|
+
], Ii = {
|
|
3971
3971
|
key: 2,
|
|
3972
3972
|
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"
|
|
3973
|
-
},
|
|
3973
|
+
}, Ti = /* @__PURE__ */ s("svg", {
|
|
3974
3974
|
class: "w-5 h-5",
|
|
3975
3975
|
"aria-hidden": "true",
|
|
3976
3976
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3978,10 +3978,10 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
3978
3978
|
viewBox: "0 0 20 20"
|
|
3979
3979
|
}, [
|
|
3980
3980
|
/* @__PURE__ */ s("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z" })
|
|
3981
|
-
], -1),
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
],
|
|
3981
|
+
], -1), Mi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Warning icon", -1), Ni = [
|
|
3982
|
+
Ti,
|
|
3983
|
+
Mi
|
|
3984
|
+
], Vi = { class: "ml-3 text-sm font-normal" }, Li = /* @__PURE__ */ s("span", { class: "sr-only" }, "Close", -1), Bi = /* @__PURE__ */ s("svg", {
|
|
3985
3985
|
"aria-hidden": "true",
|
|
3986
3986
|
class: "w-5 h-5",
|
|
3987
3987
|
fill: "currentColor",
|
|
@@ -3993,10 +3993,10 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
3993
3993
|
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",
|
|
3994
3994
|
"clip-rule": "evenodd"
|
|
3995
3995
|
})
|
|
3996
|
-
], -1),
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
],
|
|
3996
|
+
], -1), Gi = [
|
|
3997
|
+
Li,
|
|
3998
|
+
Bi
|
|
3999
|
+
], Fi = {
|
|
4000
4000
|
__name: "ToastListItem",
|
|
4001
4001
|
props: {
|
|
4002
4002
|
message: String,
|
|
@@ -4016,25 +4016,25 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4016
4016
|
setTimeout(() => n("remove"), r.duration);
|
|
4017
4017
|
});
|
|
4018
4018
|
const n = t;
|
|
4019
|
-
return (
|
|
4020
|
-
r.type === "success" ? (d(), u("div",
|
|
4021
|
-
r.type === "error" ? (d(), u("div",
|
|
4022
|
-
r.type === "warning" ? (d(), u("div",
|
|
4023
|
-
s("div",
|
|
4019
|
+
return (o, a) => (d(), u("div", $i, [
|
|
4020
|
+
r.type === "success" ? (d(), u("div", Ci, Di)) : g("", !0),
|
|
4021
|
+
r.type === "error" ? (d(), u("div", Pi, Ai)) : g("", !0),
|
|
4022
|
+
r.type === "warning" ? (d(), u("div", Ii, Ni)) : g("", !0),
|
|
4023
|
+
s("div", Vi, h(r.message), 1),
|
|
4024
4024
|
s("button", {
|
|
4025
|
-
onClick:
|
|
4025
|
+
onClick: a[0] || (a[0] = (l) => n("remove")),
|
|
4026
4026
|
type: "button",
|
|
4027
4027
|
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",
|
|
4028
4028
|
"data-dismiss-target": "#toast-default",
|
|
4029
4029
|
"aria-label": "Close"
|
|
4030
|
-
},
|
|
4030
|
+
}, Gi)
|
|
4031
4031
|
]));
|
|
4032
4032
|
}
|
|
4033
|
-
},
|
|
4033
|
+
}, oe = xe({
|
|
4034
4034
|
items: []
|
|
4035
|
-
}),
|
|
4035
|
+
}), Ri = {
|
|
4036
4036
|
add(e) {
|
|
4037
|
-
|
|
4037
|
+
oe.items.unshift({
|
|
4038
4038
|
key: Symbol(),
|
|
4039
4039
|
message: e.message,
|
|
4040
4040
|
type: e.type,
|
|
@@ -4042,18 +4042,18 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4042
4042
|
});
|
|
4043
4043
|
},
|
|
4044
4044
|
remove(e) {
|
|
4045
|
-
|
|
4045
|
+
oe.items.splice(e, 1);
|
|
4046
4046
|
}
|
|
4047
4047
|
}, ye = {
|
|
4048
|
-
state:
|
|
4049
|
-
methods:
|
|
4050
|
-
},
|
|
4048
|
+
state: oe,
|
|
4049
|
+
methods: Ri
|
|
4050
|
+
}, jd = {
|
|
4051
4051
|
__name: "GlToastList",
|
|
4052
4052
|
setup(e) {
|
|
4053
4053
|
function t(r) {
|
|
4054
4054
|
ye.methods.remove(r);
|
|
4055
4055
|
}
|
|
4056
|
-
return (r, n) => (d(), Z(
|
|
4056
|
+
return (r, n) => (d(), Z(rt, {
|
|
4057
4057
|
tag: "div",
|
|
4058
4058
|
"enter-from-class": "translate-x-full opacity-0",
|
|
4059
4059
|
"enter-active-class": "duration-500",
|
|
@@ -4062,21 +4062,21 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4062
4062
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
4063
4063
|
}, {
|
|
4064
4064
|
default: Y(() => [
|
|
4065
|
-
(d(!0), u(v, null, $(
|
|
4066
|
-
key:
|
|
4067
|
-
message:
|
|
4068
|
-
type:
|
|
4069
|
-
duration:
|
|
4070
|
-
onRemove: (l) => t(
|
|
4065
|
+
(d(!0), u(v, null, $(st(ye).state.items, (o, a) => (d(), Z(Fi, {
|
|
4066
|
+
key: o.key,
|
|
4067
|
+
message: o.message,
|
|
4068
|
+
type: o.type,
|
|
4069
|
+
duration: o.duration,
|
|
4070
|
+
onRemove: (l) => t(a)
|
|
4071
4071
|
}, null, 8, ["message", "type", "duration", "onRemove"]))), 128))
|
|
4072
4072
|
]),
|
|
4073
4073
|
_: 1
|
|
4074
4074
|
}));
|
|
4075
4075
|
}
|
|
4076
|
-
},
|
|
4076
|
+
}, Ui = {
|
|
4077
4077
|
key: 0,
|
|
4078
4078
|
class: "flex justify-center"
|
|
4079
|
-
},
|
|
4079
|
+
}, qi = /* @__PURE__ */ s("svg", {
|
|
4080
4080
|
class: "w-5 h-5",
|
|
4081
4081
|
"aria-hidden": "true",
|
|
4082
4082
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4084,12 +4084,12 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4084
4084
|
viewBox: "0 0 4 15"
|
|
4085
4085
|
}, [
|
|
4086
4086
|
/* @__PURE__ */ s("path", { d: "M3.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 6.041a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 5.959a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" })
|
|
4087
|
-
], -1),
|
|
4088
|
-
|
|
4089
|
-
],
|
|
4087
|
+
], -1), zi = [
|
|
4088
|
+
qi
|
|
4089
|
+
], Hi = { class: "absolute 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" }, Zi = {
|
|
4090
4090
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4091
4091
|
"aria-labelledby": "dropdownDividerButton"
|
|
4092
|
-
},
|
|
4092
|
+
}, Ki = { key: 0 }, Wi = ["href"], Xi = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), Yi = { key: 1 }, Ji = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Ad = {
|
|
4093
4093
|
__name: "DatatableAction",
|
|
4094
4094
|
props: {
|
|
4095
4095
|
field: {
|
|
@@ -4115,14 +4115,14 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4115
4115
|
},
|
|
4116
4116
|
emits: ["deleteAction"],
|
|
4117
4117
|
setup(e, { emit: t }) {
|
|
4118
|
-
const r = Ce(), n = e,
|
|
4119
|
-
|
|
4118
|
+
const r = Ce(), n = e, o = O(!1), a = O(!1), l = () => {
|
|
4119
|
+
o.value = !1;
|
|
4120
4120
|
}, i = () => {
|
|
4121
|
-
|
|
4121
|
+
o.value = !0;
|
|
4122
4122
|
}, c = () => {
|
|
4123
|
-
|
|
4123
|
+
a.value = !1;
|
|
4124
4124
|
}, f = () => {
|
|
4125
|
-
|
|
4125
|
+
a.value = !0;
|
|
4126
4126
|
}, m = t, y = () => {
|
|
4127
4127
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
4128
4128
|
c(), m("deleteAction"), r.commit("notification/SHOW_NOTIFICATION", {
|
|
@@ -4138,40 +4138,40 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4138
4138
|
const L = we("click-outside");
|
|
4139
4139
|
return d(), u(v, null, [
|
|
4140
4140
|
H(ie, {
|
|
4141
|
-
isOpen:
|
|
4141
|
+
isOpen: a.value,
|
|
4142
4142
|
onConfirmDelete: y,
|
|
4143
4143
|
onCancelDelete: c
|
|
4144
4144
|
}, null, 8, ["isOpen"]),
|
|
4145
|
-
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? P((d(), u("div",
|
|
4145
|
+
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? P((d(), u("div", Ui, [
|
|
4146
4146
|
s("button", {
|
|
4147
4147
|
onClick: i,
|
|
4148
4148
|
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",
|
|
4149
4149
|
type: "button"
|
|
4150
|
-
},
|
|
4151
|
-
P(s("div",
|
|
4152
|
-
s("ul",
|
|
4153
|
-
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li",
|
|
4150
|
+
}, zi),
|
|
4151
|
+
P(s("div", Hi, [
|
|
4152
|
+
s("ul", Zi, [
|
|
4153
|
+
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li", Ki, [
|
|
4154
4154
|
s("a", {
|
|
4155
4155
|
href: e.xprops.route + "/" + e.row.id + "/edit",
|
|
4156
4156
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4157
4157
|
}, [
|
|
4158
|
-
|
|
4158
|
+
Xi,
|
|
4159
4159
|
w(" Edit")
|
|
4160
|
-
], 8,
|
|
4160
|
+
], 8, Wi)
|
|
4161
4161
|
])) : g("", !0),
|
|
4162
|
-
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4162
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", Yi, [
|
|
4163
4163
|
s("a", {
|
|
4164
4164
|
href: "#",
|
|
4165
|
-
onClick:
|
|
4165
|
+
onClick: M(f, ["prevent"]),
|
|
4166
4166
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4167
4167
|
}, [
|
|
4168
|
-
|
|
4168
|
+
Ji,
|
|
4169
4169
|
w(" Remove")
|
|
4170
4170
|
])
|
|
4171
4171
|
])) : g("", !0)
|
|
4172
4172
|
])
|
|
4173
4173
|
], 512), [
|
|
4174
|
-
[B,
|
|
4174
|
+
[B, o.value]
|
|
4175
4175
|
])
|
|
4176
4176
|
])), [
|
|
4177
4177
|
[L, l]
|
|
@@ -4179,10 +4179,10 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4179
4179
|
], 64);
|
|
4180
4180
|
};
|
|
4181
4181
|
}
|
|
4182
|
-
},
|
|
4182
|
+
}, Qi = {
|
|
4183
4183
|
key: 0,
|
|
4184
4184
|
class: "flex justify-center"
|
|
4185
|
-
},
|
|
4185
|
+
}, el = /* @__PURE__ */ s("svg", {
|
|
4186
4186
|
class: "w-5 h-5",
|
|
4187
4187
|
"aria-hidden": "true",
|
|
4188
4188
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4190,12 +4190,12 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4190
4190
|
viewBox: "0 0 4 15"
|
|
4191
4191
|
}, [
|
|
4192
4192
|
/* @__PURE__ */ s("path", { d: "M3.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 6.041a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 5.959a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" })
|
|
4193
|
-
], -1),
|
|
4194
|
-
|
|
4195
|
-
],
|
|
4193
|
+
], -1), tl = [
|
|
4194
|
+
el
|
|
4195
|
+
], rl = { class: "absolute 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" }, sl = {
|
|
4196
4196
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4197
4197
|
"aria-labelledby": "dropdownDividerButton"
|
|
4198
|
-
},
|
|
4198
|
+
}, nl = { key: 0 }, al = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Id = {
|
|
4199
4199
|
__name: "DatatableDeleteAction",
|
|
4200
4200
|
props: {
|
|
4201
4201
|
field: {
|
|
@@ -4221,14 +4221,14 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4221
4221
|
},
|
|
4222
4222
|
emits: ["deleteAction"],
|
|
4223
4223
|
setup(e, { emit: t }) {
|
|
4224
|
-
const r = Ce(), n = e,
|
|
4225
|
-
|
|
4224
|
+
const r = Ce(), n = e, o = O(!1), a = O(!1), l = () => {
|
|
4225
|
+
o.value = !1;
|
|
4226
4226
|
}, i = () => {
|
|
4227
|
-
|
|
4227
|
+
o.value = !0;
|
|
4228
4228
|
}, c = () => {
|
|
4229
|
-
|
|
4229
|
+
a.value = !1;
|
|
4230
4230
|
}, f = () => {
|
|
4231
|
-
|
|
4231
|
+
a.value = !0;
|
|
4232
4232
|
}, m = t, y = () => {
|
|
4233
4233
|
axios.delete(`${n.xprops.route}/${n.row.id}`).then(() => {
|
|
4234
4234
|
c(), m("deleteAction"), r.commit("notification/SHOW_NOTIFICATION", {
|
|
@@ -4244,31 +4244,31 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4244
4244
|
const L = we("click-outside");
|
|
4245
4245
|
return d(), u(v, null, [
|
|
4246
4246
|
H(ie, {
|
|
4247
|
-
isOpen:
|
|
4247
|
+
isOpen: a.value,
|
|
4248
4248
|
onConfirmDelete: y,
|
|
4249
4249
|
onCancelDelete: c
|
|
4250
4250
|
}, null, 8, ["isOpen"]),
|
|
4251
|
-
e.row && x.can(`delete_${e.xprops.permission}`) ? P((d(), u("div",
|
|
4251
|
+
e.row && x.can(`delete_${e.xprops.permission}`) ? P((d(), u("div", Qi, [
|
|
4252
4252
|
s("button", {
|
|
4253
4253
|
onClick: i,
|
|
4254
4254
|
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",
|
|
4255
4255
|
type: "button"
|
|
4256
|
-
},
|
|
4257
|
-
P(s("div",
|
|
4258
|
-
s("ul",
|
|
4259
|
-
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4256
|
+
}, tl),
|
|
4257
|
+
P(s("div", rl, [
|
|
4258
|
+
s("ul", sl, [
|
|
4259
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", nl, [
|
|
4260
4260
|
s("a", {
|
|
4261
4261
|
href: "#",
|
|
4262
|
-
onClick:
|
|
4262
|
+
onClick: M(f, ["prevent"]),
|
|
4263
4263
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4264
4264
|
}, [
|
|
4265
|
-
|
|
4265
|
+
al,
|
|
4266
4266
|
w(" Remove")
|
|
4267
4267
|
])
|
|
4268
4268
|
])) : g("", !0)
|
|
4269
4269
|
])
|
|
4270
4270
|
], 512), [
|
|
4271
|
-
[B,
|
|
4271
|
+
[B, o.value]
|
|
4272
4272
|
])
|
|
4273
4273
|
])), [
|
|
4274
4274
|
[L, l]
|
|
@@ -4276,7 +4276,7 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4276
4276
|
], 64);
|
|
4277
4277
|
};
|
|
4278
4278
|
}
|
|
4279
|
-
},
|
|
4279
|
+
}, ol = {
|
|
4280
4280
|
props: ["field", "row"],
|
|
4281
4281
|
computed: {
|
|
4282
4282
|
isArray() {
|
|
@@ -4292,7 +4292,7 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4292
4292
|
mounted() {
|
|
4293
4293
|
console.log("row : ", this.row);
|
|
4294
4294
|
}
|
|
4295
|
-
},
|
|
4295
|
+
}, il = ["href", "title"], ll = /* @__PURE__ */ s("svg", {
|
|
4296
4296
|
class: "w-3 h-3 text-white me-2",
|
|
4297
4297
|
"aria-hidden": "true",
|
|
4298
4298
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4309,10 +4309,10 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4309
4309
|
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",
|
|
4310
4310
|
"clip-rule": "evenodd"
|
|
4311
4311
|
})
|
|
4312
|
-
], -1),
|
|
4312
|
+
], -1), dl = {
|
|
4313
4313
|
key: 1,
|
|
4314
4314
|
class: "m-1 d-inline-block"
|
|
4315
|
-
},
|
|
4315
|
+
}, ul = ["href", "title"], cl = /* @__PURE__ */ s("svg", {
|
|
4316
4316
|
class: "w-3 h-3 text-white me-2",
|
|
4317
4317
|
"aria-hidden": "true",
|
|
4318
4318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4330,9 +4330,9 @@ const Dd = /* @__PURE__ */ D(Va, [["render", xi]]), wi = {
|
|
|
4330
4330
|
"clip-rule": "evenodd"
|
|
4331
4331
|
})
|
|
4332
4332
|
], -1);
|
|
4333
|
-
function
|
|
4333
|
+
function fl(e, t, r, n, o, a) {
|
|
4334
4334
|
return d(), u("div", null, [
|
|
4335
|
-
|
|
4335
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, $(r.row, (l, i) => (d(), u("div", {
|
|
4336
4336
|
key: i,
|
|
4337
4337
|
class: "m-1 d-inline-block"
|
|
4338
4338
|
}, [
|
|
@@ -4342,23 +4342,23 @@ function ul(e, t, r, n, a, o) {
|
|
|
4342
4342
|
target: "_blank",
|
|
4343
4343
|
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"
|
|
4344
4344
|
}, [
|
|
4345
|
-
|
|
4345
|
+
ll,
|
|
4346
4346
|
w(" Download ")
|
|
4347
|
-
], 8,
|
|
4348
|
-
]))), 128)) :
|
|
4347
|
+
], 8, il)
|
|
4348
|
+
]))), 128)) : a.isString ? (d(), u("div", dl, [
|
|
4349
4349
|
s("a", {
|
|
4350
4350
|
href: r.row,
|
|
4351
4351
|
title: r.row,
|
|
4352
4352
|
target: "_blank",
|
|
4353
4353
|
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"
|
|
4354
4354
|
}, [
|
|
4355
|
-
|
|
4355
|
+
cl,
|
|
4356
4356
|
w(" Download ")
|
|
4357
|
-
], 8,
|
|
4357
|
+
], 8, ul)
|
|
4358
4358
|
])) : g("", !0)
|
|
4359
4359
|
]);
|
|
4360
4360
|
}
|
|
4361
|
-
const
|
|
4361
|
+
const Td = /* @__PURE__ */ D(ol, [["render", fl]]), hl = {
|
|
4362
4362
|
props: ["field", "row"],
|
|
4363
4363
|
computed: {
|
|
4364
4364
|
isArray() {
|
|
@@ -4368,7 +4368,7 @@ const Ad = /* @__PURE__ */ D(nl, [["render", ul]]), cl = {
|
|
|
4368
4368
|
return typeof this.row[this.field] == "object";
|
|
4369
4369
|
}
|
|
4370
4370
|
}
|
|
4371
|
-
},
|
|
4371
|
+
}, gl = ["href", "title"], ml = /* @__PURE__ */ s("svg", {
|
|
4372
4372
|
class: "w-3 h-3 text-white me-2",
|
|
4373
4373
|
"aria-hidden": "true",
|
|
4374
4374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4385,10 +4385,10 @@ const Ad = /* @__PURE__ */ D(nl, [["render", ul]]), cl = {
|
|
|
4385
4385
|
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",
|
|
4386
4386
|
"clip-rule": "evenodd"
|
|
4387
4387
|
})
|
|
4388
|
-
], -1),
|
|
4388
|
+
], -1), pl = {
|
|
4389
4389
|
key: 1,
|
|
4390
4390
|
class: "m-1 d-inline-block"
|
|
4391
|
-
},
|
|
4391
|
+
}, _l = ["href", "title"], bl = /* @__PURE__ */ s("svg", {
|
|
4392
4392
|
class: "w-3 h-3 text-white me-2",
|
|
4393
4393
|
"aria-hidden": "true",
|
|
4394
4394
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4406,9 +4406,9 @@ const Ad = /* @__PURE__ */ D(nl, [["render", ul]]), cl = {
|
|
|
4406
4406
|
"clip-rule": "evenodd"
|
|
4407
4407
|
})
|
|
4408
4408
|
], -1);
|
|
4409
|
-
function
|
|
4409
|
+
function yl(e, t, r, n, o, a) {
|
|
4410
4410
|
return d(), u("div", null, [
|
|
4411
|
-
|
|
4411
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, $(r.row[r.field], (l) => (d(), u("div", {
|
|
4412
4412
|
key: l.id,
|
|
4413
4413
|
class: "m-1 d-inline-block"
|
|
4414
4414
|
}, [
|
|
@@ -4418,39 +4418,39 @@ function _l(e, t, r, n, a, o) {
|
|
|
4418
4418
|
target: "_blank",
|
|
4419
4419
|
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"
|
|
4420
4420
|
}, [
|
|
4421
|
-
|
|
4421
|
+
ml,
|
|
4422
4422
|
w(" Download ")
|
|
4423
|
-
], 8,
|
|
4424
|
-
]))), 128)) :
|
|
4423
|
+
], 8, gl)
|
|
4424
|
+
]))), 128)) : a.isObject ? (d(), u("div", pl, [
|
|
4425
4425
|
s("a", {
|
|
4426
4426
|
href: r.row[r.field].url,
|
|
4427
4427
|
title: r.row[r.field].name,
|
|
4428
4428
|
target: "_blank",
|
|
4429
4429
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4430
4430
|
}, [
|
|
4431
|
-
|
|
4431
|
+
bl,
|
|
4432
4432
|
w(" Download ")
|
|
4433
|
-
], 8,
|
|
4433
|
+
], 8, _l)
|
|
4434
4434
|
])) : g("", !0)
|
|
4435
4435
|
]);
|
|
4436
4436
|
}
|
|
4437
|
-
const
|
|
4437
|
+
const Md = /* @__PURE__ */ D(hl, [["render", yl]]), vl = {
|
|
4438
4438
|
props: ["field", "row", "tdProps"]
|
|
4439
|
-
},
|
|
4440
|
-
function
|
|
4441
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4439
|
+
}, xl = { key: 0 }, wl = ["innerHTML"];
|
|
4440
|
+
function kl(e, t, r, n, o, a) {
|
|
4441
|
+
return r.row[r.field] ? (d(), u("div", xl, [
|
|
4442
4442
|
s("div", {
|
|
4443
4443
|
class: "w-full",
|
|
4444
4444
|
innerHTML: r.row[r.field]
|
|
4445
|
-
}, null, 8,
|
|
4445
|
+
}, null, 8, wl)
|
|
4446
4446
|
])) : g("", !0);
|
|
4447
4447
|
}
|
|
4448
|
-
const
|
|
4448
|
+
const Nd = /* @__PURE__ */ D(vl, [["render", kl]]), $l = {
|
|
4449
4449
|
props: ["field", "row", "tdProps"],
|
|
4450
4450
|
computed: {
|
|
4451
4451
|
entry() {
|
|
4452
4452
|
const [e, t] = this.field.split(".");
|
|
4453
|
-
return
|
|
4453
|
+
return nt({ key: e, field: t });
|
|
4454
4454
|
},
|
|
4455
4455
|
isArray() {
|
|
4456
4456
|
return Array.isArray(this.row[this.entry.key]);
|
|
@@ -4459,24 +4459,24 @@ const Td = /* @__PURE__ */ D(bl, [["render", xl]]), wl = {
|
|
|
4459
4459
|
return typeof this.row[this.entry.key] == "object";
|
|
4460
4460
|
}
|
|
4461
4461
|
}
|
|
4462
|
-
},
|
|
4462
|
+
}, Cl = { class: "flex flex-wrap gap-2" }, Sl = {
|
|
4463
4463
|
key: 1,
|
|
4464
4464
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4465
4465
|
};
|
|
4466
|
-
function
|
|
4467
|
-
return d(), u("div",
|
|
4468
|
-
|
|
4466
|
+
function Ol(e, t, r, n, o, a) {
|
|
4467
|
+
return d(), u("div", Cl, [
|
|
4468
|
+
a.isArray ? (d(!0), u(v, { key: 0 }, $(r.row[a.entry.key], (l, i) => (d(), u("span", {
|
|
4469
4469
|
key: i,
|
|
4470
4470
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4471
|
-
}, h(l[
|
|
4471
|
+
}, h(l[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", Sl, h(r.row[a.entry.key][a.entry.field]), 1)) : g("", !0)
|
|
4472
4472
|
]);
|
|
4473
4473
|
}
|
|
4474
|
-
const
|
|
4474
|
+
const Vd = /* @__PURE__ */ D($l, [["render", Ol]]), Dl = {
|
|
4475
4475
|
props: ["field", "row", "tdProps"]
|
|
4476
|
-
},
|
|
4477
|
-
function
|
|
4478
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4479
|
-
s("div",
|
|
4476
|
+
}, Pl = { key: 0 }, El = { class: "m-1 d-inline-block" }, jl = ["href", "title"], Al = ["src", "alt", "title"];
|
|
4477
|
+
function Il(e, t, r, n, o, a) {
|
|
4478
|
+
return r.row[r.field] ? (d(), u("div", Pl, [
|
|
4479
|
+
s("div", El, [
|
|
4480
4480
|
s("a", {
|
|
4481
4481
|
href: r.row[r.field].url,
|
|
4482
4482
|
title: r.row[r.field].name,
|
|
@@ -4486,37 +4486,37 @@ function jl(e, t, r, n, a, o) {
|
|
|
4486
4486
|
src: r.row[r.field].thumbnail,
|
|
4487
4487
|
alt: r.row[r.field].name,
|
|
4488
4488
|
title: r.row[r.field].name
|
|
4489
|
-
}, null, 8,
|
|
4490
|
-
], 8,
|
|
4489
|
+
}, null, 8, Al)
|
|
4490
|
+
], 8, jl)
|
|
4491
4491
|
])
|
|
4492
4492
|
])) : g("", !0);
|
|
4493
4493
|
}
|
|
4494
|
-
const
|
|
4494
|
+
const Ld = /* @__PURE__ */ D(Dl, [["render", Il], ["__scopeId", "data-v-3a28c02c"]]), Tl = {
|
|
4495
4495
|
props: ["field", "row", "tdProps"],
|
|
4496
4496
|
computed: {
|
|
4497
4497
|
isActive() {
|
|
4498
4498
|
return this.row[this.field] === 1;
|
|
4499
4499
|
}
|
|
4500
4500
|
}
|
|
4501
|
-
},
|
|
4501
|
+
}, Ml = { class: "flex flex-wrap gap-2" }, Nl = {
|
|
4502
4502
|
key: 0,
|
|
4503
4503
|
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"
|
|
4504
|
-
},
|
|
4504
|
+
}, Vl = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Ll = {
|
|
4505
4505
|
key: 1,
|
|
4506
4506
|
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"
|
|
4507
|
-
},
|
|
4508
|
-
function
|
|
4509
|
-
return d(), u("div",
|
|
4510
|
-
|
|
4511
|
-
Nl,
|
|
4512
|
-
w(" Active ")
|
|
4513
|
-
])) : o.isActive ? g("", !0) : (d(), u("span", Ml, [
|
|
4507
|
+
}, Bl = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
4508
|
+
function Gl(e, t, r, n, o, a) {
|
|
4509
|
+
return d(), u("div", Ml, [
|
|
4510
|
+
a.isActive ? (d(), u("span", Nl, [
|
|
4514
4511
|
Vl,
|
|
4512
|
+
w(" Active ")
|
|
4513
|
+
])) : a.isActive ? g("", !0) : (d(), u("span", Ll, [
|
|
4514
|
+
Bl,
|
|
4515
4515
|
w(" Inactive ")
|
|
4516
4516
|
]))
|
|
4517
4517
|
]);
|
|
4518
4518
|
}
|
|
4519
|
-
const
|
|
4519
|
+
const Bd = /* @__PURE__ */ D(Tl, [["render", Gl]]), Fl = {
|
|
4520
4520
|
props: ["field", "row", "tdProps"],
|
|
4521
4521
|
computed: {
|
|
4522
4522
|
hasLabelColor(e) {
|
|
@@ -4524,40 +4524,40 @@ const Vd = /* @__PURE__ */ D(Al, [["render", Ll]]), Bl = {
|
|
|
4524
4524
|
return t ? t.class : "";
|
|
4525
4525
|
}
|
|
4526
4526
|
}
|
|
4527
|
-
},
|
|
4527
|
+
}, Rl = { class: "flex flex-wrap gap-2" }, Ul = {
|
|
4528
4528
|
key: 0,
|
|
4529
4529
|
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"
|
|
4530
|
-
},
|
|
4530
|
+
}, ql = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), zl = {
|
|
4531
4531
|
key: 1,
|
|
4532
4532
|
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"
|
|
4533
|
-
},
|
|
4533
|
+
}, Hl = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), Zl = {
|
|
4534
4534
|
key: 2,
|
|
4535
4535
|
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"
|
|
4536
|
-
},
|
|
4536
|
+
}, Kl = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), Wl = {
|
|
4537
4537
|
key: 3,
|
|
4538
4538
|
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"
|
|
4539
|
-
},
|
|
4540
|
-
function
|
|
4541
|
-
return d(), u("div",
|
|
4542
|
-
|
|
4543
|
-
Rl,
|
|
4544
|
-
w(" " + h(this.row[this.field]), 1)
|
|
4545
|
-
])) : g("", !0),
|
|
4546
|
-
o.hasLabelColor == "red" ? (d(), u("span", Ul, [
|
|
4539
|
+
}, Xl = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1);
|
|
4540
|
+
function Yl(e, t, r, n, o, a) {
|
|
4541
|
+
return d(), u("div", Rl, [
|
|
4542
|
+
a.hasLabelColor == "green" ? (d(), u("span", Ul, [
|
|
4547
4543
|
ql,
|
|
4548
4544
|
w(" " + h(this.row[this.field]), 1)
|
|
4549
4545
|
])) : g("", !0),
|
|
4550
|
-
|
|
4546
|
+
a.hasLabelColor == "red" ? (d(), u("span", zl, [
|
|
4551
4547
|
Hl,
|
|
4552
4548
|
w(" " + h(this.row[this.field]), 1)
|
|
4553
4549
|
])) : g("", !0),
|
|
4554
|
-
|
|
4550
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", Zl, [
|
|
4555
4551
|
Kl,
|
|
4556
4552
|
w(" " + h(this.row[this.field]), 1)
|
|
4553
|
+
])) : g("", !0),
|
|
4554
|
+
a.hasLabelColor == "default" ? (d(), u("span", Wl, [
|
|
4555
|
+
Xl,
|
|
4556
|
+
w(" " + h(this.row[this.field]), 1)
|
|
4557
4557
|
])) : g("", !0)
|
|
4558
4558
|
]);
|
|
4559
4559
|
}
|
|
4560
|
-
const
|
|
4560
|
+
const Gd = /* @__PURE__ */ D(Fl, [["render", Yl]]), Jl = {
|
|
4561
4561
|
props: ["isOpen", "title", "button_text"],
|
|
4562
4562
|
methods: {
|
|
4563
4563
|
confirmAction() {
|
|
@@ -4567,42 +4567,42 @@ const Ld = /* @__PURE__ */ D(Bl, [["render", Wl]]), Xl = {
|
|
|
4567
4567
|
this.$emit("cancel-action");
|
|
4568
4568
|
}
|
|
4569
4569
|
}
|
|
4570
|
-
},
|
|
4570
|
+
}, Ql = {
|
|
4571
4571
|
key: 0,
|
|
4572
4572
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
4573
4573
|
role: "dialog",
|
|
4574
4574
|
"aria-modal": "true"
|
|
4575
|
-
},
|
|
4575
|
+
}, ed = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, td = /* @__PURE__ */ s("div", {
|
|
4576
4576
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
4577
4577
|
"aria-hidden": "true"
|
|
4578
|
-
}, null, -1),
|
|
4578
|
+
}, null, -1), rd = /* @__PURE__ */ s("span", {
|
|
4579
4579
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4580
4580
|
"aria-hidden": "true"
|
|
4581
|
-
}, "", -1),
|
|
4582
|
-
function
|
|
4583
|
-
return r.isOpen ? (d(), u("div",
|
|
4584
|
-
s("div",
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
s("div",
|
|
4588
|
-
s("div",
|
|
4589
|
-
s("div",
|
|
4590
|
-
s("div",
|
|
4591
|
-
s("h3",
|
|
4592
|
-
s("div",
|
|
4581
|
+
}, "", -1), sd = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, nd = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, ad = { class: "sm:flex sm:items-start" }, od = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, id = { class: "text-lg font-medium leading-6 text-gray-900" }, ld = { class: "mt-2" }, dd = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
4582
|
+
function ud(e, t, r, n, o, a) {
|
|
4583
|
+
return r.isOpen ? (d(), u("div", Ql, [
|
|
4584
|
+
s("div", ed, [
|
|
4585
|
+
td,
|
|
4586
|
+
rd,
|
|
4587
|
+
s("div", sd, [
|
|
4588
|
+
s("div", nd, [
|
|
4589
|
+
s("div", ad, [
|
|
4590
|
+
s("div", od, [
|
|
4591
|
+
s("h3", id, h(r.title), 1),
|
|
4592
|
+
s("div", ld, [
|
|
4593
4593
|
A(e.$slots, "default")
|
|
4594
4594
|
])
|
|
4595
4595
|
])
|
|
4596
4596
|
])
|
|
4597
4597
|
]),
|
|
4598
|
-
s("div",
|
|
4598
|
+
s("div", dd, [
|
|
4599
4599
|
s("button", {
|
|
4600
|
-
onClick: t[0] || (t[0] = (...l) =>
|
|
4600
|
+
onClick: t[0] || (t[0] = (...l) => a.confirmAction && a.confirmAction(...l)),
|
|
4601
4601
|
type: "button",
|
|
4602
4602
|
class: "inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4603
4603
|
}, h(r.button_text), 1),
|
|
4604
4604
|
s("button", {
|
|
4605
|
-
onClick: t[1] || (t[1] = (...l) =>
|
|
4605
|
+
onClick: t[1] || (t[1] = (...l) => a.cancelAction && a.cancelAction(...l)),
|
|
4606
4606
|
type: "button",
|
|
4607
4607
|
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4608
4608
|
}, " Cancel ")
|
|
@@ -4611,39 +4611,39 @@ function ld(e, t, r, n, a, o) {
|
|
|
4611
4611
|
])
|
|
4612
4612
|
])) : g("", !0);
|
|
4613
4613
|
}
|
|
4614
|
-
const
|
|
4614
|
+
const Fd = /* @__PURE__ */ D(Jl, [["render", ud]]);
|
|
4615
4615
|
export {
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4616
|
+
_d as GlButton,
|
|
4617
|
+
md as GlCard,
|
|
4618
|
+
Fd as GlConfirmationModal,
|
|
4619
|
+
Ed as GlDataTable,
|
|
4620
|
+
Pd as GlDataTableServerSide,
|
|
4621
|
+
Ad as GlDatatableAction,
|
|
4622
|
+
Id as GlDatatableDeleteAction,
|
|
4623
|
+
Td as GlDatatableFileDownload,
|
|
4624
|
+
Md as GlDatatableFiles,
|
|
4625
|
+
Nd as GlDatatableHtml,
|
|
4626
|
+
Vd as GlDatatableList,
|
|
4627
|
+
Ld as GlDatatablePicture,
|
|
4628
|
+
Bd as GlDatatableStatus,
|
|
4629
|
+
Gd as GlDatatableStatusGeneral,
|
|
4630
4630
|
ie as GlDeleteConfirmationModal,
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4631
|
+
Od as GlDropdown,
|
|
4632
|
+
fd as GlFilesUpload,
|
|
4633
|
+
gd as GlLanguageSelector,
|
|
4634
|
+
Cd as GlModal,
|
|
4635
|
+
$d as GlMultiItemSlide,
|
|
4636
|
+
pd as GlMultiSelectDropdown,
|
|
4637
|
+
hd as GlNotify,
|
|
4638
|
+
kd as GlTab,
|
|
4639
|
+
wd as GlTabsWrapper,
|
|
4640
|
+
_o as GlTailwindPagination,
|
|
4641
|
+
xd as GlTextInput,
|
|
4642
|
+
vd as GlTextTranslate,
|
|
4643
|
+
Dd as GlTextarea,
|
|
4644
|
+
bd as GlTextareaTranslate,
|
|
4645
|
+
yd as GlTinymceTranslate,
|
|
4646
4646
|
ye as GlToast,
|
|
4647
|
-
|
|
4648
|
-
|
|
4647
|
+
jd as GlToastList,
|
|
4648
|
+
Sd as GlToggleBox
|
|
4649
4649
|
};
|