golden-logic-ui 1.0.56 → 1.0.58
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 +974 -968
- 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
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Je, inject as Ce, watch as X, effectScope as Qe, computed as G, reactive as Se, resolveComponent as Y, Fragment as v, createVNode as Z, normalizeClass as p, toDisplayString as h, withModifiers as N, withDirectives as D, vModelText as V, renderList as k, normalizeStyle as et, renderSlot as I, createTextVNode as w, vShow as F, createBlock as K, resolveDynamicComponent as oe, mergeProps as W, withCtx as J, ref as C, onMounted as R, vModelDynamic as tt, provide as rt, pushScopeId as st, popScopeId as nt, vModelCheckbox as at, nextTick as ot, toHandlers as ne, TransitionGroup as it, unref as lt, resolveDirective as Oe, markRaw as dt } from "vue";
|
|
2
|
+
const S = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
4
|
for (const [n, o] of t)
|
|
5
5
|
r[n] = o;
|
|
6
6
|
return r;
|
|
7
|
-
},
|
|
7
|
+
}, ut = {
|
|
8
8
|
props: ["isOpen"],
|
|
9
9
|
methods: {
|
|
10
10
|
confirmDeletion() {
|
|
@@ -14,27 +14,27 @@ const O = (e, t) => {
|
|
|
14
14
|
this.$emit("cancel-delete");
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
},
|
|
17
|
+
}, ct = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
20
20
|
"aria-labelledby": "modal-title",
|
|
21
21
|
role: "dialog",
|
|
22
22
|
"aria-modal": "true"
|
|
23
|
-
},
|
|
23
|
+
}, ft = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, ht = /* @__PURE__ */ s("div", {
|
|
24
24
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
25
25
|
"aria-hidden": "true"
|
|
26
|
-
}, null, -1),
|
|
26
|
+
}, null, -1), gt = /* @__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), mt = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, pt = /* @__PURE__ */ Je('<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), _t = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
30
|
+
function bt(e, t, r, n, o, a) {
|
|
31
|
+
return r.isOpen ? (d(), u("div", ct, [
|
|
32
|
+
s("div", ft, [
|
|
33
|
+
ht,
|
|
34
|
+
gt,
|
|
35
|
+
s("div", mt, [
|
|
36
|
+
pt,
|
|
37
|
+
s("div", _t, [
|
|
38
38
|
s("button", {
|
|
39
39
|
onClick: t[0] || (t[0] = (...l) => a.confirmDeletion && a.confirmDeletion(...l)),
|
|
40
40
|
type: "button",
|
|
@@ -50,23 +50,23 @@ function gt(e, t, r, n, o, a) {
|
|
|
50
50
|
])
|
|
51
51
|
])) : g("", !0);
|
|
52
52
|
}
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
return
|
|
53
|
+
const ue = /* @__PURE__ */ S(ut, [["render", bt]]);
|
|
54
|
+
function yt() {
|
|
55
|
+
return De().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function De() {
|
|
58
58
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
59
59
|
}
|
|
60
|
-
const
|
|
61
|
-
let
|
|
62
|
-
function
|
|
60
|
+
const vt = typeof Proxy == "function", xt = "devtools-plugin:setup", wt = "plugin:settings:set";
|
|
61
|
+
let z, ie;
|
|
62
|
+
function kt() {
|
|
63
63
|
var e;
|
|
64
|
-
return
|
|
64
|
+
return z !== void 0 || (typeof window < "u" && window.performance ? (z = !0, ie = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (z = !0, ie = globalThis.perf_hooks.performance) : z = !1), z;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function $t() {
|
|
67
|
+
return kt() ? ie.now() : Date.now();
|
|
68
68
|
}
|
|
69
|
-
class
|
|
69
|
+
class Ct {
|
|
70
70
|
constructor(t, r) {
|
|
71
71
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = r;
|
|
72
72
|
const n = {};
|
|
@@ -94,9 +94,9 @@ class xt {
|
|
|
94
94
|
a = l;
|
|
95
95
|
},
|
|
96
96
|
now() {
|
|
97
|
-
return
|
|
97
|
+
return $t();
|
|
98
98
|
}
|
|
99
|
-
}, r && r.on(
|
|
99
|
+
}, r && r.on(wt, (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 xt {
|
|
|
128
128
|
r.resolve(await this.target[r.method](...r.args));
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
const r = e, n =
|
|
131
|
+
function St(e, t) {
|
|
132
|
+
const r = e, n = De(), o = yt(), a = vt && r.enableEarlyProxy;
|
|
133
133
|
if (o && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
134
|
-
o.emit(
|
|
134
|
+
o.emit(xt, e, t);
|
|
135
135
|
else {
|
|
136
|
-
const l = a ? new
|
|
136
|
+
const l = a ? new Ct(r, o) : null;
|
|
137
137
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
138
138
|
pluginDescriptor: r,
|
|
139
139
|
setupFn: t,
|
|
@@ -146,48 +146,48 @@ function wt(e, t) {
|
|
|
146
146
|
* (c) 2022 Evan You
|
|
147
147
|
* @license MIT
|
|
148
148
|
*/
|
|
149
|
-
var
|
|
150
|
-
function
|
|
151
|
-
return e === void 0 && (e = null),
|
|
149
|
+
var Pe = "store";
|
|
150
|
+
function Ee(e) {
|
|
151
|
+
return e === void 0 && (e = null), Ce(e !== null ? e : Pe);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function U(e, t) {
|
|
154
154
|
Object.keys(e).forEach(function(r) {
|
|
155
155
|
return t(e[r], r);
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function je(e) {
|
|
159
159
|
return e !== null && typeof e == "object";
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Ot(e) {
|
|
162
162
|
return e && typeof e.then == "function";
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function T(e, t) {
|
|
165
165
|
if (!e)
|
|
166
166
|
throw new Error("[vuex] " + t);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Dt(e, t) {
|
|
169
169
|
return function() {
|
|
170
170
|
return e(t);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Ae(e, t, r) {
|
|
174
174
|
return t.indexOf(e) < 0 && (r && r.prepend ? t.unshift(e) : t.push(e)), function() {
|
|
175
175
|
var n = t.indexOf(e);
|
|
176
176
|
n > -1 && t.splice(n, 1);
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Ie(e, t) {
|
|
180
180
|
e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
|
|
181
181
|
var r = e.state;
|
|
182
|
-
|
|
182
|
+
ee(e, r, [], e._modules.root, !0), ce(e, r, t);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function ce(e, t, r) {
|
|
185
185
|
var n = e._state, o = e._scope;
|
|
186
186
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
187
|
-
var a = e._wrappedGetters, l = {}, i = {}, c =
|
|
187
|
+
var a = e._wrappedGetters, l = {}, i = {}, c = Qe(!0);
|
|
188
188
|
c.run(function() {
|
|
189
|
-
|
|
190
|
-
l[m] =
|
|
189
|
+
U(a, function(f, m) {
|
|
190
|
+
l[m] = Dt(f, e), i[m] = G(function() {
|
|
191
191
|
return l[m]();
|
|
192
192
|
}), Object.defineProperty(e.getters, m, {
|
|
193
193
|
get: function() {
|
|
@@ -197,40 +197,40 @@ function le(e, t, r) {
|
|
|
197
197
|
// for local getters
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
|
-
}), e._state =
|
|
200
|
+
}), e._state = Se({
|
|
201
201
|
data: t
|
|
202
|
-
}), e._scope = c, e.strict &&
|
|
202
|
+
}), e._scope = c, e.strict && It(e), n && r && e._withCommit(function() {
|
|
203
203
|
n.data = null;
|
|
204
204
|
}), o && o.stop();
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function ee(e, t, r, n, o) {
|
|
207
207
|
var a = !r.length, l = e._modules.getNamespace(r);
|
|
208
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
|
-
var i =
|
|
209
|
+
var i = fe(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(
|
|
212
212
|
'[vuex] state field "' + c + '" was overridden by a module with the same name at "' + r.join(".") + '"'
|
|
213
213
|
), i[c] = n.state;
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
var f = n.context =
|
|
216
|
+
var f = n.context = Pt(e, l, r);
|
|
217
217
|
n.forEachMutation(function(m, y) {
|
|
218
218
|
var x = l + y;
|
|
219
|
-
|
|
219
|
+
Et(e, x, m, f);
|
|
220
220
|
}), n.forEachAction(function(m, y) {
|
|
221
|
-
var x = m.root ? y : l + y,
|
|
222
|
-
|
|
221
|
+
var x = m.root ? y : l + y, $ = m.handler || m;
|
|
222
|
+
jt(e, x, $, f);
|
|
223
223
|
}), n.forEachGetter(function(m, y) {
|
|
224
224
|
var x = l + y;
|
|
225
|
-
|
|
225
|
+
At(e, x, m, f);
|
|
226
226
|
}), n.forEachChild(function(m, y) {
|
|
227
|
-
|
|
227
|
+
ee(e, t, r.concat(y), m, o);
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Pt(e, t, r) {
|
|
231
231
|
var n = t === "", o = {
|
|
232
232
|
dispatch: n ? e.dispatch : function(a, l, i) {
|
|
233
|
-
var c =
|
|
233
|
+
var c = Q(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;
|
|
@@ -238,7 +238,7 @@ function Ct(e, t, r) {
|
|
|
238
238
|
return e.dispatch(y, f);
|
|
239
239
|
},
|
|
240
240
|
commit: n ? e.commit : function(a, l, i) {
|
|
241
|
-
var c =
|
|
241
|
+
var c = Q(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;
|
|
@@ -251,17 +251,17 @@ function Ct(e, t, r) {
|
|
|
251
251
|
get: n ? function() {
|
|
252
252
|
return e.getters;
|
|
253
253
|
} : function() {
|
|
254
|
-
return
|
|
254
|
+
return Te(e, t);
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
257
|
state: {
|
|
258
258
|
get: function() {
|
|
259
|
-
return
|
|
259
|
+
return fe(e.state, r);
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
}), o;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Te(e, t) {
|
|
265
265
|
if (!e._makeLocalGettersCache[t]) {
|
|
266
266
|
var r = {}, n = t.length;
|
|
267
267
|
Object.keys(e.getters).forEach(function(o) {
|
|
@@ -278,13 +278,13 @@ function Ee(e, t) {
|
|
|
278
278
|
}
|
|
279
279
|
return e._makeLocalGettersCache[t];
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Et(e, t, r, n) {
|
|
282
282
|
var o = e._mutations[t] || (e._mutations[t] = []);
|
|
283
283
|
o.push(function(l) {
|
|
284
284
|
r.call(e, n.state, l);
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function jt(e, t, r, n) {
|
|
288
288
|
var o = e._actions[t] || (e._actions[t] = []);
|
|
289
289
|
o.push(function(l) {
|
|
290
290
|
var i = r.call(e, {
|
|
@@ -295,12 +295,12 @@ function Ot(e, t, r, n) {
|
|
|
295
295
|
rootGetters: e.getters,
|
|
296
296
|
rootState: e.state
|
|
297
297
|
}, l);
|
|
298
|
-
return
|
|
298
|
+
return Ot(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 At(e, t, r, n) {
|
|
304
304
|
if (e._wrappedGetters[t]) {
|
|
305
305
|
process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + t);
|
|
306
306
|
return;
|
|
@@ -318,24 +318,24 @@ function Dt(e, t, r, n) {
|
|
|
318
318
|
);
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
|
|
321
|
+
function It(e) {
|
|
322
|
+
X(function() {
|
|
323
323
|
return e._state.data;
|
|
324
324
|
}, function() {
|
|
325
|
-
process.env.NODE_ENV !== "production" &&
|
|
325
|
+
process.env.NODE_ENV !== "production" && T(e._committing, "do not mutate vuex store state outside mutation handlers.");
|
|
326
326
|
}, { deep: !0, flush: "sync" });
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function fe(e, t) {
|
|
329
329
|
return t.reduce(function(r, n) {
|
|
330
330
|
return r[n];
|
|
331
331
|
}, e);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
return
|
|
333
|
+
function Q(e, t, r) {
|
|
334
|
+
return je(e) && e.type && (r = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && T(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 Tt = "vuex bindings", ve = "vuex:mutations", ae = "vuex:actions", H = "vuex", Mt = 0;
|
|
337
|
+
function Nt(e, t) {
|
|
338
|
+
St(
|
|
339
339
|
{
|
|
340
340
|
id: "org.vuejs.vuex",
|
|
341
341
|
app: e,
|
|
@@ -343,42 +343,42 @@ function At(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: [Tt]
|
|
347
347
|
},
|
|
348
348
|
function(r) {
|
|
349
349
|
r.addTimelineLayer({
|
|
350
|
-
id:
|
|
350
|
+
id: ve,
|
|
351
351
|
label: "Vuex Mutations",
|
|
352
|
-
color:
|
|
352
|
+
color: xe
|
|
353
353
|
}), r.addTimelineLayer({
|
|
354
|
-
id:
|
|
354
|
+
id: ae,
|
|
355
355
|
label: "Vuex Actions",
|
|
356
|
-
color:
|
|
356
|
+
color: xe
|
|
357
357
|
}), r.addInspector({
|
|
358
|
-
id:
|
|
358
|
+
id: H,
|
|
359
359
|
label: "Vuex",
|
|
360
360
|
icon: "storage",
|
|
361
361
|
treeFilterPlaceholder: "Filter stores..."
|
|
362
362
|
}), r.on.getInspectorTree(function(n) {
|
|
363
|
-
if (n.app === e && n.inspectorId ===
|
|
363
|
+
if (n.app === e && n.inspectorId === H)
|
|
364
364
|
if (n.filter) {
|
|
365
365
|
var o = [];
|
|
366
|
-
|
|
366
|
+
Le(o, t._modules.root, n.filter, ""), n.rootNodes = o;
|
|
367
367
|
} else
|
|
368
368
|
n.rootNodes = [
|
|
369
|
-
|
|
369
|
+
Ve(t._modules.root, "")
|
|
370
370
|
];
|
|
371
371
|
}), r.on.getInspectorState(function(n) {
|
|
372
|
-
if (n.app === e && n.inspectorId ===
|
|
372
|
+
if (n.app === e && n.inspectorId === H) {
|
|
373
373
|
var o = n.nodeId;
|
|
374
|
-
|
|
375
|
-
|
|
374
|
+
Te(t, o), n.state = Bt(
|
|
375
|
+
Ft(t._modules, o),
|
|
376
376
|
o === "root" ? t.getters : t._makeLocalGettersCache,
|
|
377
377
|
o
|
|
378
378
|
);
|
|
379
379
|
}
|
|
380
380
|
}), r.on.editInspectorState(function(n) {
|
|
381
|
-
if (n.app === e && n.inspectorId ===
|
|
381
|
+
if (n.app === e && n.inspectorId === H) {
|
|
382
382
|
var o = n.nodeId, a = n.path;
|
|
383
383
|
o !== "root" && (a = o.split("/").filter(Boolean).concat(a)), t._withCommit(function() {
|
|
384
384
|
n.set(t._state.data, a, n.state.value);
|
|
@@ -386,8 +386,8 @@ function At(e, t) {
|
|
|
386
386
|
}
|
|
387
387
|
}), t.subscribe(function(n, o) {
|
|
388
388
|
var a = {};
|
|
389
|
-
n.payload && (a.payload = n.payload), a.state = o, r.notifyComponentUpdate(), r.sendInspectorTree(
|
|
390
|
-
layerId:
|
|
389
|
+
n.payload && (a.payload = n.payload), a.state = o, r.notifyComponentUpdate(), r.sendInspectorTree(H), r.sendInspectorState(H), r.addTimelineEvent({
|
|
390
|
+
layerId: ve,
|
|
391
391
|
event: {
|
|
392
392
|
time: Date.now(),
|
|
393
393
|
title: n.type,
|
|
@@ -397,8 +397,8 @@ function At(e, t) {
|
|
|
397
397
|
}), t.subscribeAction({
|
|
398
398
|
before: function(n, o) {
|
|
399
399
|
var a = {};
|
|
400
|
-
n.payload && (a.payload = n.payload), n._id =
|
|
401
|
-
layerId:
|
|
400
|
+
n.payload && (a.payload = n.payload), n._id = Mt++, n._time = Date.now(), a.state = o, r.addTimelineEvent({
|
|
401
|
+
layerId: ae,
|
|
402
402
|
event: {
|
|
403
403
|
time: n._time,
|
|
404
404
|
title: n.type,
|
|
@@ -418,7 +418,7 @@ function At(e, t) {
|
|
|
418
418
|
value: l
|
|
419
419
|
}
|
|
420
420
|
}, n.payload && (a.payload = n.payload), a.state = o, r.addTimelineEvent({
|
|
421
|
-
layerId:
|
|
421
|
+
layerId: ae,
|
|
422
422
|
event: {
|
|
423
423
|
time: Date.now(),
|
|
424
424
|
title: n.type,
|
|
@@ -432,25 +432,25 @@ function At(e, t) {
|
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var xe = 8702998, Vt = 6710886, Lt = 16777215, Me = {
|
|
436
436
|
label: "namespaced",
|
|
437
|
-
textColor:
|
|
438
|
-
backgroundColor:
|
|
437
|
+
textColor: Lt,
|
|
438
|
+
backgroundColor: Vt
|
|
439
439
|
};
|
|
440
|
-
function
|
|
440
|
+
function Ne(e) {
|
|
441
441
|
return e && e !== "root" ? e.split("/").slice(-2, -1)[0] : "Root";
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Ve(e, t) {
|
|
444
444
|
return {
|
|
445
445
|
id: t || "root",
|
|
446
446
|
// all modules end with a `/`, we want the last segment only
|
|
447
447
|
// cart/ -> cart
|
|
448
448
|
// nested/cart/ -> cart
|
|
449
|
-
label:
|
|
450
|
-
tags: e.namespaced ? [
|
|
449
|
+
label: Ne(t),
|
|
450
|
+
tags: e.namespaced ? [Me] : [],
|
|
451
451
|
children: Object.keys(e._children).map(
|
|
452
452
|
function(r) {
|
|
453
|
-
return
|
|
453
|
+
return Ve(
|
|
454
454
|
e._children[r],
|
|
455
455
|
t + r + "/"
|
|
456
456
|
);
|
|
@@ -458,16 +458,16 @@ function Ie(e, t) {
|
|
|
458
458
|
)
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Le(e, t, r, n) {
|
|
462
462
|
n.includes(r) && e.push({
|
|
463
463
|
id: n || "root",
|
|
464
464
|
label: n.endsWith("/") ? n.slice(0, n.length - 1) : n || "Root",
|
|
465
|
-
tags: t.namespaced ? [
|
|
465
|
+
tags: t.namespaced ? [Me] : []
|
|
466
466
|
}), Object.keys(t._children).forEach(function(o) {
|
|
467
|
-
|
|
467
|
+
Le(e, t._children[o], r, n + o + "/");
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Bt(e, t, r) {
|
|
471
471
|
t = r === "root" ? t : t[r];
|
|
472
472
|
var n = Object.keys(t), o = {
|
|
473
473
|
state: Object.keys(e.state).map(function(l) {
|
|
@@ -479,12 +479,12 @@ function Mt(e, t, r) {
|
|
|
479
479
|
})
|
|
480
480
|
};
|
|
481
481
|
if (n.length) {
|
|
482
|
-
var a =
|
|
482
|
+
var a = Gt(t);
|
|
483
483
|
o.getters = Object.keys(a).map(function(l) {
|
|
484
484
|
return {
|
|
485
|
-
key: l.endsWith("/") ?
|
|
485
|
+
key: l.endsWith("/") ? Ne(l) : l,
|
|
486
486
|
editable: !1,
|
|
487
|
-
value:
|
|
487
|
+
value: le(function() {
|
|
488
488
|
return a[l];
|
|
489
489
|
})
|
|
490
490
|
};
|
|
@@ -492,7 +492,7 @@ function Mt(e, t, r) {
|
|
|
492
492
|
}
|
|
493
493
|
return o;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Gt(e) {
|
|
496
496
|
var t = {};
|
|
497
497
|
return Object.keys(e).forEach(function(r) {
|
|
498
498
|
var n = r.split("/");
|
|
@@ -507,16 +507,16 @@ function Nt(e) {
|
|
|
507
507
|
abstract: !0
|
|
508
508
|
}
|
|
509
509
|
}), o = o[l]._custom.value;
|
|
510
|
-
}), o[a] =
|
|
510
|
+
}), o[a] = le(function() {
|
|
511
511
|
return e[r];
|
|
512
512
|
});
|
|
513
513
|
} else
|
|
514
|
-
t[r] =
|
|
514
|
+
t[r] = le(function() {
|
|
515
515
|
return e[r];
|
|
516
516
|
});
|
|
517
517
|
}), t;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Ft(e, t) {
|
|
520
520
|
var r = t.split("/").filter(function(n) {
|
|
521
521
|
return n;
|
|
522
522
|
});
|
|
@@ -530,81 +530,81 @@ function Vt(e, t) {
|
|
|
530
530
|
t === "root" ? e : e.root._children
|
|
531
531
|
);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function le(e) {
|
|
534
534
|
try {
|
|
535
535
|
return e();
|
|
536
536
|
} catch (t) {
|
|
537
537
|
return t;
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var M = function(t, r) {
|
|
541
541
|
this.runtime = r, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = t;
|
|
542
542
|
var n = t.state;
|
|
543
543
|
this.state = (typeof n == "function" ? n() : n) || {};
|
|
544
|
-
},
|
|
545
|
-
|
|
544
|
+
}, Be = { namespaced: { configurable: !0 } };
|
|
545
|
+
Be.namespaced.get = function() {
|
|
546
546
|
return !!this._rawModule.namespaced;
|
|
547
547
|
};
|
|
548
|
-
|
|
548
|
+
M.prototype.addChild = function(t, r) {
|
|
549
549
|
this._children[t] = r;
|
|
550
550
|
};
|
|
551
|
-
|
|
551
|
+
M.prototype.removeChild = function(t) {
|
|
552
552
|
delete this._children[t];
|
|
553
553
|
};
|
|
554
|
-
|
|
554
|
+
M.prototype.getChild = function(t) {
|
|
555
555
|
return this._children[t];
|
|
556
556
|
};
|
|
557
|
-
|
|
557
|
+
M.prototype.hasChild = function(t) {
|
|
558
558
|
return t in this._children;
|
|
559
559
|
};
|
|
560
|
-
|
|
560
|
+
M.prototype.update = function(t) {
|
|
561
561
|
this._rawModule.namespaced = t.namespaced, t.actions && (this._rawModule.actions = t.actions), t.mutations && (this._rawModule.mutations = t.mutations), t.getters && (this._rawModule.getters = t.getters);
|
|
562
562
|
};
|
|
563
|
-
|
|
564
|
-
|
|
563
|
+
M.prototype.forEachChild = function(t) {
|
|
564
|
+
U(this._children, t);
|
|
565
565
|
};
|
|
566
|
-
|
|
567
|
-
this._rawModule.getters &&
|
|
566
|
+
M.prototype.forEachGetter = function(t) {
|
|
567
|
+
this._rawModule.getters && U(this._rawModule.getters, t);
|
|
568
568
|
};
|
|
569
|
-
|
|
570
|
-
this._rawModule.actions &&
|
|
569
|
+
M.prototype.forEachAction = function(t) {
|
|
570
|
+
this._rawModule.actions && U(this._rawModule.actions, t);
|
|
571
571
|
};
|
|
572
|
-
|
|
573
|
-
this._rawModule.mutations &&
|
|
572
|
+
M.prototype.forEachMutation = function(t) {
|
|
573
|
+
this._rawModule.mutations && U(this._rawModule.mutations, t);
|
|
574
574
|
};
|
|
575
|
-
Object.defineProperties(
|
|
576
|
-
var
|
|
575
|
+
Object.defineProperties(M.prototype, Be);
|
|
576
|
+
var q = function(t) {
|
|
577
577
|
this.register([], t, !1);
|
|
578
578
|
};
|
|
579
|
-
|
|
579
|
+
q.prototype.get = function(t) {
|
|
580
580
|
return t.reduce(function(r, n) {
|
|
581
581
|
return r.getChild(n);
|
|
582
582
|
}, this.root);
|
|
583
583
|
};
|
|
584
|
-
|
|
584
|
+
q.prototype.getNamespace = function(t) {
|
|
585
585
|
var r = this.root;
|
|
586
586
|
return t.reduce(function(n, o) {
|
|
587
587
|
return r = r.getChild(o), n + (r.namespaced ? o + "/" : "");
|
|
588
588
|
}, "");
|
|
589
589
|
};
|
|
590
|
-
|
|
591
|
-
|
|
590
|
+
q.prototype.update = function(t) {
|
|
591
|
+
Ge([], this.root, t);
|
|
592
592
|
};
|
|
593
|
-
|
|
593
|
+
q.prototype.register = function(t, r, n) {
|
|
594
594
|
var o = this;
|
|
595
|
-
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" &&
|
|
596
|
-
var a = new
|
|
595
|
+
n === void 0 && (n = !0), process.env.NODE_ENV !== "production" && Fe(t, r);
|
|
596
|
+
var a = new M(r, n);
|
|
597
597
|
if (t.length === 0)
|
|
598
598
|
this.root = a;
|
|
599
599
|
else {
|
|
600
600
|
var l = this.get(t.slice(0, -1));
|
|
601
601
|
l.addChild(t[t.length - 1], a);
|
|
602
602
|
}
|
|
603
|
-
r.modules &&
|
|
603
|
+
r.modules && U(r.modules, function(i, c) {
|
|
604
604
|
o.register(t.concat(c), i, n);
|
|
605
605
|
});
|
|
606
606
|
};
|
|
607
|
-
|
|
607
|
+
q.prototype.unregister = function(t) {
|
|
608
608
|
var r = this.get(t.slice(0, -1)), n = t[t.length - 1], o = r.getChild(n);
|
|
609
609
|
if (!o) {
|
|
610
610
|
process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -614,12 +614,12 @@ U.prototype.unregister = function(t) {
|
|
|
614
614
|
}
|
|
615
615
|
o.runtime && r.removeChild(n);
|
|
616
616
|
};
|
|
617
|
-
|
|
617
|
+
q.prototype.isRegistered = function(t) {
|
|
618
618
|
var r = this.get(t.slice(0, -1)), n = t[t.length - 1];
|
|
619
619
|
return r ? r.hasChild(n) : !1;
|
|
620
620
|
};
|
|
621
|
-
function
|
|
622
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
621
|
+
function Ge(e, t, r) {
|
|
622
|
+
if (process.env.NODE_ENV !== "production" && Fe(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,78 +627,78 @@ function Ne(e, t, r) {
|
|
|
627
627
|
);
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
630
|
-
|
|
630
|
+
Ge(
|
|
631
631
|
e.concat(n),
|
|
632
632
|
t.getChild(n),
|
|
633
633
|
r.modules[n]
|
|
634
634
|
);
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
var
|
|
637
|
+
var we = {
|
|
638
638
|
assert: function(e) {
|
|
639
639
|
return typeof e == "function";
|
|
640
640
|
},
|
|
641
641
|
expected: "function"
|
|
642
|
-
},
|
|
642
|
+
}, Rt = {
|
|
643
643
|
assert: function(e) {
|
|
644
644
|
return typeof e == "function" || typeof e == "object" && typeof e.handler == "function";
|
|
645
645
|
},
|
|
646
646
|
expected: 'function or object with "handler" function'
|
|
647
|
-
},
|
|
648
|
-
getters:
|
|
649
|
-
mutations:
|
|
650
|
-
actions:
|
|
647
|
+
}, ke = {
|
|
648
|
+
getters: we,
|
|
649
|
+
mutations: we,
|
|
650
|
+
actions: Rt
|
|
651
651
|
};
|
|
652
|
-
function
|
|
653
|
-
Object.keys(
|
|
652
|
+
function Fe(e, t) {
|
|
653
|
+
Object.keys(ke).forEach(function(r) {
|
|
654
654
|
if (t[r]) {
|
|
655
|
-
var n =
|
|
656
|
-
|
|
657
|
-
|
|
655
|
+
var n = ke[r];
|
|
656
|
+
U(t[r], function(o, a) {
|
|
657
|
+
T(
|
|
658
658
|
n.assert(o),
|
|
659
|
-
|
|
659
|
+
Ut(e, r, a, o, n.expected)
|
|
660
660
|
);
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function Ut(e, t, r, n, o) {
|
|
666
666
|
var a = t + " should be " + o + ' but "' + t + "." + r + '"';
|
|
667
667
|
return e.length > 0 && (a += ' in module "' + e.join(".") + '"'), a += " is " + JSON.stringify(n) + ".", a;
|
|
668
668
|
}
|
|
669
669
|
var j = function e(t) {
|
|
670
670
|
var r = this;
|
|
671
|
-
t === void 0 && (t = {}), process.env.NODE_ENV !== "production" && (
|
|
671
|
+
t === void 0 && (t = {}), process.env.NODE_ENV !== "production" && (T(typeof Promise < "u", "vuex requires a Promise polyfill in this browser."), T(this instanceof e, "store must be called with the new operator."));
|
|
672
672
|
var n = t.plugins;
|
|
673
673
|
n === void 0 && (n = []);
|
|
674
674
|
var o = t.strict;
|
|
675
675
|
o === void 0 && (o = !1);
|
|
676
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
|
|
677
|
+
this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new q(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
|
|
678
678
|
var l = this, i = this, c = i.dispatch, f = i.commit;
|
|
679
|
-
this.dispatch = function(x,
|
|
680
|
-
return c.call(l, x,
|
|
681
|
-
}, this.commit = function(x,
|
|
682
|
-
return f.call(l, x,
|
|
679
|
+
this.dispatch = function(x, $) {
|
|
680
|
+
return c.call(l, x, $);
|
|
681
|
+
}, this.commit = function(x, $, L) {
|
|
682
|
+
return f.call(l, x, $, L);
|
|
683
683
|
}, this.strict = o;
|
|
684
684
|
var m = this._modules.root.state;
|
|
685
|
-
|
|
685
|
+
ee(this, m, [], this._modules.root), ce(this, m), n.forEach(function(y) {
|
|
686
686
|
return y(r);
|
|
687
687
|
});
|
|
688
|
-
},
|
|
688
|
+
}, he = { state: { configurable: !0 } };
|
|
689
689
|
j.prototype.install = function(t, r) {
|
|
690
|
-
t.provide(r ||
|
|
690
|
+
t.provide(r || Pe, this), t.config.globalProperties.$store = this;
|
|
691
691
|
var n = this._devtools !== void 0 ? this._devtools : process.env.NODE_ENV !== "production" || !1;
|
|
692
|
-
n &&
|
|
692
|
+
n && Nt(t, this);
|
|
693
693
|
};
|
|
694
|
-
|
|
694
|
+
he.state.get = function() {
|
|
695
695
|
return this._state.data;
|
|
696
696
|
};
|
|
697
|
-
|
|
698
|
-
process.env.NODE_ENV !== "production" &&
|
|
697
|
+
he.state.set = function(e) {
|
|
698
|
+
process.env.NODE_ENV !== "production" && T(!1, "use store.replaceState() to explicit replace store state.");
|
|
699
699
|
};
|
|
700
700
|
j.prototype.commit = function(t, r, n) {
|
|
701
|
-
var o = this, a =
|
|
701
|
+
var o = this, a = Q(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;
|
|
@@ -714,7 +714,7 @@ j.prototype.commit = function(t, r, n) {
|
|
|
714
714
|
);
|
|
715
715
|
};
|
|
716
716
|
j.prototype.dispatch = function(t, r) {
|
|
717
|
-
var n = this, o =
|
|
717
|
+
var n = this, o = Q(t, r), a = o.type, l = o.payload, i = { type: a, payload: l }, c = this._actions[a];
|
|
718
718
|
if (!c) {
|
|
719
719
|
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " + a);
|
|
720
720
|
return;
|
|
@@ -734,39 +734,39 @@ j.prototype.dispatch = function(t, r) {
|
|
|
734
734
|
return new Promise(function(m, y) {
|
|
735
735
|
f.then(function(x) {
|
|
736
736
|
try {
|
|
737
|
-
n._actionSubscribers.filter(function(
|
|
738
|
-
return
|
|
739
|
-
}).forEach(function(
|
|
740
|
-
return
|
|
737
|
+
n._actionSubscribers.filter(function($) {
|
|
738
|
+
return $.after;
|
|
739
|
+
}).forEach(function($) {
|
|
740
|
+
return $.after(i, n.state);
|
|
741
741
|
});
|
|
742
|
-
} catch (
|
|
743
|
-
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(
|
|
742
|
+
} catch ($) {
|
|
743
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error($));
|
|
744
744
|
}
|
|
745
745
|
m(x);
|
|
746
746
|
}, function(x) {
|
|
747
747
|
try {
|
|
748
|
-
n._actionSubscribers.filter(function(
|
|
749
|
-
return
|
|
750
|
-
}).forEach(function(
|
|
751
|
-
return
|
|
748
|
+
n._actionSubscribers.filter(function($) {
|
|
749
|
+
return $.error;
|
|
750
|
+
}).forEach(function($) {
|
|
751
|
+
return $.error(i, n.state, x);
|
|
752
752
|
});
|
|
753
|
-
} catch (
|
|
754
|
-
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(
|
|
753
|
+
} catch ($) {
|
|
754
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error($));
|
|
755
755
|
}
|
|
756
756
|
y(x);
|
|
757
757
|
});
|
|
758
758
|
});
|
|
759
759
|
};
|
|
760
760
|
j.prototype.subscribe = function(t, r) {
|
|
761
|
-
return
|
|
761
|
+
return Ae(t, this._subscribers, r);
|
|
762
762
|
};
|
|
763
763
|
j.prototype.subscribeAction = function(t, r) {
|
|
764
764
|
var n = typeof t == "function" ? { before: t } : t;
|
|
765
|
-
return
|
|
765
|
+
return Ae(n, this._actionSubscribers, r);
|
|
766
766
|
};
|
|
767
767
|
j.prototype.watch = function(t, r, n) {
|
|
768
768
|
var o = this;
|
|
769
|
-
return process.env.NODE_ENV !== "production" &&
|
|
769
|
+
return process.env.NODE_ENV !== "production" && T(typeof t == "function", "store.watch only accepts a function."), X(function() {
|
|
770
770
|
return t(o.state, o.getters);
|
|
771
771
|
}, r, Object.assign({}, n));
|
|
772
772
|
};
|
|
@@ -777,34 +777,34 @@ j.prototype.replaceState = function(t) {
|
|
|
777
777
|
});
|
|
778
778
|
};
|
|
779
779
|
j.prototype.registerModule = function(t, r, n) {
|
|
780
|
-
n === void 0 && (n = {}), typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && (
|
|
780
|
+
n === void 0 && (n = {}), typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && (T(Array.isArray(t), "module path must be a string or an Array."), T(t.length > 0, "cannot register the root module by using registerModule.")), this._modules.register(t, r), ee(this, this.state, t, this._modules.get(t), n.preserveState), ce(this, this.state);
|
|
781
781
|
};
|
|
782
782
|
j.prototype.unregisterModule = function(t) {
|
|
783
783
|
var r = this;
|
|
784
|
-
typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" &&
|
|
785
|
-
var n =
|
|
784
|
+
typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && T(Array.isArray(t), "module path must be a string or an Array."), this._modules.unregister(t), this._withCommit(function() {
|
|
785
|
+
var n = fe(r.state, t.slice(0, -1));
|
|
786
786
|
delete n[t[t.length - 1]];
|
|
787
|
-
}),
|
|
787
|
+
}), Ie(this);
|
|
788
788
|
};
|
|
789
789
|
j.prototype.hasModule = function(t) {
|
|
790
|
-
return typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" &&
|
|
790
|
+
return typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && T(Array.isArray(t), "module path must be a string or an Array."), this._modules.isRegistered(t);
|
|
791
791
|
};
|
|
792
792
|
j.prototype.hotUpdate = function(t) {
|
|
793
|
-
this._modules.update(t),
|
|
793
|
+
this._modules.update(t), Ie(this, !0);
|
|
794
794
|
};
|
|
795
795
|
j.prototype._withCommit = function(t) {
|
|
796
796
|
var r = this._committing;
|
|
797
797
|
this._committing = !0, t(), this._committing = r;
|
|
798
798
|
};
|
|
799
|
-
Object.defineProperties(j.prototype,
|
|
800
|
-
var
|
|
799
|
+
Object.defineProperties(j.prototype, he);
|
|
800
|
+
var qt = Ue(function(e, t) {
|
|
801
801
|
var r = {};
|
|
802
|
-
return process.env.NODE_ENV !== "production" && !
|
|
802
|
+
return process.env.NODE_ENV !== "production" && !ge(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), Re(t).forEach(function(n) {
|
|
803
803
|
var o = n.key, a = n.val;
|
|
804
804
|
r[o] = function() {
|
|
805
805
|
var i = this.$store.state, c = this.$store.getters;
|
|
806
806
|
if (e) {
|
|
807
|
-
var f =
|
|
807
|
+
var f = qe(this.$store, "mapState", e);
|
|
808
808
|
if (!f)
|
|
809
809
|
return;
|
|
810
810
|
i = f.context.state, c = f.context.getters;
|
|
@@ -812,16 +812,16 @@ var Gt = Be(function(e, t) {
|
|
|
812
812
|
return typeof a == "function" ? a.call(this, i, c) : i[a];
|
|
813
813
|
}, r[o].vuex = !0;
|
|
814
814
|
}), r;
|
|
815
|
-
}),
|
|
815
|
+
}), zt = Ue(function(e, t) {
|
|
816
816
|
var r = {};
|
|
817
|
-
return process.env.NODE_ENV !== "production" && !
|
|
817
|
+
return process.env.NODE_ENV !== "production" && !ge(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), Re(t).forEach(function(n) {
|
|
818
818
|
var o = n.key, a = n.val;
|
|
819
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;
|
|
823
823
|
if (e) {
|
|
824
|
-
var m =
|
|
824
|
+
var m = qe(this.$store, "mapMutations", e);
|
|
825
825
|
if (!m)
|
|
826
826
|
return;
|
|
827
827
|
f = m.context.commit;
|
|
@@ -830,28 +830,28 @@ var Gt = Be(function(e, t) {
|
|
|
830
830
|
};
|
|
831
831
|
}), r;
|
|
832
832
|
});
|
|
833
|
-
function
|
|
834
|
-
return
|
|
833
|
+
function Re(e) {
|
|
834
|
+
return ge(e) ? Array.isArray(e) ? e.map(function(t) {
|
|
835
835
|
return { key: t, val: t };
|
|
836
836
|
}) : Object.keys(e).map(function(t) {
|
|
837
837
|
return { key: t, val: e[t] };
|
|
838
838
|
}) : [];
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
return Array.isArray(e) ||
|
|
840
|
+
function ge(e) {
|
|
841
|
+
return Array.isArray(e) || je(e);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function Ue(e) {
|
|
844
844
|
return function(t, r) {
|
|
845
845
|
return typeof t != "string" ? (r = t, t = "") : t.charAt(t.length - 1) !== "/" && (t += "/"), e(t, r);
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function qe(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 Ht = {
|
|
853
853
|
components: {
|
|
854
|
-
DeleteConfirmationModal:
|
|
854
|
+
DeleteConfirmationModal: ue
|
|
855
855
|
},
|
|
856
856
|
props: {
|
|
857
857
|
is_required: {
|
|
@@ -999,7 +999,7 @@ const Rt = {
|
|
|
999
999
|
mounted() {
|
|
1000
1000
|
console.log(this.model_value), this.model_value ? Array.isArray(this.model_value) ? this.uploadFileList = this.model_value : this.uploadFileList = [this.model_value] : this.uploadFileList = [], this.error_message_data = this.error_message;
|
|
1001
1001
|
}
|
|
1002
|
-
},
|
|
1002
|
+
}, Zt = { class: "flex flex-col items-center justify-center pt-5 pb-6" }, Kt = ["multiple"], Wt = ["name"], Xt = /* @__PURE__ */ s("svg", {
|
|
1003
1003
|
class: "w-8 h-8 mb-4 text-gray-500 dark:text-gray-400",
|
|
1004
1004
|
"aria-hidden": "true",
|
|
1005
1005
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1013,22 +1013,22 @@ const Rt = {
|
|
|
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), Yt = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, " Drag & drop files or browse ", -1), Jt = [
|
|
1017
|
+
Xt,
|
|
1018
|
+
Yt
|
|
1019
|
+
], Qt = { key: 1 }, er = /* @__PURE__ */ s("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, "Drop files here", -1), tr = [
|
|
1020
|
+
er
|
|
1021
|
+
], rr = { class: "mt-2 gl-span-form-error" }, sr = { class: "block mt-2 mb-3 text-sm font-normal leading-5 text-gray-500" }, nr = {
|
|
1022
1022
|
key: 0,
|
|
1023
1023
|
class: ""
|
|
1024
|
-
},
|
|
1024
|
+
}, ar = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, or = /* @__PURE__ */ s("i", { class: "text-3xl fas fa-file-alt" }, null, -1), ir = { class: "w-full ml-3" }, lr = { class: "flex items-center justify-between mb-1" }, dr = { class: "text-xs text-black dark:text-white" }, ur = { class: "text-xs text-black dark:text-white" }, cr = { class: "w-full h-1 mb-1 bg-white rounded-full dark:bg-gray-800" }, fr = { class: "overflow-x-scroll max-h-56" }, hr = { class: "flex items-center justify-between p-2 mb-2 text-gray-900 rounded-lg bg-gray-50 hover:bg-gray-100 hover:shadow dark:bg-gray-600 dark:hover:bg-gray-500 dark:text-white" }, gr = { class: "flex items-center" }, mr = /* @__PURE__ */ s("i", {
|
|
1025
1025
|
class: "text-3xl fas fa-file-alt",
|
|
1026
1026
|
"aria-hidden": "true"
|
|
1027
|
-
}, null, -1),
|
|
1028
|
-
function
|
|
1029
|
-
const l =
|
|
1027
|
+
}, null, -1), pr = { class: "flex flex-col ml-3" }, _r = { class: "text-xs" }, br = { class: "text-xs" }, yr = { class: "flex gap-2" }, vr = ["href"], xr = ["onClick"];
|
|
1028
|
+
function wr(e, t, r, n, o, a) {
|
|
1029
|
+
const l = Y("DeleteConfirmationModal");
|
|
1030
1030
|
return d(), u(v, null, [
|
|
1031
|
-
|
|
1031
|
+
Z(l, {
|
|
1032
1032
|
isOpen: o.open_delete_modal,
|
|
1033
1033
|
onConfirmDelete: a.deleteAction,
|
|
1034
1034
|
onCancelDelete: a.closeDeleteModal
|
|
@@ -1047,83 +1047,83 @@ function br(e, t, r, n, o, a) {
|
|
|
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] = N((...i) => a.onDragOver && a.onDragOver(...i), ["prevent"])),
|
|
1051
|
+
onDragleave: t[4] || (t[4] = N((...i) => a.onDragLeave && a.onDragLeave(...i), ["prevent"])),
|
|
1052
|
+
onDrop: t[5] || (t[5] = N((...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", Zt, [
|
|
1056
1056
|
s("input", {
|
|
1057
1057
|
type: "file",
|
|
1058
1058
|
ref: "file_input" + r.field_name,
|
|
1059
1059
|
hidden: "",
|
|
1060
1060
|
multiple: r.has_multiple_file,
|
|
1061
1061
|
onChange: t[0] || (t[0] = (...i) => a.uploadFiles && a.uploadFiles(...i))
|
|
1062
|
-
}, null, 40,
|
|
1063
|
-
|
|
1062
|
+
}, null, 40, Kt),
|
|
1063
|
+
D(s("input", {
|
|
1064
1064
|
type: "hidden",
|
|
1065
1065
|
name: r.field_name,
|
|
1066
1066
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => a.uploadedFileIds = i)
|
|
1067
|
-
}, null, 8,
|
|
1067
|
+
}, null, 8, Wt), [
|
|
1068
1068
|
[V, a.uploadedFileIds]
|
|
1069
1069
|
]),
|
|
1070
|
-
o.isDragging ? (d(), u("div",
|
|
1070
|
+
o.isDragging ? (d(), u("div", Qt, tr)) : (d(), u("div", {
|
|
1071
1071
|
key: 0,
|
|
1072
1072
|
class: "flex flex-col items-center justify-center",
|
|
1073
1073
|
onClick: t[2] || (t[2] = (i) => e.$refs["file_input" + this.field_name].click())
|
|
1074
|
-
},
|
|
1074
|
+
}, Jt))
|
|
1075
1075
|
])
|
|
1076
1076
|
], 32),
|
|
1077
|
-
s("span",
|
|
1078
|
-
s("small",
|
|
1079
|
-
o.files.length > 0 ? (d(), u("section",
|
|
1080
|
-
(d(!0), u(v, null, k(o.files, (i, c) => (d(), u("li",
|
|
1081
|
-
|
|
1082
|
-
s("div",
|
|
1083
|
-
s("div",
|
|
1084
|
-
s("span",
|
|
1085
|
-
s("span",
|
|
1077
|
+
s("span", rr, h(o.error_message_data), 1),
|
|
1078
|
+
s("small", sr, h(r.description), 1),
|
|
1079
|
+
o.files.length > 0 ? (d(), u("section", nr, [
|
|
1080
|
+
(d(!0), u(v, null, k(o.files, (i, c) => (d(), u("li", ar, [
|
|
1081
|
+
or,
|
|
1082
|
+
s("div", ir, [
|
|
1083
|
+
s("div", lr, [
|
|
1084
|
+
s("span", dr, h(a.getFileName(i.file_name)), 1),
|
|
1085
|
+
s("span", ur, h(i.loading), 1)
|
|
1086
1086
|
]),
|
|
1087
|
-
s("div",
|
|
1087
|
+
s("div", cr, [
|
|
1088
1088
|
s("div", {
|
|
1089
1089
|
class: "h-full bg-gray-500 rounded-full dark:bg-gray-400",
|
|
1090
|
-
style:
|
|
1090
|
+
style: et({ width: i.loading + "%" })
|
|
1091
1091
|
}, null, 4)
|
|
1092
1092
|
])
|
|
1093
1093
|
])
|
|
1094
1094
|
]))), 256))
|
|
1095
1095
|
])) : g("", !0),
|
|
1096
|
-
s("section",
|
|
1097
|
-
(d(!0), u(v, null, k(o.uploadFileList, (i, c) => (d(), u("li",
|
|
1098
|
-
s("div",
|
|
1099
|
-
|
|
1100
|
-
s("div",
|
|
1101
|
-
s("span",
|
|
1102
|
-
s("span",
|
|
1096
|
+
s("section", fr, [
|
|
1097
|
+
(d(!0), u(v, null, k(o.uploadFileList, (i, c) => (d(), u("li", hr, [
|
|
1098
|
+
s("div", gr, [
|
|
1099
|
+
mr,
|
|
1100
|
+
s("div", pr, [
|
|
1101
|
+
s("span", _r, h(a.getFileName(i.file_name)), 1),
|
|
1102
|
+
s("span", br, h(a.formatFileSize(i.size)), 1)
|
|
1103
1103
|
])
|
|
1104
1104
|
]),
|
|
1105
|
-
s("div",
|
|
1105
|
+
s("div", yr, [
|
|
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, vr),
|
|
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, xr)) : g("", !0)
|
|
1118
1118
|
])
|
|
1119
1119
|
]))), 256))
|
|
1120
1120
|
])
|
|
1121
1121
|
], 2)
|
|
1122
1122
|
], 64);
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const _d = /* @__PURE__ */ S(Ht, [["render", wr]]), kr = {
|
|
1125
1125
|
computed: {
|
|
1126
|
-
...
|
|
1126
|
+
...qt("notification", ["notification"]),
|
|
1127
1127
|
alertClasses() {
|
|
1128
1128
|
switch (this.notification.type) {
|
|
1129
1129
|
case "info":
|
|
@@ -1158,7 +1158,7 @@ const hd = /* @__PURE__ */ O(Rt, [["render", br]]), yr = {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
},
|
|
1160
1160
|
methods: {
|
|
1161
|
-
...
|
|
1161
|
+
...zt("notification", ["HIDE_NOTIFICATION"]),
|
|
1162
1162
|
dismiss() {
|
|
1163
1163
|
this.HIDE_NOTIFICATION();
|
|
1164
1164
|
}
|
|
@@ -1170,7 +1170,7 @@ const hd = /* @__PURE__ */ O(Rt, [["render", br]]), yr = {
|
|
|
1170
1170
|
}, this.notification.duration);
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
|
-
},
|
|
1173
|
+
}, $r = /* @__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 hd = /* @__PURE__ */ O(Rt, [["render", br]]), yr = {
|
|
|
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), Cr = /* @__PURE__ */ s("span", { class: "sr-only" }, "Info", -1), Sr = { class: "mr-3 text-sm font-medium ms-3" }, Or = /* @__PURE__ */ s("span", { class: "sr-only" }, "Close", -1), Dr = /* @__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 hd = /* @__PURE__ */ O(Rt, [["render", br]]), yr = {
|
|
|
1192
1192
|
"stroke-width": "2",
|
|
1193
1193
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
1194
1194
|
})
|
|
1195
|
-
], -1),
|
|
1196
|
-
|
|
1197
|
-
|
|
1195
|
+
], -1), Pr = [
|
|
1196
|
+
Or,
|
|
1197
|
+
Dr
|
|
1198
1198
|
];
|
|
1199
|
-
function
|
|
1199
|
+
function Er(e, t, r, n, o, a) {
|
|
1200
1200
|
return e.notification.show ? (d(), u("div", {
|
|
1201
1201
|
key: 0,
|
|
1202
1202
|
class: p(["fixed right-0 z-50 flex items-center p-4 m-5 mb-4 rounded-lg shadow-lg", a.alertClasses]),
|
|
1203
1203
|
role: "alert"
|
|
1204
1204
|
}, [
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
s("div",
|
|
1205
|
+
$r,
|
|
1206
|
+
Cr,
|
|
1207
|
+
s("div", Sr, h(e.notification.message), 1),
|
|
1208
1208
|
s("button", {
|
|
1209
1209
|
type: "button",
|
|
1210
1210
|
onClick: t[0] || (t[0] = (...l) => a.dismiss && a.dismiss(...l)),
|
|
1211
1211
|
class: p(["inline-flex items-center justify-center w-6 h-6 p-1 -mx-1 -my-1 rounded-lg ms-auto focus:ring-2 hover:bg-opacity-50", a.buttonClasses]),
|
|
1212
1212
|
"aria-label": "Close"
|
|
1213
|
-
},
|
|
1213
|
+
}, Pr, 2)
|
|
1214
1214
|
], 2)) : g("", !0);
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const bd = /* @__PURE__ */ S(kr, [["render", Er]]), jr = {
|
|
1217
1217
|
components: {},
|
|
1218
1218
|
props: {
|
|
1219
1219
|
field_name: {
|
|
@@ -1248,9 +1248,9 @@ const gd = /* @__PURE__ */ O(yr, [["render", Sr]]), Or = {
|
|
|
1248
1248
|
},
|
|
1249
1249
|
mounted() {
|
|
1250
1250
|
}
|
|
1251
|
-
},
|
|
1252
|
-
function
|
|
1253
|
-
return d(), u("ul",
|
|
1251
|
+
}, Ar = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, Ir = ["name", "value", "id", "checked"], Tr = ["for"];
|
|
1252
|
+
function Mr(e, t, r, n, o, a) {
|
|
1253
|
+
return d(), u("ul", Ar, [
|
|
1254
1254
|
(d(!0), u(v, null, k(o.locals, (l, i) => (d(), u("li", null, [
|
|
1255
1255
|
s("input", {
|
|
1256
1256
|
type: "radio",
|
|
@@ -1260,7 +1260,7 @@ function jr(e, t, r, n, o, a) {
|
|
|
1260
1260
|
id: l + "_" + r.field_name,
|
|
1261
1261
|
autocomplete: "off",
|
|
1262
1262
|
checked: l === o.default_language
|
|
1263
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, Ir),
|
|
1264
1264
|
s("label", {
|
|
1265
1265
|
for: l + "_" + r.field_name,
|
|
1266
1266
|
class: p([{
|
|
@@ -1268,14 +1268,14 @@ function jr(e, t, r, n, o, a) {
|
|
|
1268
1268
|
"border md:!rounded-e-lg": i === o.locals.length - 1,
|
|
1269
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, Tr)
|
|
1272
1272
|
]))), 256))
|
|
1273
1273
|
]);
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const yd = /* @__PURE__ */ S(jr, [["render", Mr]]), Nr = { class: "bg-white border rounded-lg border-stroke shadow-default dark:border-strokedark dark:bg-boxdark" }, Vr = { class: "px-3 py-4 border-b border-stroke dark:border-strokedark" }, Lr = { class: "font-semibold text-black dark:text-white" }, Br = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "p-6"
|
|
1278
|
-
},
|
|
1278
|
+
}, vd = {
|
|
1279
1279
|
__name: "GlCard",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
class: {
|
|
@@ -1284,23 +1284,23 @@ const md = /* @__PURE__ */ O(Or, [["render", jr]]), Ar = { class: "bg-white bord
|
|
|
1284
1284
|
}
|
|
1285
1285
|
},
|
|
1286
1286
|
setup(e) {
|
|
1287
|
-
const t = e, r =
|
|
1287
|
+
const t = e, r = G(() => t.class);
|
|
1288
1288
|
return (n, o) => (d(), u("div", {
|
|
1289
1289
|
class: p(["flex flex-col gap-9", r.value])
|
|
1290
1290
|
}, [
|
|
1291
|
-
s("div",
|
|
1292
|
-
s("div",
|
|
1293
|
-
s("h3",
|
|
1294
|
-
|
|
1291
|
+
s("div", Nr, [
|
|
1292
|
+
s("div", Vr, [
|
|
1293
|
+
s("h3", Lr, [
|
|
1294
|
+
I(n.$slots, "header")
|
|
1295
1295
|
])
|
|
1296
1296
|
]),
|
|
1297
|
-
n.$slots.body ? (d(), u("div",
|
|
1298
|
-
|
|
1297
|
+
n.$slots.body ? (d(), u("div", Br, [
|
|
1298
|
+
I(n.$slots, "body")
|
|
1299
1299
|
])) : g("", !0)
|
|
1300
1300
|
])
|
|
1301
1301
|
], 2));
|
|
1302
1302
|
}
|
|
1303
|
-
},
|
|
1303
|
+
}, Gr = {
|
|
1304
1304
|
name: "MultiSelectDropdown",
|
|
1305
1305
|
template: "MultiSelectDropdown",
|
|
1306
1306
|
props: {
|
|
@@ -1457,16 +1457,16 @@ const md = /* @__PURE__ */ O(Or, [["render", jr]]), Ar = { 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
|
+
}, Fr = { class: "font-bold ptext-lg dark:text-white" }, Rr = { class: "mt-3 mb-4" }, Ur = { 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" }, qr = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), zr = ["name", "value"], Hr = {
|
|
1461
1461
|
key: 0,
|
|
1462
1462
|
class: "dropdown"
|
|
1463
|
-
},
|
|
1463
|
+
}, Zr = {
|
|
1464
1464
|
class: "inline-flex ml-2 rounded-md shadow-sm",
|
|
1465
1465
|
role: "group"
|
|
1466
|
-
},
|
|
1466
|
+
}, Kr = { 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" }, Wr = { class: "relative" }, Xr = ["onClick"], Yr = { 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" }, Jr = { class: "p-1" }, Qr = /* @__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), es = { class: "relative" }, ts = /* @__PURE__ */ s("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
1470
1470
|
/* @__PURE__ */ s("svg", {
|
|
1471
1471
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
1472
1472
|
"aria-hidden": "true",
|
|
@@ -1482,18 +1482,18 @@ const md = /* @__PURE__ */ O(Or, [["render", jr]]), Ar = { 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), rs = ["id"], ss = { class: "overflow-y-auto max-h-64" }, ns = ["onClick", "onMousedown", "id"];
|
|
1486
|
+
function as(e, t, r, n, o, a) {
|
|
1487
1487
|
return d(), u(v, null, [
|
|
1488
1488
|
r.show ? (d(), u("div", {
|
|
1489
1489
|
key: 0,
|
|
1490
1490
|
class: p(r.field_name)
|
|
1491
1491
|
}, [
|
|
1492
|
-
s("h3",
|
|
1493
|
-
s("p",
|
|
1494
|
-
(d(!0), u(v, null, k(o.selected, (l, i) => (d(), u("span",
|
|
1492
|
+
s("h3", Fr, h(r.label_name), 1),
|
|
1493
|
+
s("p", Rr, [
|
|
1494
|
+
(d(!0), u(v, null, k(o.selected, (l, i) => (d(), u("span", Ur, h(l.name), 1))), 256))
|
|
1495
1495
|
]),
|
|
1496
|
-
|
|
1496
|
+
qr
|
|
1497
1497
|
], 2)) : g("", !0),
|
|
1498
1498
|
r.show ? g("", !0) : (d(), u("div", {
|
|
1499
1499
|
key: 1,
|
|
@@ -1504,8 +1504,8 @@ function ts(e, t, r, n, o, a) {
|
|
|
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, zr))), 128)),
|
|
1508
|
+
r.options ? (d(), u("div", Hr, [
|
|
1509
1509
|
s("label", {
|
|
1510
1510
|
class: p({
|
|
1511
1511
|
"gl-label-form": r.error_message == "",
|
|
@@ -1513,7 +1513,7 @@ function ts(e, t, r, n, o, a) {
|
|
|
1513
1513
|
required: r.is_required
|
|
1514
1514
|
})
|
|
1515
1515
|
}, h(r.label_name), 3),
|
|
1516
|
-
s("div",
|
|
1516
|
+
s("div", Zr, [
|
|
1517
1517
|
s("button", {
|
|
1518
1518
|
onClick: t[0] || (t[0] = (...l) => a.selectAll && a.selectAll(...l)),
|
|
1519
1519
|
type: "button",
|
|
@@ -1525,8 +1525,8 @@ function ts(e, t, r, n, o, a) {
|
|
|
1525
1525
|
class: "px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 rounded-e-md hover:bg-gray-900 hover:text-white focus:z-10 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700"
|
|
1526
1526
|
}, " Deselect all ")
|
|
1527
1527
|
]),
|
|
1528
|
-
s("div",
|
|
1529
|
-
s("div",
|
|
1528
|
+
s("div", Kr, [
|
|
1529
|
+
s("div", Wr, [
|
|
1530
1530
|
s("div", {
|
|
1531
1531
|
class: "flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",
|
|
1532
1532
|
onClick: t[2] || (t[2] = (l) => a.showOptions())
|
|
@@ -1537,9 +1537,9 @@ function ts(e, t, r, n, o, a) {
|
|
|
1537
1537
|
}, [
|
|
1538
1538
|
w(h(l.name) + " ", 1),
|
|
1539
1539
|
s("i", {
|
|
1540
|
-
onClick:
|
|
1540
|
+
onClick: N((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, Xr)
|
|
1543
1543
|
]))), 128))
|
|
1544
1544
|
]),
|
|
1545
1545
|
s("i", {
|
|
@@ -1547,12 +1547,12 @@ function ts(e, t, r, n, o, a) {
|
|
|
1547
1547
|
style: { top: "11px" }
|
|
1548
1548
|
}, null, 2)
|
|
1549
1549
|
]),
|
|
1550
|
-
|
|
1551
|
-
s("div",
|
|
1552
|
-
|
|
1553
|
-
s("div",
|
|
1554
|
-
|
|
1555
|
-
|
|
1550
|
+
D(s("div", Yr, [
|
|
1551
|
+
s("div", Jr, [
|
|
1552
|
+
Qr,
|
|
1553
|
+
s("div", es, [
|
|
1554
|
+
ts,
|
|
1555
|
+
D(s("input", {
|
|
1556
1556
|
type: "search",
|
|
1557
1557
|
"onUpdate:modelValue": t[3] || (t[3] = (l) => o.searchFilter = l),
|
|
1558
1558
|
id: r.field_name + "search",
|
|
@@ -1561,12 +1561,12 @@ function ts(e, t, r, n, o, a) {
|
|
|
1561
1561
|
autocomplete: "off",
|
|
1562
1562
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
1563
1563
|
placeholder: "Search ..."
|
|
1564
|
-
}, null, 40,
|
|
1564
|
+
}, null, 40, rs), [
|
|
1565
1565
|
[V, o.searchFilter]
|
|
1566
1566
|
])
|
|
1567
1567
|
])
|
|
1568
1568
|
]),
|
|
1569
|
-
s("div",
|
|
1569
|
+
s("div", ss, [
|
|
1570
1570
|
(d(!0), u(v, null, k(a.filteredOptions, (l, i) => (d(), u("div", {
|
|
1571
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",
|
|
@@ -1576,17 +1576,17 @@ function ts(e, t, r, n, o, a) {
|
|
|
1576
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, ns))), 128))
|
|
1580
1580
|
])
|
|
1581
1581
|
], 512), [
|
|
1582
|
-
[
|
|
1582
|
+
[F, o.optionsShown]
|
|
1583
1583
|
])
|
|
1584
1584
|
])
|
|
1585
1585
|
])) : g("", !0)
|
|
1586
1586
|
], 2))
|
|
1587
1587
|
], 64);
|
|
1588
1588
|
}
|
|
1589
|
-
const
|
|
1589
|
+
const xd = /* @__PURE__ */ S(Gr, [["render", as]]), os = {
|
|
1590
1590
|
props: {
|
|
1591
1591
|
button_type: {
|
|
1592
1592
|
type: String,
|
|
@@ -1638,7 +1638,7 @@ const _d = /* @__PURE__ */ O(Nr, [["render", ts]]), rs = {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
},
|
|
1640
1640
|
methods: {}
|
|
1641
|
-
},
|
|
1641
|
+
}, is = /* @__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,35 +1655,35 @@ const _d = /* @__PURE__ */ O(Nr, [["render", ts]]), rs = {
|
|
|
1655
1655
|
fill: "#1C64F2"
|
|
1656
1656
|
})
|
|
1657
1657
|
], -1);
|
|
1658
|
-
function
|
|
1659
|
-
return r.is_loading ? (d(),
|
|
1658
|
+
function ls(e, t, r, n, o, a) {
|
|
1659
|
+
return r.is_loading ? (d(), K(oe("button"), {
|
|
1660
1660
|
key: 1,
|
|
1661
1661
|
disabled: "",
|
|
1662
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
|
-
default:
|
|
1665
|
-
|
|
1664
|
+
default: J(() => [
|
|
1665
|
+
is,
|
|
1666
1666
|
w(" Loading... ")
|
|
1667
1667
|
]),
|
|
1668
1668
|
_: 1
|
|
1669
|
-
}, 8, ["class"])) : (d(),
|
|
1669
|
+
}, 8, ["class"])) : (d(), K(oe(r.tag), W({
|
|
1670
1670
|
key: 0,
|
|
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
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
|
-
default:
|
|
1676
|
+
default: J(() => [
|
|
1677
1677
|
r.icon ? (d(), u("i", {
|
|
1678
1678
|
key: 0,
|
|
1679
1679
|
class: p([r.icon, "text-base"])
|
|
1680
1680
|
}, null, 2)) : g("", !0),
|
|
1681
|
-
|
|
1681
|
+
I(e.$slots, "default")
|
|
1682
1682
|
]),
|
|
1683
1683
|
_: 3
|
|
1684
1684
|
}, 16, ["type", "href", "class"]));
|
|
1685
1685
|
}
|
|
1686
|
-
const
|
|
1686
|
+
const wd = /* @__PURE__ */ S(os, [["render", ls]]), ds = { class: "font-bold ptext-lg dark:text-white" }, us = ["name", "id"], cs = ["id"], fs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), hs = ["for"], gs = /* @__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), ms = ["name", "id"], ps = ["required", "name", "id", "type"], _s = { class: "gl-span-form-error" }, bs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, kd = {
|
|
1687
1687
|
__name: "GlTextareaTranslate",
|
|
1688
1688
|
props: {
|
|
1689
1689
|
is_required: {
|
|
@@ -1741,8 +1741,8 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { 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, o = r, a =
|
|
1745
|
-
return
|
|
1744
|
+
const n = e, o = r, a = C(null), l = C(null);
|
|
1745
|
+
return R(() => {
|
|
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,
|
|
@@ -1757,8 +1757,8 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1757
1757
|
key: 0,
|
|
1758
1758
|
class: p(e.field_name)
|
|
1759
1759
|
}, [
|
|
1760
|
-
s("h3",
|
|
1761
|
-
|
|
1760
|
+
s("h3", ds, h(e.label_name), 1),
|
|
1761
|
+
D(s("input", {
|
|
1762
1762
|
type: "hidden",
|
|
1763
1763
|
"data-i18n": "true",
|
|
1764
1764
|
name: e.field_name + "_i18n",
|
|
@@ -1766,14 +1766,14 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { 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, us), [
|
|
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, cs),
|
|
1776
|
+
fs
|
|
1777
1777
|
], 2)) : g("", !0),
|
|
1778
1778
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1779
1779
|
key: 1,
|
|
@@ -1786,8 +1786,8 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
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, hs),
|
|
1790
|
+
gs,
|
|
1791
1791
|
s("input", {
|
|
1792
1792
|
class: "mb-4",
|
|
1793
1793
|
type: "hidden",
|
|
@@ -1797,7 +1797,7 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { 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, ms),
|
|
1801
1801
|
s("textarea", {
|
|
1802
1802
|
required: e.is_required,
|
|
1803
1803
|
name: e.field_name,
|
|
@@ -1813,13 +1813,13 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1813
1813
|
ref: a,
|
|
1814
1814
|
rows: "4"
|
|
1815
1815
|
}, `
|
|
1816
|
-
`, 42,
|
|
1817
|
-
s("span",
|
|
1818
|
-
s("small",
|
|
1816
|
+
`, 42, ps),
|
|
1817
|
+
s("span", _s, h(e.error_message), 1),
|
|
1818
|
+
s("small", bs, h(e.description), 1)
|
|
1819
1819
|
], 2))
|
|
1820
1820
|
], 64));
|
|
1821
1821
|
}
|
|
1822
|
-
},
|
|
1822
|
+
}, ys = { class: "font-bold ptext-lg dark:text-white" }, vs = ["name", "id"], xs = ["id"], ws = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ks = ["for"], $s = /* @__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), Cs = ["name", "id"], Ss = ["name", "id", "type"], Os = { class: "gl-span-form-error" }, Ds = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, $d = {
|
|
1823
1823
|
__name: "GlTinymceTranslate",
|
|
1824
1824
|
props: {
|
|
1825
1825
|
is_required: {
|
|
@@ -1877,8 +1877,8 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { 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, o = r, a =
|
|
1881
|
-
return
|
|
1880
|
+
const n = e, o = r, a = C(null), l = C(null);
|
|
1881
|
+
return R(() => {
|
|
1882
1882
|
tinymce.init({
|
|
1883
1883
|
selector: "#" + n.field_name,
|
|
1884
1884
|
width: "100%",
|
|
@@ -1897,8 +1897,8 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1897
1897
|
key: 0,
|
|
1898
1898
|
class: p(e.field_name)
|
|
1899
1899
|
}, [
|
|
1900
|
-
s("h3",
|
|
1901
|
-
|
|
1900
|
+
s("h3", ys, h(e.label_name), 1),
|
|
1901
|
+
D(s("input", {
|
|
1902
1902
|
type: "hidden",
|
|
1903
1903
|
"data-i18n": "true",
|
|
1904
1904
|
name: e.field_name + "_i18n",
|
|
@@ -1906,14 +1906,14 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { 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, vs), [
|
|
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, xs),
|
|
1916
|
+
ws
|
|
1917
1917
|
], 2)) : g("", !0),
|
|
1918
1918
|
e.show ? g("", !0) : (d(), u("div", {
|
|
1919
1919
|
key: 1,
|
|
@@ -1926,8 +1926,8 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
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, ks),
|
|
1930
|
+
$s,
|
|
1931
1931
|
s("input", {
|
|
1932
1932
|
class: "mb-4",
|
|
1933
1933
|
type: "hidden",
|
|
@@ -1937,7 +1937,7 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { 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, Cs),
|
|
1941
1941
|
s("textarea", {
|
|
1942
1942
|
name: e.field_name,
|
|
1943
1943
|
id: e.field_name,
|
|
@@ -1952,13 +1952,13 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
1952
1952
|
ref: a,
|
|
1953
1953
|
rows: "4"
|
|
1954
1954
|
}, `
|
|
1955
|
-
`, 42,
|
|
1956
|
-
s("span",
|
|
1957
|
-
s("small",
|
|
1955
|
+
`, 42, Ss),
|
|
1956
|
+
s("span", Os, h(e.error_message), 1),
|
|
1957
|
+
s("small", Ds, h(e.description), 1)
|
|
1958
1958
|
], 2))
|
|
1959
1959
|
], 64));
|
|
1960
1960
|
}
|
|
1961
|
-
},
|
|
1961
|
+
}, Ps = { class: "font-bold ptext-lg dark:text-white" }, Es = ["name", "id"], js = ["id"], As = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Is = ["for"], Ts = /* @__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), Ms = ["name", "id"], Ns = ["required", "name", "id", "type"], Vs = { class: "gl-span-form-error" }, Ls = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Cd = {
|
|
1962
1962
|
__name: "GlTextTranslate",
|
|
1963
1963
|
props: {
|
|
1964
1964
|
is_required: {
|
|
@@ -2016,8 +2016,8 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { 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, o = r, a =
|
|
2020
|
-
return
|
|
2019
|
+
const n = e, o = r, a = C(null), l = C(null);
|
|
2020
|
+
return R(() => {
|
|
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,
|
|
@@ -2032,22 +2032,22 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2032
2032
|
key: 0,
|
|
2033
2033
|
class: p(e.field_name)
|
|
2034
2034
|
}, [
|
|
2035
|
-
s("h3",
|
|
2036
|
-
|
|
2035
|
+
s("h3", Ps, h(e.label_name), 1),
|
|
2036
|
+
D(s("input", {
|
|
2037
2037
|
type: "hidden",
|
|
2038
2038
|
"data-i18n": "true",
|
|
2039
2039
|
name: e.field_name + "_i18n",
|
|
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, Es), [
|
|
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, js),
|
|
2050
|
+
As
|
|
2051
2051
|
], 2)) : g("", !0),
|
|
2052
2052
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2053
2053
|
key: 1,
|
|
@@ -2060,8 +2060,8 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
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, Is),
|
|
2064
|
+
Ts,
|
|
2065
2065
|
s("input", {
|
|
2066
2066
|
class: "mb-4",
|
|
2067
2067
|
type: "hidden",
|
|
@@ -2071,7 +2071,7 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { 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, Ms),
|
|
2075
2075
|
s("input", {
|
|
2076
2076
|
required: e.is_required,
|
|
2077
2077
|
name: e.field_name,
|
|
@@ -2085,13 +2085,13 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2085
2085
|
onKeydown: c[3] || (c[3] = (f) => i.$emit("keydown", f)),
|
|
2086
2086
|
ref_key: "input",
|
|
2087
2087
|
ref: a
|
|
2088
|
-
}, null, 42,
|
|
2089
|
-
s("span",
|
|
2090
|
-
s("small",
|
|
2088
|
+
}, null, 42, Ns),
|
|
2089
|
+
s("span", Vs, h(e.error_message), 1),
|
|
2090
|
+
s("small", Ls, h(e.description), 1)
|
|
2091
2091
|
], 2))
|
|
2092
2092
|
], 64));
|
|
2093
2093
|
}
|
|
2094
|
-
},
|
|
2094
|
+
}, Bs = { class: "font-bold ptext-lg dark:text-white" }, Gs = { class: "mb-4 text-base text-gray-900 dark:text-white" }, Fs = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Rs = ["for"], Us = ["required", "name", "id", "type"], qs = { class: "gl-span-form-error" }, zs = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Sd = {
|
|
2095
2095
|
__name: "GlTextInput",
|
|
2096
2096
|
props: {
|
|
2097
2097
|
is_required: {
|
|
@@ -2133,11 +2133,11 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2133
2133
|
},
|
|
2134
2134
|
emits: ["update:modelValue", "keydown"],
|
|
2135
2135
|
setup(e, { expose: t, emit: r }) {
|
|
2136
|
-
const n = e, o = r, a =
|
|
2137
|
-
|
|
2136
|
+
const n = e, o = r, a = C(null);
|
|
2137
|
+
R(() => {
|
|
2138
2138
|
a.value !== null && a.value.hasAttribute("autofocus") && a.value.focus();
|
|
2139
2139
|
});
|
|
2140
|
-
const l =
|
|
2140
|
+
const l = G({
|
|
2141
2141
|
get() {
|
|
2142
2142
|
return n.modelValue;
|
|
2143
2143
|
},
|
|
@@ -2150,9 +2150,9 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2150
2150
|
key: 0,
|
|
2151
2151
|
class: p(e.field_name)
|
|
2152
2152
|
}, [
|
|
2153
|
-
s("h3",
|
|
2154
|
-
s("p",
|
|
2155
|
-
|
|
2153
|
+
s("h3", Bs, h(e.label_name), 1),
|
|
2154
|
+
s("p", Gs, h(e.type == "password" ? e.modelValue.replace(/./g, "*") : e.modelValue), 1),
|
|
2155
|
+
Fs
|
|
2156
2156
|
], 2)) : g("", !0),
|
|
2157
2157
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2158
2158
|
key: 1,
|
|
@@ -2165,8 +2165,8 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2165
2165
|
required: e.is_required
|
|
2166
2166
|
}),
|
|
2167
2167
|
for: e.field_name
|
|
2168
|
-
}, h(e.label_name), 11,
|
|
2169
|
-
|
|
2168
|
+
}, h(e.label_name), 11, Rs),
|
|
2169
|
+
D(s("input", {
|
|
2170
2170
|
required: e.is_required,
|
|
2171
2171
|
name: e.field_name,
|
|
2172
2172
|
id: e.field_name,
|
|
@@ -2179,28 +2179,28 @@ const bd = /* @__PURE__ */ O(rs, [["render", ns]]), as = { class: "font-bold pte
|
|
|
2179
2179
|
onKeydown: c[1] || (c[1] = (f) => i.$emit("keydown", f)),
|
|
2180
2180
|
ref_key: "input",
|
|
2181
2181
|
ref: a
|
|
2182
|
-
}, null, 42,
|
|
2183
|
-
[
|
|
2182
|
+
}, null, 42, Us), [
|
|
2183
|
+
[tt, l.value]
|
|
2184
2184
|
]),
|
|
2185
|
-
s("span",
|
|
2186
|
-
s("small",
|
|
2185
|
+
s("span", qs, h(e.error_message), 1),
|
|
2186
|
+
s("small", zs, h(e.description), 1)
|
|
2187
2187
|
], 2))
|
|
2188
2188
|
], 64));
|
|
2189
2189
|
}
|
|
2190
|
-
},
|
|
2190
|
+
}, Hs = {
|
|
2191
2191
|
setup(e, { slots: t }) {
|
|
2192
|
-
const r =
|
|
2193
|
-
return
|
|
2192
|
+
const r = C(t.default().map((o) => o.props)), n = C(r.value[0].title);
|
|
2193
|
+
return rt("selectedTitle", n), {
|
|
2194
2194
|
tabs: r,
|
|
2195
2195
|
selectedTitle: n
|
|
2196
2196
|
};
|
|
2197
2197
|
}
|
|
2198
|
-
},
|
|
2199
|
-
function
|
|
2198
|
+
}, Zs = { class: "flex flex-wrap" }, Ks = { class: "w-full" }, Ws = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, Xs = ["onClick"], Ys = { 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" }, Js = { class: "flex-auto px-4 py-5" }, Qs = { class: "tab-content tab-space" };
|
|
2199
|
+
function en(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", Zs, [
|
|
2202
|
+
s("div", Ks, [
|
|
2203
|
+
s("ul", Ws, [
|
|
2204
2204
|
(d(!0), u(v, null, k(n.tabs, (l) => (d(), u("li", {
|
|
2205
2205
|
key: l.title,
|
|
2206
2206
|
onClick: (i) => n.selectedTitle = l.title,
|
|
@@ -2214,35 +2214,35 @@ function Xs(e, t, r, n, o, a) {
|
|
|
2214
2214
|
}, null, 2),
|
|
2215
2215
|
w(" " + h(l.title), 1)
|
|
2216
2216
|
], 2)
|
|
2217
|
-
], 8,
|
|
2217
|
+
], 8, Xs))), 128))
|
|
2218
2218
|
])
|
|
2219
2219
|
])
|
|
2220
2220
|
]),
|
|
2221
|
-
s("div",
|
|
2222
|
-
s("div",
|
|
2223
|
-
s("div",
|
|
2224
|
-
|
|
2221
|
+
s("div", Ys, [
|
|
2222
|
+
s("div", Js, [
|
|
2223
|
+
s("div", Qs, [
|
|
2224
|
+
I(e.$slots, "default")
|
|
2225
2225
|
])
|
|
2226
2226
|
])
|
|
2227
2227
|
])
|
|
2228
2228
|
], 64);
|
|
2229
2229
|
}
|
|
2230
|
-
const
|
|
2230
|
+
const Od = /* @__PURE__ */ S(Hs, [["render", en]]), tn = {
|
|
2231
2231
|
props: ["title"],
|
|
2232
2232
|
setup() {
|
|
2233
2233
|
return {
|
|
2234
|
-
selectedTitle:
|
|
2234
|
+
selectedTitle: Ce("selectedTitle")
|
|
2235
2235
|
};
|
|
2236
2236
|
}
|
|
2237
|
-
},
|
|
2238
|
-
function
|
|
2239
|
-
return
|
|
2240
|
-
|
|
2237
|
+
}, rn = { class: "block" };
|
|
2238
|
+
function sn(e, t, r, n, o, a) {
|
|
2239
|
+
return D((d(), u("div", rn, [
|
|
2240
|
+
I(e.$slots, "default")
|
|
2241
2241
|
], 512)), [
|
|
2242
|
-
[
|
|
2242
|
+
[F, r.title == n.selectedTitle]
|
|
2243
2243
|
]);
|
|
2244
2244
|
}
|
|
2245
|
-
const
|
|
2245
|
+
const Dd = /* @__PURE__ */ S(tn, [["render", sn]]), nn = {
|
|
2246
2246
|
props: {
|
|
2247
2247
|
elements_to_show_prop: {
|
|
2248
2248
|
type: Number,
|
|
@@ -2341,10 +2341,10 @@ const $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
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
|
-
},
|
|
2344
|
+
}, P = (e) => (st("data-v-a94f16a9"), e = e(), nt(), e), an = ["id"], on = {
|
|
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
|
+
}, ln = { class: "w-full" }, dn = {
|
|
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 $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2352
2352
|
viewBox: "0 0 24 24",
|
|
2353
2353
|
stroke: "currentColor",
|
|
2354
2354
|
"stroke-width": "2"
|
|
2355
|
-
},
|
|
2355
|
+
}, un = /* @__PURE__ */ P(() => /* @__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)), cn = [
|
|
2360
|
+
un
|
|
2361
|
+
], fn = {
|
|
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 $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2366
2366
|
viewBox: "0 0 24 24",
|
|
2367
2367
|
stroke: "currentColor",
|
|
2368
2368
|
"stroke-width": "2"
|
|
2369
|
-
},
|
|
2369
|
+
}, hn = /* @__PURE__ */ P(() => /* @__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)), gn = [
|
|
2374
|
+
hn
|
|
2375
|
+
], mn = ["id"], pn = ["id"], _n = { class: "w-full" }, bn = {
|
|
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 $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2380
2380
|
viewBox: "0 0 24 24",
|
|
2381
2381
|
stroke: "currentColor",
|
|
2382
2382
|
"stroke-width": "2"
|
|
2383
|
-
},
|
|
2383
|
+
}, yn = /* @__PURE__ */ P(() => /* @__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)), vn = [
|
|
2388
|
+
yn
|
|
2389
|
+
], xn = {
|
|
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 $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2394
2394
|
viewBox: "0 0 24 24",
|
|
2395
2395
|
stroke: "currentColor",
|
|
2396
2396
|
"stroke-width": "2"
|
|
2397
|
-
},
|
|
2397
|
+
}, wn = /* @__PURE__ */ P(() => /* @__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)), kn = [
|
|
2402
|
+
wn
|
|
2403
|
+
], $n = { class: "w-full" }, Cn = {
|
|
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 $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2408
2408
|
viewBox: "0 0 24 24",
|
|
2409
2409
|
stroke: "currentColor",
|
|
2410
2410
|
"stroke-width": "2"
|
|
2411
|
-
},
|
|
2411
|
+
}, Sn = /* @__PURE__ */ P(() => /* @__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)), On = [
|
|
2416
|
+
Sn
|
|
2417
|
+
], Dn = {
|
|
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 $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2422
2422
|
viewBox: "0 0 24 24",
|
|
2423
2423
|
stroke: "currentColor",
|
|
2424
2424
|
"stroke-width": "2"
|
|
2425
|
-
},
|
|
2425
|
+
}, Pn = /* @__PURE__ */ P(() => /* @__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
|
-
Dn
|
|
2433
|
-
], En = {
|
|
2434
|
-
key: 1,
|
|
2435
|
-
class: "flex justify-between pl-5 pr-5"
|
|
2436
|
-
}, jn = ["onClick"], An = /* @__PURE__ */ E(() => /* @__PURE__ */ s("span", null, null, -1)), In = [
|
|
2429
|
+
}, null, -1)), En = [
|
|
2430
|
+
Pn
|
|
2431
|
+
], jn = ["onClick"], An = /* @__PURE__ */ P(() => /* @__PURE__ */ s("span", null, null, -1)), In = [
|
|
2437
2432
|
An
|
|
2438
2433
|
], Tn = {
|
|
2434
|
+
key: 1,
|
|
2435
|
+
class: "flex justify-between pl-5 pr-5"
|
|
2436
|
+
}, Mn = ["onClick"], Nn = /* @__PURE__ */ P(() => /* @__PURE__ */ s("span", null, null, -1)), Vn = [
|
|
2437
|
+
Nn
|
|
2438
|
+
], Ln = {
|
|
2439
2439
|
key: 0,
|
|
2440
2440
|
class: "flex"
|
|
2441
|
-
},
|
|
2441
|
+
}, Bn = { class: "flex items-center" }, Gn = { class: "w-full" }, Fn = {
|
|
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 $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2446
2446
|
viewBox: "0 0 24 24",
|
|
2447
2447
|
stroke: "currentColor",
|
|
2448
2448
|
"stroke-width": "2"
|
|
2449
|
-
},
|
|
2449
|
+
}, Rn = /* @__PURE__ */ P(() => /* @__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)), Un = [
|
|
2454
|
+
Rn
|
|
2455
|
+
], qn = {
|
|
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 $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2460
2460
|
viewBox: "0 0 24 24",
|
|
2461
2461
|
stroke: "currentColor",
|
|
2462
2462
|
"stroke-width": "2"
|
|
2463
|
-
},
|
|
2463
|
+
}, zn = /* @__PURE__ */ P(() => /* @__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)), Hn = [
|
|
2468
|
+
zn
|
|
2469
|
+
], Zn = { class: "flex items-center" }, Kn = { class: "w-full" }, Wn = {
|
|
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 $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2474
2474
|
viewBox: "0 0 24 24",
|
|
2475
2475
|
stroke: "currentColor",
|
|
2476
2476
|
"stroke-width": "2"
|
|
2477
|
-
},
|
|
2477
|
+
}, Xn = /* @__PURE__ */ P(() => /* @__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)), Yn = [
|
|
2482
|
+
Xn
|
|
2483
|
+
], Jn = {
|
|
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 $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2488
2488
|
viewBox: "0 0 24 24",
|
|
2489
2489
|
stroke: "currentColor",
|
|
2490
2490
|
"stroke-width": "2"
|
|
2491
|
-
},
|
|
2491
|
+
}, Qn = /* @__PURE__ */ P(() => /* @__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)), ea = [
|
|
2496
|
+
Qn
|
|
2497
|
+
], ta = {
|
|
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
|
+
}, ra = { class: "w-full" }, sa = {
|
|
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 $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2505
2505
|
viewBox: "0 0 24 24",
|
|
2506
2506
|
stroke: "currentColor",
|
|
2507
2507
|
"stroke-width": "2"
|
|
2508
|
-
},
|
|
2508
|
+
}, na = /* @__PURE__ */ P(() => /* @__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)), aa = [
|
|
2513
|
+
na
|
|
2514
|
+
], oa = {
|
|
2515
2515
|
key: 1,
|
|
2516
2516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2517
2517
|
class: "w-6 h-6",
|
|
@@ -2519,27 +2519,27 @@ const $d = /* @__PURE__ */ O(Ys, [["render", Qs]]), en = {
|
|
|
2519
2519
|
viewBox: "0 0 24 24",
|
|
2520
2520
|
stroke: "currentColor",
|
|
2521
2521
|
"stroke-width": "2"
|
|
2522
|
-
},
|
|
2522
|
+
}, ia = /* @__PURE__ */ P(() => /* @__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)), la = [
|
|
2527
|
+
ia
|
|
2528
2528
|
];
|
|
2529
|
-
function
|
|
2529
|
+
function da(e, t, r, n, o, a) {
|
|
2530
2530
|
return d(), u("div", null, [
|
|
2531
2531
|
s("div", {
|
|
2532
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", on, [
|
|
2536
|
+
s("div", ln, [
|
|
2537
2537
|
s("button", {
|
|
2538
2538
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2539
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", dn, cn)) : g("", !0),
|
|
2542
|
+
r.direction_property == "rtl" ? (d(), u("svg", fn, gn)) : g("", !0)
|
|
2543
2543
|
])
|
|
2544
2544
|
])
|
|
2545
2545
|
])) : g("", !0),
|
|
@@ -2555,32 +2555,32 @@ function aa(e, t, r, n, o, a) {
|
|
|
2555
2555
|
key: 0,
|
|
2556
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", _n, [
|
|
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] = N((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", bn, vn)) : g("", !0),
|
|
2564
|
+
r.direction_property == "rtl" ? (d(), u("svg", xn, kn)) : g("", !0)
|
|
2565
2565
|
])
|
|
2566
2566
|
])
|
|
2567
2567
|
], 2)) : g("", !0),
|
|
2568
|
-
|
|
2568
|
+
I(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
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", $n, [
|
|
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] = N((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", Cn, On)) : g("", !0),
|
|
2579
|
+
r.direction_property == "rtl" ? (d(), u("svg", Dn, En)) : g("", !0)
|
|
2580
2580
|
])
|
|
2581
2581
|
])
|
|
2582
2582
|
], 2)) : g("", !0)
|
|
2583
|
-
], 8,
|
|
2583
|
+
], 8, pn),
|
|
2584
2584
|
r.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (d(), u("div", {
|
|
2585
2585
|
key: 0,
|
|
2586
2586
|
class: p(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
@@ -2590,9 +2590,9 @@ function aa(e, t, r, n, o, a) {
|
|
|
2590
2590
|
class: p(["gl-dot", { active: e.currentDot == l }]),
|
|
2591
2591
|
key: l,
|
|
2592
2592
|
onClick: (i) => a.setDot(l)
|
|
2593
|
-
},
|
|
2593
|
+
}, In, 10, jn))), 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", Tn, [
|
|
2596
2596
|
s("div", {
|
|
2597
2597
|
class: p(["flex justify-center mb-1 space-x-1", a.sliderIndicatorsAction()])
|
|
2598
2598
|
}, [
|
|
@@ -2601,53 +2601,53 @@ function aa(e, t, r, n, o, a) {
|
|
|
2601
2601
|
class: p(["gl-dot", { active: e.currentDot == l }]),
|
|
2602
2602
|
key: l,
|
|
2603
2603
|
onClick: (i) => a.setDot(l)
|
|
2604
|
-
},
|
|
2604
|
+
}, Vn, 10, Mn))), 128))
|
|
2605
2605
|
], 2),
|
|
2606
|
-
e.dotsNum > 0 ? (d(), u("div",
|
|
2607
|
-
s("div",
|
|
2608
|
-
s("div",
|
|
2606
|
+
e.dotsNum > 0 ? (d(), u("div", Ln, [
|
|
2607
|
+
s("div", Bn, [
|
|
2608
|
+
s("div", Gn, [
|
|
2609
2609
|
s("button", {
|
|
2610
2610
|
class: p(["p-3 rounded-full arrow_button_styles", r.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2611
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", Fn, Un)) : g("", !0),
|
|
2614
|
+
r.direction_property == "rtl" ? (d(), u("svg", qn, Hn)) : g("", !0)
|
|
2615
2615
|
], 2)
|
|
2616
2616
|
])
|
|
2617
2617
|
]),
|
|
2618
|
-
s("div",
|
|
2619
|
-
s("div",
|
|
2618
|
+
s("div", Zn, [
|
|
2619
|
+
s("div", Kn, [
|
|
2620
2620
|
s("button", {
|
|
2621
2621
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2622
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", Wn, Yn)) : g("", !0),
|
|
2625
|
+
r.direction_property == "rtl" ? (d(), u("svg", Jn, ea)) : 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, mn),
|
|
2632
|
+
e.dotsNum > 0 && !r.hide_arrow && r.slider_arrows_indicators_position == "arrows_outside_slider" ? (d(), u("div", ta, [
|
|
2633
|
+
s("div", ra, [
|
|
2634
2634
|
s("button", {
|
|
2635
2635
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2636
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", sa, aa)) : g("", !0),
|
|
2639
|
+
r.direction_property == "rtl" ? (d(), u("svg", oa, la)) : g("", !0)
|
|
2640
2640
|
])
|
|
2641
2641
|
])
|
|
2642
2642
|
])) : g("", !0)
|
|
2643
|
-
], 10,
|
|
2643
|
+
], 10, an)
|
|
2644
2644
|
]);
|
|
2645
2645
|
}
|
|
2646
|
-
const
|
|
2646
|
+
const Pd = /* @__PURE__ */ S(nn, [["render", da], ["__scopeId", "data-v-a94f16a9"]]), ua = {
|
|
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
|
+
}, ca = { 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" }, fa = { class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, ha = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, ga = /* @__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 Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2661
2661
|
d: "M6 18L18 6M6 6l12 12"
|
|
2662
2662
|
})
|
|
2663
2663
|
])
|
|
2664
|
-
], -1),
|
|
2665
|
-
|
|
2666
|
-
],
|
|
2664
|
+
], -1), ma = [
|
|
2665
|
+
ga
|
|
2666
|
+
], pa = { class: "relative p-4 overflow-y-auto" }, _a = { 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" }, Ed = {
|
|
2667
2667
|
__name: "GlModal",
|
|
2668
2668
|
props: {
|
|
2669
2669
|
is_open: {
|
|
@@ -2688,31 +2688,31 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2688
2688
|
}, l = () => {
|
|
2689
2689
|
n("closeModal"), a();
|
|
2690
2690
|
};
|
|
2691
|
-
return
|
|
2691
|
+
return X(
|
|
2692
2692
|
() => r.is_open,
|
|
2693
2693
|
(i, c) => {
|
|
2694
2694
|
i ? o() : a();
|
|
2695
2695
|
},
|
|
2696
2696
|
{ immediate: !0, deep: !0 }
|
|
2697
|
-
), (i, c) =>
|
|
2697
|
+
), (i, c) => D((d(), u("div", ua, [
|
|
2698
2698
|
s("div", {
|
|
2699
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", ca, [
|
|
2702
|
+
s("div", fa, [
|
|
2703
|
+
s("h5", ha, 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
|
+
}, ma)
|
|
2710
2710
|
]),
|
|
2711
|
-
s("div",
|
|
2712
|
-
|
|
2711
|
+
s("div", pa, [
|
|
2712
|
+
I(i.$slots, "body")
|
|
2713
2713
|
]),
|
|
2714
|
-
s("div",
|
|
2715
|
-
|
|
2714
|
+
s("div", _a, [
|
|
2715
|
+
I(i.$slots, "buttons"),
|
|
2716
2716
|
s("button", {
|
|
2717
2717
|
onClick: l,
|
|
2718
2718
|
type: "button",
|
|
@@ -2722,10 +2722,10 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2722
2722
|
])
|
|
2723
2723
|
], 2)
|
|
2724
2724
|
], 512)), [
|
|
2725
|
-
[
|
|
2725
|
+
[F, e.is_open]
|
|
2726
2726
|
]);
|
|
2727
2727
|
}
|
|
2728
|
-
},
|
|
2728
|
+
}, ba = { class: "mb-4" }, ya = { class: "flex justify-between px-6 py-3 -mb-px border border-gray-300 no-underlin" }, va = { class: "relative inline-flex items-center cursor-pointer" }, xa = ["name", "id", "checked"], 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 = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), $a = { 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" }, Ca = { class: "relative inline-flex items-center cursor-pointer" }, Sa = ["name", "id"], Oa = /* @__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), Da = { class: "gl-span-form-error" }, Pa = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, jd = {
|
|
2729
2729
|
__name: "GlToggleBox",
|
|
2730
2730
|
props: {
|
|
2731
2731
|
is_required: {
|
|
@@ -2767,7 +2767,7 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2767
2767
|
},
|
|
2768
2768
|
emits: ["update:modelValue"],
|
|
2769
2769
|
setup(e, { emit: t }) {
|
|
2770
|
-
const r = e, n = t, o =
|
|
2770
|
+
const r = e, n = t, o = C(null), a = G({
|
|
2771
2771
|
get() {
|
|
2772
2772
|
return r.modelValue;
|
|
2773
2773
|
},
|
|
@@ -2780,10 +2780,10 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2780
2780
|
key: 0,
|
|
2781
2781
|
class: p(e.field_name)
|
|
2782
2782
|
}, [
|
|
2783
|
-
s("div",
|
|
2784
|
-
s("li",
|
|
2783
|
+
s("div", ba, [
|
|
2784
|
+
s("li", ya, [
|
|
2785
2785
|
w(h(e.label_name) + " ", 1),
|
|
2786
|
-
s("label",
|
|
2786
|
+
s("label", va, [
|
|
2787
2787
|
s("input", {
|
|
2788
2788
|
type: "checkbox",
|
|
2789
2789
|
class: "sr-only peer",
|
|
@@ -2795,21 +2795,21 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2795
2795
|
ref_key: "input",
|
|
2796
2796
|
ref: o,
|
|
2797
2797
|
disabled: ""
|
|
2798
|
-
}, null, 8,
|
|
2799
|
-
|
|
2798
|
+
}, null, 8, xa),
|
|
2799
|
+
wa
|
|
2800
2800
|
])
|
|
2801
2801
|
])
|
|
2802
2802
|
]),
|
|
2803
|
-
|
|
2803
|
+
ka
|
|
2804
2804
|
], 2)) : g("", !0),
|
|
2805
2805
|
e.show ? g("", !0) : (d(), u("div", {
|
|
2806
2806
|
key: 1,
|
|
2807
2807
|
class: p(["mb-4", e.field_name])
|
|
2808
2808
|
}, [
|
|
2809
|
-
s("li",
|
|
2809
|
+
s("li", $a, [
|
|
2810
2810
|
w(h(e.label_name) + " ", 1),
|
|
2811
|
-
s("label",
|
|
2812
|
-
|
|
2811
|
+
s("label", Ca, [
|
|
2812
|
+
D(s("input", {
|
|
2813
2813
|
type: "checkbox",
|
|
2814
2814
|
class: "sr-only peer",
|
|
2815
2815
|
name: e.field_name,
|
|
@@ -2819,24 +2819,24 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2819
2819
|
ref_key: "input",
|
|
2820
2820
|
ref: o,
|
|
2821
2821
|
"onUpdate:modelValue": i[0] || (i[0] = (c) => a.value = c)
|
|
2822
|
-
}, null, 8,
|
|
2823
|
-
[
|
|
2822
|
+
}, null, 8, Sa), [
|
|
2823
|
+
[at, a.value]
|
|
2824
2824
|
]),
|
|
2825
|
-
|
|
2825
|
+
Oa
|
|
2826
2826
|
])
|
|
2827
2827
|
]),
|
|
2828
|
-
s("span",
|
|
2829
|
-
s("small",
|
|
2828
|
+
s("span", Da, h(e.error_message), 1),
|
|
2829
|
+
s("small", Pa, h(e.description), 1)
|
|
2830
2830
|
], 2))
|
|
2831
2831
|
], 64));
|
|
2832
2832
|
}
|
|
2833
|
-
},
|
|
2833
|
+
}, Ea = { class: "font-bold ptext-lg dark:text-white" }, ja = { class: "mt-3 mb-4" }, Aa = { 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" }, Ia = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), Ta = ["name", "id", "value"], Ma = {
|
|
2834
2834
|
key: 0,
|
|
2835
2835
|
class: "dropdown"
|
|
2836
|
-
},
|
|
2836
|
+
}, Na = { 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" }, Va = { class: "relative showOptions" }, La = ["value", "placeholder"], Ba = { 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]" }, Ga = { class: "p-1" }, Fa = /* @__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), Ra = { class: "relative" }, Ua = /* @__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 Cd = /* @__PURE__ */ O(en, [["render", aa], ["__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), qa = ["id"], za = { class: "overflow-y-auto max-h-64" }, Ha = ["onClick", "onMousedown", "id"], Za = { class: "flex items-center py-2 pl-10 pr-4" }, Ka = {
|
|
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
|
+
}, Wa = /* @__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), Xa = [
|
|
2869
|
+
Wa
|
|
2870
|
+
], Ya = { class: "block mt-1 text-sm font-normal leading-5 text-red-500" }, Ja = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Ad = {
|
|
2871
2871
|
__name: "GlDropdown",
|
|
2872
2872
|
props: {
|
|
2873
2873
|
modelValue: {
|
|
@@ -2927,23 +2927,23 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__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, o =
|
|
2931
|
-
|
|
2930
|
+
const r = e, n = t, o = C(null), a = C({}), l = C(0), i = C(!1), c = C(""), f = C("");
|
|
2931
|
+
R(() => {
|
|
2932
2932
|
f.value = L(), r.show || (document.body.addEventListener("click", (b) => {
|
|
2933
|
-
|
|
2933
|
+
ze(b);
|
|
2934
2934
|
}), document.addEventListener("keypress", (b) => {
|
|
2935
2935
|
b.key === "Enter" && b.target.form && b.preventDefault();
|
|
2936
2936
|
}));
|
|
2937
2937
|
});
|
|
2938
|
-
const m =
|
|
2939
|
-
const b = [],
|
|
2940
|
-
for (const
|
|
2941
|
-
const
|
|
2942
|
-
(c.value.length < 1 ||
|
|
2938
|
+
const m = G(() => Ke()), y = G(() => We()), x = G(() => {
|
|
2939
|
+
const b = [], O = new RegExp(c.value, "ig");
|
|
2940
|
+
for (const E of m.value) {
|
|
2941
|
+
const B = String(E.name);
|
|
2942
|
+
(c.value.length < 1 || B.match(O)) && b.length < r.maxItem && b.push(E);
|
|
2943
2943
|
}
|
|
2944
2944
|
return b;
|
|
2945
2945
|
});
|
|
2946
|
-
function
|
|
2946
|
+
function $(b) {
|
|
2947
2947
|
if ([
|
|
2948
2948
|
"ArrowLeft",
|
|
2949
2949
|
"ArrowUp",
|
|
@@ -2953,41 +2953,41 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
2953
2953
|
].includes(b.key)) {
|
|
2954
2954
|
if (["ArrowUp", "ArrowDown"].includes(b.key) && b.preventDefault(), b.key === "ArrowDown" && r.posts === "")
|
|
2955
2955
|
return;
|
|
2956
|
-
|
|
2956
|
+
Ze(b.key);
|
|
2957
2957
|
}
|
|
2958
2958
|
}
|
|
2959
2959
|
function L() {
|
|
2960
2960
|
let b = (/* @__PURE__ */ new Date()).getTime();
|
|
2961
2961
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
2962
2962
|
/[xy]/g,
|
|
2963
|
-
function(
|
|
2964
|
-
const
|
|
2965
|
-
return b = Math.floor(b / 16), (
|
|
2963
|
+
function(E) {
|
|
2964
|
+
const B = (b + Math.random() * 16) % 16 | 0;
|
|
2965
|
+
return b = Math.floor(b / 16), (E === "x" ? B : B & 3 | 8).toString(16);
|
|
2966
2966
|
}
|
|
2967
2967
|
);
|
|
2968
2968
|
}
|
|
2969
|
-
function
|
|
2969
|
+
function te(b) {
|
|
2970
2970
|
return Object.keys(b).length > 0;
|
|
2971
2971
|
}
|
|
2972
|
-
function
|
|
2973
|
-
b.target.id != r.field_name + "search" + f.value && b.target.id != r.field_name && !b.target.classList.contains("showOptions") && (
|
|
2972
|
+
function ze(b) {
|
|
2973
|
+
b.target.id != r.field_name + "search" + f.value && b.target.id != r.field_name && !b.target.classList.contains("showOptions") && (_e(), l.value = 0);
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2976
|
-
const
|
|
2977
|
-
|
|
2975
|
+
function me(b) {
|
|
2976
|
+
const O = `${b}${f.value}`, E = document.getElementById(O);
|
|
2977
|
+
E && E.scrollIntoView();
|
|
2978
2978
|
}
|
|
2979
|
-
function
|
|
2980
|
-
const
|
|
2981
|
-
|
|
2979
|
+
function He(b) {
|
|
2980
|
+
const O = `${b}${f.value}`, E = document.getElementById(O);
|
|
2981
|
+
E && E.click();
|
|
2982
2982
|
}
|
|
2983
|
-
function
|
|
2984
|
-
b === "ArrowDown" && l.value < x.value.length && (l.value++,
|
|
2983
|
+
function Ze(b) {
|
|
2984
|
+
b === "ArrowDown" && l.value < x.value.length && (l.value++, me(l.value)), b === "ArrowUp" && l.value > 1 && (l.value--, me(l.value)), b === "Enter" && He(l.value);
|
|
2985
2985
|
}
|
|
2986
|
-
function
|
|
2987
|
-
return r.options.map((b,
|
|
2986
|
+
function Ke() {
|
|
2987
|
+
return r.options.map((b, O) => typeof b == "object" ? b : { id: b, name: b });
|
|
2988
2988
|
}
|
|
2989
|
-
function
|
|
2990
|
-
if (a.value)
|
|
2989
|
+
function We() {
|
|
2990
|
+
if (te(a.value))
|
|
2991
2991
|
return console.log("selected.value: ", a.value), typeof a.value == "object" ? m.value.find(
|
|
2992
2992
|
(b) => String(b.id) === String(a.value.id)
|
|
2993
2993
|
) || {} : m.value.find(
|
|
@@ -3000,129 +3000,135 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3000
3000
|
(b) => String(b.id) === String(r.modelValue)
|
|
3001
3001
|
) || {};
|
|
3002
3002
|
}
|
|
3003
|
-
function
|
|
3003
|
+
function pe(b) {
|
|
3004
3004
|
a.value = b, i.value = !1, n("selected", a.value), n("selectionChanged", a.value);
|
|
3005
3005
|
}
|
|
3006
|
-
function
|
|
3007
|
-
r.show || (c.value = "", i.value = !0,
|
|
3006
|
+
function re() {
|
|
3007
|
+
r.show || (c.value = "", i.value = !0, ot(() => {
|
|
3008
3008
|
var b = document.getElementById(
|
|
3009
3009
|
`${r.field_name}search${f.value}`
|
|
3010
3010
|
);
|
|
3011
3011
|
b && b.focus();
|
|
3012
3012
|
}));
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3015
|
-
r.show || (a.value = {}, c.value = "", n("update:modelValue", ""),
|
|
3014
|
+
function Xe() {
|
|
3015
|
+
r.show || (a.value = {}, c.value = "", n("update:modelValue", ""), re());
|
|
3016
3016
|
}
|
|
3017
|
-
function
|
|
3017
|
+
function _e() {
|
|
3018
3018
|
a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), i.value = !1;
|
|
3019
3019
|
}
|
|
3020
|
-
return
|
|
3020
|
+
return X(c, () => {
|
|
3021
3021
|
x.value.length === 0 && (a.value = {});
|
|
3022
|
-
}),
|
|
3023
|
-
|
|
3024
|
-
}), (b,
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
s("
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3022
|
+
}), X(a, (b) => {
|
|
3023
|
+
te(b) && n("update:modelValue", b.id);
|
|
3024
|
+
}), (b, O) => {
|
|
3025
|
+
var E, B, be;
|
|
3026
|
+
return d(), u(v, null, [
|
|
3027
|
+
e.show ? (d(), u("div", {
|
|
3028
|
+
key: 0,
|
|
3029
|
+
class: p(e.field_name)
|
|
3030
|
+
}, [
|
|
3031
|
+
s("h3", Ea, h(e.label_name), 1),
|
|
3032
|
+
s("p", ja, [
|
|
3033
|
+
s("span", Aa, h((E = y.value) == null ? void 0 : E.name), 1)
|
|
3034
|
+
]),
|
|
3035
|
+
Ia
|
|
3036
|
+
], 2)) : g("", !0),
|
|
3037
|
+
e.show ? g("", !0) : (d(), u("div", {
|
|
3038
|
+
key: 1,
|
|
3039
|
+
class: p(["mb-4", e.field_name])
|
|
3040
|
+
}, [
|
|
3041
|
+
s("input", {
|
|
3042
|
+
type: "hidden",
|
|
3043
|
+
name: e.field_name,
|
|
3044
|
+
id: e.field_name,
|
|
3045
|
+
value: (B = y.value) == null ? void 0 : B.id
|
|
3046
|
+
}, null, 8, Ta),
|
|
3047
|
+
e.options ? (d(), u("div", Ma, [
|
|
3048
|
+
e.label_name ? (d(), u("label", {
|
|
3049
|
+
key: 0,
|
|
3050
|
+
class: p({
|
|
3051
|
+
"gl-label-form": e.error_message == "",
|
|
3052
|
+
"gl-label-form-invalid": e.error_message !== "",
|
|
3053
|
+
required: e.is_required
|
|
3054
|
+
})
|
|
3055
|
+
}, h(e.label_name), 3)) : g("", !0),
|
|
3056
|
+
s("div", Na, [
|
|
3057
|
+
s("div", Va, [
|
|
3058
|
+
s("input", {
|
|
3059
|
+
class: p([{
|
|
3060
|
+
"gl-input-form": e.error_message == "",
|
|
3061
|
+
"gl-input-form-invalid": e.error_message !== ""
|
|
3062
|
+
}, "pl-8 pr-2 showOptions"]),
|
|
3063
|
+
ref: e.field_name,
|
|
3064
|
+
onClick: O[0] || (O[0] = (A) => re()),
|
|
3065
|
+
value: (be = y.value) == null ? void 0 : be.name,
|
|
3066
|
+
placeholder: e.placeholder,
|
|
3067
|
+
autocomplete: "off",
|
|
3068
|
+
readonly: ""
|
|
3069
|
+
}, null, 10, La),
|
|
3070
|
+
D(s("i", {
|
|
3071
|
+
onClick: O[1] || (O[1] = N((A) => Xe(), ["stop"])),
|
|
3072
|
+
class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
|
|
3073
|
+
style: { top: "13px" }
|
|
3074
|
+
}, null, 512), [
|
|
3075
|
+
[F, te(y.value) && e.has_cancel]
|
|
3076
|
+
]),
|
|
3077
|
+
s("i", {
|
|
3078
|
+
onClick: O[2] || (O[2] = (A) => !i.value && re()),
|
|
3079
|
+
class: p([i.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"]),
|
|
3080
|
+
style: { top: "11px" }
|
|
3081
|
+
}, null, 2)
|
|
3074
3082
|
]),
|
|
3075
|
-
s("
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
autocomplete: "off",
|
|
3094
|
-
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",
|
|
3095
|
-
placeholder: "Search ..."
|
|
3096
|
-
}, null, 40, Ga), [
|
|
3097
|
-
[V, c.value]
|
|
3083
|
+
D(s("div", Ba, [
|
|
3084
|
+
s("div", Ga, [
|
|
3085
|
+
Fa,
|
|
3086
|
+
s("div", Ra, [
|
|
3087
|
+
Ua,
|
|
3088
|
+
D(s("input", {
|
|
3089
|
+
type: "search",
|
|
3090
|
+
"onUpdate:modelValue": O[3] || (O[3] = (A) => c.value = A),
|
|
3091
|
+
ref: o.value,
|
|
3092
|
+
id: `${e.field_name}search${f.value}`,
|
|
3093
|
+
onKeydown: $,
|
|
3094
|
+
onBlur: O[4] || (O[4] = (A) => _e()),
|
|
3095
|
+
autocomplete: "off",
|
|
3096
|
+
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",
|
|
3097
|
+
placeholder: "Search ..."
|
|
3098
|
+
}, null, 40, qa), [
|
|
3099
|
+
[V, c.value]
|
|
3100
|
+
])
|
|
3098
3101
|
])
|
|
3102
|
+
]),
|
|
3103
|
+
s("div", za, [
|
|
3104
|
+
(d(!0), u(v, null, k(x.value, (A, se) => {
|
|
3105
|
+
var ye;
|
|
3106
|
+
return d(), u("div", {
|
|
3107
|
+
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", se + 1 == l.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
3108
|
+
onClick: (Ye) => pe(A),
|
|
3109
|
+
onMousedown: (Ye) => pe(A),
|
|
3110
|
+
key: se,
|
|
3111
|
+
id: `${se + 1}${f.value}`
|
|
3112
|
+
}, [
|
|
3113
|
+
s("div", Za, [
|
|
3114
|
+
((ye = y.value) == null ? void 0 : ye.id) === A.id ? (d(), u("svg", Ka, Xa)) : g("", !0),
|
|
3115
|
+
s("span", null, h(A.name || A.id || "-"), 1)
|
|
3116
|
+
])
|
|
3117
|
+
], 42, Ha);
|
|
3118
|
+
}), 128))
|
|
3099
3119
|
])
|
|
3100
|
-
]),
|
|
3101
|
-
|
|
3102
|
-
(d(!0), u(v, null, k(x.value, ($, N) => (d(), u("div", {
|
|
3103
|
-
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 == l.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
|
|
3104
|
-
onClick: (Ze) => ge($),
|
|
3105
|
-
onMousedown: (Ze) => ge($),
|
|
3106
|
-
key: N,
|
|
3107
|
-
id: `${N + 1}${f.value}`
|
|
3108
|
-
}, [
|
|
3109
|
-
s("div", Ua, [
|
|
3110
|
-
y.value.id === $.id ? (d(), u("svg", qa, Ha)) : g("", !0),
|
|
3111
|
-
s("span", null, h($.name || $.id || "-"), 1)
|
|
3112
|
-
])
|
|
3113
|
-
], 42, Ra))), 128))
|
|
3120
|
+
], 512), [
|
|
3121
|
+
[F, i.value]
|
|
3114
3122
|
])
|
|
3115
|
-
], 512), [
|
|
3116
|
-
[G, i.value]
|
|
3117
3123
|
])
|
|
3118
|
-
])
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
],
|
|
3123
|
-
|
|
3124
|
+
])) : g("", !0),
|
|
3125
|
+
s("span", Ya, h(e.error_message), 1),
|
|
3126
|
+
s("small", Ja, h(e.description), 1)
|
|
3127
|
+
], 2))
|
|
3128
|
+
], 64);
|
|
3129
|
+
};
|
|
3124
3130
|
}
|
|
3125
|
-
},
|
|
3131
|
+
}, Qa = { class: "font-bold ptext-lg dark:text-white" }, eo = ["id"], to = /* @__PURE__ */ s("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), ro = ["for"], so = ["required", "name", "id", "type", "placeholder"], no = { class: "gl-span-form-error" }, ao = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Id = {
|
|
3126
3132
|
__name: "GlTextarea",
|
|
3127
3133
|
props: {
|
|
3128
3134
|
is_required: {
|
|
@@ -3168,20 +3174,20 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3168
3174
|
},
|
|
3169
3175
|
emits: ["update:modelValue", "keydown"],
|
|
3170
3176
|
setup(e, { expose: t, emit: r }) {
|
|
3171
|
-
const n = e, o = r, a =
|
|
3172
|
-
return
|
|
3177
|
+
const n = e, o = r, a = C(null);
|
|
3178
|
+
return R(() => {
|
|
3173
3179
|
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);
|
|
3174
3180
|
}), t({ focus: () => a.value.focus() }), (l, i) => (d(), u(v, null, [
|
|
3175
3181
|
e.show ? (d(), u("div", {
|
|
3176
3182
|
key: 0,
|
|
3177
3183
|
class: p(e.field_name)
|
|
3178
3184
|
}, [
|
|
3179
|
-
s("h3",
|
|
3185
|
+
s("h3", Qa, h(e.label_name), 1),
|
|
3180
3186
|
s("p", {
|
|
3181
3187
|
id: e.field_name,
|
|
3182
3188
|
class: "mb-4 text-base text-gray-900 input_tr_show dark:text-white"
|
|
3183
|
-
}, h(e.model_value), 9,
|
|
3184
|
-
|
|
3189
|
+
}, h(e.model_value), 9, eo),
|
|
3190
|
+
to
|
|
3185
3191
|
], 2)) : g("", !0),
|
|
3186
3192
|
e.show ? g("", !0) : (d(), u("div", {
|
|
3187
3193
|
key: 1,
|
|
@@ -3194,7 +3200,7 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3194
3200
|
required: e.is_required
|
|
3195
3201
|
}),
|
|
3196
3202
|
for: e.field_name
|
|
3197
|
-
}, h(e.label_name), 11,
|
|
3203
|
+
}, h(e.label_name), 11, ro),
|
|
3198
3204
|
s("textarea", {
|
|
3199
3205
|
required: e.is_required,
|
|
3200
3206
|
name: e.field_name,
|
|
@@ -3209,13 +3215,13 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3209
3215
|
ref: a,
|
|
3210
3216
|
rows: "4",
|
|
3211
3217
|
placeholder: e.place_holder
|
|
3212
|
-
}, null, 42,
|
|
3213
|
-
s("span",
|
|
3214
|
-
s("small",
|
|
3218
|
+
}, null, 42, so),
|
|
3219
|
+
s("span", no, h(e.error_message), 1),
|
|
3220
|
+
s("small", ao, h(e.description), 1)
|
|
3215
3221
|
], 2))
|
|
3216
3222
|
], 64));
|
|
3217
3223
|
}
|
|
3218
|
-
},
|
|
3224
|
+
}, oo = {
|
|
3219
3225
|
emits: ["pagination-change-page"],
|
|
3220
3226
|
props: {
|
|
3221
3227
|
data: {
|
|
@@ -3320,14 +3326,14 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3320
3326
|
})
|
|
3321
3327
|
});
|
|
3322
3328
|
}
|
|
3323
|
-
},
|
|
3329
|
+
}, io = {
|
|
3324
3330
|
compatConfig: {
|
|
3325
3331
|
MODE: 3
|
|
3326
3332
|
},
|
|
3327
3333
|
inheritAttrs: !1,
|
|
3328
3334
|
emits: ["pagination-change-page"],
|
|
3329
3335
|
components: {
|
|
3330
|
-
RenderlessPagination:
|
|
3336
|
+
RenderlessPagination: oo
|
|
3331
3337
|
},
|
|
3332
3338
|
props: {
|
|
3333
3339
|
data: {
|
|
@@ -3361,10 +3367,10 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3361
3367
|
},
|
|
3362
3368
|
mounted() {
|
|
3363
3369
|
}
|
|
3364
|
-
},
|
|
3370
|
+
}, lo = { class: "flex flex-col items-center" }, uo = {
|
|
3365
3371
|
key: 0,
|
|
3366
3372
|
class: "text-sm text-gray-700 dark:text-gray-400"
|
|
3367
|
-
},
|
|
3373
|
+
}, co = { class: "font-semibold text-gray-900 dark:text-white" }, fo = { class: "font-semibold text-gray-900 dark:text-white" }, ho = { class: "font-semibold text-gray-900 dark:text-white" }, go = ["tabindex"], mo = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), po = /* @__PURE__ */ s("svg", {
|
|
3368
3374
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3369
3375
|
"aria-hidden": "true",
|
|
3370
3376
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3378,7 +3384,7 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3378
3384
|
"stroke-width": "2",
|
|
3379
3385
|
d: "M5 1 1 5l4 4"
|
|
3380
3386
|
})
|
|
3381
|
-
], -1),
|
|
3387
|
+
], -1), _o = ["aria-current"], bo = ["tabindex"], yo = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), vo = /* @__PURE__ */ s("svg", {
|
|
3382
3388
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3383
3389
|
"aria-hidden": "true",
|
|
3384
3390
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3393,25 +3399,25 @@ const Cd = /* @__PURE__ */ O(en, [["render", aa], ["__scopeId", "data-v-a94f16a9
|
|
|
3393
3399
|
d: "m1 9 4-4-4-4"
|
|
3394
3400
|
})
|
|
3395
3401
|
], -1);
|
|
3396
|
-
function
|
|
3397
|
-
const l =
|
|
3398
|
-
return d(),
|
|
3402
|
+
function xo(e, t, r, n, o, a) {
|
|
3403
|
+
const l = Y("RenderlessPagination");
|
|
3404
|
+
return d(), K(l, {
|
|
3399
3405
|
data: r.data,
|
|
3400
3406
|
limit: r.limit,
|
|
3401
3407
|
onPaginationChangePage: a.onPaginationChangePage
|
|
3402
3408
|
}, {
|
|
3403
|
-
default:
|
|
3404
|
-
s("div",
|
|
3405
|
-
i.computed.total > i.computed.perPage ? (d(), u("span",
|
|
3409
|
+
default: J((i) => [
|
|
3410
|
+
s("div", lo, [
|
|
3411
|
+
i.computed.total > i.computed.perPage ? (d(), u("span", uo, [
|
|
3406
3412
|
w(" Showing "),
|
|
3407
|
-
s("span",
|
|
3413
|
+
s("span", co, h(i.computed.from), 1),
|
|
3408
3414
|
w(" to "),
|
|
3409
|
-
s("span",
|
|
3415
|
+
s("span", fo, h(i.computed.to), 1),
|
|
3410
3416
|
w(" of "),
|
|
3411
|
-
s("span",
|
|
3417
|
+
s("span", ho, h(i.computed.total), 1),
|
|
3412
3418
|
w(" Entries ")
|
|
3413
3419
|
])) : g("", !0),
|
|
3414
|
-
i.computed.total > i.computed.perPage ? (d(), u("ul",
|
|
3420
|
+
i.computed.total > i.computed.perPage ? (d(), u("ul", W({ key: 1 }, e.$attrs, {
|
|
3415
3421
|
class: ["flex items-center h-8 -space-x-px text-sm", {
|
|
3416
3422
|
"pagination-sm": r.size == "small",
|
|
3417
3423
|
"pagination-lg": r.size == "large",
|
|
@@ -3423,45 +3429,45 @@ function _o(e, t, r, n, o, a) {
|
|
|
3423
3429
|
key: 0,
|
|
3424
3430
|
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 }])
|
|
3425
3431
|
}, [
|
|
3426
|
-
s("a",
|
|
3432
|
+
s("a", W({
|
|
3427
3433
|
class: "page-link",
|
|
3428
3434
|
href: "#",
|
|
3429
3435
|
"aria-label": "Previous",
|
|
3430
3436
|
tabindex: !i.computed.prevPageUrl && -1
|
|
3431
|
-
},
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3437
|
+
}, ne(i.prevButtonEvents, !0)), [
|
|
3438
|
+
I(e.$slots, "prev-nav", {}, () => [
|
|
3439
|
+
mo,
|
|
3440
|
+
po
|
|
3435
3441
|
])
|
|
3436
|
-
], 16,
|
|
3442
|
+
], 16, go)
|
|
3437
3443
|
], 2)) : g("", !0),
|
|
3438
3444
|
(d(!0), u(v, null, k(i.computed.pageRange, (c, f) => (d(), u("li", {
|
|
3439
3445
|
class: p(["", { active: c == i.computed.currentPage }]),
|
|
3440
3446
|
key: f
|
|
3441
3447
|
}, [
|
|
3442
|
-
s("a",
|
|
3448
|
+
s("a", W({
|
|
3443
3449
|
class: "",
|
|
3444
3450
|
href: "#"
|
|
3445
|
-
},
|
|
3451
|
+
}, ne(i.pageButtonEvents(c), !0), {
|
|
3446
3452
|
"aria-current": c == i.computed.currentPage ? "page" : null,
|
|
3447
3453
|
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"
|
|
3448
|
-
}), h(c), 17,
|
|
3454
|
+
}), h(c), 17, _o)
|
|
3449
3455
|
], 2))), 128)),
|
|
3450
3456
|
i.computed.nextPageUrl || r.showDisabled ? (d(), u("li", {
|
|
3451
3457
|
key: 1,
|
|
3452
3458
|
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 }])
|
|
3453
3459
|
}, [
|
|
3454
|
-
s("a",
|
|
3460
|
+
s("a", W({
|
|
3455
3461
|
class: "",
|
|
3456
3462
|
href: "#",
|
|
3457
3463
|
"aria-label": "Next",
|
|
3458
3464
|
tabindex: !i.computed.nextPageUrl && -1
|
|
3459
|
-
},
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3465
|
+
}, ne(i.nextButtonEvents, !0)), [
|
|
3466
|
+
I(e.$slots, "next-nav", {}, () => [
|
|
3467
|
+
yo,
|
|
3468
|
+
vo
|
|
3463
3469
|
])
|
|
3464
|
-
], 16,
|
|
3470
|
+
], 16, bo)
|
|
3465
3471
|
], 2)) : g("", !0)
|
|
3466
3472
|
], 16)) : g("", !0)
|
|
3467
3473
|
])
|
|
@@ -3469,8 +3475,8 @@ function _o(e, t, r, n, o, a) {
|
|
|
3469
3475
|
_: 3
|
|
3470
3476
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
3471
3477
|
}
|
|
3472
|
-
const
|
|
3473
|
-
components: { TailwindPagination:
|
|
3478
|
+
const wo = /* @__PURE__ */ S(io, [["render", xo]]), ko = {
|
|
3479
|
+
components: { TailwindPagination: wo },
|
|
3474
3480
|
props: {
|
|
3475
3481
|
data: Array,
|
|
3476
3482
|
columns: Array,
|
|
@@ -3546,10 +3552,10 @@ const bo = /* @__PURE__ */ O(so, [["render", _o]]), yo = {
|
|
|
3546
3552
|
this.isMounted && e !== t && this.GetItemLists();
|
|
3547
3553
|
}
|
|
3548
3554
|
}
|
|
3549
|
-
},
|
|
3555
|
+
}, $o = { class: "p-2" }, Co = { class: "flex flex-col flex-wrap pb-4 space-y-4 xl:flex-row xl:items-center xl:justify-between flex-column sm:space-y-0" }, So = { class: "flex items-center gap-2" }, Oo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), Do = { style: { "margin-top": "9px" } }, Po = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), Eo = /* @__PURE__ */ s("label", {
|
|
3550
3556
|
for: "table-search",
|
|
3551
3557
|
class: "sr-only"
|
|
3552
|
-
}, "Search", -1),
|
|
3558
|
+
}, "Search", -1), jo = { class: "relative" }, Ao = /* @__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" }, [
|
|
3553
3559
|
/* @__PURE__ */ s("svg", {
|
|
3554
3560
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3555
3561
|
"aria-hidden": "true",
|
|
@@ -3563,24 +3569,24 @@ const bo = /* @__PURE__ */ O(so, [["render", _o]]), yo = {
|
|
|
3563
3569
|
"clip-rule": "evenodd"
|
|
3564
3570
|
})
|
|
3565
3571
|
])
|
|
3566
|
-
], -1),
|
|
3572
|
+
], -1), Io = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, To = { class: "w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-3 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark" }, Mo = { class: "hidden text-sm font-normal text-center text-gray-700 uppercase lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400" }, No = ["onClick"], Vo = {
|
|
3567
3573
|
key: 0,
|
|
3568
3574
|
class: "ml-2"
|
|
3569
|
-
},
|
|
3575
|
+
}, Lo = {
|
|
3570
3576
|
key: 0,
|
|
3571
3577
|
class: "fa fa-arrow-up"
|
|
3572
|
-
},
|
|
3578
|
+
}, Bo = {
|
|
3573
3579
|
key: 1,
|
|
3574
3580
|
class: "fa fa-arrow-down"
|
|
3575
|
-
},
|
|
3576
|
-
function
|
|
3577
|
-
const l =
|
|
3578
|
-
return d(), u("div",
|
|
3579
|
-
s("div",
|
|
3580
|
-
s("div",
|
|
3581
|
-
|
|
3582
|
-
s("div",
|
|
3583
|
-
|
|
3581
|
+
}, Go = ["data-label"], Fo = { class: "overflow-auto max-h-40" }, Ro = { 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" };
|
|
3582
|
+
function Uo(e, t, r, n, o, a) {
|
|
3583
|
+
const l = Y("dropdown"), i = Y("TailwindPagination");
|
|
3584
|
+
return d(), u("div", $o, [
|
|
3585
|
+
s("div", Co, [
|
|
3586
|
+
s("div", So, [
|
|
3587
|
+
Oo,
|
|
3588
|
+
s("div", Do, [
|
|
3589
|
+
Z(l, {
|
|
3584
3590
|
has_cancel: !1,
|
|
3585
3591
|
options: o.pageOptions,
|
|
3586
3592
|
modelValue: o.perPage,
|
|
@@ -3593,12 +3599,12 @@ function Bo(e, t, r, n, o, a) {
|
|
|
3593
3599
|
placeholder: "Please select an option"
|
|
3594
3600
|
}, null, 8, ["options", "modelValue"])
|
|
3595
3601
|
]),
|
|
3596
|
-
|
|
3602
|
+
Po
|
|
3597
3603
|
]),
|
|
3598
|
-
|
|
3599
|
-
s("div",
|
|
3600
|
-
|
|
3601
|
-
|
|
3604
|
+
Eo,
|
|
3605
|
+
s("div", jo, [
|
|
3606
|
+
Ao,
|
|
3607
|
+
D(s("input", {
|
|
3602
3608
|
type: "text",
|
|
3603
3609
|
"onUpdate:modelValue": t[1] || (t[1] = (c) => o.search = c),
|
|
3604
3610
|
onInput: t[2] || (t[2] = (c) => a.handleSearch()),
|
|
@@ -3609,9 +3615,9 @@ function Bo(e, t, r, n, o, a) {
|
|
|
3609
3615
|
])
|
|
3610
3616
|
])
|
|
3611
3617
|
]),
|
|
3612
|
-
s("div",
|
|
3613
|
-
s("table",
|
|
3614
|
-
s("thead",
|
|
3618
|
+
s("div", Io, [
|
|
3619
|
+
s("table", To, [
|
|
3620
|
+
s("thead", Mo, [
|
|
3615
3621
|
s("tr", null, [
|
|
3616
3622
|
(d(!0), u(v, null, k(r.columns, (c, f) => (d(), u("th", {
|
|
3617
3623
|
key: f,
|
|
@@ -3619,10 +3625,10 @@ function Bo(e, t, r, n, o, a) {
|
|
|
3619
3625
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3620
3626
|
}, [
|
|
3621
3627
|
w(h(c.field_label) + " ", 1),
|
|
3622
|
-
o.sortField === c.field_name ? (d(), u("span",
|
|
3623
|
-
o.sortOrder === "asc" ? (d(), u("i",
|
|
3628
|
+
o.sortField === c.field_name ? (d(), u("span", Vo, [
|
|
3629
|
+
o.sortOrder === "asc" ? (d(), u("i", Lo)) : (d(), u("i", Bo))
|
|
3624
3630
|
])) : g("", !0)
|
|
3625
|
-
], 8,
|
|
3631
|
+
], 8, No))), 128))
|
|
3626
3632
|
])
|
|
3627
3633
|
]),
|
|
3628
3634
|
s("tbody", null, [
|
|
@@ -3635,8 +3641,8 @@ function Bo(e, t, r, n, o, a) {
|
|
|
3635
3641
|
"data-label": m.field_label,
|
|
3636
3642
|
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"
|
|
3637
3643
|
}, [
|
|
3638
|
-
s("div",
|
|
3639
|
-
m.tdComp ? (d(),
|
|
3644
|
+
s("div", Fo, [
|
|
3645
|
+
m.tdComp ? (d(), K(oe(a.forDynCompIs(m.tdComp)), {
|
|
3640
3646
|
key: 0,
|
|
3641
3647
|
row: c,
|
|
3642
3648
|
field: m.field_name,
|
|
@@ -3647,13 +3653,13 @@ function Bo(e, t, r, n, o, a) {
|
|
|
3647
3653
|
w(h(c[m.field_name]), 1)
|
|
3648
3654
|
], 64))
|
|
3649
3655
|
])
|
|
3650
|
-
], 8,
|
|
3656
|
+
], 8, Go))), 128))
|
|
3651
3657
|
]))), 128))
|
|
3652
3658
|
])
|
|
3653
3659
|
])
|
|
3654
3660
|
]),
|
|
3655
|
-
s("div",
|
|
3656
|
-
|
|
3661
|
+
s("div", Ro, [
|
|
3662
|
+
Z(i, {
|
|
3657
3663
|
class: "mt-3 mb-0",
|
|
3658
3664
|
data: o.itemLists,
|
|
3659
3665
|
limit: o.limit,
|
|
@@ -3664,7 +3670,7 @@ function Bo(e, t, r, n, o, a) {
|
|
|
3664
3670
|
])
|
|
3665
3671
|
]);
|
|
3666
3672
|
}
|
|
3667
|
-
const
|
|
3673
|
+
const Td = /* @__PURE__ */ S(ko, [["render", Uo]]), qo = {
|
|
3668
3674
|
components: {},
|
|
3669
3675
|
props: {
|
|
3670
3676
|
data: Array,
|
|
@@ -3761,10 +3767,10 @@ const Ed = /* @__PURE__ */ O(yo, [["render", Bo]]), Go = {
|
|
|
3761
3767
|
mounted() {
|
|
3762
3768
|
document.body.addEventListener("click", this.closeBoxOnbodyClick);
|
|
3763
3769
|
}
|
|
3764
|
-
},
|
|
3770
|
+
}, zo = { class: "p-2" }, Ho = { class: "flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0" }, Zo = { class: "flex items-center gap-2" }, Ko = /* @__PURE__ */ s("span", { class: "font-medium" }, " Show ", -1), Wo = { style: { "margin-top": "9px" } }, Xo = /* @__PURE__ */ s("span", { class: "font-medium" }, " Entries ", -1), Yo = /* @__PURE__ */ s("label", {
|
|
3765
3771
|
for: "table-search",
|
|
3766
3772
|
class: "sr-only"
|
|
3767
|
-
}, "Search", -1),
|
|
3773
|
+
}, "Search", -1), Jo = { class: "relative" }, Qo = /* @__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" }, [
|
|
3768
3774
|
/* @__PURE__ */ s("svg", {
|
|
3769
3775
|
class: "w-5 h-5 text-gray-500 dark:text-gray-400",
|
|
3770
3776
|
"aria-hidden": "true",
|
|
@@ -3778,10 +3784,10 @@ const Ed = /* @__PURE__ */ O(yo, [["render", Bo]]), Go = {
|
|
|
3778
3784
|
"clip-rule": "evenodd"
|
|
3779
3785
|
})
|
|
3780
3786
|
])
|
|
3781
|
-
], -1),
|
|
3787
|
+
], -1), ei = { class: "overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800" }, ti = { 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" }, ri = { 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" }, si = ["onClick"], ni = {
|
|
3782
3788
|
key: 0,
|
|
3783
3789
|
class: "ml-2"
|
|
3784
|
-
},
|
|
3790
|
+
}, ai = ["data-label"], oi = ["innerHTML"], ii = { 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" }, li = { class: "flex justify-between flex-1 sm:hidden" }, di = ["disabled"], ui = ["disabled"], ci = { class: "hidden sm:flex sm:flex-1 sm:items-center sm:justify-between" }, fi = { class: "text-sm text-gray-700 dark:text-gray-400" }, hi = { class: "font-medium" }, gi = { class: "font-medium" }, mi = { class: "font-medium" }, pi = { "aria-label": "Page navigation" }, _i = { class: "flex items-center h-8 -space-x-px text-sm" }, bi = ["disabled"], yi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Previous", -1), vi = /* @__PURE__ */ s("svg", {
|
|
3785
3791
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3786
3792
|
"aria-hidden": "true",
|
|
3787
3793
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3795,10 +3801,10 @@ const Ed = /* @__PURE__ */ O(yo, [["render", Bo]]), Go = {
|
|
|
3795
3801
|
"stroke-width": "2",
|
|
3796
3802
|
d: "M5 1 1 5l4 4"
|
|
3797
3803
|
})
|
|
3798
|
-
], -1),
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
],
|
|
3804
|
+
], -1), xi = [
|
|
3805
|
+
yi,
|
|
3806
|
+
vi
|
|
3807
|
+
], wi = ["onClick"], ki = ["onClick"], $i = ["disabled"], Ci = /* @__PURE__ */ s("span", { class: "sr-only" }, "Next", -1), Si = /* @__PURE__ */ s("svg", {
|
|
3802
3808
|
class: "w-2.5 h-2.5 rtl:rotate-180",
|
|
3803
3809
|
"aria-hidden": "true",
|
|
3804
3810
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3812,18 +3818,18 @@ const Ed = /* @__PURE__ */ O(yo, [["render", Bo]]), Go = {
|
|
|
3812
3818
|
"stroke-width": "2",
|
|
3813
3819
|
d: "m1 9 4-4-4-4"
|
|
3814
3820
|
})
|
|
3815
|
-
], -1),
|
|
3816
|
-
|
|
3817
|
-
|
|
3821
|
+
], -1), Oi = [
|
|
3822
|
+
Ci,
|
|
3823
|
+
Si
|
|
3818
3824
|
];
|
|
3819
|
-
function
|
|
3820
|
-
const l =
|
|
3821
|
-
return d(), u("div",
|
|
3822
|
-
s("div",
|
|
3823
|
-
s("div",
|
|
3824
|
-
|
|
3825
|
-
s("div",
|
|
3826
|
-
|
|
3825
|
+
function Di(e, t, r, n, o, a) {
|
|
3826
|
+
const l = Y("dropdown");
|
|
3827
|
+
return d(), u("div", zo, [
|
|
3828
|
+
s("div", Ho, [
|
|
3829
|
+
s("div", Zo, [
|
|
3830
|
+
Ko,
|
|
3831
|
+
s("div", Wo, [
|
|
3832
|
+
Z(l, {
|
|
3827
3833
|
has_cancel: !1,
|
|
3828
3834
|
options: o.showNoOfEntries,
|
|
3829
3835
|
modelValue: o.itemsPerPage,
|
|
@@ -3836,12 +3842,12 @@ function $i(e, t, r, n, o, a) {
|
|
|
3836
3842
|
placeholder: "Please select an option"
|
|
3837
3843
|
}, null, 8, ["options", "modelValue"])
|
|
3838
3844
|
]),
|
|
3839
|
-
|
|
3845
|
+
Xo
|
|
3840
3846
|
]),
|
|
3841
|
-
|
|
3842
|
-
s("div",
|
|
3843
|
-
|
|
3844
|
-
|
|
3847
|
+
Yo,
|
|
3848
|
+
s("div", Jo, [
|
|
3849
|
+
Qo,
|
|
3850
|
+
D(s("input", {
|
|
3845
3851
|
type: "text",
|
|
3846
3852
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => o.search = i),
|
|
3847
3853
|
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",
|
|
@@ -3851,9 +3857,9 @@ function $i(e, t, r, n, o, a) {
|
|
|
3851
3857
|
])
|
|
3852
3858
|
])
|
|
3853
3859
|
]),
|
|
3854
|
-
s("div",
|
|
3855
|
-
s("table",
|
|
3856
|
-
s("thead",
|
|
3860
|
+
s("div", ei, [
|
|
3861
|
+
s("table", ti, [
|
|
3862
|
+
s("thead", ri, [
|
|
3857
3863
|
s("tr", null, [
|
|
3858
3864
|
(d(!0), u(v, null, k(r.columns, (i, c) => (d(), u("th", {
|
|
3859
3865
|
key: c,
|
|
@@ -3861,8 +3867,8 @@ function $i(e, t, r, n, o, a) {
|
|
|
3861
3867
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
3862
3868
|
}, [
|
|
3863
3869
|
w(h(i) + " ", 1),
|
|
3864
|
-
o.sortKey === i ? (d(), u("span",
|
|
3865
|
-
], 8,
|
|
3870
|
+
o.sortKey === i ? (d(), u("span", ni, h(o.sortOrder === 1 ? "▲" : "▼"), 1)) : g("", !0)
|
|
3871
|
+
], 8, si))), 128))
|
|
3866
3872
|
])
|
|
3867
3873
|
]),
|
|
3868
3874
|
s("tbody", null, [
|
|
@@ -3878,49 +3884,49 @@ function $i(e, t, r, n, o, a) {
|
|
|
3878
3884
|
s("p", {
|
|
3879
3885
|
class: "text-pretty",
|
|
3880
3886
|
innerHTML: i[m]
|
|
3881
|
-
}, null, 8,
|
|
3882
|
-
], 8,
|
|
3887
|
+
}, null, 8, oi)
|
|
3888
|
+
], 8, ai))), 128))
|
|
3883
3889
|
]))), 128))
|
|
3884
3890
|
])
|
|
3885
3891
|
])
|
|
3886
3892
|
]),
|
|
3887
|
-
s("div",
|
|
3888
|
-
s("div",
|
|
3893
|
+
s("div", ii, [
|
|
3894
|
+
s("div", li, [
|
|
3889
3895
|
s("a", {
|
|
3890
3896
|
href: "#",
|
|
3891
3897
|
onClick: t[2] || (t[2] = (...i) => a.previousPage && a.previousPage(...i)),
|
|
3892
3898
|
disabled: o.currentPage === 1,
|
|
3893
3899
|
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"
|
|
3894
|
-
}, "Previous", 8,
|
|
3900
|
+
}, "Previous", 8, di),
|
|
3895
3901
|
s("a", {
|
|
3896
3902
|
href: "#",
|
|
3897
3903
|
onClick: t[3] || (t[3] = (...i) => a.nextPage && a.nextPage(...i)),
|
|
3898
3904
|
disabled: o.currentPage === a.totalPages,
|
|
3899
3905
|
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"
|
|
3900
|
-
}, "Next", 8,
|
|
3906
|
+
}, "Next", 8, ui)
|
|
3901
3907
|
]),
|
|
3902
|
-
s("div",
|
|
3908
|
+
s("div", ci, [
|
|
3903
3909
|
s("div", null, [
|
|
3904
|
-
s("p",
|
|
3910
|
+
s("p", fi, [
|
|
3905
3911
|
w(" Showing "),
|
|
3906
|
-
s("span",
|
|
3912
|
+
s("span", hi, h(a.firstItemIndex), 1),
|
|
3907
3913
|
w(" to "),
|
|
3908
|
-
s("span",
|
|
3914
|
+
s("span", gi, h(a.lastItemIndex), 1),
|
|
3909
3915
|
w(" of "),
|
|
3910
|
-
s("span",
|
|
3916
|
+
s("span", mi, h(a.filteredData.length), 1),
|
|
3911
3917
|
w(" entries ")
|
|
3912
3918
|
])
|
|
3913
3919
|
]),
|
|
3914
3920
|
s("div", null, [
|
|
3915
|
-
s("nav",
|
|
3916
|
-
s("ul",
|
|
3921
|
+
s("nav", pi, [
|
|
3922
|
+
s("ul", _i, [
|
|
3917
3923
|
s("li", null, [
|
|
3918
3924
|
s("a", {
|
|
3919
3925
|
href: "#",
|
|
3920
3926
|
onClick: t[4] || (t[4] = (...i) => a.previousPage && a.previousPage(...i)),
|
|
3921
3927
|
disabled: o.currentPage === 1,
|
|
3922
3928
|
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"
|
|
3923
|
-
},
|
|
3929
|
+
}, xi, 8, bi)
|
|
3924
3930
|
]),
|
|
3925
3931
|
(d(!0), u(v, null, k(a.displayedPageNumbers, (i) => (d(), u(v, { key: i }, [
|
|
3926
3932
|
s("li", null, [
|
|
@@ -3929,7 +3935,7 @@ function $i(e, t, r, n, o, a) {
|
|
|
3929
3935
|
href: "#",
|
|
3930
3936
|
onClick: (c) => a.goToPage(i),
|
|
3931
3937
|
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"
|
|
3932
|
-
}, h(i), 9,
|
|
3938
|
+
}, h(i), 9, wi)) : g("", !0)
|
|
3933
3939
|
]),
|
|
3934
3940
|
s("li", null, [
|
|
3935
3941
|
o.currentPage === i ? (d(), u("a", {
|
|
@@ -3938,7 +3944,7 @@ function $i(e, t, r, n, o, a) {
|
|
|
3938
3944
|
onClick: (c) => a.goToPage(i),
|
|
3939
3945
|
"aria-current": "page",
|
|
3940
3946
|
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"
|
|
3941
|
-
}, h(i), 9,
|
|
3947
|
+
}, h(i), 9, ki)) : g("", !0)
|
|
3942
3948
|
])
|
|
3943
3949
|
], 64))), 128)),
|
|
3944
3950
|
s("li", null, [
|
|
@@ -3947,7 +3953,7 @@ function $i(e, t, r, n, o, a) {
|
|
|
3947
3953
|
onClick: t[5] || (t[5] = (...i) => a.nextPage && a.nextPage(...i)),
|
|
3948
3954
|
disabled: o.currentPage === a.totalPages,
|
|
3949
3955
|
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"
|
|
3950
|
-
},
|
|
3956
|
+
}, Oi, 8, $i)
|
|
3951
3957
|
])
|
|
3952
3958
|
])
|
|
3953
3959
|
])
|
|
@@ -3956,13 +3962,13 @@ function $i(e, t, r, n, o, a) {
|
|
|
3956
3962
|
])
|
|
3957
3963
|
]);
|
|
3958
3964
|
}
|
|
3959
|
-
const
|
|
3965
|
+
const Md = /* @__PURE__ */ S(qo, [["render", Di]]), Pi = {
|
|
3960
3966
|
class: "flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",
|
|
3961
3967
|
role: "alert"
|
|
3962
|
-
},
|
|
3968
|
+
}, Ei = {
|
|
3963
3969
|
key: 0,
|
|
3964
3970
|
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"
|
|
3965
|
-
},
|
|
3971
|
+
}, ji = /* @__PURE__ */ s("svg", {
|
|
3966
3972
|
class: "w-5 h-5",
|
|
3967
3973
|
"aria-hidden": "true",
|
|
3968
3974
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3970,13 +3976,13 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
3970
3976
|
viewBox: "0 0 20 20"
|
|
3971
3977
|
}, [
|
|
3972
3978
|
/* @__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" })
|
|
3973
|
-
], -1),
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
],
|
|
3979
|
+
], -1), Ai = /* @__PURE__ */ s("span", { class: "sr-only" }, "Check icon", -1), Ii = [
|
|
3980
|
+
ji,
|
|
3981
|
+
Ai
|
|
3982
|
+
], Ti = {
|
|
3977
3983
|
key: 1,
|
|
3978
3984
|
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"
|
|
3979
|
-
},
|
|
3985
|
+
}, Mi = /* @__PURE__ */ s("svg", {
|
|
3980
3986
|
class: "w-5 h-5",
|
|
3981
3987
|
"aria-hidden": "true",
|
|
3982
3988
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3984,13 +3990,13 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
3984
3990
|
viewBox: "0 0 20 20"
|
|
3985
3991
|
}, [
|
|
3986
3992
|
/* @__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" })
|
|
3987
|
-
], -1),
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
],
|
|
3993
|
+
], -1), Ni = /* @__PURE__ */ s("span", { class: "sr-only" }, "Error icon", -1), Vi = [
|
|
3994
|
+
Mi,
|
|
3995
|
+
Ni
|
|
3996
|
+
], Li = {
|
|
3991
3997
|
key: 2,
|
|
3992
3998
|
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"
|
|
3993
|
-
},
|
|
3999
|
+
}, Bi = /* @__PURE__ */ s("svg", {
|
|
3994
4000
|
class: "w-5 h-5",
|
|
3995
4001
|
"aria-hidden": "true",
|
|
3996
4002
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3998,10 +4004,10 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
3998
4004
|
viewBox: "0 0 20 20"
|
|
3999
4005
|
}, [
|
|
4000
4006
|
/* @__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" })
|
|
4001
|
-
], -1),
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
],
|
|
4007
|
+
], -1), Gi = /* @__PURE__ */ s("span", { class: "sr-only" }, "Warning icon", -1), Fi = [
|
|
4008
|
+
Bi,
|
|
4009
|
+
Gi
|
|
4010
|
+
], Ri = { class: "ml-3 text-sm font-normal" }, Ui = /* @__PURE__ */ s("span", { class: "sr-only" }, "Close", -1), qi = /* @__PURE__ */ s("svg", {
|
|
4005
4011
|
"aria-hidden": "true",
|
|
4006
4012
|
class: "w-5 h-5",
|
|
4007
4013
|
fill: "currentColor",
|
|
@@ -4013,10 +4019,10 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4013
4019
|
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",
|
|
4014
4020
|
"clip-rule": "evenodd"
|
|
4015
4021
|
})
|
|
4016
|
-
], -1),
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
],
|
|
4022
|
+
], -1), zi = [
|
|
4023
|
+
Ui,
|
|
4024
|
+
qi
|
|
4025
|
+
], Hi = {
|
|
4020
4026
|
__name: "ToastListItem",
|
|
4021
4027
|
props: {
|
|
4022
4028
|
message: String,
|
|
@@ -4032,29 +4038,29 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4032
4038
|
emits: ["remove"],
|
|
4033
4039
|
setup(e, { emit: t }) {
|
|
4034
4040
|
const r = e;
|
|
4035
|
-
|
|
4041
|
+
R(() => {
|
|
4036
4042
|
setTimeout(() => n("remove"), r.duration);
|
|
4037
4043
|
});
|
|
4038
4044
|
const n = t;
|
|
4039
|
-
return (o, a) => (d(), u("div",
|
|
4040
|
-
r.type === "success" ? (d(), u("div",
|
|
4041
|
-
r.type === "error" ? (d(), u("div",
|
|
4042
|
-
r.type === "warning" ? (d(), u("div",
|
|
4043
|
-
s("div",
|
|
4045
|
+
return (o, a) => (d(), u("div", Pi, [
|
|
4046
|
+
r.type === "success" ? (d(), u("div", Ei, Ii)) : g("", !0),
|
|
4047
|
+
r.type === "error" ? (d(), u("div", Ti, Vi)) : g("", !0),
|
|
4048
|
+
r.type === "warning" ? (d(), u("div", Li, Fi)) : g("", !0),
|
|
4049
|
+
s("div", Ri, h(r.message), 1),
|
|
4044
4050
|
s("button", {
|
|
4045
4051
|
onClick: a[0] || (a[0] = (l) => n("remove")),
|
|
4046
4052
|
type: "button",
|
|
4047
4053
|
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",
|
|
4048
4054
|
"data-dismiss-target": "#toast-default",
|
|
4049
4055
|
"aria-label": "Close"
|
|
4050
|
-
},
|
|
4056
|
+
}, zi)
|
|
4051
4057
|
]));
|
|
4052
4058
|
}
|
|
4053
|
-
},
|
|
4059
|
+
}, de = Se({
|
|
4054
4060
|
items: []
|
|
4055
|
-
}),
|
|
4061
|
+
}), Zi = {
|
|
4056
4062
|
add(e) {
|
|
4057
|
-
|
|
4063
|
+
de.items.unshift({
|
|
4058
4064
|
key: Symbol(),
|
|
4059
4065
|
message: e.message,
|
|
4060
4066
|
type: e.type,
|
|
@@ -4062,18 +4068,18 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4062
4068
|
});
|
|
4063
4069
|
},
|
|
4064
4070
|
remove(e) {
|
|
4065
|
-
|
|
4071
|
+
de.items.splice(e, 1);
|
|
4066
4072
|
}
|
|
4067
|
-
},
|
|
4068
|
-
state:
|
|
4069
|
-
methods:
|
|
4070
|
-
},
|
|
4073
|
+
}, $e = {
|
|
4074
|
+
state: de,
|
|
4075
|
+
methods: Zi
|
|
4076
|
+
}, Nd = {
|
|
4071
4077
|
__name: "GlToastList",
|
|
4072
4078
|
setup(e) {
|
|
4073
4079
|
function t(r) {
|
|
4074
|
-
|
|
4080
|
+
$e.methods.remove(r);
|
|
4075
4081
|
}
|
|
4076
|
-
return (r, n) => (d(),
|
|
4082
|
+
return (r, n) => (d(), K(it, {
|
|
4077
4083
|
tag: "div",
|
|
4078
4084
|
"enter-from-class": "translate-x-full opacity-0",
|
|
4079
4085
|
"enter-active-class": "duration-500",
|
|
@@ -4081,8 +4087,8 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4081
4087
|
"leave-to-class": "translate-x-full opacity-0",
|
|
4082
4088
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
4083
4089
|
}, {
|
|
4084
|
-
default:
|
|
4085
|
-
(d(!0), u(v, null, k(
|
|
4090
|
+
default: J(() => [
|
|
4091
|
+
(d(!0), u(v, null, k(lt($e).state.items, (o, a) => (d(), K(Hi, {
|
|
4086
4092
|
key: o.key,
|
|
4087
4093
|
message: o.message,
|
|
4088
4094
|
type: o.type,
|
|
@@ -4093,10 +4099,10 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4093
4099
|
_: 1
|
|
4094
4100
|
}));
|
|
4095
4101
|
}
|
|
4096
|
-
},
|
|
4102
|
+
}, Ki = {
|
|
4097
4103
|
key: 0,
|
|
4098
4104
|
class: "flex justify-center"
|
|
4099
|
-
},
|
|
4105
|
+
}, Wi = /* @__PURE__ */ s("svg", {
|
|
4100
4106
|
class: "w-5 h-5",
|
|
4101
4107
|
"aria-hidden": "true",
|
|
4102
4108
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4104,12 +4110,12 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4104
4110
|
viewBox: "0 0 4 15"
|
|
4105
4111
|
}, [
|
|
4106
4112
|
/* @__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" })
|
|
4107
|
-
], -1),
|
|
4108
|
-
|
|
4109
|
-
],
|
|
4113
|
+
], -1), Xi = [
|
|
4114
|
+
Wi
|
|
4115
|
+
], Yi = { 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" }, Ji = {
|
|
4110
4116
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4111
4117
|
"aria-labelledby": "dropdownDividerButton"
|
|
4112
|
-
},
|
|
4118
|
+
}, Qi = { key: 0 }, el = ["href"], tl = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-list-ul opacity-80" }, null, -1), rl = { key: 1 }, sl = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Vd = {
|
|
4113
4119
|
__name: "DatatableAction",
|
|
4114
4120
|
props: {
|
|
4115
4121
|
field: {
|
|
@@ -4135,7 +4141,7 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4135
4141
|
},
|
|
4136
4142
|
emits: ["deleteAction"],
|
|
4137
4143
|
setup(e, { emit: t }) {
|
|
4138
|
-
const r =
|
|
4144
|
+
const r = Ee(), n = e, o = C(!1), a = C(!1), l = () => {
|
|
4139
4145
|
o.value = !1;
|
|
4140
4146
|
}, i = () => {
|
|
4141
4147
|
o.value = !0;
|
|
@@ -4154,44 +4160,44 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4154
4160
|
console.log(x);
|
|
4155
4161
|
});
|
|
4156
4162
|
};
|
|
4157
|
-
return (x,
|
|
4158
|
-
const L =
|
|
4163
|
+
return (x, $) => {
|
|
4164
|
+
const L = Oe("click-outside");
|
|
4159
4165
|
return d(), u(v, null, [
|
|
4160
|
-
|
|
4166
|
+
Z(ue, {
|
|
4161
4167
|
isOpen: a.value,
|
|
4162
4168
|
onConfirmDelete: y,
|
|
4163
4169
|
onCancelDelete: c
|
|
4164
4170
|
}, null, 8, ["isOpen"]),
|
|
4165
|
-
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ?
|
|
4171
|
+
e.row && x.can(`edit_${e.xprops.permission} || delete_${e.xprops.permission}`) ? D((d(), u("div", Ki, [
|
|
4166
4172
|
s("button", {
|
|
4167
4173
|
onClick: i,
|
|
4168
4174
|
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",
|
|
4169
4175
|
type: "button"
|
|
4170
|
-
},
|
|
4171
|
-
|
|
4172
|
-
s("ul",
|
|
4173
|
-
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li",
|
|
4176
|
+
}, Xi),
|
|
4177
|
+
D(s("div", Yi, [
|
|
4178
|
+
s("ul", Ji, [
|
|
4179
|
+
x.can(`edit_${e.xprops.permission}`) ? (d(), u("li", Qi, [
|
|
4174
4180
|
s("a", {
|
|
4175
4181
|
href: e.xprops.route + "/" + e.row.id + "/edit",
|
|
4176
4182
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4177
4183
|
}, [
|
|
4178
|
-
|
|
4184
|
+
tl,
|
|
4179
4185
|
w(" Edit")
|
|
4180
|
-
], 8,
|
|
4186
|
+
], 8, el)
|
|
4181
4187
|
])) : g("", !0),
|
|
4182
|
-
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4188
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", rl, [
|
|
4183
4189
|
s("a", {
|
|
4184
4190
|
href: "#",
|
|
4185
|
-
onClick:
|
|
4191
|
+
onClick: N(f, ["prevent"]),
|
|
4186
4192
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4187
4193
|
}, [
|
|
4188
|
-
|
|
4194
|
+
sl,
|
|
4189
4195
|
w(" Remove")
|
|
4190
4196
|
])
|
|
4191
4197
|
])) : g("", !0)
|
|
4192
4198
|
])
|
|
4193
4199
|
], 512), [
|
|
4194
|
-
[
|
|
4200
|
+
[F, o.value]
|
|
4195
4201
|
])
|
|
4196
4202
|
])), [
|
|
4197
4203
|
[L, l]
|
|
@@ -4199,10 +4205,10 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4199
4205
|
], 64);
|
|
4200
4206
|
};
|
|
4201
4207
|
}
|
|
4202
|
-
},
|
|
4208
|
+
}, nl = {
|
|
4203
4209
|
key: 0,
|
|
4204
4210
|
class: "flex justify-center"
|
|
4205
|
-
},
|
|
4211
|
+
}, al = /* @__PURE__ */ s("svg", {
|
|
4206
4212
|
class: "w-5 h-5",
|
|
4207
4213
|
"aria-hidden": "true",
|
|
4208
4214
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4210,12 +4216,12 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4210
4216
|
viewBox: "0 0 4 15"
|
|
4211
4217
|
}, [
|
|
4212
4218
|
/* @__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" })
|
|
4213
|
-
], -1),
|
|
4214
|
-
|
|
4215
|
-
],
|
|
4219
|
+
], -1), ol = [
|
|
4220
|
+
al
|
|
4221
|
+
], il = { 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" }, ll = {
|
|
4216
4222
|
class: "py-2 text-sm text-gray-700 dark:text-gray-200",
|
|
4217
4223
|
"aria-labelledby": "dropdownDividerButton"
|
|
4218
|
-
},
|
|
4224
|
+
}, dl = { key: 0 }, ul = /* @__PURE__ */ s("i", { class: "mr-2 fa-solid fa-trash-can opacity-80" }, null, -1), Ld = {
|
|
4219
4225
|
__name: "DatatableDeleteAction",
|
|
4220
4226
|
props: {
|
|
4221
4227
|
field: {
|
|
@@ -4241,7 +4247,7 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4241
4247
|
},
|
|
4242
4248
|
emits: ["deleteAction"],
|
|
4243
4249
|
setup(e, { emit: t }) {
|
|
4244
|
-
const r =
|
|
4250
|
+
const r = Ee(), n = e, o = C(!1), a = C(!1), l = () => {
|
|
4245
4251
|
o.value = !1;
|
|
4246
4252
|
}, i = () => {
|
|
4247
4253
|
o.value = !0;
|
|
@@ -4260,35 +4266,35 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4260
4266
|
console.log(x);
|
|
4261
4267
|
});
|
|
4262
4268
|
};
|
|
4263
|
-
return (x,
|
|
4264
|
-
const L =
|
|
4269
|
+
return (x, $) => {
|
|
4270
|
+
const L = Oe("click-outside");
|
|
4265
4271
|
return d(), u(v, null, [
|
|
4266
|
-
|
|
4272
|
+
Z(ue, {
|
|
4267
4273
|
isOpen: a.value,
|
|
4268
4274
|
onConfirmDelete: y,
|
|
4269
4275
|
onCancelDelete: c
|
|
4270
4276
|
}, null, 8, ["isOpen"]),
|
|
4271
|
-
e.row && x.can(`delete_${e.xprops.permission}`) ?
|
|
4277
|
+
e.row && x.can(`delete_${e.xprops.permission}`) ? D((d(), u("div", nl, [
|
|
4272
4278
|
s("button", {
|
|
4273
4279
|
onClick: i,
|
|
4274
4280
|
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",
|
|
4275
4281
|
type: "button"
|
|
4276
|
-
},
|
|
4277
|
-
|
|
4278
|
-
s("ul",
|
|
4279
|
-
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li",
|
|
4282
|
+
}, ol),
|
|
4283
|
+
D(s("div", il, [
|
|
4284
|
+
s("ul", ll, [
|
|
4285
|
+
x.can(`delete_${e.xprops.permission}`) ? (d(), u("li", dl, [
|
|
4280
4286
|
s("a", {
|
|
4281
4287
|
href: "#",
|
|
4282
|
-
onClick:
|
|
4288
|
+
onClick: N(f, ["prevent"]),
|
|
4283
4289
|
class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4284
4290
|
}, [
|
|
4285
|
-
|
|
4291
|
+
ul,
|
|
4286
4292
|
w(" Remove")
|
|
4287
4293
|
])
|
|
4288
4294
|
])) : g("", !0)
|
|
4289
4295
|
])
|
|
4290
4296
|
], 512), [
|
|
4291
|
-
[
|
|
4297
|
+
[F, o.value]
|
|
4292
4298
|
])
|
|
4293
4299
|
])), [
|
|
4294
4300
|
[L, l]
|
|
@@ -4296,7 +4302,7 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4296
4302
|
], 64);
|
|
4297
4303
|
};
|
|
4298
4304
|
}
|
|
4299
|
-
},
|
|
4305
|
+
}, cl = {
|
|
4300
4306
|
props: ["field", "row"],
|
|
4301
4307
|
computed: {
|
|
4302
4308
|
isArray() {
|
|
@@ -4312,7 +4318,7 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4312
4318
|
mounted() {
|
|
4313
4319
|
console.log("row : ", this.row);
|
|
4314
4320
|
}
|
|
4315
|
-
},
|
|
4321
|
+
}, fl = ["href", "title"], hl = /* @__PURE__ */ s("svg", {
|
|
4316
4322
|
class: "w-3 h-3 text-white me-2",
|
|
4317
4323
|
"aria-hidden": "true",
|
|
4318
4324
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4329,10 +4335,10 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4329
4335
|
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",
|
|
4330
4336
|
"clip-rule": "evenodd"
|
|
4331
4337
|
})
|
|
4332
|
-
], -1),
|
|
4338
|
+
], -1), gl = {
|
|
4333
4339
|
key: 1,
|
|
4334
4340
|
class: "m-1 d-inline-block"
|
|
4335
|
-
},
|
|
4341
|
+
}, ml = ["href", "title"], pl = /* @__PURE__ */ s("svg", {
|
|
4336
4342
|
class: "w-3 h-3 text-white me-2",
|
|
4337
4343
|
"aria-hidden": "true",
|
|
4338
4344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4350,7 +4356,7 @@ const jd = /* @__PURE__ */ O(Go, [["render", $i]]), Ci = {
|
|
|
4350
4356
|
"clip-rule": "evenodd"
|
|
4351
4357
|
})
|
|
4352
4358
|
], -1);
|
|
4353
|
-
function
|
|
4359
|
+
function _l(e, t, r, n, o, a) {
|
|
4354
4360
|
return d(), u("div", null, [
|
|
4355
4361
|
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row, (l, i) => (d(), u("div", {
|
|
4356
4362
|
key: i,
|
|
@@ -4362,23 +4368,23 @@ function hl(e, t, r, n, o, a) {
|
|
|
4362
4368
|
target: "_blank",
|
|
4363
4369
|
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"
|
|
4364
4370
|
}, [
|
|
4365
|
-
|
|
4371
|
+
hl,
|
|
4366
4372
|
w(" Download ")
|
|
4367
|
-
], 8,
|
|
4368
|
-
]))), 128)) : a.isString ? (d(), u("div",
|
|
4373
|
+
], 8, fl)
|
|
4374
|
+
]))), 128)) : a.isString ? (d(), u("div", gl, [
|
|
4369
4375
|
s("a", {
|
|
4370
4376
|
href: r.row,
|
|
4371
4377
|
title: r.row,
|
|
4372
4378
|
target: "_blank",
|
|
4373
4379
|
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"
|
|
4374
4380
|
}, [
|
|
4375
|
-
|
|
4381
|
+
pl,
|
|
4376
4382
|
w(" Download ")
|
|
4377
|
-
], 8,
|
|
4383
|
+
], 8, ml)
|
|
4378
4384
|
])) : g("", !0)
|
|
4379
4385
|
]);
|
|
4380
4386
|
}
|
|
4381
|
-
const
|
|
4387
|
+
const Bd = /* @__PURE__ */ S(cl, [["render", _l]]), bl = {
|
|
4382
4388
|
props: ["field", "row"],
|
|
4383
4389
|
computed: {
|
|
4384
4390
|
isArray() {
|
|
@@ -4388,7 +4394,7 @@ const Md = /* @__PURE__ */ O(il, [["render", hl]]), gl = {
|
|
|
4388
4394
|
return typeof this.row[this.field] == "object";
|
|
4389
4395
|
}
|
|
4390
4396
|
}
|
|
4391
|
-
},
|
|
4397
|
+
}, yl = ["href", "title"], vl = /* @__PURE__ */ s("svg", {
|
|
4392
4398
|
class: "w-3 h-3 text-white me-2",
|
|
4393
4399
|
"aria-hidden": "true",
|
|
4394
4400
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4405,10 +4411,10 @@ const Md = /* @__PURE__ */ O(il, [["render", hl]]), gl = {
|
|
|
4405
4411
|
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",
|
|
4406
4412
|
"clip-rule": "evenodd"
|
|
4407
4413
|
})
|
|
4408
|
-
], -1),
|
|
4414
|
+
], -1), xl = {
|
|
4409
4415
|
key: 1,
|
|
4410
4416
|
class: "m-1 d-inline-block"
|
|
4411
|
-
},
|
|
4417
|
+
}, wl = ["href", "title"], kl = /* @__PURE__ */ s("svg", {
|
|
4412
4418
|
class: "w-3 h-3 text-white me-2",
|
|
4413
4419
|
"aria-hidden": "true",
|
|
4414
4420
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4426,7 +4432,7 @@ const Md = /* @__PURE__ */ O(il, [["render", hl]]), gl = {
|
|
|
4426
4432
|
"clip-rule": "evenodd"
|
|
4427
4433
|
})
|
|
4428
4434
|
], -1);
|
|
4429
|
-
function
|
|
4435
|
+
function $l(e, t, r, n, o, a) {
|
|
4430
4436
|
return d(), u("div", null, [
|
|
4431
4437
|
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[r.field], (l) => (d(), u("div", {
|
|
4432
4438
|
key: l.id,
|
|
@@ -4438,39 +4444,39 @@ function vl(e, t, r, n, o, a) {
|
|
|
4438
4444
|
target: "_blank",
|
|
4439
4445
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
4440
4446
|
}, [
|
|
4441
|
-
|
|
4447
|
+
vl,
|
|
4442
4448
|
w(" Download ")
|
|
4443
|
-
], 8,
|
|
4444
|
-
]))), 128)) : a.isObject ? (d(), u("div",
|
|
4449
|
+
], 8, yl)
|
|
4450
|
+
]))), 128)) : a.isObject ? (d(), u("div", xl, [
|
|
4445
4451
|
s("a", {
|
|
4446
4452
|
href: r.row[r.field].url,
|
|
4447
4453
|
title: r.row[r.field].name,
|
|
4448
4454
|
target: "_blank",
|
|
4449
4455
|
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"
|
|
4450
4456
|
}, [
|
|
4451
|
-
|
|
4457
|
+
kl,
|
|
4452
4458
|
w(" Download ")
|
|
4453
|
-
], 8,
|
|
4459
|
+
], 8, wl)
|
|
4454
4460
|
])) : g("", !0)
|
|
4455
4461
|
]);
|
|
4456
4462
|
}
|
|
4457
|
-
const
|
|
4463
|
+
const Gd = /* @__PURE__ */ S(bl, [["render", $l]]), Cl = {
|
|
4458
4464
|
props: ["field", "row", "tdProps"]
|
|
4459
|
-
},
|
|
4460
|
-
function
|
|
4461
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4465
|
+
}, Sl = { key: 0 }, Ol = ["innerHTML"];
|
|
4466
|
+
function Dl(e, t, r, n, o, a) {
|
|
4467
|
+
return r.row[r.field] ? (d(), u("div", Sl, [
|
|
4462
4468
|
s("div", {
|
|
4463
4469
|
class: "w-full",
|
|
4464
4470
|
innerHTML: r.row[r.field]
|
|
4465
|
-
}, null, 8,
|
|
4471
|
+
}, null, 8, Ol)
|
|
4466
4472
|
])) : g("", !0);
|
|
4467
4473
|
}
|
|
4468
|
-
const
|
|
4474
|
+
const Fd = /* @__PURE__ */ S(Cl, [["render", Dl]]), Pl = {
|
|
4469
4475
|
props: ["field", "row", "tdProps"],
|
|
4470
4476
|
computed: {
|
|
4471
4477
|
entry() {
|
|
4472
4478
|
const [e, t] = this.field.split(".");
|
|
4473
|
-
return
|
|
4479
|
+
return dt({ key: e, field: t });
|
|
4474
4480
|
},
|
|
4475
4481
|
isArray() {
|
|
4476
4482
|
return Array.isArray(this.row[this.entry.key]);
|
|
@@ -4479,24 +4485,24 @@ const Vd = /* @__PURE__ */ O(xl, [["render", $l]]), Cl = {
|
|
|
4479
4485
|
return typeof this.row[this.entry.key] == "object";
|
|
4480
4486
|
}
|
|
4481
4487
|
}
|
|
4482
|
-
},
|
|
4488
|
+
}, El = { class: "flex flex-wrap gap-2" }, jl = {
|
|
4483
4489
|
key: 1,
|
|
4484
4490
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4485
4491
|
};
|
|
4486
|
-
function
|
|
4487
|
-
return d(), u("div",
|
|
4492
|
+
function Al(e, t, r, n, o, a) {
|
|
4493
|
+
return d(), u("div", El, [
|
|
4488
4494
|
a.isArray ? (d(!0), u(v, { key: 0 }, k(r.row[a.entry.key], (l, i) => (d(), u("span", {
|
|
4489
4495
|
key: i,
|
|
4490
4496
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
4491
|
-
}, h(l[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span",
|
|
4497
|
+
}, h(l[a.entry.field]), 1))), 128)) : a.isObject ? (d(), u("span", jl, h(r.row[a.entry.key][a.entry.field]), 1)) : g("", !0)
|
|
4492
4498
|
]);
|
|
4493
4499
|
}
|
|
4494
|
-
const
|
|
4500
|
+
const Rd = /* @__PURE__ */ S(Pl, [["render", Al]]), Il = {
|
|
4495
4501
|
props: ["field", "row", "tdProps"]
|
|
4496
|
-
},
|
|
4497
|
-
function
|
|
4498
|
-
return r.row[r.field] ? (d(), u("div",
|
|
4499
|
-
s("div",
|
|
4502
|
+
}, Tl = { key: 0 }, Ml = { class: "m-1 d-inline-block" }, Nl = ["href", "title"], Vl = ["src", "alt", "title"];
|
|
4503
|
+
function Ll(e, t, r, n, o, a) {
|
|
4504
|
+
return r.row[r.field] ? (d(), u("div", Tl, [
|
|
4505
|
+
s("div", Ml, [
|
|
4500
4506
|
s("a", {
|
|
4501
4507
|
href: r.row[r.field].url,
|
|
4502
4508
|
title: r.row[r.field].name,
|
|
@@ -4506,37 +4512,37 @@ function Tl(e, t, r, n, o, a) {
|
|
|
4506
4512
|
src: r.row[r.field].thumbnail,
|
|
4507
4513
|
alt: r.row[r.field].name,
|
|
4508
4514
|
title: r.row[r.field].name
|
|
4509
|
-
}, null, 8,
|
|
4510
|
-
], 8,
|
|
4515
|
+
}, null, 8, Vl)
|
|
4516
|
+
], 8, Nl)
|
|
4511
4517
|
])
|
|
4512
4518
|
])) : g("", !0);
|
|
4513
4519
|
}
|
|
4514
|
-
const
|
|
4520
|
+
const Ud = /* @__PURE__ */ S(Il, [["render", Ll], ["__scopeId", "data-v-3a28c02c"]]), Bl = {
|
|
4515
4521
|
props: ["field", "row", "tdProps"],
|
|
4516
4522
|
computed: {
|
|
4517
4523
|
isActive() {
|
|
4518
4524
|
return this.row[this.field] === 1;
|
|
4519
4525
|
}
|
|
4520
4526
|
}
|
|
4521
|
-
},
|
|
4527
|
+
}, Gl = { class: "flex flex-wrap gap-2" }, Fl = {
|
|
4522
4528
|
key: 0,
|
|
4523
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"
|
|
4524
|
-
},
|
|
4530
|
+
}, Rl = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Ul = {
|
|
4525
4531
|
key: 1,
|
|
4526
4532
|
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"
|
|
4527
|
-
},
|
|
4528
|
-
function
|
|
4529
|
-
return d(), u("div",
|
|
4530
|
-
a.isActive ? (d(), u("span",
|
|
4531
|
-
|
|
4533
|
+
}, ql = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
4534
|
+
function zl(e, t, r, n, o, a) {
|
|
4535
|
+
return d(), u("div", Gl, [
|
|
4536
|
+
a.isActive ? (d(), u("span", Fl, [
|
|
4537
|
+
Rl,
|
|
4532
4538
|
w(" Active ")
|
|
4533
|
-
])) : a.isActive ? g("", !0) : (d(), u("span",
|
|
4534
|
-
|
|
4539
|
+
])) : a.isActive ? g("", !0) : (d(), u("span", Ul, [
|
|
4540
|
+
ql,
|
|
4535
4541
|
w(" Inactive ")
|
|
4536
4542
|
]))
|
|
4537
4543
|
]);
|
|
4538
4544
|
}
|
|
4539
|
-
const
|
|
4545
|
+
const qd = /* @__PURE__ */ S(Bl, [["render", zl]]), Hl = {
|
|
4540
4546
|
props: ["field", "row", "tdProps"],
|
|
4541
4547
|
computed: {
|
|
4542
4548
|
hasLabelColor(e) {
|
|
@@ -4544,40 +4550,40 @@ const Gd = /* @__PURE__ */ O(Ml, [["render", Fl]]), Rl = {
|
|
|
4544
4550
|
return t ? t.class : "";
|
|
4545
4551
|
}
|
|
4546
4552
|
}
|
|
4547
|
-
},
|
|
4553
|
+
}, Zl = { class: "flex flex-wrap gap-2" }, Kl = {
|
|
4548
4554
|
key: 0,
|
|
4549
4555
|
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"
|
|
4550
|
-
},
|
|
4556
|
+
}, Wl = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), Xl = {
|
|
4551
4557
|
key: 1,
|
|
4552
4558
|
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"
|
|
4553
|
-
},
|
|
4559
|
+
}, Yl = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), Jl = {
|
|
4554
4560
|
key: 2,
|
|
4555
4561
|
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"
|
|
4556
|
-
},
|
|
4562
|
+
}, Ql = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-yellow-500 rounded-full me-1" }, null, -1), ed = {
|
|
4557
4563
|
key: 3,
|
|
4558
4564
|
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"
|
|
4559
|
-
},
|
|
4560
|
-
function
|
|
4561
|
-
return d(), u("div",
|
|
4562
|
-
a.hasLabelColor == "green" ? (d(), u("span",
|
|
4563
|
-
|
|
4565
|
+
}, td = /* @__PURE__ */ s("span", { class: "w-2 h-2 bg-blue-500 rounded-full me-1" }, null, -1);
|
|
4566
|
+
function rd(e, t, r, n, o, a) {
|
|
4567
|
+
return d(), u("div", Zl, [
|
|
4568
|
+
a.hasLabelColor == "green" ? (d(), u("span", Kl, [
|
|
4569
|
+
Wl,
|
|
4564
4570
|
w(" " + h(this.row[this.field]), 1)
|
|
4565
4571
|
])) : g("", !0),
|
|
4566
|
-
a.hasLabelColor == "red" ? (d(), u("span",
|
|
4567
|
-
|
|
4572
|
+
a.hasLabelColor == "red" ? (d(), u("span", Xl, [
|
|
4573
|
+
Yl,
|
|
4568
4574
|
w(" " + h(this.row[this.field]), 1)
|
|
4569
4575
|
])) : g("", !0),
|
|
4570
|
-
a.hasLabelColor == "yellow" ? (d(), u("span",
|
|
4571
|
-
|
|
4576
|
+
a.hasLabelColor == "yellow" ? (d(), u("span", Jl, [
|
|
4577
|
+
Ql,
|
|
4572
4578
|
w(" " + h(this.row[this.field]), 1)
|
|
4573
4579
|
])) : g("", !0),
|
|
4574
|
-
a.hasLabelColor == "default" ? (d(), u("span",
|
|
4575
|
-
|
|
4580
|
+
a.hasLabelColor == "default" ? (d(), u("span", ed, [
|
|
4581
|
+
td,
|
|
4576
4582
|
w(" " + h(this.row[this.field]), 1)
|
|
4577
4583
|
])) : g("", !0)
|
|
4578
4584
|
]);
|
|
4579
4585
|
}
|
|
4580
|
-
const
|
|
4586
|
+
const zd = /* @__PURE__ */ S(Hl, [["render", rd]]), sd = {
|
|
4581
4587
|
props: ["isOpen", "title", "button_text"],
|
|
4582
4588
|
methods: {
|
|
4583
4589
|
confirmAction() {
|
|
@@ -4587,35 +4593,35 @@ const Fd = /* @__PURE__ */ O(Rl, [["render", Jl]]), Ql = {
|
|
|
4587
4593
|
this.$emit("cancel-action");
|
|
4588
4594
|
}
|
|
4589
4595
|
}
|
|
4590
|
-
},
|
|
4596
|
+
}, nd = {
|
|
4591
4597
|
key: 0,
|
|
4592
4598
|
class: "fixed inset-0 z-50 overflow-y-auto",
|
|
4593
4599
|
role: "dialog",
|
|
4594
4600
|
"aria-modal": "true"
|
|
4595
|
-
},
|
|
4601
|
+
}, ad = { class: "flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0" }, od = /* @__PURE__ */ s("div", {
|
|
4596
4602
|
class: "fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75",
|
|
4597
4603
|
"aria-hidden": "true"
|
|
4598
|
-
}, null, -1),
|
|
4604
|
+
}, null, -1), id = /* @__PURE__ */ s("span", {
|
|
4599
4605
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
4600
4606
|
"aria-hidden": "true"
|
|
4601
|
-
}, "", -1),
|
|
4602
|
-
function
|
|
4603
|
-
return r.isOpen ? (d(), u("div",
|
|
4604
|
-
s("div",
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
s("div",
|
|
4608
|
-
s("div",
|
|
4609
|
-
s("div",
|
|
4610
|
-
s("div",
|
|
4611
|
-
s("h3",
|
|
4612
|
-
s("div",
|
|
4613
|
-
|
|
4607
|
+
}, "", -1), ld = { 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" }, dd = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, ud = { class: "sm:flex sm:items-start" }, cd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, fd = { class: "text-lg font-medium leading-6 text-gray-900" }, hd = { class: "mt-2" }, gd = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
4608
|
+
function md(e, t, r, n, o, a) {
|
|
4609
|
+
return r.isOpen ? (d(), u("div", nd, [
|
|
4610
|
+
s("div", ad, [
|
|
4611
|
+
od,
|
|
4612
|
+
id,
|
|
4613
|
+
s("div", ld, [
|
|
4614
|
+
s("div", dd, [
|
|
4615
|
+
s("div", ud, [
|
|
4616
|
+
s("div", cd, [
|
|
4617
|
+
s("h3", fd, h(r.title), 1),
|
|
4618
|
+
s("div", hd, [
|
|
4619
|
+
I(e.$slots, "default")
|
|
4614
4620
|
])
|
|
4615
4621
|
])
|
|
4616
4622
|
])
|
|
4617
4623
|
]),
|
|
4618
|
-
s("div",
|
|
4624
|
+
s("div", gd, [
|
|
4619
4625
|
s("button", {
|
|
4620
4626
|
onClick: t[0] || (t[0] = (...l) => a.confirmAction && a.confirmAction(...l)),
|
|
4621
4627
|
type: "button",
|
|
@@ -4631,39 +4637,39 @@ function cd(e, t, r, n, o, a) {
|
|
|
4631
4637
|
])
|
|
4632
4638
|
])) : g("", !0);
|
|
4633
4639
|
}
|
|
4634
|
-
const
|
|
4640
|
+
const Hd = /* @__PURE__ */ S(sd, [["render", md]]);
|
|
4635
4641
|
export {
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4642
|
+
wd as GlButton,
|
|
4643
|
+
vd as GlCard,
|
|
4644
|
+
Hd as GlConfirmationModal,
|
|
4645
|
+
Md as GlDataTable,
|
|
4646
|
+
Td as GlDataTableServerSide,
|
|
4647
|
+
Vd as GlDatatableAction,
|
|
4648
|
+
Ld as GlDatatableDeleteAction,
|
|
4649
|
+
Bd as GlDatatableFileDownload,
|
|
4650
|
+
Gd as GlDatatableFiles,
|
|
4651
|
+
Fd as GlDatatableHtml,
|
|
4652
|
+
Rd as GlDatatableList,
|
|
4653
|
+
Ud as GlDatatablePicture,
|
|
4654
|
+
qd as GlDatatableStatus,
|
|
4655
|
+
zd as GlDatatableStatusGeneral,
|
|
4656
|
+
ue as GlDeleteConfirmationModal,
|
|
4657
|
+
Ad as GlDropdown,
|
|
4658
|
+
_d as GlFilesUpload,
|
|
4659
|
+
yd as GlLanguageSelector,
|
|
4660
|
+
Ed as GlModal,
|
|
4661
|
+
Pd as GlMultiItemSlide,
|
|
4662
|
+
xd as GlMultiSelectDropdown,
|
|
4663
|
+
bd as GlNotify,
|
|
4664
|
+
Dd as GlTab,
|
|
4665
|
+
Od as GlTabsWrapper,
|
|
4666
|
+
wo as GlTailwindPagination,
|
|
4667
|
+
Sd as GlTextInput,
|
|
4668
|
+
Cd as GlTextTranslate,
|
|
4669
|
+
Id as GlTextarea,
|
|
4670
|
+
kd as GlTextareaTranslate,
|
|
4671
|
+
$d as GlTinymceTranslate,
|
|
4672
|
+
$e as GlToast,
|
|
4673
|
+
Nd as GlToastList,
|
|
4674
|
+
jd as GlToggleBox
|
|
4669
4675
|
};
|